<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[214224] trunk/Websites/bugs.webkit.org</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/214224">214224</a></dd>
<dt>Author</dt> <dd>ddkilzer@apple.com</dd>
<dt>Date</dt> <dd>2017-03-21 09:27:49 -0700 (Tue, 21 Mar 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Upgrade to Bugzilla 5.0.3.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebsitesbugswebkitorgbzrignore">trunk/Websites/bugs.webkit.org/.bzrignore</a></li>
<li><a href="#trunkWebsitesbugswebkitorggitignore">trunk/Websites/bugs.webkit.org/.gitignore</a></li>
<li><a href="#trunkWebsitesbugswebkitorghtaccess">trunk/Websites/bugs.webkit.org/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillahtaccess">trunk/Websites/bugs.webkit.org/Bugzilla/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAttachmentPatchReaderpm">trunk/Websites/bugs.webkit.org/Bugzilla/Attachment/PatchReader.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAttachmentpm">trunk/Websites/bugs.webkit.org/Bugzilla/Attachment.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginCGIpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/CGI.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginCookiepm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Cookie.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginEnvpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Env.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginStackpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Stack.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthPersistCookiepm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Persist/Cookie.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthVerifyDBpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/DB.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthVerifyLDAPpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/LDAP.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthVerifyRADIUSpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/RADIUS.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthVerifyStackpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/Stack.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthVerifypm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthpm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugpm">trunk/Websites/bugs.webkit.org/Bugzilla/Bug.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugMailpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugMail.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlBugzillaLocalpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla/Local.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlBugzillapm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlDebianpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Debian.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlGooglepm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Google.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlJIRApm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/JIRA.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlLaunchpadpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Launchpad.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlMantisBTpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/MantisBT.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlSourceForgepm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/SourceForge.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlTracpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Trac.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaCGIpm">trunk/Websites/bugs.webkit.org/Bugzilla/CGI.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaChartpm">trunk/Websites/bugs.webkit.org/Bugzilla/Chart.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaClassificationpm">trunk/Websites/bugs.webkit.org/Bugzilla/Classification.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaCommentpm">trunk/Websites/bugs.webkit.org/Bugzilla/Comment.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaComponentpm">trunk/Websites/bugs.webkit.org/Bugzilla/Component.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigAdminpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Admin.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigAdvancedpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Advanced.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigAttachmentpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Attachment.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigAuthpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Auth.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigBugChangepm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugChange.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigBugFieldspm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugFields.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigCommonpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Common.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigCorepm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Core.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigDependencyGraphpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/DependencyGraph.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigGeneralpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/General.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigGroupSecuritypm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/GroupSecurity.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigLDAPpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/LDAP.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigMTApm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/MTA.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigQuerypm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Query.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigRADIUSpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/RADIUS.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigShadowDBpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/ShadowDB.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigUserMatchpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/UserMatch.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConstantspm">trunk/Websites/bugs.webkit.org/Bugzilla/Constants.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBMysqlpm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Mysql.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBOraclepm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Oracle.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBPgpm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Pg.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSchemaMysqlpm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Mysql.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSchemaOraclepm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Oracle.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSchemaPgpm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Pg.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSchemaSqlitepm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Sqlite.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSchemapm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBSqlitepm">trunk/Websites/bugs.webkit.org/Bugzilla/DB/Sqlite.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaDBpm">trunk/Websites/bugs.webkit.org/Bugzilla/DB.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaErrorpm">trunk/Websites/bugs.webkit.org/Bugzilla/Error.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaExtensionpm">trunk/Websites/bugs.webkit.org/Bugzilla/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaFieldChoicepm">trunk/Websites/bugs.webkit.org/Bugzilla/Field/Choice.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaFieldChoiceInterfacepm">trunk/Websites/bugs.webkit.org/Bugzilla/Field/ChoiceInterface.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaFieldpm">trunk/Websites/bugs.webkit.org/Bugzilla/Field.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaFlagpm">trunk/Websites/bugs.webkit.org/Bugzilla/Flag.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaFlagTypepm">trunk/Websites/bugs.webkit.org/Bugzilla/FlagType.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaGrouppm">trunk/Websites/bugs.webkit.org/Bugzilla/Group.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaHookpm">trunk/Websites/bugs.webkit.org/Bugzilla/Hook.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallCPANpm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/CPAN.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallDBpm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/DB.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallFilesystempm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/Filesystem.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallLocalconfigpm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/Localconfig.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallRequirementspm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/Requirements.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallUtilpm">trunk/Websites/bugs.webkit.org/Bugzilla/Install/Util.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaInstallpm">trunk/Websites/bugs.webkit.org/Bugzilla/Install.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaJobMailerpm">trunk/Websites/bugs.webkit.org/Bugzilla/Job/Mailer.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaJobQueueRunnerpm">trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue/Runner.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaJobQueuepm">trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaKeywordpm">trunk/Websites/bugs.webkit.org/Bugzilla/Keyword.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMailerpm">trunk/Websites/bugs.webkit.org/Bugzilla/Mailer.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMigrateGnatspm">trunk/Websites/bugs.webkit.org/Bugzilla/Migrate/Gnats.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMigratepm">trunk/Websites/bugs.webkit.org/Bugzilla/Migrate.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMilestonepm">trunk/Websites/bugs.webkit.org/Bugzilla/Milestone.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaObjectpm">trunk/Websites/bugs.webkit.org/Bugzilla/Object.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaProductpm">trunk/Websites/bugs.webkit.org/Bugzilla/Product.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaRNGpm">trunk/Websites/bugs.webkit.org/Bugzilla/RNG.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchClausepm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/Clause.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchConditionpm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/Condition.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchQuicksearchpm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/Quicksearch.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchRecentpm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/Recent.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchSavedpm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/Saved.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchpm">trunk/Websites/bugs.webkit.org/Bugzilla/Search.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSeriespm">trunk/Websites/bugs.webkit.org/Bugzilla/Series.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaStatuspm">trunk/Websites/bugs.webkit.org/Bugzilla/Status.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTemplateContextpm">trunk/Websites/bugs.webkit.org/Bugzilla/Template/Context.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTemplatePluginBugzillapm">trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTemplatePluginHookpm">trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Hook.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTemplatepm">trunk/Websites/bugs.webkit.org/Bugzilla/Template.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTokenpm">trunk/Websites/bugs.webkit.org/Bugzilla/Token.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUpdatepm">trunk/Websites/bugs.webkit.org/Bugzilla/Update.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserSettingLangpm">trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Lang.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserSettingSkinpm">trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Skin.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserSettingTimezonepm">trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Timezone.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserSettingpm">trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserpm">trunk/Websites/bugs.webkit.org/Bugzilla/User.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUtilpm">trunk/Websites/bugs.webkit.org/Bugzilla/Util.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaVersionpm">trunk/Websites/bugs.webkit.org/Bugzilla/Version.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceBugpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bug.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceBugzillapm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceConstantspm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Constants.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceGrouppm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Group.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceProductpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Product.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceREADME">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/README</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerJSONRPCpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/JSONRPC.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerXMLRPCpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/XMLRPC.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceUserpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/User.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceUtilpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Util.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServicepm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWhineQuerypm">trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Query.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWhineSchedulepm">trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Schedule.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWhinepm">trunk/Websites/bugs.webkit.org/Bugzilla/Whine.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillapm">trunk/Websites/bugs.webkit.org/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgChangeLog">trunk/Websites/bugs.webkit.org/ChangeLog</a></li>
<li><a href="#trunkWebsitesbugswebkitorgREADME">trunk/Websites/bugs.webkit.org/README</a></li>
<li><a href="#trunkWebsitesbugswebkitorgadmincgi">trunk/Websites/bugs.webkit.org/admin.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgattachmentcgi">trunk/Websites/bugs.webkit.org/attachment.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgbuglistcgi">trunk/Websites/bugs.webkit.org/buglist.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgchartcgi">trunk/Websites/bugs.webkit.org/chart.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgchecksetuppl">trunk/Websites/bugs.webkit.org/checksetup.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcolchangecgi">trunk/Websites/bugs.webkit.org/colchange.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcollectstatspl">trunk/Websites/bugs.webkit.org/collectstats.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgconfigcgi">trunk/Websites/bugs.webkit.org/config.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribhtaccess">trunk/Websites/bugs.webkit.org/contrib/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribREADME">trunk/Websites/bugs.webkit.org/contrib/README</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbugzillaqueuerhel">trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.rhel</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbugzillaqueuesuse">trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.suse</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbugzillasubmitbugzillasubmit">trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbugzillasubmitbugzillasubmitxml">trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit.xml</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbz_webservice_demopl">trunk/Websites/bugs.webkit.org/contrib/bz_webservice_demo.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribbzdbcopypl">trunk/Websites/bugs.webkit.org/contrib/bzdbcopy.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinebugcount">trunk/Websites/bugs.webkit.org/contrib/cmdline/bugcount</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinebugids">trunk/Websites/bugs.webkit.org/contrib/cmdline/bugids</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinebuglist">trunk/Websites/bugs.webkit.org/contrib/cmdline/buglist</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinebugs">trunk/Websites/bugs.webkit.org/contrib/cmdline/bugs</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinebugslink">trunk/Websites/bugs.webkit.org/contrib/cmdline/bugslink</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinemakequery">trunk/Websites/bugs.webkit.org/contrib/cmdline/makequery</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcmdlinequeryconf">trunk/Websites/bugs.webkit.org/contrib/cmdline/query.conf</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribconsolepl">trunk/Websites/bugs.webkit.org/contrib/console.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribconvertworkflowpl">trunk/Websites/bugs.webkit.org/contrib/convert-workflow.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribextensionconvertpl">trunk/Websites/bugs.webkit.org/contrib/extension-convert.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribfixpermspl">trunk/Websites/bugs.webkit.org/contrib/fixperms.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribjb2bzpy">trunk/Websites/bugs.webkit.org/contrib/jb2bz.py</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribmergeuserspl">trunk/Websites/bugs.webkit.org/contrib/merge-users.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribmysqldwatcherpl">trunk/Websites/bugs.webkit.org/contrib/mysqld-watcher.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribnewyuish">trunk/Websites/bugs.webkit.org/contrib/new-yui.sh</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribrecodepl">trunk/Websites/bugs.webkit.org/contrib/recode.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribsendbugmailpl">trunk/Websites/bugs.webkit.org/contrib/sendbugmail.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribsendunsentbugmailpl">trunk/Websites/bugs.webkit.org/contrib/sendunsentbugmail.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribsyncLDAPpl">trunk/Websites/bugs.webkit.org/contrib/syncLDAP.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcreateaccountcgi">trunk/Websites/bugs.webkit.org/createaccount.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdatahtaccess">trunk/Websites/bugs.webkit.org/data/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdescribecomponentscgi">trunk/Websites/bugs.webkit.org/describecomponents.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdescribekeywordscgi">trunk/Websites/bugs.webkit.org/describekeywords.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimagesbzLifecyclexml">trunk/Websites/bugs.webkit.org/docs/en/images/bzLifecycle.xml</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocslibPodSimpleHTMLBugzillapm">trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTML/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocslibPodSimpleHTMLBatchBugzillapm">trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsmakedocspl">trunk/Websites/bugs.webkit.org/docs/makedocs.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsstylecss">trunk/Websites/bugs.webkit.org/docs/style.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgduplicatescgi">trunk/Websites/bugs.webkit.org/duplicates.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditclassificationscgi">trunk/Websites/bugs.webkit.org/editclassifications.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditcomponentscgi">trunk/Websites/bugs.webkit.org/editcomponents.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditfieldscgi">trunk/Websites/bugs.webkit.org/editfields.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditflagtypescgi">trunk/Websites/bugs.webkit.org/editflagtypes.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditgroupscgi">trunk/Websites/bugs.webkit.org/editgroups.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditkeywordscgi">trunk/Websites/bugs.webkit.org/editkeywords.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditmilestonescgi">trunk/Websites/bugs.webkit.org/editmilestones.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditparamscgi">trunk/Websites/bugs.webkit.org/editparams.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditproductscgi">trunk/Websites/bugs.webkit.org/editproducts.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditsettingscgi">trunk/Websites/bugs.webkit.org/editsettings.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgedituserscgi">trunk/Websites/bugs.webkit.org/editusers.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditvaluescgi">trunk/Websites/bugs.webkit.org/editvalues.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditversionscgi">trunk/Websites/bugs.webkit.org/editversions.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditwhinescgi">trunk/Websites/bugs.webkit.org/editwhines.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgeditworkflowcgi">trunk/Websites/bugs.webkit.org/editworkflow.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgemail_inpl">trunk/Websites/bugs.webkit.org/email_in.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgenter_bugcgi">trunk/Websites/bugs.webkit.org/enter_bug.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsBmpConvertConfigpm">trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsBmpConvertExtensionpm">trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampleConfigpm">trunk/Websites/bugs.webkit.org/extensions/Example/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampleExtensionpm">trunk/Websites/bugs.webkit.org/extensions/Example/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExamplelibAuthLoginpm">trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Login.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExamplelibAuthVerifypm">trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Verify.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExamplelibConfigpm">trunk/Websites/bugs.webkit.org/extensions/Example/lib/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExamplelibUtilpm">trunk/Websites/bugs.webkit.org/extensions/Example/lib/Util.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExamplelibWebServicepm">trunk/Websites/bugs.webkit.org/extensions/Example/lib/WebService.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultaccountprefsmy_tabhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/account/prefs/my_tab.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultadminparamsexamplehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/admin/params/example.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookaccountprefsprefstabshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/account/prefs/prefs-tabs.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookadminparamseditparamscurrent_panelhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookadminsanitycheckmessagesstatuseshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalsettingdescssettingsnonetmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/setting-descs-settings.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalusererrorerrorshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/user-error-errors.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultpagesexamplehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/pages/example.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultsetupstringstxtpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/setup/strings.txt.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMoveConfigpm">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMoveExtensionpm">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovelibParamspm">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/lib/Params.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaultadminparamsoldbugmovehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookbugeditafter_comment_textareahtmltmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookbugformat_commenttypetxttmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookglobalusererrorauth_failure_actionhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookglobalusererrorerrorshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthooklisteditmultipleafter_groupshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/list/edit-multiple-after_groups.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingConfigpm">trunk/Websites/bugs.webkit.org/extensions/Voting/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingExtensionpm">trunk/Websites/bugs.webkit.org/extensions/Voting/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookaccountprefsemailrelationshipshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminproductseditcommonrowshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminproductsupdatedchangeshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminsanitycheckmessagesstatuseshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminusersconfirmdeletewarn_safehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugeditafter_importancehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugformat_commenttypetxttmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugprocessheadertitlehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugprocessresultstitlehtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugshowheaderendhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalcodeerrorerrorshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalfielddescsendnonetmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalreasondescsendnonetmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalusererrorerrorshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthooksearchformafter_freetext_fieldshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthooksearchsearchreportselectrep_fieldshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotingbughtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotinguserhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/user.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotinghtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultvotingdeleteallhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/delete-all.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultvotingvotesremovedtxttmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingwebstylecss">trunk/Websites/bugs.webkit.org/extensions/Voting/web/style.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionscreatepl">trunk/Websites/bugs.webkit.org/extensions/create.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimportxmlpl">trunk/Websites/bugs.webkit.org/importxml.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgindexcgi">trunk/Websites/bugs.webkit.org/index.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorginstallmodulepl">trunk/Websites/bugs.webkit.org/install-module.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjobqueuepl">trunk/Websites/bugs.webkit.org/jobqueue.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsTUIjs">trunk/Websites/bugs.webkit.org/js/TUI.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsattachmentjs">trunk/Websites/bugs.webkit.org/js/attachment.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsbugjs">trunk/Websites/bugs.webkit.org/js/bug.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjschangecolumnsjs">trunk/Websites/bugs.webkit.org/js/change-columns.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjscommentsjs">trunk/Websites/bugs.webkit.org/js/comments.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjscustomsearchjs">trunk/Websites/bugs.webkit.org/js/custom-search.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsexpandingtreejs">trunk/Websites/bugs.webkit.org/js/expanding-tree.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsfieldjs">trunk/Websites/bugs.webkit.org/js/field.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsflagjs">trunk/Websites/bugs.webkit.org/js/flag.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsglobaljs">trunk/Websites/bugs.webkit.org/js/global.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsparamsjs">trunk/Websites/bugs.webkit.org/js/params.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsproductformjs">trunk/Websites/bugs.webkit.org/js/productform.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsutiljs">trunk/Websites/bugs.webkit.org/js/util.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjsonrpccgi">trunk/Websites/bugs.webkit.org/jsonrpc.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorglibhtaccess">trunk/Websites/bugs.webkit.org/lib/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgmigratepl">trunk/Websites/bugs.webkit.org/migrate.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgmod_perlpl">trunk/Websites/bugs.webkit.org/mod_perl.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgpagecgi">trunk/Websites/bugs.webkit.org/page.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgpost_bugcgi">trunk/Websites/bugs.webkit.org/post_bug.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgprocess_bugcgi">trunk/Websites/bugs.webkit.org/process_bug.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgquerycgi">trunk/Websites/bugs.webkit.org/query.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgquipscgi">trunk/Websites/bugs.webkit.org/quips.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgrelogincgi">trunk/Websites/bugs.webkit.org/relogin.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgreportcgi">trunk/Websites/bugs.webkit.org/report.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgreportscgi">trunk/Websites/bugs.webkit.org/reports.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgrequestcgi">trunk/Websites/bugs.webkit.org/request.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgruntestspl">trunk/Websites/bugs.webkit.org/runtests.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgsanitycheckcgi">trunk/Websites/bugs.webkit.org/sanitycheck.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgsanitycheckpl">trunk/Websites/bugs.webkit.org/sanitycheck.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgsearch_plugincgi">trunk/Websites/bugs.webkit.org/search_plugin.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgshow_activitycgi">trunk/Websites/bugs.webkit.org/show_activity.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgshow_bugcgi">trunk/Websites/bugs.webkit.org/show_bug.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgshowdependencygraphcgi">trunk/Websites/bugs.webkit.org/showdependencygraph.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgshowdependencytreecgi">trunk/Websites/bugs.webkit.org/showdependencytree.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsREADME">trunk/Websites/bugs.webkit.org/skins/README</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinscontribDuskbuglistcss">trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/buglist.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinscontribDuskglobalcss">trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/global.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardadmincss">trunk/Websites/bugs.webkit.org/skins/standard/admin.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardbuglistcss">trunk/Websites/bugs.webkit.org/skins/standard/buglist.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardglobalcss">trunk/Websites/bugs.webkit.org/skins/standard/global.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgsummarize_timecgi">trunk/Websites/bugs.webkit.org/summarize_time.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgthtaccess">trunk/Websites/bugs.webkit.org/t/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt001compilet">trunk/Websites/bugs.webkit.org/t/001compile.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt002goodperlt">trunk/Websites/bugs.webkit.org/t/002goodperl.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt003safesyst">trunk/Websites/bugs.webkit.org/t/003safesys.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt004templatet">trunk/Websites/bugs.webkit.org/t/004template.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt005whitespacet">trunk/Websites/bugs.webkit.org/t/005whitespace.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt006spellcheckt">trunk/Websites/bugs.webkit.org/t/006spellcheck.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt007utilt">trunk/Websites/bugs.webkit.org/t/007util.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt008filtert">trunk/Websites/bugs.webkit.org/t/008filter.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt009bugwordst">trunk/Websites/bugs.webkit.org/t/009bugwords.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt010dependenciest">trunk/Websites/bugs.webkit.org/t/010dependencies.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt011podt">trunk/Websites/bugs.webkit.org/t/011pod.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt012throwablest">trunk/Websites/bugs.webkit.org/t/012throwables.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtSupportFilespm">trunk/Websites/bugs.webkit.org/t/Support/Files.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtSupportSystemexecpm">trunk/Websites/bugs.webkit.org/t/Support/Systemexec.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtSupportTemplatespm">trunk/Websites/bugs.webkit.org/t/Support/Templates.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplatehtaccess">trunk/Websites/bugs.webkit.org/template/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountauthloginsmallhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login-small.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountauthloginhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountcanceltokentxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/cancel-token.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountcreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountcreatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/created.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountemailchangenewtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-new.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountemailchangeoldtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-old.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountemailconfirmnewhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm-new.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountemailconfirmhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountemailrequestnewtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/email/request-new.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountpasswordforgottenpasswordtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/password/forgotten-password.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountpasswordsetforgottenpasswordhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/password/set-forgotten-password.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsaccounthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/account.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsemailhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/email.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefspermissionshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/permissions.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsprefshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/prefs.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefssavedsearcheshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/saved-searches.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefssettingshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/settings.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprofileactivityhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/profile-activity.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminadminhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/admin.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsaddhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/add.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsdelhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/del.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationseditcommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit-common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsreclassifyhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/reclassify.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsselecthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/select.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentseditcommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit-common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsselectproducthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/components/select-product.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminconfirmactionhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/confirm-action.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldscfjsjstmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/cf-js.js.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldsconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluescreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvalueslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesselectfieldhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/select-field.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypeconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypeedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypelisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsconfirmremovehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/confirm-remove.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmingroupscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmingroupslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordsconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonescreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestoneslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesselectproducthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/select-product.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsadminhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/admin.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsadvancedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/advanced.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsattachmenthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/attachment.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsauthhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/auth.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsbugchangehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugchange.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsbugfieldshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugfields.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamscommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamscorehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/core.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsdependencygraphhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/dependencygraph.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamseditparamshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/editparams.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsgeneralhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/general.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsgroupsecurityhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/groupsecurity.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsindexhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/index.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsldaphtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/ldap.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsmtahtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/mta.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsqueryhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/query.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsradiushtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/radius.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsshadowdbhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/shadowdb.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsusermatchhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/usermatch.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductseditcommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit-common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontrolconfirmedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontroledithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontrolupdatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/updated.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductslistclassificationshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list-classifications.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminproductsupdatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/products/updated.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminsanitychecklisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminsanitycheckmessageshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/messages.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminsettingsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/settings/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminsudohtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/sudo.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmintablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminusersconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminuserscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminusersedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminuserslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminuserslistselectvarshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/listselectvars.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminusersresponsibilitieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/responsibilities.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminuserssearchhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/search.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminusersuserdatahtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/users/userdata.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionsconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionscreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionsedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionsfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionslisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminversionsselectproducthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/select-product.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminworkflowcommenthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/comment.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminworkflowedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentchoosehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/choose.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentconfirmdeletehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/confirm-delete.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/created.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreateformcontentshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/createformcontents.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentdelete_reasontxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/delete_reason.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentdifffilehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-file.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentdifffooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentdiffheaderhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-header.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentlisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentmidairhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/midair.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentshowmultiplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/show-multiple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultattachmentupdatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/attachment/updated.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugactivityshowhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/show.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugactivitytablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugchoosehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/choose.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcommentshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/comments.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecommentguidedtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment-guided.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecommenttxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreateguidedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create-guided.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreatedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/created.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreatemaketemplatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/make-template.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcreateusermessagehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/create/user-message.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugdependencygraphhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-graph.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugdependencytreehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-tree.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugedithtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/edit.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugfieldeventsjstmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/field-events.js.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugfieldhelpnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/field-help.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugfieldlabelhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/field-label.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugfieldhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/field.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugformat_commenttxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/format_comment.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugknobhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/knob.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbuglinkhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/link.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugnavigatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/navigate.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessbugmailhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/bugmail.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessconfirmduplicatehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/confirm-duplicate.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessheaderhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/header.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessmidairhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/midair.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessresultshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/results.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugprocessverifynewproducthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/process/verify-new-product.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugshowheaderhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/show-header.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugshowmultiplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/show-multiple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugshowhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/show.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugshowxmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/show.xml.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugsummarizetimehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/summarize-time.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugtimehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/time.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultconfigjstmpl">trunk/Websites/bugs.webkit.org/template/en/default/config.js.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultconfigrdftmpl">trunk/Websites/bugs.webkit.org/template/en/default/config.rdf.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailcommontxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-common.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailheadertxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-header.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemaillockouttxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/lockout.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailsanitychecktxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/sanitycheck.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailsudotxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/sudo.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailwhinetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/whine.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsconfigpmtmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/config.pm.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsextensionpmtmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/extension.pm.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionshookreadmetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/hook-readme.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionslicensetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/license.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsnamereadmetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/name-readme.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsutilpmtmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/util.pm.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionswebreadmetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/web-readme.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultfilterexceptionspl">trunk/Websites/bugs.webkit.org/template/en/default/filterexceptions.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultflaglisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/flag/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalbannerhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/banner.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalchooseclassificationhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/choose-classification.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalchooseproducthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/choose-product.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalcodeerrorhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/code-error.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalcommonlinkshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/common-links.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalconfirmactionhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-action.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalconfirmusermatchhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-user-match.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaldocslinkshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/docslinks.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalfielddescsnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/field-descs.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalfooterhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/footer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalheaderhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/header.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalhiddenfieldshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/hidden-fields.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaljsproductshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/js-products.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalmessagehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/message.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalmessagetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/message.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalmessageshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/messages.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalreasondescsnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/reason-descs.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalselectmenuhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/select-menu.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalsettingdescsnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/setting-descs.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaltabshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/tabs.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaltextareahtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/textarea.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalusefullinkshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/useful-links.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalusererrorhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/user-error.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaluserhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/user.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobaluserselecthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/userselect.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalvaluedescsjstmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.js.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalvaluedescsnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalvariablesnonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/variables.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultindexhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/index.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistchangecolumnshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/change-columns.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlisteditmultiplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/edit-multiple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlistsimplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list-simple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlistatomtmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list.atom.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlistcsvtmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list.csv.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlisthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlisticstmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list.ics.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistlistrdftmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/list.rdf.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistquipshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/quips.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlistserverpushhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/server-push.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultlisttablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/list/table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesbugwritinghtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/bug-writing.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesfieldshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/fields.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpageslinkedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/linked.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpageslinkifyhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/linkify.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesquicksearchhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/quicksearch.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesreleasenoteshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagessudohtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/sudo.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportschartcsvtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.csv.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportscharthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportschartpngtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.png.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportscomponentshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/components.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportscreatecharthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/create-chart.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsdeleteserieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/delete-series.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicatessimplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-simple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicatestablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicateshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportseditserieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/edit-series.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportskeywordshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/keywords.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsmenuhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/menu.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsoldchartshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/old-charts.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreportbarpngtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-bar.png.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreportlinepngtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-line.png.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreportpiepngtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-pie.png.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreportsimplehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-simple.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreporttablecsvtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.csv.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreporttablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreportcsvtmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report.csv.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsreporthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/report.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsseriescommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/series-common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultreportsserieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/reports/series.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultrequestqueuehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/request/queue.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchbooleanchartshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/boolean-charts.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchfieldhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/field.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchformhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/form.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchknobhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/knob.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchadvancedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-advanced.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchcreateserieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-create-series.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchpluginxmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-plugin.xml.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreportgraphhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-graph.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreportselecthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-select.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreporttablehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-table.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchspecifichtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/search-specific.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchtabshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/tabs.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsearchtypeselecthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/search/type-select.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultsetupstringstxtpl">trunk/Websites/bugs.webkit.org/template/en/default/setup/strings.txt.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwelcomeadminhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/welcome-admin.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwhinemailhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwhinemailtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwhineschedulehtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/whine/schedule.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtestagentcgi">trunk/Websites/bugs.webkit.org/testagent.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtestserverpl">trunk/Websites/bugs.webkit.org/testserver.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtokencgi">trunk/Websites/bugs.webkit.org/token.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorguserprefscgi">trunk/Websites/bugs.webkit.org/userprefs.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgvotescgi">trunk/Websites/bugs.webkit.org/votes.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgwhinepl">trunk/Websites/bugs.webkit.org/whine.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgwhineatnewspl">trunk/Websites/bugs.webkit.org/whineatnews.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxmlrpccgi">trunk/Websites/bugs.webkit.org/xmlrpc.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxthtaccess">trunk/Websites/bugs.webkit.org/xt/.htaccess</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchAndTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/AndTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchConstantspm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/Constants.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchCustomTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/CustomTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchFieldTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchFieldTestNormalpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchInjectionTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/InjectionTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchNotTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/NotTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchOperatorTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OperatorTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchOrTestpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OrTest.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchpm">trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgxtsearcht">trunk/Websites/bugs.webkit.org/xt/search.t</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaAuthLoginAPIKeypm">trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/APIKey.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUrlGitHubpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/GitHub.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaBugUserLastVisitpm">trunk/Websites/bugs.webkit.org/Bugzilla/BugUserLastVisit.pm</a></li>
<li>trunk/Websites/bugs.webkit.org/Bugzilla/Comment/</li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaCommentTagWeightspm">trunk/Websites/bugs.webkit.org/Bugzilla/Comment/TagWeights.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigMemcachedpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/Memcached.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaJobBugMailpm">trunk/Websites/bugs.webkit.org/Bugzilla/Job/BugMail.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMIMEpm">trunk/Websites/bugs.webkit.org/Bugzilla/MIME.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaMemcachedpm">trunk/Websites/bugs.webkit.org/Bugzilla/Memcached.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaReportpm">trunk/Websites/bugs.webkit.org/Bugzilla/Report.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSearchClauseGrouppm">trunk/Websites/bugs.webkit.org/Bugzilla/Search/ClauseGroup.pm</a></li>
<li>trunk/Websites/bugs.webkit.org/Bugzilla/Sender/</li>
<li>trunk/Websites/bugs.webkit.org/Bugzilla/Sender/Transport/</li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaSenderTransportSendmailpm">trunk/Websites/bugs.webkit.org/Bugzilla/Sender/Transport/Sendmail.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserAPIKeypm">trunk/Websites/bugs.webkit.org/Bugzilla/User/APIKey.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaUserAgentpm">trunk/Websites/bugs.webkit.org/Bugzilla/UserAgent.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceBugUserLastVisitpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/BugUserLastVisit.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceClassificationpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Classification.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceComponentpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Component.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceFlagTypepm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/FlagType.pm</a></li>
<li>trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/</li>
<li>trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/</li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bug.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugUserLastVisitpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugzillapm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesClassificationpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Classification.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesComponentpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Component.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesFlagTypepm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/FlagType.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesGrouppm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Group.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesProductpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Product.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesUserpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/User.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTpm">trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgLICENSE">trunk/Websites/bugs.webkit.org/LICENSE</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcleanbuguserlastvisitpl">trunk/Websites/bugs.webkit.org/clean-bug-user-last-visit.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribBugzillapm">trunk/Websites/bugs.webkit.org/contrib/Bugzilla.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdataparamsjson">trunk/Websites/bugs.webkit.org/data/params.json</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsTODO">trunk/Websites/bugs.webkit.org/docs/TODO</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenMakefile">trunk/Websites/bugs.webkit.org/docs/en/Makefile</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimagesbugzillapng">trunk/Websites/bugs.webkit.org/docs/en/images/bugzilla.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenmakebat">trunk/Websites/bugs.webkit.org/docs/en/make.bat</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/</li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/_static/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrst_staticbugzillacss">trunk/Websites/bugs.webkit.org/docs/en/rst/_static/bugzilla.css</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/about/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstaboutindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/about/index.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/administering/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringcategorizationrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/categorization.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringcustomfieldsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/custom-fields.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringextensionsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/extensions.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringfieldvaluesrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/field-values.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringflagsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/flags.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringgroupsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/groups.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringkeywordsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/keywords.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringparametersrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/parameters.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringpreferencesrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/preferences.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringquipsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/quips.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringusersrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/users.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringwhiningrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/whining.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstadministeringworkflowrst">trunk/Websites/bugs.webkit.org/docs/en/rst/administering/workflow.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/api/</li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/</li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1attachmentrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/attachment.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1buguserlastvisitrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug-user-last-visit.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1bugrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1bugzillarst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bugzilla.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1classificationrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/classification.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1commentrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/comment.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1componentrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/component.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1fieldrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/field.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1flagtyperst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/flagtype.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1generalrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/general.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1grouprst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/group.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1indexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1productrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/product.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapicorev1userrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/user.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstapiindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/api/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstconfpy">trunk/Websites/bugs.webkit.org/docs/en/rst/conf.py</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/index.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/installing/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingapachewindowsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache-windows.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingapacherst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingbackupsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/backups.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingdb_serverrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/db_server.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingessentialpostinstallconfigrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/essential-post-install-config.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingiisrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/iis.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallinginstallingendincrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/installing-end.inc.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallinglinuxrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/linux.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmacosxrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mac-os-x.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmergingaccountsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/merging-accounts.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrom1incrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-1.inc.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrom2incrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-2.inc.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfromatarballrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-a-tarball.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrombzrrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-bzr.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfromcvsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-cvs.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmovingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/moving.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmultiplebugzillasrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/multiple-bugzillas.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingmysqlrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mysql.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingoptionalpostinstallconfigrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/optional-post-install-config.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingoraclerst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/oracle.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingpostgresqlrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/postgresql.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingquickstartrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/quick-start.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingsanitycheckrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sanity-check.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingsqliterst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sqlite.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingcustomizationsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-customizations.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwith1incrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-1.inc.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwith2incrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-2.inc.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwithatarballrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-a-tarball.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwithgitrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-git.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingweb_serverrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/web_server.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstinstallingwindowsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/installing/windows.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingapisrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/apis.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingextensionsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/extensions.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingfaqrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/faq.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratinglanguagesrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/languages.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingskinsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/skins.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstintegratingtemplatesrst">trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/templates.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrststylerst">trunk/Websites/bugs.webkit.org/docs/en/rst/style.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/rst/using/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingcreatinganaccountrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/creating-an-account.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingeditingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/editing.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingextensionsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/extensions.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingfilingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/filing.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingfindingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/finding.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingindexrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingpreferencesrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/preferences.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingreportsandchartsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/reports-and-charts.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingtipsrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/tips.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrstusingunderstandingrst">trunk/Websites/bugs.webkit.org/docs/en/rst/using/understanding.rst</a></li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/docs/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/v1/</li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampledocsenrstapiv1indexrst">trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/v1/index.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampledocsenrstindexadminrst">trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-admin.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampledocsenrstindexuserrst">trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-user.rst</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalfooterendhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl</a></li>
<li>trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/search/</li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthooksearchtabssearch_tabshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/search/tabs-search_tabs.html.tmpl</a></li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/</li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrlConfigpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Config.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrlExtensionpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Extension.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrldisabled">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/disabled</a></li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/</li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibBitBucketpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/BitBucket.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibGetSatisfactionpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/GetSatisfaction.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibPHPpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/PHP.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRTpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/RT.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRedminepm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Redmine.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibReviewBoardpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/ReviewBoard.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRietveldpm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Rietveld.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrllibSavanepm">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Savane.pm</a></li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/</li>
<li>trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/global/</li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsMoreBugUrltemplateendefaulthookglobalusererrorbug_url_invalid_trackerhtmltmpl">trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalmessagesmessageshtmltmpl">trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimagescsvpng">trunk/Websites/bugs.webkit.org/images/csv.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimagesicalpng">trunk/Websites/bugs.webkit.org/images/ical.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimagesrsspng">trunk/Websites/bugs.webkit.org/images/rss.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimagesrss_smallpng">trunk/Websites/bugs.webkit.org/images/rss_small.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgimagesxmlpng">trunk/Websites/bugs.webkit.org/images/xml.png</a></li>
<li><a href="#trunkWebsitesbugswebkitorgjscommenttaggingjs">trunk/Websites/bugs.webkit.org/js/comment-tagging.js</a></li>
<li><a href="#trunkWebsitesbugswebkitorgrestcgi">trunk/Websites/bugs.webkit.org/rest.cgi</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardbugcss">trunk/Websites/bugs.webkit.org/skins/standard/bug.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgt013dbschemat">trunk/Websites/bugs.webkit.org/t/013dbschema.t</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtaskgraphjson">trunk/Websites/bugs.webkit.org/taskgraph.json</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsapikeyhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/apikey.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldseditcommonhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit-common.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamsmemcachedhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/memcached.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultbugcommenthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/bug/comment.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailflagmailtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/flagmail.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailheadercommontxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/header-common.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailnewapikeytxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/new-api-key.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultemailnewuserdetailstxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/email/new-user-details.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsindexadminrsttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-admin.rst.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultextensionsindexuserrsttmpl">trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-user.rst.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalcalendarjstmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/calendar.js.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalproductselecthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/product-select.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesbugzilladtdtmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/bugzilla.dtd.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultrequestqueuecsvtmpl">trunk/Websites/bugs.webkit.org/template/en/default/request/queue.csv.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultresthtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/rest.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwhineheadertxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/whine/header.txt.tmpl</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkWebsitesbugswebkitorgtravisyml">trunk/Websites/bugs.webkit.org/.travis.yml</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaConfigPatchViewerpm">trunk/Websites/bugs.webkit.org/Bugzilla/Config/PatchViewer.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgBugzillaTemplatePluginUserpm">trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/User.pm</a></li>
<li><a href="#trunkWebsitesbugswebkitorgbugzilladtd">trunk/Websites/bugs.webkit.org/bugzilla.dtd</a></li>
<li><a href="#trunkWebsitesbugswebkitorgcontribcvsupdatepl">trunk/Websites/bugs.webkit.org/contrib/cvs-update.pl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdatamail">trunk/Websites/bugs.webkit.org/data/mail</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdataparams">trunk/Websites/bugs.webkit.org/data/params</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenREADMEdocs">trunk/Websites/bugs.webkit.org/docs/en/README.docs</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/images/callouts/</li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimagescautiongif">trunk/Websites/bugs.webkit.org/docs/en/images/caution.gif</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimagesnotegif">trunk/Websites/bugs.webkit.org/docs/en/images/note.gif</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimagestipgif">trunk/Websites/bugs.webkit.org/docs/en/images/tip.gif</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenimageswarninggif">trunk/Websites/bugs.webkit.org/docs/en/images/warning.gif</a></li>
<li><a href="#trunkWebsitesbugswebkitorgdocsenrel_notestxt">trunk/Websites/bugs.webkit.org/docs/en/rel_notes.txt</a></li>
<li>trunk/Websites/bugs.webkit.org/docs/en/xml/</li>
<li><a href="#trunkWebsitesbugswebkitorgskinscontribDuskindexcss">trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/index.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardIEfixescss">trunk/Websites/bugs.webkit.org/skins/standard/IE-fixes.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardattachmentcss">trunk/Websites/bugs.webkit.org/skins/standard/attachment.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandarddependencytreecss">trunk/Websites/bugs.webkit.org/skins/standard/dependency-tree.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardduplicatescss">trunk/Websites/bugs.webkit.org/skins/standard/duplicates.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardedituserscss">trunk/Websites/bugs.webkit.org/skins/standard/editusers.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardenter_bugcss">trunk/Websites/bugs.webkit.org/skins/standard/enter_bug.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardindexcss">trunk/Websites/bugs.webkit.org/skins/standard/index.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardpagecss">trunk/Websites/bugs.webkit.org/skins/standard/page.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardparamscss">trunk/Websites/bugs.webkit.org/skins/standard/params.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardreportscss">trunk/Websites/bugs.webkit.org/skins/standard/reports.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardsearch_formcss">trunk/Websites/bugs.webkit.org/skins/standard/search_form.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardshow_bugcss">trunk/Websites/bugs.webkit.org/skins/standard/show_bug.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardshow_multiplecss">trunk/Websites/bugs.webkit.org/skins/standard/show_multiple.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgskinsstandardsummarizetimecss">trunk/Websites/bugs.webkit.org/skins/standard/summarize-time.css</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultadminparamspatchviewerhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/admin/params/patchviewer.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalhelphtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/help.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalinitializenonetmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/initialize.none.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalperbugquerieshtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/per-bug-queries.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultglobalsitenavigationhtmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/global/site-navigation.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultpagesreleasenotes3htmltmpl">trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes3.html.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultrequestemailtxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/request/email.txt.tmpl</a></li>
<li><a href="#trunkWebsitesbugswebkitorgtemplateendefaultwhinemultipartmimetxttmpl">trunk/Websites/bugs.webkit.org/template/en/default/whine/multipart-mime.txt.tmpl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebsitesbugswebkitorgbzrignore"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/.bzrignore (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/.bzrignore        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/.bzrignore        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,10 +1,7 @@
</span><del>-.htaccess
</del><span class="cx"> /lib/*
</span><span class="cx"> /template/en/custom
</span><del>-/docs/bugzilla.ent
-/docs/en/xml/bugzilla.ent
</del><ins>+/docs/en/html
</ins><span class="cx"> /docs/en/txt
</span><del>-/docs/en/html
</del><span class="cx"> /docs/en/pdf
</span><span class="cx"> /skins/custom
</span><span class="cx"> /graphs
</span><span class="lines">@@ -12,21 +9,5 @@
</span><span class="cx"> /localconfig
</span><span class="cx"> /index.html
</span><span class="cx"> 
</span><del>-/skins/contrib/Dusk/IE-fixes.css
</del><span class="cx"> /skins/contrib/Dusk/admin.css
</span><del>-/skins/contrib/Dusk/attachment.css
-/skins/contrib/Dusk/create_attachment.css
-/skins/contrib/Dusk/dependency-tree.css
-/skins/contrib/Dusk/duplicates.css
-/skins/contrib/Dusk/editusers.css
-/skins/contrib/Dusk/enter_bug.css
-/skins/contrib/Dusk/help.css
-/skins/contrib/Dusk/panel.css
-/skins/contrib/Dusk/page.css
-/skins/contrib/Dusk/params.css
-/skins/contrib/Dusk/reports.css
-/skins/contrib/Dusk/show_bug.css
-/skins/contrib/Dusk/search_form.css
-/skins/contrib/Dusk/show_multiple.css
-/skins/contrib/Dusk/summarize-time.css
-.DS_Store
</del><ins>+/skins/contrib/Dusk/bug.css
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorggitignore"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/.gitignore (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/.gitignore        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/.gitignore        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,10 +1,8 @@
</span><del>-.htaccess
</del><ins>+/**/.htaccess
</ins><span class="cx"> /lib/*
</span><span class="cx"> /template/en/custom
</span><del>-/docs/bugzilla.ent
-/docs/en/xml/bugzilla.ent
</del><ins>+/docs/en/html
</ins><span class="cx"> /docs/en/txt
</span><del>-/docs/en/html
</del><span class="cx"> /docs/en/pdf
</span><span class="cx"> /skins/custom
</span><span class="cx"> /graphs
</span><span class="lines">@@ -12,21 +10,5 @@
</span><span class="cx"> /localconfig
</span><span class="cx"> /index.html
</span><span class="cx"> 
</span><del>-/skins/contrib/Dusk/IE-fixes.css
</del><span class="cx"> /skins/contrib/Dusk/admin.css
</span><del>-/skins/contrib/Dusk/attachment.css
-/skins/contrib/Dusk/create_attachment.css
-/skins/contrib/Dusk/dependency-tree.css
-/skins/contrib/Dusk/duplicates.css
-/skins/contrib/Dusk/editusers.css
-/skins/contrib/Dusk/enter_bug.css
-/skins/contrib/Dusk/help.css
-/skins/contrib/Dusk/panel.css
-/skins/contrib/Dusk/page.css
-/skins/contrib/Dusk/params.css
-/skins/contrib/Dusk/reports.css
-/skins/contrib/Dusk/show_bug.css
-/skins/contrib/Dusk/search_form.css
-/skins/contrib/Dusk/show_multiple.css
-/skins/contrib/Dusk/summarize-time.css
-.DS_Store
</del><ins>+/skins/contrib/Dusk/bug.css
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorghtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,7 +1,20 @@
</span><span class="cx"> # Don't allow people to retrieve non-cgi executable files or our private data
</span><del>-&lt;FilesMatch ^(lib|.*\.pm|.*\.pl|.*localconfig.*)$&gt;
-  deny from all
</del><ins>+&lt;FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$&gt;
+  &lt;IfModule mod_version.c&gt;
+    &lt;IfVersion &lt; 2.4&gt;
+      Deny from all
+    &lt;/IfVersion&gt;
+    &lt;IfVersion &gt;= 2.4&gt;
+      Require all denied
+    &lt;/IfVersion&gt;
+  &lt;/IfModule&gt;
+  &lt;IfModule !mod_version.c&gt;
+    Deny from all
+  &lt;/IfModule&gt;
</ins><span class="cx"> &lt;/FilesMatch&gt;
</span><ins>+
+Options -Indexes
+
</ins><span class="cx"> &lt;IfModule mod_expires.c&gt;
</span><span class="cx"> &lt;IfModule mod_headers.c&gt;
</span><span class="cx"> &lt;IfModule mod_env.c&gt;
</span><span class="lines">@@ -24,6 +37,12 @@
</span><span class="cx"> &lt;/IfModule&gt;
</span><span class="cx"> &lt;/IfModule&gt;
</span><span class="cx"> 
</span><ins>+&lt;IfModule mod_rewrite.c&gt;
+  RewriteEngine On
+  RewriteOptions inherit
+  RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
+&lt;/IfModule&gt;
+
</ins><span class="cx"> # Force all connections to HTTPS for 90 days at a time.
</span><span class="cx"> &lt;IfModule mod_headers.c&gt;
</span><span class="cx">   Header set Strict-Transport-Security &quot;max-age=7776000&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtravisyml"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/.travis.yml (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/.travis.yml        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/.travis.yml        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-language: perl
-perl:
-  - 5.10
-  - 5.12
-
-env:
-  - TEST_SUITE=sanity
-  - TEST_SUITE=docs
-  - TEST_SUITE=webservices DB=mysql
-  - TEST_SUITE=selenium DB=mysql
-  - TEST_SUITE=webservices DB=pg
-  - TEST_SUITE=selenium DB=pg
-
-matrix:
-  exclude:
-    - perl: 5.12
-      env: TEST_SUITE=docs
-    - perl: 5.10
-      env: TEST_SUITE=webservices DB=mysql
-    - perl: 5.12
-      env: TEST_SUITE=selenium DB=mysql
-    - perl: 5.10
-      env: TEST_SUITE=webservices DB=pg
-    - perl: 5.12
-      env: TEST_SUITE=selenium DB=pg
-
-before_install:
-  - git clone https://github.com/bugzilla/qa.git -b 4.2 qa
-
-install: true
-
-script: ./qa/travis.sh
-
-after_failure:
-  - sudo cat /var/log/apache2/error.log
-
-notifications:
-  irc:
-    channels:
-      - &quot;irc.mozilla.org#qa-bugzilla&quot;
-      - &quot;irc.mozilla.org#bugzilla&quot;
-    template:
-      - &quot;Bugzilla %{branch} : %{author} : %{message}&quot;
-      - &quot;Commit Message : %{commit_message}&quot;
-      - &quot;Commit Link : %{compare_url}&quot;
-      - &quot;Build Link : %{build_url}&quot;
-  on_success: change
-  on_failure: always
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillahtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAttachmentPatchReaderpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Attachment/PatchReader.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Attachment/PatchReader.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Attachment/PatchReader.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,43 +1,42 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): John Keiser &lt;john@johnkeiser.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Attachment::PatchReader;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Attachment::PatchReader;
</del><ins>+use Config;
+use IO::Select;
+use IPC::Open3;
+use Symbol 'gensym';
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Attachment;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><ins>+use constant PERLIO_IS_ENABLED =&gt; $Config{useperlio};
+
</ins><span class="cx"> sub process_diff {
</span><del>-    my ($attachment, $format, $context) = @_;
</del><ins>+    my ($attachment, $format) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $lc  = Bugzilla-&gt;localconfig;
</span><span class="cx">     my $vars = {};
</span><span class="cx"> 
</span><del>-    my ($reader, $last_reader) = setup_patch_readers(undef, $context);
</del><ins>+    require PatchReader::Raw;
+    my $reader = new PatchReader::Raw;
</ins><span class="cx"> 
</span><span class="cx">     if ($format eq 'raw') {
</span><span class="cx">         require PatchReader::DiffPrinter::raw;
</span><del>-        $last_reader-&gt;sends_data_to(new PatchReader::DiffPrinter::raw());
</del><ins>+        $reader-&gt;sends_data_to(new PatchReader::DiffPrinter::raw());
</ins><span class="cx">         # Actually print out the patch.
</span><del>-        print $cgi-&gt;header(-type =&gt; 'text/plain',
-                           -expires =&gt; '+3M');
</del><ins>+        print $cgi-&gt;header(-type =&gt; 'text/plain');
</ins><span class="cx">         disable_utf8();
</span><span class="cx">         $reader-&gt;iterate_string('Attachment ' . $attachment-&gt;id, $attachment-&gt;data);
</span><span class="cx">     }
</span><span class="lines">@@ -46,7 +45,7 @@
</span><span class="cx">         if ($lc-&gt;{interdiffbin} &amp;&amp; $lc-&gt;{diffpath}) {
</span><span class="cx">             # Get the list of attachments that the user can view in this bug.
</span><span class="cx">             my @attachments =
</span><del>-                @{Bugzilla::Attachment-&gt;get_attachments_by_bug($attachment-&gt;bug_id)};
</del><ins>+                @{Bugzilla::Attachment-&gt;get_attachments_by_bug($attachment-&gt;bug)};
</ins><span class="cx">             # Extract patches only.
</span><span class="cx">             @attachments = grep {$_-&gt;ispatch == 1} @attachments;
</span><span class="cx">             # We want them sorted from newer to older.
</span><span class="lines">@@ -73,7 +72,7 @@
</span><span class="cx">         $vars-&gt;{'description'} = $attachment-&gt;description;
</span><span class="cx">         $vars-&gt;{'other_patches'} = \@other_patches;
</span><span class="cx"> 
</span><del>-        setup_template_patch_reader($last_reader, $format, $context, $vars);
</del><ins>+        setup_template_patch_reader($reader, $vars);
</ins><span class="cx">         # The patch is going to be displayed in a HTML page and if the utf8
</span><span class="cx">         # param is enabled, we have to encode attachment data as utf8.
</span><span class="cx">         if (Bugzilla-&gt;params-&gt;{'utf8'}) {
</span><span class="lines">@@ -85,11 +84,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub process_interdiff {
</span><del>-    my ($old_attachment, $new_attachment, $format, $context) = @_;
</del><ins>+    my ($old_attachment, $new_attachment, $format) = @_;
</ins><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $lc  = Bugzilla-&gt;localconfig;
</span><span class="cx">     my $vars = {};
</span><span class="cx"> 
</span><ins>+    require PatchReader::Raw;
+
</ins><span class="cx">     # Encode attachment data as utf8 if it's going to be displayed in a HTML
</span><span class="cx">     # page using the UTF-8 encoding.
</span><span class="cx">     if ($format ne 'raw' &amp;&amp; Bugzilla-&gt;params-&gt;{'utf8'}) {
</span><span class="lines">@@ -108,23 +109,87 @@
</span><span class="cx"> 
</span><span class="cx">     # Send through interdiff, send output directly to template.
</span><span class="cx">     # Must hack path so that interdiff will work.
</span><del>-    $ENV{'PATH'} = $lc-&gt;{diffpath};
-    open my $interdiff_fh, &quot;$lc-&gt;{interdiffbin} $old_filename $new_filename|&quot;;
-    binmode $interdiff_fh;
-    my ($reader, $last_reader) = setup_patch_readers(&quot;&quot;, $context);
</del><ins>+    local $ENV{'PATH'} = $lc-&gt;{diffpath};
</ins><span class="cx"> 
</span><ins>+    # Open the interdiff pipe, reading from both STDOUT and STDERR
+    # To avoid deadlocks, we have to read the entire output from all handles
+    my ($stdout, $stderr) = ('', '');
+    my ($pid, $interdiff_stdout, $interdiff_stderr, $use_select);
+    if ($ENV{MOD_PERL}) {
+        require Apache2::RequestUtil;
+        require Apache2::SubProcess;
+        my $request = Apache2::RequestUtil-&gt;request;
+        (undef, $interdiff_stdout, $interdiff_stderr) = $request-&gt;spawn_proc_prog(
+            $lc-&gt;{interdiffbin}, [$old_filename, $new_filename]
+        );
+        $use_select = !PERLIO_IS_ENABLED;
+    } else {
+        $interdiff_stderr = gensym;
+        $pid = open3(gensym, $interdiff_stdout, $interdiff_stderr,
+                        $lc-&gt;{interdiffbin}, $old_filename, $new_filename);
+        $use_select = 1;
+    }
+
+    if ($format ne 'raw' &amp;&amp; Bugzilla-&gt;params-&gt;{'utf8'}) {
+        binmode $interdiff_stdout, ':utf8';
+        binmode $interdiff_stderr, ':utf8';
+    } else {
+        binmode $interdiff_stdout;
+        binmode $interdiff_stderr;
+    }
+
+    if ($use_select) {
+        my $select = IO::Select-&gt;new();
+        $select-&gt;add($interdiff_stdout, $interdiff_stderr);
+        while (my @handles = $select-&gt;can_read) {
+            foreach my $handle (@handles) {
+                my $line = &lt;$handle&gt;;
+                if (!defined $line) {
+                    $select-&gt;remove($handle);
+                    next;
+                }
+                if ($handle == $interdiff_stdout) {
+                    $stdout .= $line;
+                } else {
+                    $stderr .= $line;
+                }
+            }
+        }
+        waitpid($pid, 0) if $pid;
+
+    } else {
+        local $/ = undef;
+        $stdout = &lt;$interdiff_stdout&gt;;
+        $stdout //= '';
+        $stderr = &lt;$interdiff_stderr&gt;;
+        $stderr //= '';
+    }
+
+    close($interdiff_stdout),
+    close($interdiff_stderr);
+
+    # Tidy up
+    unlink($old_filename) or warn &quot;Could not unlink $old_filename: $!&quot;;
+    unlink($new_filename) or warn &quot;Could not unlink $new_filename: $!&quot;;
+
+    # Any output on STDERR means interdiff failed to full process the patches.
+    # Interdiff's error messages are generic and not useful to end users, so we
+    # show a generic failure message.
+    if ($stderr) {
+        warn($stderr);
+        $warning = 'interdiff3';
+    }
+
+    my $reader = new PatchReader::Raw;
+
</ins><span class="cx">     if ($format eq 'raw') {
</span><span class="cx">         require PatchReader::DiffPrinter::raw;
</span><del>-        $last_reader-&gt;sends_data_to(new PatchReader::DiffPrinter::raw());
</del><ins>+        $reader-&gt;sends_data_to(new PatchReader::DiffPrinter::raw());
</ins><span class="cx">         # Actually print out the patch.
</span><del>-        print $cgi-&gt;header(-type =&gt; 'text/plain',
-                           -expires =&gt; '+3M');
</del><ins>+        print $cgi-&gt;header(-type =&gt; 'text/plain');
</ins><span class="cx">         disable_utf8();
</span><span class="cx">     }
</span><span class="cx">     else {
</span><del>-        # In case the HTML page is displayed with the UTF-8 encoding.
-        binmode $interdiff_fh, ':utf8' if Bugzilla-&gt;params-&gt;{'utf8'};
-
</del><span class="cx">         $vars-&gt;{'warning'} = $warning if $warning;
</span><span class="cx">         $vars-&gt;{'bugid'} = $new_attachment-&gt;bug_id;
</span><span class="cx">         $vars-&gt;{'oldid'} = $old_attachment-&gt;id;
</span><span class="lines">@@ -132,16 +197,10 @@
</span><span class="cx">         $vars-&gt;{'newid'} = $new_attachment-&gt;id;
</span><span class="cx">         $vars-&gt;{'new_desc'} = $new_attachment-&gt;description;
</span><span class="cx"> 
</span><del>-        setup_template_patch_reader($last_reader, $format, $context, $vars);
</del><ins>+        setup_template_patch_reader($reader, $vars);
</ins><span class="cx">     }
</span><del>-    $reader-&gt;iterate_fh($interdiff_fh, 'interdiff #' . $old_attachment-&gt;id .
-                        ' #' . $new_attachment-&gt;id);
-    close $interdiff_fh;
-    $ENV{'PATH'} = '';
-
-    # Delete temporary files.
-    unlink($old_filename) or warn &quot;Could not unlink $old_filename: $!&quot;;
-    unlink($new_filename) or warn &quot;Could not unlink $new_filename: $!&quot;;
</del><ins>+    $reader-&gt;iterate_string('interdiff #' . $old_attachment-&gt;id .
+                            ' #' . $new_attachment-&gt;id, $stdout);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ######################
</span><span class="lines">@@ -153,7 +212,6 @@
</span><span class="cx"> 
</span><span class="cx">     # Bring in the modules we need.
</span><span class="cx">     require PatchReader::Raw;
</span><del>-    require PatchReader::FixPatchRoot;
</del><span class="cx">     require PatchReader::DiffPrinter::raw;
</span><span class="cx">     require PatchReader::PatchInfoGrabber;
</span><span class="cx">     require File::Temp;
</span><span class="lines">@@ -165,14 +223,6 @@
</span><span class="cx">     my $reader = new PatchReader::Raw;
</span><span class="cx">     my $last_reader = $reader;
</span><span class="cx"> 
</span><del>-    # Fixes patch root (makes canonical if possible).
-    if (Bugzilla-&gt;params-&gt;{'cvsroot'}) {
-        my $fix_patch_root =
-            new PatchReader::FixPatchRoot(Bugzilla-&gt;params-&gt;{'cvsroot'});
-        $last_reader-&gt;sends_data_to($fix_patch_root);
-        $last_reader = $fix_patch_root;
-    }
-
</del><span class="cx">     # Grabs the patch file info.
</span><span class="cx">     my $patch_info_grabber = new PatchReader::PatchInfoGrabber();
</span><span class="cx">     $last_reader-&gt;sends_data_to($patch_info_grabber);
</span><span class="lines">@@ -208,7 +258,9 @@
</span><span class="cx"> 
</span><span class="cx">     # Verify that the revisions in the files are the same.
</span><span class="cx">     foreach my $file (keys %{$old_file_list}) {
</span><del>-        if ($old_file_list-&gt;{$file}{old_revision} ne
</del><ins>+        if (exists $old_file_list-&gt;{$file}{old_revision}
+            &amp;&amp; exists $new_file_list-&gt;{$file}{old_revision}
+            &amp;&amp; $old_file_list-&gt;{$file}{old_revision} ne
</ins><span class="cx">             $new_file_list-&gt;{$file}{old_revision})
</span><span class="cx">         {
</span><span class="cx">             return 'interdiff2';
</span><span class="lines">@@ -217,46 +269,8 @@
</span><span class="cx">     return undef;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub setup_patch_readers {
-    my ($diff_root, $context) = @_;
-
-    # Parameters:
-    # format=raw|html
-    # context=patch|file|0-n
-    # collapsed=0|1
-    # headers=0|1
-
-    # Define the patch readers.
-    # The reader that reads the patch in (whatever its format).
-    require PatchReader::Raw;
-    my $reader = new PatchReader::Raw;
-    my $last_reader = $reader;
-    # Fix the patch root if we have a cvs root.
-    if (Bugzilla-&gt;params-&gt;{'cvsroot'}) {
-        require PatchReader::FixPatchRoot;
-        $last_reader-&gt;sends_data_to(new PatchReader::FixPatchRoot(Bugzilla-&gt;params-&gt;{'cvsroot'}));
-        $last_reader-&gt;sends_data_to-&gt;diff_root($diff_root) if defined($diff_root);
-        $last_reader = $last_reader-&gt;sends_data_to;
-    }
-
-    # Add in cvs context if we have the necessary info to do it
-    if ($context ne 'patch' &amp;&amp; Bugzilla-&gt;localconfig-&gt;{cvsbin} 
-        &amp;&amp; Bugzilla-&gt;params-&gt;{'cvsroot_get'}) 
-    {
-        require PatchReader::AddCVSContext;
-        # We need to set $cvsbin as global, because PatchReader::CVSClient
-        # needs it in order to find 'cvs'.
-        $main::cvsbin = Bugzilla-&gt;localconfig-&gt;{cvsbin};
-        $last_reader-&gt;sends_data_to(
-          new PatchReader::AddCVSContext($context, Bugzilla-&gt;params-&gt;{'cvsroot_get'}));
-        $last_reader = $last_reader-&gt;sends_data_to;
-    }
-
-    return ($reader, $last_reader);
-}
-
</del><span class="cx"> sub setup_template_patch_reader {
</span><del>-    my ($last_reader, $format, $context, $vars) = @_;
</del><ins>+    my ($last_reader, $vars) = @_;
</ins><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $template = Bugzilla-&gt;template;
</span><span class="cx"> 
</span><span class="lines">@@ -271,25 +285,33 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'collapsed'} = $cgi-&gt;param('collapsed');
</span><del>-    $vars-&gt;{'context'} = $context;
-    $vars-&gt;{'do_context'} = Bugzilla-&gt;localconfig-&gt;{cvsbin} 
-                            &amp;&amp; Bugzilla-&gt;params-&gt;{'cvsroot_get'} &amp;&amp; !$vars-&gt;{'newid'};
</del><span class="cx"> 
</span><span class="cx">     # Print everything out.
</span><del>-    print $cgi-&gt;header(-type =&gt; 'text/html',
-                       -expires =&gt; '+3M');
</del><ins>+    print $cgi-&gt;header(-type =&gt; 'text/html');
</ins><span class="cx"> 
</span><span class="cx">     $last_reader-&gt;sends_data_to(new PatchReader::DiffPrinter::template($template,
</span><del>-                                &quot;attachment/diff-header.$format.tmpl&quot;,
-                                &quot;attachment/diff-file.$format.tmpl&quot;,
-                                &quot;attachment/diff-footer.$format.tmpl&quot;,
-                                { %{$vars},
-                                  bonsai_url =&gt; Bugzilla-&gt;params-&gt;{'bonsai_url'},
-                                  lxr_url =&gt; Bugzilla-&gt;params-&gt;{'lxr_url'},
-                                  lxr_root =&gt; Bugzilla-&gt;params-&gt;{'lxr_root'},
-                                }));
</del><ins>+                                'attachment/diff-header.html.tmpl',
+                                'attachment/diff-file.html.tmpl',
+                                'attachment/diff-footer.html.tmpl',
+                                $vars));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_unified_diff
+
+=item process_diff
+
+=item warn_if_interdiff_might_fail
+
+=item setup_template_patch_reader
+
+=item process_interdiff
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAttachmentpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Attachment.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Attachment.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Attachment.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Attachment;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Attachment;
-
</del><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="cx"> Bugzilla::Attachment - Bugzilla attachment class.
</span><span class="lines">@@ -61,8 +46,9 @@
</span><span class="cx"> 
</span><span class="cx"> use File::Copy;
</span><span class="cx"> use List::Util qw(max);
</span><ins>+use Storable qw(dclone);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####    Initialization     ####
</span><span class="lines">@@ -75,23 +61,20 @@
</span><span class="cx"> use constant AUDIT_CREATES =&gt; 0;
</span><span class="cx"> use constant AUDIT_UPDATES =&gt; 0;
</span><span class="cx"> 
</span><del>-sub DB_COLUMNS {
-    my $dbh = Bugzilla-&gt;dbh;
</del><ins>+use constant DB_COLUMNS =&gt; qw(
+    attach_id
+    bug_id
+    creation_ts
+    description
+    filename
+    isobsolete
+    ispatch
+    isprivate
+    mimetype
+    modification_time
+    submitter_id
+);
</ins><span class="cx"> 
</span><del>-    return qw(
-        attach_id
-        bug_id
-        description
-        filename
-        isobsolete
-        ispatch
-        isprivate
-        mimetype
-        modification_time
-        submitter_id),
-        $dbh-&gt;sql_date_format('attachments.creation_ts', '%Y.%m.%d %H:%i') . ' AS creation_ts';
-}
-
</del><span class="cx"> use constant REQUIRED_FIELD_MAP =&gt; {
</span><span class="cx">     bug_id =&gt; 'bug',
</span><span class="cx"> };
</span><span class="lines">@@ -116,7 +99,8 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> use constant VALIDATOR_DEPENDENCIES =&gt; {
</span><del>-    mimetype =&gt; ['ispatch'],
</del><ins>+    content_type =&gt; ['ispatch'],
+    mimetype     =&gt; ['ispatch'],
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> use constant UPDATE_VALIDATORS =&gt; {
</span><span class="lines">@@ -142,8 +126,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub bug_id {
</span><del>-    my $self = shift;
-    return $self-&gt;{bug_id};
</del><ins>+    return $_[0]-&gt;{bug_id};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -157,11 +140,8 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub bug {
</span><del>-    my $self = shift;
-
</del><span class="cx">     require Bugzilla::Bug;
</span><del>-    $self-&gt;{bug} ||= Bugzilla::Bug-&gt;new($self-&gt;bug_id);
-    return $self-&gt;{bug};
</del><ins>+    return $_[0]-&gt;{bug} //= Bugzilla::Bug-&gt;new({ id =&gt; $_[0]-&gt;bug_id, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -175,8 +155,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub description {
</span><del>-    my $self = shift;
-    return $self-&gt;{description};
</del><ins>+    return $_[0]-&gt;{description};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -190,8 +169,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub contenttype {
</span><del>-    my $self = shift;
-    return $self-&gt;{mimetype};
</del><ins>+    return $_[0]-&gt;{mimetype};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -205,10 +183,8 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub attacher {
</span><del>-    my $self = shift;
-    return $self-&gt;{attacher} if exists $self-&gt;{attacher};
-    $self-&gt;{attacher} = new Bugzilla::User($self-&gt;{submitter_id});
-    return $self-&gt;{attacher};
</del><ins>+    return $_[0]-&gt;{attacher}
+      //= new Bugzilla::User({ id =&gt; $_[0]-&gt;{submitter_id}, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -222,8 +198,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub attached {
</span><del>-    my $self = shift;
-    return $self-&gt;{creation_ts};
</del><ins>+    return $_[0]-&gt;{creation_ts};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -237,8 +212,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub modification_time {
</span><del>-    my $self = shift;
-    return $self-&gt;{modification_time};
</del><ins>+    return $_[0]-&gt;{modification_time};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -252,8 +226,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub filename {
</span><del>-    my $self = shift;
-    return $self-&gt;{filename};
</del><ins>+    return $_[0]-&gt;{filename};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -267,8 +240,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub ispatch {
</span><del>-    my $self = shift;
-    return $self-&gt;{ispatch};
</del><ins>+    return $_[0]-&gt;{ispatch};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -282,8 +254,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub isobsolete {
</span><del>-    my $self = shift;
-    return $self-&gt;{isobsolete};
</del><ins>+    return $_[0]-&gt;{isobsolete};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -297,8 +268,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub isprivate {
</span><del>-    my $self = shift;
-    return $self-&gt;{isprivate};
</del><ins>+    return $_[0]-&gt;{isprivate};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -315,8 +285,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub is_viewable {
</span><del>-    my $self = shift;
-    my $contenttype = $self-&gt;contenttype;
</del><ins>+    my $contenttype = $_[0]-&gt;contenttype;
</ins><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> 
</span><span class="cx">     # We assume we can view all text and image types.
</span><span class="lines">@@ -359,7 +328,7 @@
</span><span class="cx">     # If there's no attachment data in the database, the attachment is stored
</span><span class="cx">     # in a local file, so retrieve it from there.
</span><span class="cx">     if (length($self-&gt;{data}) == 0) {
</span><del>-        if (open(AH, $self-&gt;_get_local_filename())) {
</del><ins>+        if (open(AH, '&lt;', $self-&gt;_get_local_filename())) {
</ins><span class="cx">             local $/;
</span><span class="cx">             binmode AH;
</span><span class="cx">             $self-&gt;{data} = &lt;AH&gt;;
</span><span class="lines">@@ -374,7 +343,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;datasize&gt;
</span><span class="cx"> 
</span><del>-the length (in characters) of the attachment content
</del><ins>+the length (in bytes) of the attachment content
</ins><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="lines">@@ -390,7 +359,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub datasize {
</span><span class="cx">     my $self = shift;
</span><del>-    return $self-&gt;{datasize} if exists $self-&gt;{datasize};
</del><ins>+    return $self-&gt;{datasize} if defined $self-&gt;{datasize};
</ins><span class="cx"> 
</span><span class="cx">     # If we have already retrieved the data, return its size.
</span><span class="cx">     return length($self-&gt;{data}) if exists $self-&gt;{data};
</span><span class="lines">@@ -405,7 +374,7 @@
</span><span class="cx">     # is stored in a local file, and so retrieve its size from the file,
</span><span class="cx">     # or the attachment has been deleted.
</span><span class="cx">     unless ($self-&gt;{datasize}) {
</span><del>-        if (open(AH, $self-&gt;_get_local_filename())) {
</del><ins>+        if (open(AH, '&lt;', $self-&gt;_get_local_filename())) {
</ins><span class="cx">             binmode AH;
</span><span class="cx">             $self-&gt;{datasize} = (stat(AH))[7];
</span><span class="cx">             close(AH);
</span><span class="lines">@@ -433,11 +402,8 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub flags {
</span><del>-    my $self = shift;
-
</del><span class="cx">     # Don't cache it as it must be in sync with -&gt;flag_types.
</span><del>-    $self-&gt;{flags} = [map { @{$_-&gt;{flags}} } @{$self-&gt;flag_types}];
-    return $self-&gt;{flags};
</del><ins>+    return $_[0]-&gt;{flags} = [map { @{$_-&gt;{flags}} } @{$_[0]-&gt;flag_types}];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -460,8 +426,7 @@
</span><span class="cx">                  component_id =&gt; $self-&gt;bug-&gt;component_id,
</span><span class="cx">                  attach_id    =&gt; $self-&gt;id };
</span><span class="cx"> 
</span><del>-    $self-&gt;{flag_types} = Bugzilla::Flag-&gt;_flag_types($vars);
-    return $self-&gt;{flag_types};
</del><ins>+    return $self-&gt;{flag_types} = Bugzilla::Flag-&gt;_flag_types($vars);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -530,6 +495,53 @@
</span><span class="cx">     }
</span><span class="cx">     trick_taint($content_type);
</span><span class="cx"> 
</span><ins>+    # $ENV{HOME} must be defined when using File::MimeInfo::Magic,
+    # see https://rt.cpan.org/Public/Bug/Display.html?id=41744.
+    local $ENV{HOME} = $ENV{HOME} || File::Spec-&gt;rootdir();
+
+    # If we have autodetected application/octet-stream from the Content-Type
+    # header, let's have a better go using a sniffer if available.
+    if (defined Bugzilla-&gt;input_params-&gt;{contenttypemethod}
+        &amp;&amp; Bugzilla-&gt;input_params-&gt;{contenttypemethod} eq 'autodetect'
+        &amp;&amp; $content_type eq 'application/octet-stream'
+        &amp;&amp; Bugzilla-&gt;feature('typesniffer'))
+    {
+        import File::MimeInfo::Magic qw(mimetype);
+        require IO::Scalar;
+
+        # data is either a filehandle, or the data itself.
+        my $fh = $params-&gt;{data};
+        if (!ref($fh)) {
+            $fh = new IO::Scalar \$fh;
+        }
+        elsif (!$fh-&gt;isa('IO::Handle')) {
+            # CGI.pm sends us an Fh that isn't actually an IO::Handle, but
+            # has a method for getting an actual handle out of it.
+            $fh = $fh-&gt;handle;
+            # -&gt;handle returns an literal IO::Handle, even though the
+            # underlying object is a file. So we rebless it to be a proper
+            # IO::File object so that we can call -&gt;seek on it and so on.
+            # Just in case CGI.pm fixes this some day, we check -&gt;isa first.
+            if (!$fh-&gt;isa('IO::File')) {
+                bless $fh, 'IO::File';
+            }
+        }
+
+        my $mimetype = mimetype($fh);
+        $fh-&gt;seek(0, 0);
+        $content_type = $mimetype if $mimetype;
+    }
+
+    # Make sure patches are viewable in the browser
+    if (!ref($invocant)
+        &amp;&amp; defined Bugzilla-&gt;input_params-&gt;{contenttypemethod}
+        &amp;&amp; Bugzilla-&gt;input_params-&gt;{contenttypemethod} eq 'autodetect'
+        &amp;&amp; $content_type =~ m{text/x-(?:diff|patch)})
+    {
+        $params-&gt;{ispatch} = 1;
+        $content_type = 'text/plain';
+    }
+
</ins><span class="cx">     return $content_type;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -582,9 +594,11 @@
</span><span class="cx">     # a big deal if it munges incorrectly occasionally.
</span><span class="cx">     $filename =~ s/^.*[\/\\]//;
</span><span class="cx"> 
</span><del>-    # Truncate the filename to 100 characters, counting from the end of the
-    # string to make sure we keep the filename extension.
-    $filename = substr($filename, -100, 100);
</del><ins>+    # Truncate the filename to MAX_ATTACH_FILENAME_LENGTH characters, counting 
+    # from the end of the string to make sure we keep the filename extension.
+    $filename = substr($filename, 
+                       -&amp;MAX_ATTACH_FILENAME_LENGTH, 
+                       MAX_ATTACH_FILENAME_LENGTH);
</ins><span class="cx">     trick_taint($filename);
</span><span class="cx"> 
</span><span class="cx">     return $filename;
</span><span class="lines">@@ -608,12 +622,12 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;get_attachments_by_bug($bug_id)&gt;
</del><ins>+=item C&lt;get_attachments_by_bug($bug)&gt;
</ins><span class="cx"> 
</span><span class="cx"> Description: retrieves and returns the attachments the currently logged in
</span><span class="cx">              user can view for the given bug.
</span><span class="cx"> 
</span><del>-Params:     C&lt;$bug_id&gt; - integer - the ID of the bug for which
</del><ins>+Params:     C&lt;$bug&gt; - Bugzilla::Bug object - the bug for which
</ins><span class="cx">             to retrieve and return attachments.
</span><span class="cx"> 
</span><span class="cx"> Returns:    a reference to an array of attachment objects.
</span><span class="lines">@@ -621,7 +635,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub get_attachments_by_bug {
</span><del>-    my ($class, $bug_id, $vars) = @_;
</del><ins>+    my ($class, $bug, $vars) = @_;
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="lines">@@ -628,7 +642,7 @@
</span><span class="cx">     # By default, private attachments are not accessible, unless the user
</span><span class="cx">     # is in the insider group or submitted the attachment.
</span><span class="cx">     my $and_restriction = '';
</span><del>-    my @values = ($bug_id);
</del><ins>+    my @values = ($bug-&gt;id);
</ins><span class="cx"> 
</span><span class="cx">     unless ($user-&gt;is_insider) {
</span><span class="cx">         $and_restriction = 'AND (isprivate = 0 OR submitter_id = ?)';
</span><span class="lines">@@ -640,29 +654,55 @@
</span><span class="cx">                                                undef, @values);
</span><span class="cx"> 
</span><span class="cx">     my $attachments = Bugzilla::Attachment-&gt;new_from_list($attach_ids);
</span><ins>+    $_-&gt;{bug} = $bug foreach @$attachments;
</ins><span class="cx"> 
</span><del>-    # To avoid $attachment-&gt;flags to run SQL queries itself for each
-    # attachment listed here, we collect all the data at once and
-    # populate $attachment-&gt;{flags} ourselves.
</del><ins>+    # To avoid $attachment-&gt;flags and $attachment-&gt;flag_types running SQL queries
+    # themselves for each attachment listed here, we collect all the data at once and
+    # populate $attachment-&gt;{flag_types} ourselves. We also load all attachers and
+    # datasizes at once for the same reason.
</ins><span class="cx">     if ($vars-&gt;{preload}) {
</span><del>-        $_-&gt;{flags} = [] foreach @$attachments;
-        my %att = map { $_-&gt;id =&gt; $_ } @$attachments;
</del><ins>+        # Preload flag types and flags
+        my $vars = { target_type  =&gt; 'attachment',
+                     product_id   =&gt; $bug-&gt;product_id,
+                     component_id =&gt; $bug-&gt;component_id,
+                     attach_id    =&gt; $attach_ids };
+        my $flag_types = Bugzilla::Flag-&gt;_flag_types($vars);
</ins><span class="cx"> 
</span><del>-        my $flags = Bugzilla::Flag-&gt;match({ bug_id      =&gt; $bug_id,
-                                            target_type =&gt; 'attachment' });
</del><ins>+        foreach my $attachment (@$attachments) {
+            $attachment-&gt;{flag_types} = [];
+            my $new_types = dclone($flag_types);
+            foreach my $new_type (@$new_types) {
+                $new_type-&gt;{flags} = [ grep($_-&gt;attach_id == $attachment-&gt;id,
+                                            @{ $new_type-&gt;{flags} }) ];
+                push(@{ $attachment-&gt;{flag_types} }, $new_type);
+            }
+        }
</ins><span class="cx"> 
</span><del>-        # Exclude flags for private attachments you cannot see.
-        @$flags = grep {exists $att{$_-&gt;attach_id}} @$flags;
</del><ins>+        # Preload attachers.
+        my %user_ids = map { $_-&gt;{submitter_id} =&gt; 1 } @$attachments;
+        my $users = Bugzilla::User-&gt;new_from_list([keys %user_ids]);
+        my %user_map = map { $_-&gt;id =&gt; $_ } @$users;
+        foreach my $attachment (@$attachments) {
+            $attachment-&gt;{attacher} = $user_map{$attachment-&gt;{submitter_id}};
+        }
</ins><span class="cx"> 
</span><del>-        push(@{$att{$_-&gt;attach_id}-&gt;{flags}}, $_) foreach @$flags;
-        $attachments = [sort {$a-&gt;id &lt;=&gt; $b-&gt;id} values %att];
</del><ins>+        # Preload datasizes.
+        my $sizes =
+          $dbh-&gt;selectall_hashref('SELECT attach_id, LENGTH(thedata) AS datasize
+                                   FROM attachments LEFT JOIN attach_data ON attach_id = id
+                                   WHERE bug_id = ?',
+                                   'attach_id', undef, $bug-&gt;id);
+
+        # Force the size of attachments not in the DB to be recalculated.
+        $_-&gt;{datasize} = $sizes-&gt;{$_-&gt;id}-&gt;{datasize} || undef foreach @$attachments;
</ins><span class="cx">     }
</span><ins>+
</ins><span class="cx">     return $attachments;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =pod
</span><span class="cx"> 
</span><del>-=item C&lt;validate_can_edit($attachment, $product_id)&gt;
</del><ins>+=item C&lt;validate_can_edit&gt;
</ins><span class="cx"> 
</span><span class="cx"> Description: validates if the user is allowed to view and edit the attachment.
</span><span class="cx">              Only the submitter or someone with editbugs privs can edit it.
</span><span class="lines">@@ -669,8 +709,7 @@
</span><span class="cx">              Only the submitter and users in the insider group can view
</span><span class="cx">              private attachments.
</span><span class="cx"> 
</span><del>-Params:      $attachment - the attachment object being edited.
-             $product_id - the product ID the attachment belongs to.
</del><ins>+Params:      none
</ins><span class="cx"> 
</span><span class="cx"> Returns:     1 on success, 0 otherwise.
</span><span class="cx"> 
</span><span class="lines">@@ -677,13 +716,13 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub validate_can_edit {
</span><del>-    my ($attachment, $product_id) = @_;
</del><ins>+    my $attachment = shift;
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><span class="cx">     # The submitter can edit their attachments.
</span><span class="cx">     return ($attachment-&gt;attacher-&gt;id == $user-&gt;id
</span><span class="cx">             || ((!$attachment-&gt;isprivate || $user-&gt;is_insider)
</span><del>-                 &amp;&amp; $user-&gt;in_group('editbugs', $product_id))) ? 1 : 0;
</del><ins>+                 &amp;&amp; $user-&gt;in_group('editbugs', $attachment-&gt;bug-&gt;product_id))) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;validate_obsolete($bug, $attach_ids)&gt;
</span><span class="lines">@@ -691,7 +730,7 @@
</span><span class="cx"> Description: validates if attachments the user wants to mark as obsolete
</span><span class="cx">              really belong to the given bug and are not already obsolete.
</span><span class="cx">              Moreover, a user cannot mark an attachment as obsolete if
</span><del>-             he cannot view it (due to restrictions on it).
</del><ins>+             they cannot view it (due to restrictions on it).
</ins><span class="cx"> 
</span><span class="cx"> Params:      $bug - The bug object obsolete attachments should belong to.
</span><span class="cx">              $attach_ids - The list of attachments to mark as obsolete.
</span><span class="lines">@@ -713,7 +752,7 @@
</span><span class="cx">         $vars-&gt;{'attach_id'} = $attachid;
</span><span class="cx"> 
</span><span class="cx">         detaint_natural($attachid)
</span><del>-          || ThrowCodeError('invalid_attach_id_to_obsolete', $vars);
</del><ins>+          || ThrowUserError('invalid_attach_id', $vars);
</ins><span class="cx"> 
</span><span class="cx">         # Make sure the attachment exists in the database.
</span><span class="cx">         my $attachment = new Bugzilla::Attachment($attachid)
</span><span class="lines">@@ -720,12 +759,12 @@
</span><span class="cx">           || ThrowUserError('invalid_attach_id', $vars);
</span><span class="cx"> 
</span><span class="cx">         # Check that the user can view and edit this attachment.
</span><del>-        $attachment-&gt;validate_can_edit($bug-&gt;product_id)
</del><ins>+        $attachment-&gt;validate_can_edit
</ins><span class="cx">           || ThrowUserError('illegal_attachment_edit', { attach_id =&gt; $attachment-&gt;id });
</span><span class="cx"> 
</span><span class="cx">         if ($attachment-&gt;bug_id != $bug-&gt;bug_id) {
</span><span class="cx">             $vars-&gt;{'my_bug_id'} = $bug-&gt;bug_id;
</span><del>-            ThrowCodeError('mismatched_bug_ids_on_obsolete', $vars);
</del><ins>+            ThrowUserError('mismatched_bug_ids_on_obsolete', $vars);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         next if $attachment-&gt;isobsolete;
</span><span class="lines">@@ -826,6 +865,8 @@
</span><span class="cx"> sub run_create_validators {
</span><span class="cx">     my ($class, $params) = @_;
</span><span class="cx"> 
</span><ins>+    $params-&gt;{submitter_id} = Bugzilla-&gt;user-&gt;id || ThrowUserError('invalid_user');
+
</ins><span class="cx">     # Let's validate the attachment content first as it may
</span><span class="cx">     # alter some other attachment attributes.
</span><span class="cx">     $params-&gt;{data} = $class-&gt;_check_data($params);
</span><span class="lines">@@ -833,7 +874,6 @@
</span><span class="cx"> 
</span><span class="cx">     $params-&gt;{creation_ts} ||= Bugzilla-&gt;dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</span><span class="cx">     $params-&gt;{modification_time} = $params-&gt;{creation_ts};
</span><del>-    $params-&gt;{submitter_id} = Bugzilla-&gt;user-&gt;id || ThrowCodeError('invalid_user');
</del><span class="cx"> 
</span><span class="cx">     return $params;
</span><span class="cx"> }
</span><span class="lines">@@ -852,23 +892,23 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Record changes in the activity table.
</span><del>-    my $sth = $dbh-&gt;prepare('INSERT INTO bugs_activity (bug_id, attach_id, who, bug_when,
-                                                        fieldid, removed, added)
-                             VALUES (?, ?, ?, ?, ?, ?, ?)');
-
</del><ins>+    require Bugzilla::Bug;
</ins><span class="cx">     foreach my $field (keys %$changes) {
</span><span class="cx">         my $change = $changes-&gt;{$field};
</span><span class="cx">         $field = &quot;attachments.$field&quot; unless $field eq &quot;flagtypes.name&quot;;
</span><del>-        my $fieldid = get_field_id($field);
-        $sth-&gt;execute($self-&gt;bug_id, $self-&gt;id, $user-&gt;id, $timestamp,
-                      $fieldid, $change-&gt;[0], $change-&gt;[1]);
</del><ins>+        Bugzilla::Bug::LogActivityEntry($self-&gt;bug_id, $field, $change-&gt;[0],
+            $change-&gt;[1], $user-&gt;id, $timestamp, undef, $self-&gt;id);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (scalar(keys %$changes)) {
</span><del>-      $dbh-&gt;do('UPDATE attachments SET modification_time = ? WHERE attach_id = ?',
-               undef, ($timestamp, $self-&gt;id));
-      $dbh-&gt;do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
-               undef, ($timestamp, $self-&gt;bug_id));
</del><ins>+        $dbh-&gt;do('UPDATE attachments SET modification_time = ? WHERE attach_id = ?',
+                 undef, ($timestamp, $self-&gt;id));
+        $dbh-&gt;do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
+                 undef, ($timestamp, $self-&gt;bug_id));
+        $self-&gt;{modification_time} = $timestamp;
+        # because we updated the attachments table after SUPER::update(), we
+        # need to ensure the cache is flushed.
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'attachments', id =&gt; $self-&gt;id });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return $changes;
</span><span class="lines">@@ -893,11 +933,26 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><del>-    $dbh-&gt;do('DELETE FROM flags WHERE attach_id = ?', undef, $self-&gt;id);
</del><ins>+    my $flag_ids = $dbh-&gt;selectcol_arrayref(
+        'SELECT id FROM flags WHERE attach_id = ?', undef, $self-&gt;id);
+    $dbh-&gt;do('DELETE FROM flags WHERE ' . $dbh-&gt;sql_in('id', $flag_ids))
+        if @$flag_ids;
</ins><span class="cx">     $dbh-&gt;do('DELETE FROM attach_data WHERE id = ?', undef, $self-&gt;id);
</span><span class="cx">     $dbh-&gt;do('UPDATE attachments SET mimetype = ?, ispatch = ?, isobsolete = ?
</span><span class="cx">               WHERE attach_id = ?', undef, ('text/plain', 0, 1, $self-&gt;id));
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+
+    my $filename = $self-&gt;_get_local_filename;
+    if (-e $filename) {
+        unlink $filename or warn &quot;Couldn't unlink $filename: $!&quot;;
+    }
+
+    # As we don't call SUPER-&gt;remove_from_db we need to manually clear
+    # memcached here.
+    Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'attachments', id =&gt; $self-&gt;id });
+    foreach my $flag_id (@$flag_ids) {
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'flags', id =&gt; $flag_id });
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -911,12 +966,18 @@
</span><span class="cx">     return 'text/plain' if ($cgi-&gt;param('ispatch') || $cgi-&gt;param('attach_text'));
</span><span class="cx"> 
</span><span class="cx">     my $content_type;
</span><del>-    my $method = $cgi-&gt;param('contenttypemethod');
</del><ins>+    my $method = $cgi-&gt;param('contenttypemethod') || '';
</ins><span class="cx"> 
</span><del>-    if (!defined $method) {
-        ThrowUserError(&quot;missing_content_type_method&quot;);
</del><ins>+    if ($method eq 'list') {
+        # The user selected a content type from the list, so use their
+        # selection.
+        $content_type = $cgi-&gt;param('contenttypeselection');
</ins><span class="cx">     }
</span><del>-    elsif ($method eq 'autodetect') {
</del><ins>+    elsif ($method eq 'manual') {
+        # The user entered a content type manually, so use their entry.
+        $content_type = $cgi-&gt;param('contenttypeentry');
+    }
+    else {
</ins><span class="cx">         defined $cgi-&gt;upload('data') || ThrowUserError('file_not_specified');
</span><span class="cx">         # The user asked us to auto-detect the content type, so use the type
</span><span class="cx">         # specified in the HTTP request headers.
</span><span class="lines">@@ -924,13 +985,6 @@
</span><span class="cx">             $cgi-&gt;uploadInfo($cgi-&gt;param('data'))-&gt;{'Content-Type'};
</span><span class="cx">         $content_type || ThrowUserError(&quot;missing_content_type&quot;);
</span><span class="cx"> 
</span><del>-        # Set the ispatch flag to 1 if the content type
-        # is text/x-diff or text/x-patch
-        if ($content_type =~ m{text/x-(?:diff|patch)}) {
-            $cgi-&gt;param('ispatch', 1);
-            $content_type = 'text/plain';
-        }
-
</del><span class="cx">         # Internet Explorer sends image/x-png for PNG images,
</span><span class="cx">         # so convert that to image/png to match other browsers.
</span><span class="cx">         if ($content_type eq 'image/x-png') {
</span><span class="lines">@@ -937,20 +991,34 @@
</span><span class="cx">             $content_type = 'image/png';
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    elsif ($method eq 'list') {
-        # The user selected a content type from the list, so use their
-        # selection.
-        $content_type = $cgi-&gt;param('contenttypeselection');
-    }
-    elsif ($method eq 'manual') {
-        # The user entered a content type manually, so use their entry.
-        $content_type = $cgi-&gt;param('contenttypeentry');
-    }
-    else {
-        ThrowCodeError(&quot;illegal_content_type_method&quot;, { contenttypemethod =&gt; $method });
-    }
</del><span class="cx">     return $content_type;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_filename
+
+=item set_is_obsolete
+
+=item DB_COLUMNS
+
+=item set_is_private
+
+=item set_content_type
+
+=item set_description
+
+=item get_content_type
+
+=item set_flags
+
+=item set_is_patch
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginAPIKeypm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/APIKey.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/APIKey.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/APIKey.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Auth::Login::APIKey;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use base qw(Bugzilla::Auth::Login);
+
+use Bugzilla::Constants;
+use Bugzilla::User::APIKey;
+use Bugzilla::Util;
+use Bugzilla::Error;
+
+use constant requires_persistence  =&gt; 0;
+use constant requires_verification =&gt; 0;
+use constant can_login             =&gt; 0;
+use constant can_logout            =&gt; 0;
+
+# This method is only available to web services. An API key can never
+# be used to authenticate a Web request.
+sub get_login_info {
+    my ($self) = @_;
+    my $params = Bugzilla-&gt;input_params;
+    my ($user_id, $login_cookie);
+
+    my $api_key_text = trim(delete $params-&gt;{'Bugzilla_api_key'});
+    if (!i_am_webservice() || !$api_key_text) {
+        return { failure =&gt; AUTH_NODATA };
+    }
+
+    my $api_key = Bugzilla::User::APIKey-&gt;new({ name =&gt; $api_key_text });
+
+    if (!$api_key or $api_key-&gt;api_key ne $api_key_text) {
+        # The second part checks the correct capitalisation. Silly MySQL
+        ThrowUserError(&quot;api_key_not_valid&quot;);
+    }
+    elsif ($api_key-&gt;revoked) {
+        ThrowUserError('api_key_revoked');
+    }
+
+    $api_key-&gt;update_last_used();
+
+    return { user_id =&gt; $api_key-&gt;user_id };
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginCGIpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/CGI.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/CGI.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/CGI.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Christian Reis &lt;kiko@async.com.br&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Login::CGI;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Login);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::Auth::Login);
</ins><span class="cx"> use constant user_can_create_account =&gt; 1;
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -37,19 +18,52 @@
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><ins>+use Bugzilla::Token;
</ins><span class="cx"> 
</span><span class="cx"> sub get_login_info {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $params = Bugzilla-&gt;input_params;
</span><ins>+    my $cgi = Bugzilla-&gt;cgi;
</ins><span class="cx"> 
</span><del>-    my $username = trim(delete $params-&gt;{&quot;Bugzilla_login&quot;});
-    my $password = delete $params-&gt;{&quot;Bugzilla_password&quot;};
</del><ins>+    my $login = trim(delete $params-&gt;{'Bugzilla_login'});
+    my $password = delete $params-&gt;{'Bugzilla_password'};
+    # The token must match the cookie to authenticate the request.
+    my $login_token = delete $params-&gt;{'Bugzilla_login_token'};
+    my $login_cookie = $cgi-&gt;cookie('Bugzilla_login_request_cookie');
</ins><span class="cx"> 
</span><del>-    if (!defined $username || !defined $password) {
</del><ins>+    my $valid = 0;
+    # If the web browser accepts cookies, use them.
+    if ($login_token &amp;&amp; $login_cookie) {
+        my ($time, undef) = split(/-/, $login_token);
+        # Regenerate the token based on the information we have.
+        my $expected_token = issue_hash_token(['login_request', $login_cookie], $time);
+        $valid = 1 if $expected_token eq $login_token;
+        $cgi-&gt;remove_cookie('Bugzilla_login_request_cookie');
+    }
+    # WebServices and other local scripts can bypass this check.
+    # This is safe because we won't store a login cookie in this case.
+    elsif (Bugzilla-&gt;usage_mode != USAGE_MODE_BROWSER) {
+        $valid = 1;
+    }
+    # Else falls back to the Referer header and accept local URLs.
+    # Attachments are served from a separate host (ideally), and so
+    # an evil attachment cannot abuse this check with a redirect.
+    elsif (my $referer = $cgi-&gt;referer) {
+        my $urlbase = correct_urlbase();
+        $valid = 1 if $referer =~ /^\Q$urlbase\E/;
+    }
+    # If the web browser doesn't accept cookies and the Referer header
+    # is missing, we have no way to make sure that the authentication
+    # request comes from the user.
+    elsif ($login &amp;&amp; $password) {
+        ThrowUserError('auth_untrusted_request', { login =&gt; $login });
+    }
+
+    if (!defined($login) || !defined($password) || !$valid) {
</ins><span class="cx">         return { failure =&gt; AUTH_NODATA };
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return { username =&gt; $username, password =&gt; $password };
</del><ins>+    return { username =&gt; $login, password =&gt; $password };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub fail_nodata {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginCookiepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Cookie.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Cookie.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Cookie.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,22 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Login::Cookie;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use base qw(Bugzilla::Auth::Login);
</span><ins>+use fields qw(_login_token);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::Error;
+use Bugzilla::Token;
</ins><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><span class="cx"> use List::Util qw(first);
</span><span class="lines">@@ -27,8 +24,9 @@
</span><span class="cx"> use constant requires_persistence  =&gt; 0;
</span><span class="cx"> use constant requires_verification =&gt; 0;
</span><span class="cx"> use constant can_login =&gt; 0;
</span><del>-use constant is_automatic =&gt; 1;
</del><span class="cx"> 
</span><ins>+sub is_automatic { return $_[0]-&gt;login_token ? 0 : 1; }
+
</ins><span class="cx"> # Note that Cookie never consults the Verifier, it always assumes
</span><span class="cx"> # it has a valid DB account or it fails.
</span><span class="cx"> sub get_login_info {
</span><span class="lines">@@ -35,24 +33,49 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><ins>+    my ($user_id, $login_cookie);
</ins><span class="cx"> 
</span><del>-    my $ip_addr      = remote_ip();
-    my $login_cookie = $cgi-&gt;cookie(&quot;Bugzilla_logincookie&quot;);
-    my $user_id      = $cgi-&gt;cookie(&quot;Bugzilla_login&quot;);
</del><ins>+    if (!Bugzilla-&gt;request_cache-&gt;{auth_no_automatic_login}) {
+        $login_cookie = $cgi-&gt;cookie(&quot;Bugzilla_logincookie&quot;);
+        $user_id      = $cgi-&gt;cookie(&quot;Bugzilla_login&quot;);
</ins><span class="cx"> 
</span><del>-    # If cookies cannot be found, this could mean that they haven't
-    # been made available yet. In this case, look at Bugzilla_cookie_list.
-    unless ($login_cookie) {
-        my $cookie = first {$_-&gt;name eq 'Bugzilla_logincookie'}
-                            @{$cgi-&gt;{'Bugzilla_cookie_list'}};
-        $login_cookie = $cookie-&gt;value if $cookie;
</del><ins>+        # If cookies cannot be found, this could mean that they haven't
+        # been made available yet. In this case, look at Bugzilla_cookie_list.
+        unless ($login_cookie) {
+            my $cookie = first {$_-&gt;name eq 'Bugzilla_logincookie'}
+                                @{$cgi-&gt;{'Bugzilla_cookie_list'}};
+            $login_cookie = $cookie-&gt;value if $cookie;
+        }
+        unless ($user_id) {
+            my $cookie = first {$_-&gt;name eq 'Bugzilla_login'}
+                                @{$cgi-&gt;{'Bugzilla_cookie_list'}};
+            $user_id = $cookie-&gt;value if $cookie;
+        }
+
+        # If the call is for a web service, and an api token is provided, check
+        # it is valid.
+        if (i_am_webservice() &amp;&amp; Bugzilla-&gt;input_params-&gt;{Bugzilla_api_token}) {
+            my $api_token = Bugzilla-&gt;input_params-&gt;{Bugzilla_api_token};
+            my ($token_user_id, undef, undef, $token_type)
+                = Bugzilla::Token::GetTokenData($api_token);
+            if (!defined $token_type
+                || $token_type ne 'api_token'
+                || $user_id != $token_user_id)
+            {
+                ThrowUserError('auth_invalid_token', { token =&gt; $api_token });
+            }
+        }
</ins><span class="cx">     }
</span><del>-    unless ($user_id) {
-        my $cookie = first {$_-&gt;name eq 'Bugzilla_login'}
-                            @{$cgi-&gt;{'Bugzilla_cookie_list'}};
-        $user_id = $cookie-&gt;value if $cookie;
</del><ins>+
+    # If no cookies were provided, we also look for a login token
+    # passed in the parameters of a webservice
+    my $token = $self-&gt;login_token;
+    if ($token &amp;&amp; (!$login_cookie || !$user_id)) {
+        ($user_id, $login_cookie) = ($token-&gt;{'user_id'}, $token-&gt;{'login_token'});
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    my $ip_addr = remote_ip();
+
</ins><span class="cx">     if ($login_cookie &amp;&amp; $user_id) {
</span><span class="cx">         # Anything goes for these params - they're just strings which
</span><span class="cx">         # we're going to verify against the db
</span><span class="lines">@@ -68,7 +91,9 @@
</span><span class="cx">                                         AND (ipaddr = ? OR ipaddr IS NULL)',
</span><span class="cx">                                  undef, ($login_cookie, $user_id, $ip_addr));
</span><span class="cx"> 
</span><del>-        # If the cookie is valid, return a valid username.
</del><ins>+        # If the cookie or token is valid, return a valid username.
+        # If they were not valid and we are using a webservice, then
+        # throw an error notifying the client.
</ins><span class="cx">         if (defined $db_cookie &amp;&amp; $login_cookie eq $db_cookie) {
</span><span class="cx">             # If we logged in successfully, then update the lastused 
</span><span class="cx">             # time on the login cookie
</span><span class="lines">@@ -76,13 +101,43 @@
</span><span class="cx">                        WHERE cookie = ?&quot;, undef, $login_cookie);
</span><span class="cx">             return { user_id =&gt; $user_id };
</span><span class="cx">         }
</span><ins>+        elsif (i_am_webservice()) {
+            ThrowUserError('invalid_cookies_or_token');
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Either the he cookie is invalid, or we got no cookie. We don't want 
-    # to ever return AUTH_LOGINFAILED, because we don't want Bugzilla to 
-    # actually throw an error when it gets a bad cookie. It should just 
-    # look like there was no cookie to begin with.
</del><ins>+    # Either the cookie or token is invalid and we are not authenticating
+    # via a webservice, or we did not receive a cookie or token. We don't
+    # want to ever return AUTH_LOGINFAILED, because we don't want Bugzilla to
+    # actually throw an error when it gets a bad cookie or token. It should just
+    # look like there was no cookie or token to begin with.
</ins><span class="cx">     return { failure =&gt; AUTH_NODATA };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub login_token {
+    my ($self) = @_;
+    my $input      = Bugzilla-&gt;input_params;
+    my $usage_mode = Bugzilla-&gt;usage_mode;
+
+    return $self-&gt;{'_login_token'} if exists $self-&gt;{'_login_token'};
+
+    if (!i_am_webservice()) {
+        return $self-&gt;{'_login_token'} = undef;
+    }
+
+    # Check if a token was passed in via requests for WebServices
+    my $token = trim(delete $input-&gt;{'Bugzilla_token'});
+    return $self-&gt;{'_login_token'} = undef if !$token;
+
+    my ($user_id, $login_token) = split('-', $token, 2);
+    if (!detaint_natural($user_id) || !$login_token) {
+        return $self-&gt;{'_login_token'} = undef;
+    }
+
+    return $self-&gt;{'_login_token'} = {
+        user_id     =&gt; $user_id,
+        login_token =&gt; $login_token
+    };
+}
+
</ins><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginEnvpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Env.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Env.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Env.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Login::Env;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Login);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Auth::Login);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> 
</span><span class="lines">@@ -36,7 +25,6 @@
</span><span class="cx"> 
</span><span class="cx"> sub get_login_info {
</span><span class="cx">     my ($self) = @_;
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx"> 
</span><span class="cx">     my $env_id       = $ENV{Bugzilla-&gt;params-&gt;{&quot;auth_env_id&quot;}} || '';
</span><span class="cx">     my $env_email    = $ENV{Bugzilla-&gt;params-&gt;{&quot;auth_env_email&quot;}} || '';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginStackpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Stack.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Stack.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login/Stack.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Login::Stack;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use base qw(Bugzilla::Auth::Login);
</span><span class="cx"> use fields qw(
</span><span class="cx">     _stack
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthLoginpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Login.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Login;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use fields qw();
</span><span class="cx"> 
</span><span class="cx"> # Determines whether or not a user can logout. It's really a subroutine,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthPersistCookiepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Persist/Cookie.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Persist/Cookie.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Persist/Cookie.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Christian Reis &lt;kiko@async.com.br&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Persist::Cookie;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use fields qw();
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -75,6 +56,10 @@
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><ins>+    # We do not want WebServices to generate login cookies.
+    # All we need is the login token for User.login.
+    return $login_cookie if i_am_webservice();
+
</ins><span class="cx">     # Prevent JavaScript from accessing login cookies.
</span><span class="cx">     my %cookieargs = ('-httponly' =&gt; 1);
</span><span class="cx"> 
</span><span class="lines">@@ -107,6 +92,7 @@
</span><span class="cx"> 
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><ins>+    my $input = Bugzilla-&gt;input_params;
</ins><span class="cx">     $param = {} unless $param;
</span><span class="cx">     my $user = $param-&gt;{user} || Bugzilla-&gt;user;
</span><span class="cx">     my $type = $param-&gt;{type} || LOGOUT_ALL;
</span><span class="lines">@@ -120,17 +106,25 @@
</span><span class="cx">     # The LOGOUT_*_CURRENT options require the current login cookie.
</span><span class="cx">     # If a new cookie has been issued during this run, that's the current one.
</span><span class="cx">     # If not, it's the one we've received.
</span><ins>+    my @login_cookies;
</ins><span class="cx">     my $cookie = first {$_-&gt;name eq 'Bugzilla_logincookie'}
</span><span class="cx">                        @{$cgi-&gt;{'Bugzilla_cookie_list'}};
</span><del>-    my $login_cookie;
</del><span class="cx">     if ($cookie) {
</span><del>-        $login_cookie = $cookie-&gt;value;
</del><ins>+        push(@login_cookies, $cookie-&gt;value);
</ins><span class="cx">     }
</span><del>-    else {
-        $login_cookie = $cgi-&gt;cookie(&quot;Bugzilla_logincookie&quot;) || '';
</del><ins>+    elsif ($cookie = $cgi-&gt;cookie('Bugzilla_logincookie')) {
+        push(@login_cookies, $cookie);
</ins><span class="cx">     }
</span><del>-    trick_taint($login_cookie);
</del><span class="cx"> 
</span><ins>+    # If we are a webservice using a token instead of cookie
+    # then add that as well to the login cookies to delete
+    if (my $login_token = $user-&gt;authorizer-&gt;login_token) {
+        push(@login_cookies, $login_token-&gt;{'login_token'});
+    }
+
+    # Make sure that @login_cookies is not empty to not break SQL statements.
+    push(@login_cookies, '') unless @login_cookies;
+
</ins><span class="cx">     # These queries use both the cookie ID and the user ID as keys. Even
</span><span class="cx">     # though we know the userid must match, we still check it in the SQL
</span><span class="cx">     # as a sanity check, since there is no locking here, and if the user
</span><span class="lines">@@ -138,12 +132,18 @@
</span><span class="cx">     # logged in and got the same cookie, we could be logging the other
</span><span class="cx">     # user out here. Yes, this is very very very unlikely, but why take
</span><span class="cx">     # chances? - bbaetz
</span><ins>+    map { trick_taint($_) } @login_cookies;
+    @login_cookies = map { $dbh-&gt;quote($_) } @login_cookies;
</ins><span class="cx">     if ($type == LOGOUT_KEEP_CURRENT) {
</span><del>-        $dbh-&gt;do(&quot;DELETE FROM logincookies WHERE cookie != ? AND userid = ?&quot;,
-                 undef, $login_cookie, $user-&gt;id);
</del><ins>+        $dbh-&gt;do(&quot;DELETE FROM logincookies WHERE &quot; .
+                 $dbh-&gt;sql_in('cookie', \@login_cookies, 1) .
+                 &quot; AND userid = ?&quot;,
+                 undef, $user-&gt;id);
</ins><span class="cx">     } elsif ($type == LOGOUT_CURRENT) {
</span><del>-        $dbh-&gt;do(&quot;DELETE FROM logincookies WHERE cookie = ? AND userid = ?&quot;,
-                 undef, $login_cookie, $user-&gt;id);
</del><ins>+        $dbh-&gt;do(&quot;DELETE FROM logincookies WHERE &quot; .
+                 $dbh-&gt;sql_in('cookie', \@login_cookies) .
+                 &quot; AND userid = ?&quot;,
+                 undef, $user-&gt;id);
</ins><span class="cx">     } else {
</span><span class="cx">         die(&quot;Invalid type $type supplied to logout()&quot;);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthVerifyDBpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/DB.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/DB.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/DB.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Christian Reis &lt;kiko@async.com.br&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Verify::DB;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Verify);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Auth::Verify);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -74,10 +56,19 @@
</span><span class="cx">                };
</span><span class="cx">     } 
</span><span class="cx"> 
</span><del>-    # Force the user to type a longer password if it's too short.
-    if (length($password) &lt; USER_PASSWORD_MIN_LENGTH) {
-        return { failure =&gt; AUTH_ERROR, user_error =&gt; 'password_current_too_short',
-                 details =&gt; { locked_user =&gt; $user } };
</del><ins>+    # Force the user to change their password if it does not meet the current
+    # criteria. This should usually only happen if the criteria has changed.
+    if (Bugzilla-&gt;usage_mode == USAGE_MODE_BROWSER &amp;&amp;
+        Bugzilla-&gt;params-&gt;{password_check_on_login})
+    {
+        my $check = validate_password_check($password);
+        if ($check) {
+            return {
+                failure =&gt; AUTH_ERROR,
+                user_error =&gt; $check,
+                details =&gt; { locked_user =&gt; $user }
+            }
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # The user's credentials are okay, so delete any outstanding
</span><span class="lines">@@ -85,12 +76,25 @@
</span><span class="cx">     Bugzilla::Token::DeletePasswordTokens($user-&gt;id, &quot;user_logged_in&quot;);
</span><span class="cx">     $user-&gt;clear_login_failures();
</span><span class="cx"> 
</span><ins>+    my $update_password = 0;
+
</ins><span class="cx">     # If their old password was using crypt() or some different hash
</span><span class="cx">     # than we're using now, convert the stored password to using
</span><span class="cx">     # whatever hashing system we're using now.
</span><span class="cx">     my $current_algorithm = PASSWORD_DIGEST_ALGORITHM;
</span><del>-    if ($real_password_crypted !~ /{\Q$current_algorithm\E}$/) {
-        $user-&gt;set_password($password);
</del><ins>+    $update_password = 1 if ($real_password_crypted !~ /{\Q$current_algorithm\E}$/);
+
+    # If their old password was using a different length salt than what
+    # we're using now, update the password to use the new salt length.
+    if ($real_password_crypted =~ /^([^,]+),/) {
+        $update_password = 1 if (length($1) != PASSWORD_SALT_LENGTH);
+    }
+
+    # If needed, update the user's password.
+    if ($update_password) {
+        # We can't call $user-&gt;set_password because we don't want the password
+        # complexity rules to apply here.
+        $user-&gt;{cryptpassword} = bz_crypt($password);
</ins><span class="cx">         $user-&gt;update();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -103,6 +107,7 @@
</span><span class="cx">     my $cryptpassword = bz_crypt($password);
</span><span class="cx">     $dbh-&gt;do(&quot;UPDATE profiles SET cryptpassword = ? WHERE userid = ?&quot;,
</span><span class="cx">              undef, $cryptpassword, $user-&gt;id);
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'profiles', id =&gt; $user-&gt;id });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthVerifyLDAPpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/LDAP.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/LDAP.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/LDAP.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Christian Reis &lt;kiko@async.com.br&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Verify::LDAP;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use base qw(Bugzilla::Auth::Verify);
</span><span class="cx"> use fields qw(
</span><span class="cx">     ldap
</span><span class="lines">@@ -172,7 +153,7 @@
</span><span class="cx"> # We can't just do this in new(), because we're not allowed to throw any
</span><span class="cx"> # error from anywhere under Bugzilla::Auth::new -- otherwise we
</span><span class="cx"> # could create a situation where the admin couldn't get to editparams
</span><del>-# to fix his mistake. (Because Bugzilla-&gt;login always calls 
</del><ins>+# to fix their mistake. (Because Bugzilla-&gt;login always calls
</ins><span class="cx"> # Bugzilla::Auth-&gt;new, and almost every page calls Bugzilla-&gt;login.)
</span><span class="cx"> sub ldap {
</span><span class="cx">     my ($self) = @_;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthVerifyRADIUSpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/RADIUS.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/RADIUS.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/RADIUS.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Marc Schumann.
-# Portions created by Marc Schumann are Copyright (c) 2007 Marc Schumann.
-# All rights reserved.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Verify::RADIUS;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Verify);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Auth::Verify);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthVerifyStackpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/Stack.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/Stack.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify/Stack.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Verify::Stack;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use base qw(Bugzilla::Auth::Verify);
</span><span class="cx"> use fields qw(
</span><span class="cx">     _stack
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthVerifypm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth/Verify.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth::Verify;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use fields qw();
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -97,6 +91,7 @@
</span><span class="cx">         if ($extern_id &amp;&amp; $username_user_id &amp;&amp; !$extern_user_id) {
</span><span class="cx">             $dbh-&gt;do('UPDATE profiles SET extern_id = ? WHERE userid = ?',
</span><span class="cx">                      undef, $extern_id, $username_user_id);
</span><ins>+            Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'profiles', id =&gt; $username_user_id });
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         # Finally, at this point, one of these will give us a valid user id.
</span><span class="lines">@@ -111,13 +106,15 @@
</span><span class="cx"> 
</span><span class="cx">     my $user = new Bugzilla::User($user_id);
</span><span class="cx"> 
</span><del>-    # Now that we have a valid User, we need to see if any data has to be
-    # updated.
</del><ins>+    # Now that we have a valid User, we need to see if any data has to be updated.
+    my $changed = 0;
+
</ins><span class="cx">     if ($username &amp;&amp; lc($user-&gt;login) ne lc($username)) {
</span><span class="cx">         validate_email_syntax($username)
</span><span class="cx">           || return { failure =&gt; AUTH_ERROR, error =&gt; 'auth_invalid_email',
</span><span class="cx">                       details =&gt; {addr =&gt; $username} };
</span><span class="cx">         $user-&gt;set_login($username);
</span><ins>+        $changed = 1;
</ins><span class="cx">     }
</span><span class="cx">     if ($real_name &amp;&amp; $user-&gt;name ne $real_name) {
</span><span class="cx">         # $real_name is more than likely tainted, but we only use it
</span><span class="lines">@@ -124,8 +121,9 @@
</span><span class="cx">         # in a placeholder and we never use it after this.
</span><span class="cx">         trick_taint($real_name);
</span><span class="cx">         $user-&gt;set_name($real_name);
</span><ins>+        $changed = 1;
</ins><span class="cx">     }
</span><del>-    $user-&gt;update();
</del><ins>+    $user-&gt;update() if $changed;
</ins><span class="cx"> 
</span><span class="cx">     return { user =&gt; $user };
</span><span class="cx"> }
</span><span class="lines">@@ -242,3 +240,11 @@
</span><span class="cx"> The default value is C&lt;false&gt;.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item can_change_password
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaAuthpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Auth.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Auth.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Auth.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Auth;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use fields qw(
</span><span class="cx">     _info_getter
</span><span class="cx">     _verifier
</span><span class="lines">@@ -38,6 +25,7 @@
</span><span class="cx"> use Bugzilla::Auth::Login::Stack;
</span><span class="cx"> use Bugzilla::Auth::Verify::Stack;
</span><span class="cx"> use Bugzilla::Auth::Persist::Cookie;
</span><ins>+use Socket;
</ins><span class="cx"> 
</span><span class="cx"> sub new {
</span><span class="cx">     my ($class, $params) = @_;
</span><span class="lines">@@ -44,7 +32,7 @@
</span><span class="cx">     my $self = fields::new($class);
</span><span class="cx"> 
</span><span class="cx">     $params            ||= {};
</span><del>-    $params-&gt;{Login}   ||= Bugzilla-&gt;params-&gt;{'user_info_class'} . ',Cookie';
</del><ins>+    $params-&gt;{Login}   ||= Bugzilla-&gt;params-&gt;{'user_info_class'} . ',Cookie,APIKey';
</ins><span class="cx">     $params-&gt;{Verify}  ||= Bugzilla-&gt;params-&gt;{'user_verify_class'};
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;{_info_getter} = new Bugzilla::Auth::Login::Stack($params-&gt;{Login});
</span><span class="lines">@@ -58,7 +46,6 @@
</span><span class="cx"> 
</span><span class="cx"> sub login {
</span><span class="cx">     my ($self, $type) = @_;
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx"> 
</span><span class="cx">     # Get login info from the cookie, form, environment variables, etc.
</span><span class="cx">     my $login_info = $self-&gt;{_info_getter}-&gt;get_login_info();
</span><span class="lines">@@ -67,7 +54,7 @@
</span><span class="cx">         return $self-&gt;_handle_login_result($login_info, $type);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Now verify his username and password against the DB, LDAP, etc.
</del><ins>+    # Now verify their username and password against the DB, LDAP, etc.
</ins><span class="cx">     if ($self-&gt;{_info_getter}-&gt;{successful}-&gt;requires_verification) {
</span><span class="cx">         $login_info = $self-&gt;{_verifier}-&gt;check_credentials($login_info);
</span><span class="cx">         if ($login_info-&gt;{failure}) {
</span><span class="lines">@@ -123,6 +110,15 @@
</span><span class="cx">     return $getter-&gt;can_logout;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub login_token {
+    my ($self) = @_;
+    my $getter = $self-&gt;{_info_getter}-&gt;{successful};
+    if ($getter &amp;&amp; $getter-&gt;isa('Bugzilla::Auth::Login::Cookie')) {
+        return $getter-&gt;login_token;
+    }
+    return undef;
+}
+
</ins><span class="cx"> sub user_can_create_account {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $verifier = $self-&gt;{_verifier}-&gt;{successful};
</span><span class="lines">@@ -158,7 +154,7 @@
</span><span class="cx">         if ($self-&gt;{_info_getter}-&gt;{successful}-&gt;requires_persistence
</span><span class="cx">             and !Bugzilla-&gt;request_cache-&gt;{auth_no_automatic_login}) 
</span><span class="cx">         {
</span><del>-            $self-&gt;{_persister}-&gt;persist_login($user);
</del><ins>+            $user-&gt;{_login_token} = $self-&gt;{_persister}-&gt;persist_login($user);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     elsif ($fail_code == AUTH_ERROR) {
</span><span class="lines">@@ -183,7 +179,7 @@
</span><span class="cx">     elsif ($fail_code == AUTH_LOGINFAILED or $fail_code == AUTH_NO_SUCH_USER) {
</span><span class="cx">         my $remaining_attempts = MAX_LOGIN_ATTEMPTS 
</span><span class="cx">                                  - ($result-&gt;{failure_count} || 0);
</span><del>-        ThrowUserError(&quot;invalid_username_or_password&quot;, 
</del><ins>+        ThrowUserError(&quot;invalid_login_or_password&quot;, 
</ins><span class="cx">                        { remaining =&gt; $remaining_attempts });
</span><span class="cx">     }
</span><span class="cx">     # The account may be disabled
</span><span class="lines">@@ -215,10 +211,18 @@
</span><span class="cx">             my $default_settings = Bugzilla::User::Setting::get_defaults();
</span><span class="cx">             my $template = Bugzilla-&gt;template_inner(
</span><span class="cx">                                $default_settings-&gt;{lang}-&gt;{default_value});
</span><ins>+            my $address = $attempts-&gt;[0]-&gt;{ip_addr};
+            # Note: inet_aton will only resolve IPv4 addresses.
+            # For IPv6 we'll need to use inet_pton which requires Perl 5.12.
+            my $n = inet_aton($address);
+            if ($n) {
+                $address = gethostbyaddr($n, AF_INET) . &quot; ($address)&quot;
+            }
</ins><span class="cx">             my $vars = {
</span><span class="cx">                 locked_user =&gt; $user,
</span><span class="cx">                 attempts    =&gt; $attempts,
</span><span class="cx">                 unlock_at   =&gt; $unlock_at,
</span><ins>+                address     =&gt; $address,
</ins><span class="cx">             };
</span><span class="cx">             my $message;
</span><span class="cx">             $template-&gt;process('email/lockout.txt.tmpl', $vars, \$message)
</span><span class="lines">@@ -294,7 +298,7 @@
</span><span class="cx"> The hashref may also contain a C&lt;failure_count&gt; element, which specifies
</span><span class="cx"> how many times the account has failed to log in within the lockout
</span><span class="cx"> period (see L&lt;/AUTH_LOCKOUT&gt;). This is used to warn the user when
</span><del>-he is getting close to being locked out.
</del><ins>+they are getting close to being locked out.
</ins><span class="cx"> 
</span><span class="cx"> =head2 C&lt;AUTH_NO_SUCH_USER&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -416,6 +420,14 @@
</span><span class="cx"> Returns:     C&lt;true&gt; if users can change their own email address,
</span><span class="cx">              C&lt;false&gt; otherwise.
</span><span class="cx"> 
</span><ins>+=item C&lt;login_token&gt;
+
+Description: If a login token was used instead of a cookie then this
+             will return the current login token data such as user id
+             and the token itself.
+Params:      None
+Returns:     A hash containing C&lt;login_token&gt; and C&lt;user_id&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head1 STRUCTURE
</span><span class="lines">@@ -531,5 +543,3 @@
</span><span class="cx"> Note that C&lt;Bugzilla::Auth::login&gt; may modify this object at various points.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><del>-
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Bug.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Bug.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Bug.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dawn Endico    &lt;endico@mozilla.org&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Chris Yeh      &lt;cyeh@bluemartini.com&gt;
-#                 Bradley Baetz  &lt;bbaetz@acm.org&gt;
-#                 Dave Miller    &lt;justdave@bugzilla.org&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Elliotte Martin &lt;elliotte_martin@yahoo.com&gt;
-#                 Christian Legnitto &lt;clegnitto@mozilla.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Bug;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Attachment;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -50,15 +29,14 @@
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Comment;
</span><span class="cx"> use Bugzilla::BugUrl;
</span><ins>+use Bugzilla::BugUserLastVisit;
</ins><span class="cx"> 
</span><span class="cx"> use List::MoreUtils qw(firstidx uniq part);
</span><span class="cx"> use List::Util qw(min max first);
</span><span class="cx"> use Storable qw(dclone);
</span><del>-use URI;
-use URI::QueryParam;
</del><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object Exporter);
</del><ins>+use parent qw(Bugzilla::Object Exporter);
</ins><span class="cx"> @Bugzilla::Bug::EXPORT = qw(
</span><span class="cx">     bug_alias_to_id
</span><span class="cx">     LogActivityEntry
</span><span class="lines">@@ -71,11 +49,13 @@
</span><span class="cx"> 
</span><span class="cx"> use constant DB_TABLE   =&gt; 'bugs';
</span><span class="cx"> use constant ID_FIELD   =&gt; 'bug_id';
</span><del>-use constant NAME_FIELD =&gt; 'alias';
</del><ins>+use constant NAME_FIELD =&gt; 'bug_id';
</ins><span class="cx"> use constant LIST_ORDER =&gt; ID_FIELD;
</span><span class="cx"> # Bugs have their own auditing table, bugs_activity.
</span><span class="cx"> use constant AUDIT_CREATES =&gt; 0;
</span><span class="cx"> use constant AUDIT_UPDATES =&gt; 0;
</span><ins>+# This will be enabled later
+use constant USE_MEMCACHED =&gt; 0;
</ins><span class="cx"> 
</span><span class="cx"> # This is a sub because it needs to call other subroutines.
</span><span class="cx"> sub DB_COLUMNS {
</span><span class="lines">@@ -85,7 +65,6 @@
</span><span class="cx">     my @custom_names = map {$_-&gt;name} @custom;
</span><span class="cx"> 
</span><span class="cx">     my @columns = (qw(
</span><del>-        alias
</del><span class="cx">         assigned_to
</span><span class="cx">         bug_file_loc
</span><span class="cx">         bug_id
</span><span class="lines">@@ -93,6 +72,7 @@
</span><span class="cx">         bug_status
</span><span class="cx">         cclist_accessible
</span><span class="cx">         component_id
</span><ins>+        creation_ts
</ins><span class="cx">         delta_ts
</span><span class="cx">         estimated_time
</span><span class="cx">         everconfirmed
</span><span class="lines">@@ -111,7 +91,6 @@
</span><span class="cx">         version
</span><span class="cx">     ),
</span><span class="cx">     'reporter    AS reporter_id',
</span><del>-    $dbh-&gt;sql_date_format('creation_ts', '%Y.%m.%d %H:%i') . ' AS creation_ts',
</del><span class="cx">     $dbh-&gt;sql_date_format('deadline', '%Y-%m-%d') . ' AS deadline',
</span><span class="cx">     @custom_names);
</span><span class="cx">     
</span><span class="lines">@@ -125,6 +104,7 @@
</span><span class="cx">     my $validators = {
</span><span class="cx">         alias          =&gt; \&amp;_check_alias,
</span><span class="cx">         assigned_to    =&gt; \&amp;_check_assigned_to,
</span><ins>+        blocked        =&gt; \&amp;_check_dependencies,
</ins><span class="cx">         bug_file_loc   =&gt; \&amp;_check_bug_file_loc,
</span><span class="cx">         bug_severity   =&gt; \&amp;_check_select_field,
</span><span class="cx">         bug_status     =&gt; \&amp;_check_bug_status,
</span><span class="lines">@@ -133,6 +113,7 @@
</span><span class="cx">         component      =&gt; \&amp;_check_component,
</span><span class="cx">         creation_ts    =&gt; \&amp;_check_creation_ts,
</span><span class="cx">         deadline       =&gt; \&amp;_check_deadline,
</span><ins>+        dependson      =&gt; \&amp;_check_dependencies,
</ins><span class="cx">         dup_id         =&gt; \&amp;_check_dup_id,
</span><span class="cx">         estimated_time =&gt; \&amp;_check_time_field,
</span><span class="cx">         everconfirmed  =&gt; \&amp;Bugzilla::Object::check_boolean,
</span><span class="lines">@@ -166,6 +147,9 @@
</span><span class="cx">         elsif ($field-&gt;type == FIELD_TYPE_DATETIME) {
</span><span class="cx">             $validator = \&amp;_check_datetime_field;
</span><span class="cx">         }
</span><ins>+        elsif ($field-&gt;type == FIELD_TYPE_DATE) {
+            $validator = \&amp;_check_date_field;
+        }
</ins><span class="cx">         elsif ($field-&gt;type == FIELD_TYPE_FREETEXT) {
</span><span class="cx">             $validator = \&amp;_check_freetext_field;
</span><span class="cx">         }
</span><span class="lines">@@ -172,6 +156,12 @@
</span><span class="cx">         elsif ($field-&gt;type == FIELD_TYPE_BUG_ID) {
</span><span class="cx">             $validator = \&amp;_check_bugid_field;
</span><span class="cx">         }
</span><ins>+        elsif ($field-&gt;type == FIELD_TYPE_TEXTAREA) {
+            $validator = \&amp;_check_textarea_field;
+        }
+        elsif ($field-&gt;type == FIELD_TYPE_INTEGER) {
+            $validator = \&amp;_check_integer_field;
+        }
</ins><span class="cx">         else {
</span><span class="cx">             $validator = \&amp;_check_default_field;
</span><span class="cx">         }
</span><span class="lines">@@ -188,14 +178,16 @@
</span><span class="cx"> 
</span><span class="cx">     my %deps = (
</span><span class="cx">         assigned_to      =&gt; ['component'],
</span><ins>+        blocked          =&gt; ['product'],
</ins><span class="cx">         bug_status       =&gt; ['product', 'comment', 'target_milestone'],
</span><span class="cx">         cc               =&gt; ['component'],
</span><span class="cx">         comment          =&gt; ['creation_ts'],
</span><span class="cx">         component        =&gt; ['product'],
</span><ins>+        dependson        =&gt; ['product'],
</ins><span class="cx">         dup_id           =&gt; ['bug_status', 'resolution'],
</span><span class="cx">         groups           =&gt; ['product'],
</span><span class="cx">         keywords         =&gt; ['product'],
</span><del>-        resolution       =&gt; ['bug_status'],
</del><ins>+        resolution       =&gt; ['bug_status', 'dependson'],
</ins><span class="cx">         qa_contact       =&gt; ['component'],
</span><span class="cx">         target_milestone =&gt; ['product'],
</span><span class="cx">         version          =&gt; ['product'],
</span><span class="lines">@@ -215,7 +207,6 @@
</span><span class="cx">                       Bugzilla-&gt;active_custom_fields;
</span><span class="cx">     my @custom_names = map {$_-&gt;name} @custom;
</span><span class="cx">     my @columns = qw(
</span><del>-        alias
</del><span class="cx">         assigned_to
</span><span class="cx">         bug_file_loc
</span><span class="cx">         bug_severity
</span><span class="lines">@@ -248,7 +239,9 @@
</span><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> sub DATE_COLUMNS {
</span><del>-    my @fields = @{ Bugzilla-&gt;fields({ type =&gt; FIELD_TYPE_DATETIME }) };
</del><ins>+    my @fields = (@{ Bugzilla-&gt;fields({ type =&gt; [FIELD_TYPE_DATETIME,
+                                                 FIELD_TYPE_DATE] })
+                   });
</ins><span class="cx">     return map { $_-&gt;name } @fields;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -262,7 +255,6 @@
</span><span class="cx"> # use.)
</span><span class="cx"> use constant FIELD_MAP =&gt; {
</span><span class="cx">     blocks           =&gt; 'blocked',
</span><del>-    cc_accessible    =&gt; 'cclist_accessible',
</del><span class="cx">     commentprivacy   =&gt; 'comment_is_private',
</span><span class="cx">     creation_time    =&gt; 'creation_ts',
</span><span class="cx">     creator          =&gt; 'reporter',
</span><span class="lines">@@ -280,10 +272,6 @@
</span><span class="cx">     summary          =&gt; 'short_desc',
</span><span class="cx">     url              =&gt; 'bug_file_loc',
</span><span class="cx">     whiteboard       =&gt; 'status_whiteboard',
</span><del>-
-    # These are special values for the WebService Bug.search method.
-    limit            =&gt; 'LIMIT',
-    offset           =&gt; 'OFFSET',
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> use constant REQUIRED_FIELD_MAP =&gt; {
</span><span class="lines">@@ -311,35 +299,37 @@
</span><span class="cx"> 
</span><span class="cx"> #####################################################################
</span><span class="cx"> 
</span><del>-# This and &quot;new&quot; catch every single way of creating a bug, so that we
-# can call _create_cf_accessors.
-sub _do_list_select {
-    my $invocant = shift;
-    $invocant-&gt;_create_cf_accessors();
-    return $invocant-&gt;SUPER::_do_list_select(@_);
-}
-
</del><span class="cx"> sub new {
</span><span class="cx">     my $invocant = shift;
</span><span class="cx">     my $class = ref($invocant) || $invocant;
</span><span class="cx">     my $param = shift;
</span><span class="cx"> 
</span><del>-    $class-&gt;_create_cf_accessors();
-
</del><span class="cx">     # Remove leading &quot;#&quot; mark if we've just been passed an id.
</span><del>-    if (!ref $param &amp;&amp; $param =~ /^#(\d+)$/) {
</del><ins>+    if (!ref $param &amp;&amp; $param =~ /^#([0-9]+)$/) {
</ins><span class="cx">         $param = $1;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # If we get something that looks like a word (not a number),
</span><span class="cx">     # make it the &quot;name&quot; param.
</span><del>-    if (!defined $param || (!ref($param) &amp;&amp; $param !~ /^\d+$/)) {
-        # But only if aliases are enabled.
-        if (Bugzilla-&gt;params-&gt;{'usebugaliases'} &amp;&amp; $param) {
-            $param = { name =&gt; $param };
</del><ins>+    if (!defined $param
+        || (!ref($param) &amp;&amp; $param !~ /^[0-9]+$/)
+        || (ref($param) &amp;&amp; $param-&gt;{id} !~ /^[0-9]+$/))
+    {
+        if ($param) {
+            my $alias = ref($param) ? $param-&gt;{id} : $param;
+            my $bug_id = bug_alias_to_id($alias);
+            if (! $bug_id) {
+                my $error_self = {};
+                bless $error_self, $class;
+                $error_self-&gt;{'bug_id'} = $alias;
+                $error_self-&gt;{'error'}  = 'InvalidBugId';
+                return $error_self;
+            }
+            $param = { id =&gt; $bug_id,
+                       cache =&gt; ref($param) ? $param-&gt;{cache} : 0 };
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><del>-            # Aliases are off, and we got something that's not a number.
</del><ins>+            # We got something that's not a number.
</ins><span class="cx">             my $error_self = {};
</span><span class="cx">             bless $error_self, $class;
</span><span class="cx">             $error_self-&gt;{'bug_id'} = $param;
</span><span class="lines">@@ -370,20 +360,35 @@
</span><span class="cx">     return $self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub initialize {
+    $_[0]-&gt;_create_cf_accessors();
+}
+
+sub object_cache_key {
+    my $class = shift;
+    my $key = $class-&gt;SUPER::object_cache_key(@_)
+      || return;
+    return $key . ',' . Bugzilla-&gt;user-&gt;id;
+}
+
</ins><span class="cx"> sub check {
</span><span class="cx">     my $class = shift;
</span><del>-    my ($id, $field) = @_;
</del><ins>+    my ($param, $field) = @_;
</ins><span class="cx"> 
</span><del>-    ThrowUserError('improper_bug_id_field_value', { field =&gt; $field }) unless defined $id;
-
</del><span class="cx">     # Bugzilla::Bug throws lots of special errors, so we don't call
</span><span class="cx">     # SUPER::check, we just call our new and do our own checks.
</span><del>-    my $self = $class-&gt;new(trim($id));
-    # For error messages, use the id that was returned by new(), because
-    # it's cleaned up.
-    $id = $self-&gt;id;
</del><ins>+    my $id = ref($param)
+        ? ($param-&gt;{id} = trim($param-&gt;{id}))
+        : ($param = trim($param));
+    ThrowUserError('improper_bug_id_field_value', { field =&gt; $field }) unless defined $id;
</ins><span class="cx"> 
</span><ins>+    my $self = $class-&gt;new($param);
+
</ins><span class="cx">     if ($self-&gt;{error}) {
</span><ins>+        # For error messages, use the id that was returned by new(), because
+        # it's cleaned up.
+        $id = $self-&gt;id;
+
</ins><span class="cx">         if ($self-&gt;{error} eq 'NotFound') {
</span><span class="cx">              ThrowUserError(&quot;bug_id_does_not_exist&quot;, { bug_id =&gt; $id });
</span><span class="cx">         }
</span><span class="lines">@@ -395,22 +400,35 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     unless ($field &amp;&amp; $field =~ /^(dependson|blocked|dup_id)$/) {
</span><del>-        $self-&gt;check_is_visible;
</del><ins>+        $self-&gt;check_is_visible($id);
</ins><span class="cx">     }
</span><span class="cx">     return $self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_for_edit {
+    my $class = shift;
+    my $bug = $class-&gt;check(@_);
+
+    Bugzilla-&gt;user-&gt;can_edit_product($bug-&gt;product_id)
+        || ThrowUserError(&quot;product_edit_denied&quot;, { product =&gt; $bug-&gt;product });
+
+    return $bug;
+}
+
</ins><span class="cx"> sub check_is_visible {
</span><del>-    my $self = shift;
</del><ins>+    my ($self, $input_id) = @_;
+    $input_id ||= $self-&gt;id;
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><span class="cx">     if (!$user-&gt;can_see_bug($self-&gt;id)) {
</span><span class="cx">         # The error the user sees depends on whether or not they are
</span><span class="cx">         # logged in (i.e. $user-&gt;id contains the user's positive integer ID).
</span><ins>+        # If we are validating an alias, then use it in the error message
+        # instead of its corresponding bug ID, to not disclose it.
</ins><span class="cx">         if ($user-&gt;id) {
</span><del>-            ThrowUserError(&quot;bug_access_denied&quot;, { bug_id =&gt; $self-&gt;id });
</del><ins>+            ThrowUserError(&quot;bug_access_denied&quot;, { bug_id =&gt; $input_id });
</ins><span class="cx">         } else {
</span><del>-            ThrowUserError(&quot;bug_access_query&quot;, { bug_id =&gt; $self-&gt;id });
</del><ins>+            ThrowUserError(&quot;bug_access_query&quot;, { bug_id =&gt; $input_id });
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -487,14 +505,72 @@
</span><span class="cx">     # to the more complex method.
</span><span class="cx">     my @all_dep_ids;
</span><span class="cx">     foreach my $bug (@$bugs) {
</span><del>-        push(@all_dep_ids, @{ $bug-&gt;blocked }, @{ $bug-&gt;dependson });
</del><ins>+        push @all_dep_ids, @{ $bug-&gt;blocked }, @{ $bug-&gt;dependson };
+        push @all_dep_ids, @{ $bug-&gt;duplicate_ids };
+        push @all_dep_ids, @{ $bug-&gt;_preload_referenced_bugs };
</ins><span class="cx">     }
</span><span class="cx">     @all_dep_ids = uniq @all_dep_ids;
</span><span class="cx">     # If we don't do this, can_see_bug will do one call per bug in
</span><del>-    # the dependency lists, during get_bug_link in Bugzilla::Template.
</del><ins>+    # the dependency and duplicate lists, in Bugzilla::Template::get_bug_link.
</ins><span class="cx">     $user-&gt;visible_bugs(\@all_dep_ids);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# Helps load up bugs referenced in comments by retrieving them with a single
+# query from the database and injecting bug objects into the object-cache.
+sub _preload_referenced_bugs {
+    my $self = shift;
+
+    # inject current duplicates into the object-cache first
+    foreach my $bug (@{ $self-&gt;duplicates }) {
+        $bug-&gt;object_cache_set() unless Bugzilla::Bug-&gt;object_cache_get($bug-&gt;id);
+    }
+
+    # preload bugs from comments
+    my $referenced_bug_ids = _extract_bug_ids($self-&gt;comments);
+    my @ref_bug_ids = grep { !Bugzilla::Bug-&gt;object_cache_get($_) } @$referenced_bug_ids;
+
+    # inject into object-cache
+    my $referenced_bugs = Bugzilla::Bug-&gt;new_from_list(\@ref_bug_ids);
+    $_-&gt;object_cache_set() foreach @$referenced_bugs;
+
+    return $referenced_bug_ids;
+}
+
+# Extract bug IDs mentioned in comments. This is much faster than calling quoteUrls().
+sub _extract_bug_ids {
+    my $comments = shift;
+    my @bug_ids;
+
+    my $params = Bugzilla-&gt;params;
+    my @urlbases = ($params-&gt;{'urlbase'});
+    push(@urlbases, $params-&gt;{'sslbase'}) if $params-&gt;{'sslbase'};
+    my $urlbase_re = '(?:' . join('|', map { qr/$_/ } @urlbases) . ')';
+    my $bug_word = template_var('terms')-&gt;{bug};
+    my $bugs_word = template_var('terms')-&gt;{bugs};
+
+    foreach my $comment (@$comments) {
+        if ($comment-&gt;type == CMT_HAS_DUPE || $comment-&gt;type == CMT_DUPE_OF) {
+            push @bug_ids, $comment-&gt;extra_data;
+            next;
+        }
+        my $s = $comment-&gt;already_wrapped ? qr/\s/ : qr/\h/;
+        my $text = $comment-&gt;body;
+        # Full bug links
+        push @bug_ids, $text =~ /\b$urlbase_re\Qshow_bug.cgi?id=\E([0-9]+)(?:\#c[0-9]+)?/g;
+        # bug X
+        my $bug_re = qr/\Q$bug_word\E$s*\#?$s*([0-9]+)/i;
+        push @bug_ids, $text =~ /\b$bug_re/g;
+        # bugs X, Y, Z
+        my $bugs_re = qr/\Q$bugs_word\E$s*\#?$s*([0-9]+)(?:$s*,$s*\#?$s*([0-9]+))+/i;
+        push @bug_ids, $text =~ /\b$bugs_re/g;
+        # Old duplicate markers
+        push @bug_ids, $text =~ /(?&lt;=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ )([0-9]+)(?=\ \*\*\*\Z)/;
+    }
+    # Make sure to filter invalid bug IDs.
+    @bug_ids = grep { $_ &lt; MAX_INT_32 } @bug_ids;
+    return [uniq @bug_ids];
+}
+
</ins><span class="cx"> sub possible_duplicates {
</span><span class="cx">     my ($class, $params) = @_;
</span><span class="cx">     my $short_desc = $params-&gt;{summary};
</span><span class="lines">@@ -512,8 +588,10 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx">     my @words = split(/[\b\s]+/, $short_desc || '');
</span><del>-    # Exclude punctuation from the array.
-    @words = map { /(\w+)/; $1 } @words;
</del><ins>+    # Remove leading/trailing punctuation from words
+    foreach my $word (@words) {
+        $word =~ s/(?:^\W+|\W+$)//g;
+    }
</ins><span class="cx">     # And make sure that each word is longer than 2 characters.
</span><span class="cx">     @words = grep { defined $_ and length($_) &gt; 2 } @words;
</span><span class="cx"> 
</span><span class="lines">@@ -594,8 +672,7 @@
</span><span class="cx"> # C&lt;rep_platform&gt; - B&lt;Required&gt; The platform the bug was found against.
</span><span class="cx"> # C&lt;version&gt;      - B&lt;Required&gt; The version of the product the bug was found in.
</span><span class="cx"> #
</span><del>-# C&lt;alias&gt;        - An alias for this bug. Will be ignored if C&lt;usebugaliases&gt;
-#                   is off.
</del><ins>+# C&lt;alias&gt;        - An alias for this bug.
</ins><span class="cx"> # C&lt;target_milestone&gt; - When this bug is expected to be fixed.
</span><span class="cx"> # C&lt;status_whiteboard&gt; - A string.
</span><span class="cx"> # C&lt;bug_status&gt;   - The initial status of the bug, a string.
</span><span class="lines">@@ -634,6 +711,7 @@
</span><span class="cx"> 
</span><span class="cx">     # These are not a fields in the bugs table, so we don't pass them to
</span><span class="cx">     # insert_create_data.
</span><ins>+    my $bug_aliases      = delete $params-&gt;{alias};
</ins><span class="cx">     my $cc_ids           = delete $params-&gt;{cc};
</span><span class="cx">     my $groups           = delete $params-&gt;{groups};
</span><span class="cx">     my $depends_on       = delete $params-&gt;{dependson};
</span><span class="lines">@@ -640,6 +718,7 @@
</span><span class="cx">     my $blocked          = delete $params-&gt;{blocked};
</span><span class="cx">     my $keywords         = delete $params-&gt;{keywords};
</span><span class="cx">     my $creation_comment = delete $params-&gt;{comment};
</span><ins>+    my $see_also         = delete $params-&gt;{see_also};
</ins><span class="cx"> 
</span><span class="cx">     # We don't want the bug to appear in the system until it's correctly
</span><span class="cx">     # protected by groups.
</span><span class="lines">@@ -703,6 +782,25 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Insert any see_also values
+    if ($see_also) {
+        my $see_also_array = $see_also;
+        if (!ref $see_also_array) {
+            $see_also = trim($see_also);
+            $see_also_array = [ split(/[\s,]+/, $see_also) ];
+        }
+        foreach my $value (@$see_also_array) {
+            $bug-&gt;add_see_also($value);
+        }
+        foreach my $see_also (@{ $bug-&gt;see_also }) {
+            $see_also-&gt;insert_create_data($see_also);
+        }
+        foreach my $ref_bug (@{ $bug-&gt;{_update_ref_bugs} || [] }) {
+            $ref_bug-&gt;update();
+        }
+        delete $bug-&gt;{_update_ref_bugs};
+    }
+
</ins><span class="cx">     # Comment #0 handling...
</span><span class="cx"> 
</span><span class="cx">     # We now have a bug id so we can fill this out
</span><span class="lines">@@ -712,6 +810,13 @@
</span><span class="cx">     # but sometimes it's blank.
</span><span class="cx">     Bugzilla::Comment-&gt;insert_create_data($creation_comment);
</span><span class="cx"> 
</span><ins>+    # Set up aliases
+    my $sth_aliases = $dbh-&gt;prepare('INSERT INTO bugs_aliases (alias, bug_id) VALUES (?, ?)');
+    foreach my $alias (@$bug_aliases) {
+        trick_taint($alias);
+        $sth_aliases-&gt;execute($alias, $bug-&gt;bug_id);
+    }
+
</ins><span class="cx">     Bugzilla::Hook::process('bug_end_of_create', { bug =&gt; $bug,
</span><span class="cx">                                                    timestamp =&gt; $timestamp,
</span><span class="cx">                                                  });
</span><span class="lines">@@ -721,7 +826,7 @@
</span><span class="cx">     # Because MySQL doesn't support transactions on the fulltext table,
</span><span class="cx">     # we do this after we've committed the transaction. That way we're
</span><span class="cx">     # sure we're inserting a good Bug ID.
</span><del>-    $bug-&gt;_sync_fulltext('new bug');
</del><ins>+    $bug-&gt;_sync_fulltext( new_bug =&gt; 1 );
</ins><span class="cx"> 
</span><span class="cx">     return $bug;
</span><span class="cx"> }
</span><span class="lines">@@ -757,12 +862,7 @@
</span><span class="cx">     $class-&gt;_check_strict_isolation($params-&gt;{cc}, $params-&gt;{assigned_to},
</span><span class="cx">                                     $params-&gt;{qa_contact}, $product);
</span><span class="cx"> 
</span><del>-    ($params-&gt;{dependson}, $params-&gt;{blocked}) = 
-        $class-&gt;_check_dependencies($params-&gt;{dependson}, $params-&gt;{blocked},
-                                    $product);
-
-    # You can't set these fields on bug creation (or sometimes ever).
-    delete $params-&gt;{resolution};
</del><ins>+    # You can't set these fields.
</ins><span class="cx">     delete $params-&gt;{lastdiffed};
</span><span class="cx">     delete $params-&gt;{bug_id};
</span><span class="cx">     delete $params-&gt;{classification};
</span><span class="lines">@@ -770,13 +870,19 @@
</span><span class="cx">     Bugzilla::Hook::process('bug_end_of_create_validators',
</span><span class="cx">                             { params =&gt; $params });
</span><span class="cx"> 
</span><ins>+    # And this is not a valid DB field, it's just used as part of 
+    # _check_dependencies to avoid running it twice for both blocked 
+    # and dependson.
+    delete $params-&gt;{_dependencies_validated};
+
</ins><span class="cx">     return $params;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><ins>+    my $dbh  = Bugzilla-&gt;dbh;
+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx">     # XXX This is just a temporary hack until all updating happens
</span><span class="cx">     # inside this function.
</span><span class="cx">     my $delta_ts = shift || $dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</span><span class="lines">@@ -785,6 +891,10 @@
</span><span class="cx"> 
</span><span class="cx">     my ($changes, $old_bug) = $self-&gt;SUPER::update(@_);
</span><span class="cx"> 
</span><ins>+    Bugzilla::Hook::process('bug_start_of_update',
+        { timestamp =&gt; $delta_ts, bug =&gt; $self,
+           old_bug =&gt; $old_bug, changes =&gt; $changes });
+
</ins><span class="cx">     # Certain items in $changes have to be fixed so that they hold
</span><span class="cx">     # a name instead of an ID.
</span><span class="cx">     foreach my $field (qw(product_id component_id)) {
</span><span class="lines">@@ -826,7 +936,26 @@
</span><span class="cx">         my $added_names   = join(', ', (map {$_-&gt;login} @$added_users));
</span><span class="cx">         $changes-&gt;{cc} = [$removed_names, $added_names];
</span><span class="cx">     }
</span><del>-    
</del><ins>+
+    # Aliases
+    my $old_aliases = $old_bug-&gt;alias;
+    my $new_aliases = $self-&gt;alias;
+    my ($removed_aliases, $added_aliases) = diff_arrays($old_aliases, $new_aliases);
+
+    foreach my $alias (@$removed_aliases) {
+        $dbh-&gt;do('DELETE FROM bugs_aliases WHERE bug_id = ? AND alias = ?',
+                 undef, $self-&gt;id, $alias);
+    }
+    foreach my $alias (@$added_aliases) {
+        trick_taint($alias);
+        $dbh-&gt;do('INSERT INTO bugs_aliases (bug_id, alias) VALUES (?,?)',
+                 undef, $self-&gt;id, $alias);
+    }
+    # If any changes were found, record it in the activity log
+    if (scalar @$removed_aliases || scalar @$added_aliases) {
+        $changes-&gt;{alias} = [join(', ', @$removed_aliases), join(', ', @$added_aliases)];
+    }
+
</ins><span class="cx">     # Keywords
</span><span class="cx">     my @old_kw_ids = map { $_-&gt;id } @{$old_bug-&gt;keyword_objects};
</span><span class="cx">     my @new_kw_ids = map { $_-&gt;id } @{$self-&gt;keyword_objects};
</span><span class="lines">@@ -863,7 +992,7 @@
</span><span class="cx">             
</span><span class="cx">             # Add an activity entry for the other bug.
</span><span class="cx">             LogActivityEntry($removed_id, $other, $self-&gt;id, '',
</span><del>-                             Bugzilla-&gt;user-&gt;id, $delta_ts);
</del><ins>+                             $user-&gt;id, $delta_ts);
</ins><span class="cx">             # Update delta_ts on the other bug so that we trigger mid-airs.
</span><span class="cx">             $dbh-&gt;do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
</span><span class="cx">                      undef, $delta_ts, $removed_id);
</span><span class="lines">@@ -874,7 +1003,7 @@
</span><span class="cx">             
</span><span class="cx">             # Add an activity entry for the other bug.
</span><span class="cx">             LogActivityEntry($added_id, $other, '', $self-&gt;id,
</span><del>-                             Bugzilla-&gt;user-&gt;id, $delta_ts);
</del><ins>+                             $user-&gt;id, $delta_ts);
</ins><span class="cx">             # Update delta_ts on the other bug so that we trigger mid-airs.
</span><span class="cx">             $dbh-&gt;do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
</span><span class="cx">                      undef, $delta_ts, $added_id);
</span><span class="lines">@@ -916,7 +1045,7 @@
</span><span class="cx">         $comment = Bugzilla::Comment-&gt;insert_create_data($comment);
</span><span class="cx">         if ($comment-&gt;work_time) {
</span><span class="cx">             LogActivityEntry($self-&gt;id, &quot;work_time&quot;, &quot;&quot;, $comment-&gt;work_time,
</span><del>-                Bugzilla-&gt;user-&gt;id, $delta_ts);
</del><ins>+                             $user-&gt;id, $delta_ts);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -927,7 +1056,7 @@
</span><span class="cx">         my ($from, $to) 
</span><span class="cx">             = $comment-&gt;is_private ? (0, 1) : (1, 0);
</span><span class="cx">         LogActivityEntry($self-&gt;id, &quot;longdescs.isprivate&quot;, $from, $to, 
</span><del>-                         Bugzilla-&gt;user-&gt;id, $delta_ts, $comment-&gt;id);
</del><ins>+                         $user-&gt;id, $delta_ts, $comment-&gt;id);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Clear the cache of comments
</span><span class="lines">@@ -965,9 +1094,6 @@
</span><span class="cx">                                 join(', ', map { $_-&gt;name } @$added_see)];
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    $_-&gt;update foreach @{ $self-&gt;{_update_ref_bugs} || [] };
-    delete $self-&gt;{_update_ref_bugs};
-
</del><span class="cx">     # Flags
</span><span class="cx">     my ($removed, $added) = Bugzilla::Flag-&gt;update_flags($self, $old_bug, $delta_ts);
</span><span class="cx">     if ($removed || $added) {
</span><span class="lines">@@ -974,6 +1100,9 @@
</span><span class="cx">         $changes-&gt;{'flagtypes.name'} = [$removed, $added];
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    $_-&gt;update foreach @{ $self-&gt;{_update_ref_bugs} || [] };
+    delete $self-&gt;{_update_ref_bugs};
+
</ins><span class="cx">     # Log bugs_activity items
</span><span class="cx">     # XXX Eventually, when bugs_activity is able to track the dupe_id,
</span><span class="cx">     # this code should go below the duplicates-table-updating code below.
</span><span class="lines">@@ -981,8 +1110,8 @@
</span><span class="cx">         my $change = $changes-&gt;{$field};
</span><span class="cx">         my $from = defined $change-&gt;[0] ? $change-&gt;[0] : '';
</span><span class="cx">         my $to   = defined $change-&gt;[1] ? $change-&gt;[1] : '';
</span><del>-        LogActivityEntry($self-&gt;id, $field, $from, $to, Bugzilla-&gt;user-&gt;id,
-                         $delta_ts);
</del><ins>+        LogActivityEntry($self-&gt;id, $field, $from, $to,
+                         $user-&gt;id, $delta_ts);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Check if we have to update the duplicates table and the other bug.
</span><span class="lines">@@ -996,7 +1125,7 @@
</span><span class="cx">                 $update_dup-&gt;update();
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         $changes-&gt;{'dup_id'} = [$old_dup || undef, $cur_dup || undef];
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1013,6 +1142,37 @@
</span><span class="cx">         $self-&gt;{delta_ts} = $delta_ts;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Update last-visited
+    if ($user-&gt;is_involved_in_bug($self)) {
+        $self-&gt;update_user_last_visit($user, $delta_ts);
+    }
+
+    # If a user is no longer involved, remove their last visit entry
+    my $last_visits =
+      Bugzilla::BugUserLastVisit-&gt;match({ bug_id =&gt; $self-&gt;id });
+    foreach my $lv (@$last_visits) {
+        $lv-&gt;remove_from_db() unless $lv-&gt;user-&gt;is_involved_in_bug($self);
+    }
+
+    # Update bug ignore data if user wants to ignore mail for this bug
+    if (exists $self-&gt;{'bug_ignored'}) {
+        my $bug_ignored_changed;
+        if ($self-&gt;{'bug_ignored'} &amp;&amp; !$user-&gt;is_bug_ignored($self-&gt;id)) {
+            $dbh-&gt;do('INSERT INTO email_bug_ignore
+                      (user_id, bug_id) VALUES (?, ?)',
+                     undef, $user-&gt;id, $self-&gt;id);
+            $bug_ignored_changed = 1;
+
+        }
+        elsif (!$self-&gt;{'bug_ignored'} &amp;&amp; $user-&gt;is_bug_ignored($self-&gt;id)) {
+            $dbh-&gt;do('DELETE FROM email_bug_ignore
+                      WHERE user_id = ? AND bug_id = ?',
+                     undef, $user-&gt;id, $self-&gt;id);
+            $bug_ignored_changed = 1;
+        }
+        delete $user-&gt;{bugs_ignored} if $bug_ignored_changed;
+    }
+
</ins><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><span class="cx">     # The only problem with this here is that update() is often called
</span><span class="lines">@@ -1019,9 +1179,10 @@
</span><span class="cx">     # in the middle of a transaction, and if that transaction is rolled
</span><span class="cx">     # back, this change will *not* be rolled back. As we expect rollbacks
</span><span class="cx">     # to be extremely rare, that is OK for us.
</span><del>-    $self-&gt;_sync_fulltext()
-        if $self-&gt;{added_comments} || $changes-&gt;{short_desc}
-           || $self-&gt;{comment_isprivate};
</del><ins>+    $self-&gt;_sync_fulltext(
+        update_short_desc =&gt; $changes-&gt;{short_desc},
+        update_comments   =&gt; $self-&gt;{added_comments} || $self-&gt;{comment_isprivate}
+    );
</ins><span class="cx"> 
</span><span class="cx">     # Remove obsolete internal variables.
</span><span class="cx">     delete $self-&gt;{'_old_assigned_to'};
</span><span class="lines">@@ -1029,7 +1190,7 @@
</span><span class="cx"> 
</span><span class="cx">     # Also flush the visible_bugs cache for this bug as the user's
</span><span class="cx">     # relationship with this bug may have changed.
</span><del>-    delete Bugzilla-&gt;user-&gt;{_visible_bugs_cache}-&gt;{$self-&gt;id};
</del><ins>+    delete $user-&gt;{_visible_bugs_cache}-&gt;{$self-&gt;id};
</ins><span class="cx"> 
</span><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="lines">@@ -1055,90 +1216,55 @@
</span><span class="cx"> 
</span><span class="cx"> # Should be called any time you update short_desc or change a comment.
</span><span class="cx"> sub _sync_fulltext {
</span><del>-    my ($self, $new_bug) = @_;
</del><ins>+    my ($self, %options) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    if ($new_bug) {
-        $dbh-&gt;do('INSERT INTO bugs_fulltext (bug_id, short_desc)
-                  SELECT bug_id, short_desc FROM bugs WHERE bug_id = ?',
-                 undef, $self-&gt;id);
</del><ins>+
+    my($all_comments, $public_comments);
+    if ($options{new_bug} || $options{update_comments}) {
+        my $comments = $dbh-&gt;selectall_arrayref(
+            'SELECT thetext, isprivate FROM longdescs WHERE bug_id = ?',
+            undef, $self-&gt;id);
+        $all_comments = join(&quot;\n&quot;, map { $_-&gt;[0] } @$comments);
+        my @no_private = grep { !$_-&gt;[1] } @$comments;
+        $public_comments = join(&quot;\n&quot;, map { $_-&gt;[0] } @no_private);
</ins><span class="cx">     }
</span><del>-    else {
-        $dbh-&gt;do('UPDATE bugs_fulltext SET short_desc = ? WHERE bug_id = ?',
-                 undef, $self-&gt;short_desc, $self-&gt;id);
</del><ins>+
+    if ($options{new_bug}) {
+        $dbh-&gt;do('INSERT INTO bugs_fulltext (bug_id, short_desc, comments,
+                                             comments_noprivate)
+                 VALUES (?, ?, ?, ?)',
+                 undef,
+                 $self-&gt;id, $self-&gt;short_desc, $all_comments, $public_comments);
+    } else {
+        my(@names, @values);
+        if ($options{update_short_desc}) {
+            push @names, 'short_desc';
+            push @values, $self-&gt;short_desc;
+        }
+        if ($options{update_comments}) {
+            push @names, ('comments', 'comments_noprivate');
+            push @values, ($all_comments, $public_comments);
+        }
+        if (@names) {
+            $dbh-&gt;do('UPDATE bugs_fulltext SET ' .
+                     join(', ', map { &quot;$_ = ?&quot; } @names) .
+                     ' WHERE bug_id = ?',
+                     undef,
+                     @values, $self-&gt;id);
+        }
</ins><span class="cx">     }
</span><del>-    my $comments = $dbh-&gt;selectall_arrayref(
-        'SELECT thetext, isprivate FROM longdescs WHERE bug_id = ?',
-        undef, $self-&gt;id);
-    my $all = join(&quot;\n&quot;, map { $_-&gt;[0] } @$comments);
-    my @no_private = grep { !$_-&gt;[1] } @$comments;
-    my $nopriv_string = join(&quot;\n&quot;, map { $_-&gt;[0] } @no_private);
-    $dbh-&gt;do('UPDATE bugs_fulltext SET comments = ?, comments_noprivate = ?
-               WHERE bug_id = ?', undef, $all, $nopriv_string, $self-&gt;id);
</del><span class="cx"> }
</span><span class="cx"> 
</span><del>-
-# This is the correct way to delete bugs from the DB.
-# No bug should be deleted from anywhere else except from here.
-#
</del><span class="cx"> sub remove_from_db {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><del>-    if ($self-&gt;{'error'}) {
-        ThrowCodeError(&quot;bug_error&quot;, { bug =&gt; $self });
-    }
</del><ins>+    ThrowCodeError(&quot;bug_error&quot;, { bug =&gt; $self }) if $self-&gt;{'error'};
</ins><span class="cx"> 
</span><span class="cx">     my $bug_id = $self-&gt;{'bug_id'};
</span><del>-
-    # tables having 'bugs.bug_id' as a foreign key:
-    # - attachments
-    # - bug_group_map
-    # - bugs
-    # - bugs_activity
-    # - bugs_fulltext
-    # - cc
-    # - dependencies
-    # - duplicates
-    # - flags
-    # - keywords
-    # - longdescs
-
-    # Also, the attach_data table uses attachments.attach_id as a foreign
-    # key, and so indirectly depends on a bug deletion too.
-
-    $dbh-&gt;bz_start_transaction();
-
-    $dbh-&gt;do(&quot;DELETE FROM bug_group_map WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM bugs_activity WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM cc WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM dependencies WHERE blocked = ? OR dependson = ?&quot;,
-             undef, ($bug_id, $bug_id));
-    $dbh-&gt;do(&quot;DELETE FROM duplicates WHERE dupe = ? OR dupe_of = ?&quot;,
-             undef, ($bug_id, $bug_id));
-    $dbh-&gt;do(&quot;DELETE FROM flags WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM keywords WHERE bug_id = ?&quot;, undef, $bug_id);
-
-    # The attach_data table doesn't depend on bugs.bug_id directly.
-    my $attach_ids =
-        $dbh-&gt;selectcol_arrayref(&quot;SELECT attach_id FROM attachments
-                                  WHERE bug_id = ?&quot;, undef, $bug_id);
-
-    if (scalar(@$attach_ids)) {
-        $dbh-&gt;do(&quot;DELETE FROM attach_data WHERE &quot; 
-                 . $dbh-&gt;sql_in('id', $attach_ids));
-    }
-
-    # Several of the previous tables also depend on attach_id.
-    $dbh-&gt;do(&quot;DELETE FROM attachments WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM bugs WHERE bug_id = ?&quot;, undef, $bug_id);
-    $dbh-&gt;do(&quot;DELETE FROM longdescs WHERE bug_id = ?&quot;, undef, $bug_id);
-
-    $dbh-&gt;bz_commit_transaction();
-
-    # The bugs_fulltext table doesn't support transactions.
</del><ins>+    $self-&gt;SUPER::remove_from_db();
+    # The bugs_fulltext table doesn't support foreign keys.
</ins><span class="cx">     $dbh-&gt;do(&quot;DELETE FROM bugs_fulltext WHERE bug_id = ?&quot;, undef, $bug_id);
</span><del>-
-    undef $self;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #####################################################################
</span><span class="lines">@@ -1243,32 +1369,38 @@
</span><span class="cx"> #####################################################################
</span><span class="cx"> 
</span><span class="cx"> sub _check_alias {
</span><del>-   my ($invocant, $alias) = @_;
-   $alias = trim($alias);
-   return undef if (!Bugzilla-&gt;params-&gt;{'usebugaliases'} || !$alias);
</del><ins>+    my ($invocant, $aliases) = @_;
+    $aliases = ref $aliases ? $aliases : [split(/[\s,]+/, $aliases)];
</ins><span class="cx"> 
</span><del>-    # Make sure the alias isn't too long.
-    if (length($alias) &gt; 20) {
-        ThrowUserError(&quot;alias_too_long&quot;);
</del><ins>+    # Remove empty aliases
+    @$aliases = grep { $_ } @$aliases;
+
+    foreach my $alias (@$aliases) {
+        $alias = trim($alias);
+
+        # Make sure the alias isn't too long.
+        if (length($alias) &gt; 40) {
+            ThrowUserError(&quot;alias_too_long&quot;);
+        }
+        # Make sure the alias isn't just a number.
+        if ($alias =~ /^\d+$/) {
+            ThrowUserError(&quot;alias_is_numeric&quot;, { alias =&gt; $alias });
+        }
+        # Make sure the alias has no commas or spaces.
+        if ($alias =~ /[, ]/) {
+            ThrowUserError(&quot;alias_has_comma_or_space&quot;, { alias =&gt; $alias });
+        }
+        # Make sure the alias is unique, or that it's already our alias.
+        my $other_bug = new Bugzilla::Bug($alias);
+        if (!$other_bug-&gt;{error}
+            &amp;&amp; (!ref $invocant || $other_bug-&gt;id != $invocant-&gt;id))
+        {
+            ThrowUserError(&quot;alias_in_use&quot;, { alias =&gt; $alias,
+                                             bug_id =&gt; $other_bug-&gt;id });
+        }
</ins><span class="cx">     }
</span><del>-    # Make sure the alias isn't just a number.
-    if ($alias =~ /^\d+$/) {
-        ThrowUserError(&quot;alias_is_numeric&quot;, { alias =&gt; $alias });
-    }
-    # Make sure the alias has no commas or spaces.
-    if ($alias =~ /[, ]/) {
-        ThrowUserError(&quot;alias_has_comma_or_space&quot;, { alias =&gt; $alias });
-    }
-    # Make sure the alias is unique, or that it's already our alias.
-    my $other_bug = new Bugzilla::Bug($alias);
-    if (!$other_bug-&gt;{error}
-        &amp;&amp; (!ref $invocant || $other_bug-&gt;id != $invocant-&gt;id))
-    {
-        ThrowUserError(&quot;alias_in_use&quot;, { alias =&gt; $alias,
-                                         bug_id =&gt; $other_bug-&gt;id });
-    }
</del><span class="cx"> 
</span><del>-   return $alias;
</del><ins>+    return $aliases;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_assigned_to {
</span><span class="lines">@@ -1303,6 +1435,7 @@
</span><span class="cx"> sub _check_bug_file_loc {
</span><span class="cx">     my ($invocant, $url) = @_;
</span><span class="cx">     $url = '' if !defined($url);
</span><ins>+    $url = trim($url);
</ins><span class="cx">     # On bug entry, if bug_file_loc is &quot;http://&quot;, the default, use an 
</span><span class="cx">     # empty value instead. However, on bug editing people can set that
</span><span class="cx">     # back if they *really* want to.
</span><span class="lines">@@ -1329,10 +1462,7 @@
</span><span class="cx">     else {
</span><span class="cx">         $product = $params-&gt;{product};
</span><span class="cx">         $comment = $params-&gt;{comment};
</span><del>-        @valid_statuses = @{Bugzilla::Status-&gt;can_change_to()};
-        if (!$product-&gt;allows_unconfirmed) {
-            @valid_statuses = grep {$_-&gt;name ne 'UNCONFIRMED'} @valid_statuses;
-        }
</del><ins>+        @valid_statuses = @{ Bugzilla::Bug-&gt;statuses_available($product) };
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Check permissions for users filing new bugs.
</span><span class="lines">@@ -1375,11 +1505,12 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Check if a comment is required for this change.
</span><del>-    if ($new_status-&gt;comment_required_on_change_from($old_status) &amp;&amp; !$comment-&gt;{'thetext'})
</del><ins>+    if ($new_status-&gt;comment_required_on_change_from($old_status)
+        &amp;&amp; !$comment-&gt;{'thetext'})
</ins><span class="cx">     {
</span><del>-        ThrowUserError('comment_required', { old =&gt; $old_status,
-                                             new =&gt; $new_status });
-        
</del><ins>+        ThrowUserError('comment_required',
+          { old =&gt; $old_status ? $old_status-&gt;name : undef,
+            new =&gt; $new_status-&gt;name, field =&gt; 'bug_status' });
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     if (ref $invocant 
</span><span class="lines">@@ -1460,7 +1591,24 @@
</span><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     return $comment; 
</span><ins>+}
</ins><span class="cx"> 
</span><ins>+sub _check_commenton {
+    my ($invocant, $new_value, $field, $params) = @_;
+
+    my $has_comment =
+        ref($invocant) ? $invocant-&gt;{added_comments}
+                       : (defined $params-&gt;{comment}
+                          and $params-&gt;{comment}-&gt;{thetext} ne '');
+
+    my $is_changing = ref($invocant) ? $invocant-&gt;$field ne $new_value
+                                     : $new_value ne '';
+
+    if ($is_changing &amp;&amp; !$has_comment) {
+        my $old_value = ref($invocant) ? $invocant-&gt;$field : undef;
+        ThrowUserError('comment_required',
+            { field =&gt; $field, old =&gt; $old_value, new =&gt; $new_value });
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_component {
</span><span class="lines">@@ -1503,15 +1651,23 @@
</span><span class="cx"> # Takes two comma/space-separated strings and returns arrayrefs
</span><span class="cx"> # of valid bug IDs.
</span><span class="cx"> sub _check_dependencies {
</span><del>-    my ($invocant, $depends_on, $blocks, $product) = @_;
</del><ins>+    my ($invocant, $value, $field, $params) = @_;
</ins><span class="cx"> 
</span><ins>+    return $value if $params-&gt;{_dependencies_validated};
+
</ins><span class="cx">     if (!ref $invocant) {
</span><span class="cx">         # Only editbugs users can set dependencies on bug entry.
</span><del>-        return ([], []) unless Bugzilla-&gt;user-&gt;in_group('editbugs',
-                                                        $product-&gt;id);
</del><ins>+        return ([], []) unless Bugzilla-&gt;user-&gt;in_group(
+            'editbugs', $params-&gt;{product}-&gt;id);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    my %deps_in = (dependson =&gt; $depends_on || '', blocked =&gt; $blocks || '');
</del><ins>+    # This is done this way so that dependson and blocked can be in
+    # VALIDATORS, meaning that they can be in VALIDATOR_DEPENDENCIES,
+    # which means that they can be checked in the right order during
+    # bug creation.
+    my $opposite = $field eq 'dependson' ? 'blocked' : 'dependson';
+    my %deps_in = ($field =&gt; $value || '',
+                   $opposite =&gt; $params-&gt;{$opposite} || '');
</ins><span class="cx"> 
</span><span class="cx">     foreach my $type (qw(dependson blocked)) {
</span><span class="cx">         my @bug_ids = ref($deps_in{$type}) 
</span><span class="lines">@@ -1519,9 +1675,7 @@
</span><span class="cx">             : split(/[\s,]+/, $deps_in{$type});
</span><span class="cx">         # Eliminate nulls.
</span><span class="cx">         @bug_ids = grep {$_} @bug_ids;
</span><del>-        # We do this up here to make sure all aliases are converted to IDs.
-        @bug_ids = map { $invocant-&gt;check($_, $type)-&gt;id } @bug_ids;
-       
</del><ins>+
</ins><span class="cx">         my @check_access = @bug_ids;
</span><span class="cx">         # When we're updating a bug, only added or removed bug_ids are 
</span><span class="cx">         # checked for whether or not we can see/edit those bugs.
</span><span class="lines">@@ -1551,22 +1705,27 @@
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        
</del><ins>+        # Replace all aliases by their corresponding bug ID.
+        @bug_ids = map { $_ =~ /^(\d+)$/ ? $1 : $invocant-&gt;check($_, $type)-&gt;id } @bug_ids;
</ins><span class="cx">         $deps_in{$type} = \@bug_ids;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # And finally, check for dependency loops.
</span><span class="cx">     my $bug_id = ref($invocant) ? $invocant-&gt;id : 0;
</span><del>-    my %deps = ValidateDependencies($deps_in{dependson}, $deps_in{blocked}, $bug_id);
</del><ins>+    my %deps = ValidateDependencies($deps_in{dependson}, $deps_in{blocked},
+                                    $bug_id);
</ins><span class="cx"> 
</span><del>-    return ($deps{'dependson'}, $deps{'blocked'});
</del><ins>+    $params-&gt;{$opposite} = $deps{$opposite};
+    $params-&gt;{_dependencies_validated} = 1;
+    return $deps{$field};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_dup_id {
</span><span class="cx">     my ($self, $dupe_of) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    
-    $dupe_of = trim($dupe_of);
</del><ins>+
+    # Store the bug ID/alias passed by the user for visibility checks.
+    my $orig_dupe_of = $dupe_of = trim($dupe_of);
</ins><span class="cx">     $dupe_of || ThrowCodeError('undefined_field', { field =&gt; 'dup_id' });
</span><span class="cx">     # Validate the bug ID. The second argument will force check() to only
</span><span class="cx">     # make sure that the bug exists, and convert the alias to the bug ID
</span><span class="lines">@@ -1579,7 +1738,7 @@
</span><span class="cx"> 
</span><span class="cx">     # If we come here, then the duplicate is new. We have to make sure
</span><span class="cx">     # that we can view/change it (issue A on bug 96085).
</span><del>-    $dupe_of_bug-&gt;check_is_visible;
</del><ins>+    $dupe_of_bug-&gt;check_is_visible($orig_dupe_of);
</ins><span class="cx"> 
</span><span class="cx">     # Make sure a loop isn't created when marking this bug
</span><span class="cx">     # as duplicate.
</span><span class="lines">@@ -1593,9 +1752,9 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Should we add the reporter to the CC list of the new bug?
</span><del>-    # If he can see the bug...
</del><ins>+    # If they can see the bug...
</ins><span class="cx">     if ($self-&gt;reporter-&gt;can_see_bug($dupe_of)) {
</span><del>-        # We only add him if he's not the reporter of the other bug.
</del><ins>+        # We only add them if they're not the reporter of the other bug.
</ins><span class="cx">         $self-&gt;{_add_dup_cc} = 1
</span><span class="cx">             if $dupe_of_bug-&gt;reporter-&gt;id != $self-&gt;reporter-&gt;id;
</span><span class="cx">     }
</span><span class="lines">@@ -1610,11 +1769,11 @@
</span><span class="cx">             $self-&gt;{_add_dup_cc} = $add_confirmed;
</span><span class="cx">         }
</span><span class="cx">         else {
</span><del>-            # Note that here we don't check if he user is already the reporter
-            # of the dupe_of bug, since we already checked if he can *see*
</del><ins>+            # Note that here we don't check if the user is already the reporter
+            # of the dupe_of bug, since we already checked if they can *see*
</ins><span class="cx">             # the bug, above. People might have reporter_accessible turned
</span><span class="cx">             # off, but cclist_accessible turned on, so they might want to
</span><del>-            # add the reporter even though he's already the reporter of the
</del><ins>+            # add the reporter even though they're already the reporter of the
</ins><span class="cx">             # dup_of bug.
</span><span class="cx">             my $vars = {};
</span><span class="cx">             my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -1682,13 +1841,7 @@
</span><span class="cx">         $keywords_in = trim($keywords_in);
</span><span class="cx">         $keyword_array = [split(/[\s,]+/, $keywords_in)];
</span><span class="cx">     }
</span><del>-    
-    # On creation, only editbugs users can set keywords.
-    if (!ref $invocant) {
-        my $product = $params-&gt;{product};
-        return [] if !Bugzilla-&gt;user-&gt;in_group('editbugs', $product-&gt;id);
-    }
-    
</del><ins>+ 
</ins><span class="cx">     my %keywords;
</span><span class="cx">     foreach my $keyword (@$keyword_array) {
</span><span class="cx">         next unless $keyword;
</span><span class="lines">@@ -1725,7 +1878,6 @@
</span><span class="cx">     $qa_contact = trim($qa_contact) if !ref $qa_contact;
</span><span class="cx">     my $component = blessed($invocant) ? $invocant-&gt;component_obj
</span><span class="cx">                                        : $params-&gt;{component};
</span><del>-    my $id;
</del><span class="cx">     if (!ref $invocant) {
</span><span class="cx">         # Bugs get no QA Contact on creation if useqacontact is off.
</span><span class="cx">         return undef if !Bugzilla-&gt;params-&gt;{useqacontact};
</span><span class="lines">@@ -1734,13 +1886,14 @@
</span><span class="cx">         if (!Bugzilla-&gt;user-&gt;in_group('editbugs', $component-&gt;product_id)
</span><span class="cx">             || !$qa_contact)
</span><span class="cx">         {
</span><del>-            $id = $component-&gt;default_qa_contact-&gt;id;
</del><ins>+            return $component-&gt;default_qa_contact ? $component-&gt;default_qa_contact-&gt;id : undef;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     # If a QA Contact was specified or if we're updating, check
</span><span class="cx">     # the QA Contact for validity.
</span><del>-    if (!defined $id &amp;&amp; $qa_contact) {
</del><ins>+    my $id;
+    if ($qa_contact) {
</ins><span class="cx">         $qa_contact = Bugzilla::User-&gt;check($qa_contact) if !ref $qa_contact;
</span><span class="cx">         $id = $qa_contact-&gt;id;
</span><span class="cx">         # create() checks this another way, so we don't have to run this
</span><span class="lines">@@ -1763,7 +1916,7 @@
</span><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         # On bug creation, the reporter is the logged in user
</span><del>-        # (meaning that he must be logged in first!).
</del><ins>+        # (meaning that they must be logged in first!).
</ins><span class="cx">         Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx">         $reporter = Bugzilla-&gt;user-&gt;id;
</span><span class="cx">     }
</span><span class="lines">@@ -1771,41 +1924,46 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_resolution {
</span><del>-    my ($self, $resolution) = @_;
</del><ins>+    my ($invocant, $resolution, undef, $params) = @_;
</ins><span class="cx">     $resolution = trim($resolution);
</span><ins>+    my $status = ref($invocant) ? $invocant-&gt;status-&gt;name 
+                                : $params-&gt;{bug_status};
+    my $is_open = ref($invocant) ? $invocant-&gt;status-&gt;is_open 
+                                 : is_open_state($status);
</ins><span class="cx">     
</span><span class="cx">     # Throw a special error for resolving bugs without a resolution
</span><span class="cx">     # (or trying to change the resolution to '' on a closed bug without
</span><span class="cx">     # using clear_resolution).
</span><del>-    ThrowUserError('missing_resolution', { status =&gt; $self-&gt;status-&gt;name })
-        if !$resolution &amp;&amp; !$self-&gt;status-&gt;is_open;
</del><ins>+    ThrowUserError('missing_resolution', { status =&gt; $status })
+        if !$resolution &amp;&amp; !$is_open;
</ins><span class="cx">     
</span><span class="cx">     # Make sure this is a valid resolution.
</span><del>-    $resolution = $self-&gt;_check_select_field($resolution, 'resolution');
</del><ins>+    $resolution = $invocant-&gt;_check_select_field($resolution, 'resolution');
</ins><span class="cx"> 
</span><span class="cx">     # Don't allow open bugs to have resolutions.
</span><del>-    ThrowUserError('resolution_not_allowed') if $self-&gt;status-&gt;is_open;
</del><ins>+    ThrowUserError('resolution_not_allowed') if $is_open;
</ins><span class="cx">     
</span><span class="cx">     # Check noresolveonopenblockers.
</span><ins>+    my $dependson = ref($invocant) ? $invocant-&gt;dependson
+                                   : ($params-&gt;{dependson} || []);
</ins><span class="cx">     if (Bugzilla-&gt;params-&gt;{&quot;noresolveonopenblockers&quot;}
</span><span class="cx">         &amp;&amp; $resolution eq 'FIXED'
</span><del>-        &amp;&amp; (!$self-&gt;resolution || $resolution ne $self-&gt;resolution)
-        &amp;&amp; scalar @{$self-&gt;dependson})
</del><ins>+        &amp;&amp; (!ref $invocant or !$invocant-&gt;resolution 
+            or $resolution ne $invocant-&gt;resolution)
+        &amp;&amp; scalar @$dependson)
</ins><span class="cx">     {
</span><del>-        my $dep_bugs = Bugzilla::Bug-&gt;new_from_list($self-&gt;dependson);
</del><ins>+        my $dep_bugs = Bugzilla::Bug-&gt;new_from_list($dependson);
</ins><span class="cx">         my $count_open = grep { $_-&gt;isopened } @$dep_bugs;
</span><span class="cx">         if ($count_open) {
</span><ins>+            my $bug_id = ref($invocant) ? $invocant-&gt;id : undef;
</ins><span class="cx">             ThrowUserError(&quot;still_unresolved_bugs&quot;,
</span><del>-                           { bug_id =&gt; $self-&gt;id, dep_count =&gt; $count_open });
</del><ins>+                           { bug_id =&gt; $bug_id, dep_count =&gt; $count_open });
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Check if they're changing the resolution and need to comment.
</span><del>-    if (Bugzilla-&gt;params-&gt;{'commentonchange_resolution'} 
-        &amp;&amp; $self-&gt;resolution &amp;&amp; $resolution ne $self-&gt;resolution 
-        &amp;&amp; !$self-&gt;{added_comments})
-    {
-        ThrowUserError('comment_required');
</del><ins>+    if (Bugzilla-&gt;params-&gt;{'commentonchange_resolution'}) {
+        $invocant-&gt;_check_commenton($resolution, 'resolution', $params);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     return $resolution;
</span><span class="lines">@@ -1989,8 +2147,13 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _check_date_field {
+    my ($invocant, $date) = @_;
+    return $invocant-&gt;_check_datetime_field($date, undef, {date_only =&gt; 1});
+}
+
</ins><span class="cx"> sub _check_datetime_field {
</span><del>-    my ($invocant, $date_time) = @_;
</del><ins>+    my ($invocant, $date_time, $field, $params) = @_;
</ins><span class="cx"> 
</span><span class="cx">     # Empty datetimes are empty strings or strings only containing
</span><span class="cx">     # 0's, whitespace, and punctuation.
</span><span class="lines">@@ -2004,6 +2167,10 @@
</span><span class="cx">         ThrowUserError('illegal_date', { date   =&gt; $date,
</span><span class="cx">                                          format =&gt; 'YYYY-MM-DD' });
</span><span class="cx">     }
</span><ins>+    if ($time &amp;&amp; $params-&gt;{date_only}) {
+        ThrowUserError('illegal_date', { date   =&gt; $date_time,
+                                         format =&gt; 'YYYY-MM-DD' });
+    }
</ins><span class="cx">     if ($time &amp;&amp; !validate_time($time)) {
</span><span class="cx">         ThrowUserError('illegal_time', { 'time' =&gt; $time,
</span><span class="cx">                                          format =&gt; 'HH:MM:SS' });
</span><span class="lines">@@ -2066,6 +2233,40 @@
</span><span class="cx">     return $checked_id;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _check_textarea_field {
+    my ($invocant, $text, $field) = @_;
+
+    $text = (defined $text) ? trim($text) : '';
+
+    # Web browsers submit newlines as \r\n.
+    # Sanitize all input to match the web standard.
+    # XMLRPC input could be either \n or \r\n
+    $text =~ s/\r?\n/\r\n/g;
+
+    return $text;
+}
+
+sub _check_integer_field {
+    my ($invocant, $value, $field) = @_;
+    $value = defined($value) ? trim($value) : '';
+
+    if ($value eq '') {
+        return 0;
+    }
+
+    my $orig_value = $value;
+    if (!detaint_signed($value)) {
+        ThrowUserError(&quot;number_not_integer&quot;,
+                       {field =&gt; $field, num =&gt; $orig_value});
+    }
+    elsif (abs($value) &gt; MAX_INT_32) {
+        ThrowUserError(&quot;number_too_large&quot;,
+                       {field =&gt; $field, num =&gt; $orig_value, max_num =&gt; MAX_INT_32});
+    }
+
+    return $value;
+}
+
</ins><span class="cx"> sub _check_relationship_loop {
</span><span class="cx">     # Generates a dependency tree for a given bug.  Calls itself recursively
</span><span class="cx">     # to generate sub-trees for the bug's dependencies.
</span><span class="lines">@@ -2145,8 +2346,8 @@
</span><span class="cx">     my $can = $self-&gt;check_can_change_field($field, $current, $value, \$privs);
</span><span class="cx">     if (!$can) {
</span><span class="cx">         if ($field eq 'assigned_to' || $field eq 'qa_contact') {
</span><del>-            $value   = user_id_to_login($value);
-            $current = user_id_to_login($current);
</del><ins>+            $value   = Bugzilla::User-&gt;new($value)-&gt;login;
+            $current = Bugzilla::User-&gt;new($current)-&gt;login;
</ins><span class="cx">         }
</span><span class="cx">         ThrowUserError('illegal_change', { field    =&gt; $field,
</span><span class="cx">                                            oldvalue =&gt; $current,
</span><span class="lines">@@ -2239,6 +2440,15 @@
</span><span class="cx">               work_time =&gt; $params-&gt;{'work_time'} });
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (exists $params-&gt;{alias} &amp;&amp; $params-&gt;{alias}{set}) {
+        my ($removed_aliases, $added_aliases) = diff_arrays(
+            $self-&gt;alias, $params-&gt;{alias}{set});
+        $params-&gt;{alias} = {
+            add    =&gt; $added_aliases,
+            remove =&gt; $removed_aliases,
+        };
+    }
+
</ins><span class="cx">     my %normal_set_all;
</span><span class="cx">     foreach my $name (keys %$params) {
</span><span class="cx">         # These are handled separately below.
</span><span class="lines">@@ -2263,6 +2473,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_add_remove($params, 'cc');
</span><ins>+    $self-&gt;_add_remove($params, 'alias');
</ins><span class="cx"> 
</span><span class="cx">     # Theoretically you could move a product without ever specifying
</span><span class="cx">     # a new assignee or qa_contact, or adding/removing any CCs. So,
</span><span class="lines">@@ -2269,7 +2480,7 @@
</span><span class="cx">     # we have to check that the current assignee, qa, and CCs are still
</span><span class="cx">     # valid if we've switched products, under strict_isolation. We can only
</span><span class="cx">     # do that here, because if they *did* change the assignee, qa, or CC,
</span><del>-    # then we don't want to check the original ones, only the new ones. 
</del><ins>+    # then we don't want to check the original ones, only the new ones.
</ins><span class="cx">     $self-&gt;_check_strict_isolation() if $product_changed;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2279,7 +2490,7 @@
</span><span class="cx">     my ($self, $params, $name) = @_;
</span><span class="cx">     my @add    = @{ $params-&gt;{$name}-&gt;{add}    || [] };
</span><span class="cx">     my @remove = @{ $params-&gt;{$name}-&gt;{remove} || [] };
</span><del>-    $name =~ s/s$//;
</del><ins>+    $name =~ s/s$// if $name ne 'alias';
</ins><span class="cx">     my $add_method = &quot;add_$name&quot;;
</span><span class="cx">     my $remove_method = &quot;remove_$name&quot;;
</span><span class="cx">     $self-&gt;$add_method($_) foreach @add;
</span><span class="lines">@@ -2286,7 +2497,6 @@
</span><span class="cx">     $self-&gt;$remove_method($_) foreach @remove;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub set_alias { $_[0]-&gt;set('alias', $_[1]); }
</del><span class="cx"> sub set_assigned_to {
</span><span class="cx">     my ($self, $value) = @_;
</span><span class="cx">     $self-&gt;set('assigned_to', $value);
</span><span class="lines">@@ -2299,30 +2509,36 @@
</span><span class="cx">     my $comp = $self-&gt;component_obj;
</span><span class="cx">     $self-&gt;set_assigned_to($comp-&gt;default_assignee);
</span><span class="cx"> }
</span><ins>+sub set_bug_ignored       { $_[0]-&gt;set('bug_ignored',       $_[1]); }
</ins><span class="cx"> sub set_cclist_accessible { $_[0]-&gt;set('cclist_accessible', $_[1]); }
</span><ins>+
</ins><span class="cx"> sub set_comment_is_private {
</span><del>-    my ($self, $comment_id, $isprivate) = @_;
</del><ins>+    my ($self, $comments, $isprivate) = @_;
+    $self-&gt;{comment_isprivate} ||= [];
+    my $is_insider = Bugzilla-&gt;user-&gt;is_insider;
</ins><span class="cx"> 
</span><del>-    # We also allow people to pass in a hash of comment ids to update.
-    if (ref $comment_id) {
-        while (my ($id, $is) = each %$comment_id) {
-            $self-&gt;set_comment_is_private($id, $is);
</del><ins>+    $comments = { $comments =&gt; $isprivate } unless ref $comments;
+
+    foreach my $comment (@{$self-&gt;comments}) {
+        # Skip unmodified comment privacy.
+        next unless exists $comments-&gt;{$comment-&gt;id};
+
+        my $isprivate = delete $comments-&gt;{$comment-&gt;id} ? 1 : 0;
+        if ($isprivate != $comment-&gt;is_private) {
+            ThrowUserError('user_not_insider') unless $is_insider;
+            $comment-&gt;set_is_private($isprivate);
+            push @{$self-&gt;{comment_isprivate}}, $comment;
</ins><span class="cx">         }
</span><del>-        return;
</del><span class="cx">     }
</span><span class="cx"> 
</span><del>-    my ($comment) = grep($comment_id == $_-&gt;id, @{ $self-&gt;comments });
-    ThrowUserError('comment_invalid_isprivate', { id =&gt; $comment_id }) 
-        if !$comment;
</del><ins>+    # If there are still entries in $comments, then they are illegal.
+    ThrowUserError('comment_invalid_isprivate', { id =&gt; join(', ', keys %$comments) })
+      if scalar keys %$comments;
</ins><span class="cx"> 
</span><del>-    $isprivate = $isprivate ? 1 : 0;
-    if ($isprivate != $comment-&gt;is_private) {
-        ThrowUserError('user_not_insider') if !Bugzilla-&gt;user-&gt;is_insider;
-        $self-&gt;{comment_isprivate} ||= [];
-        $comment-&gt;set_is_private($isprivate);
-        push @{$self-&gt;{comment_isprivate}}, $comment;
-    }
</del><ins>+    # If no comment privacy has been modified, remove this key.
+    delete $self-&gt;{comment_isprivate} unless scalar @{$self-&gt;{comment_isprivate}};
</ins><span class="cx"> }
</span><ins>+
</ins><span class="cx"> sub set_component  {
</span><span class="cx">     my ($self, $name) = @_;
</span><span class="cx">     my $old_comp  = $self-&gt;component_obj;
</span><span class="lines">@@ -2351,7 +2567,9 @@
</span><span class="cx"> sub set_deadline { $_[0]-&gt;set('deadline', $_[1]); }
</span><span class="cx"> sub set_dependencies {
</span><span class="cx">     my ($self, $dependson, $blocked) = @_;
</span><del>-    ($dependson, $blocked) = $self-&gt;_check_dependencies($dependson, $blocked);
</del><ins>+    my %extra = ( blocked =&gt; $blocked );
+    $dependson = $self-&gt;_check_dependencies($dependson, 'dependson', \%extra);
+    $blocked = $extra{blocked};
</ins><span class="cx">     # These may already be detainted, but all setters are supposed to
</span><span class="cx">     # detaint their input if they've run a validator (just as though
</span><span class="cx">     # we had used Bugzilla::Object::set), so we do that here.
</span><span class="lines">@@ -2496,6 +2714,7 @@
</span><span class="cx">             my @idlist = ($self-&gt;id);
</span><span class="cx">             push(@idlist, map {$_-&gt;id} @{ $params-&gt;{other_bugs} })
</span><span class="cx">                 if $params-&gt;{other_bugs};
</span><ins>+            @idlist = uniq @idlist;
</ins><span class="cx">             # Get the ID of groups which are no longer valid in the new product.
</span><span class="cx">             my $gids = $dbh-&gt;selectcol_arrayref(
</span><span class="cx">                 'SELECT bgm.group_id
</span><span class="lines">@@ -2510,9 +2729,13 @@
</span><span class="cx">                                         . Bugzilla-&gt;user-&gt;groups_as_string . '))
</span><span class="cx">                                        OR gcm.othercontrol != ?) )',
</span><span class="cx">                 undef, (@idlist, $product-&gt;id, CONTROLMAPNA, CONTROLMAPNA));
</span><del>-            $vars{'old_groups'} = Bugzilla::Group-&gt;new_from_list($gids);            
</del><ins>+            $vars{'old_groups'} = Bugzilla::Group-&gt;new_from_list($gids);
+
+            # Did we come here from editing multiple bugs? (affects how we
+            # show optional group changes)
+            $vars{multiple_bugs} = (@idlist &gt; 1) ? 1 : 0;
</ins><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         if (%vars) {
</span><span class="cx">             $vars{product} = $product;
</span><span class="cx">             $vars{bug} = $self;
</span><span class="lines">@@ -2695,6 +2918,32 @@
</span><span class="cx">     @$cc_users = grep { $_-&gt;id != $user-&gt;id } @$cc_users;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub add_alias {
+    my ($self, $alias) = @_;
+    return if !$alias;
+    my $aliases = $self-&gt;_check_alias($alias);
+    $alias = $aliases-&gt;[0];
+    my @new_aliases;
+    my $found = 0;
+    foreach my $old_alias (@{ $self-&gt;alias }) {
+        if (lc($old_alias) eq lc($alias)) {
+            push(@new_aliases, $alias);
+            $found = 1;
+        }
+        else {
+            push(@new_aliases, $old_alias);
+        }
+    }
+    push(@new_aliases, $alias) if !$found;
+    $self-&gt;{alias} = \@new_aliases;
+}
+
+sub remove_alias {
+    my ($self, $alias) = @_;
+    my $bug_aliases = $self-&gt;alias;
+    @$bug_aliases = grep { $_ ne $alias } @$bug_aliases;
+}
+
</ins><span class="cx"> # $bug-&gt;add_comment(&quot;comment&quot;, {isprivate =&gt; 1, work_time =&gt; 10.5,
</span><span class="cx"> #                               type =&gt; CMT_NORMAL, extra_data =&gt; $data});
</span><span class="cx"> sub add_comment {
</span><span class="lines">@@ -2730,31 +2979,23 @@
</span><span class="cx">     push(@{$self-&gt;{added_comments}}, $params);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# There was a lot of duplicate code when I wrote this as three separate
-# functions, so I just combined them all into one. This is also easier for
-# process_bug to use.
</del><span class="cx"> sub modify_keywords {
</span><span class="cx">     my ($self, $keywords, $action) = @_;
</span><del>-    
-    $action ||= 'set';
-    if (!grep($action eq $_, qw(add remove set))) {
</del><ins>+
+    if (!$action || !grep { $action eq $_ } qw(add remove set)) {
</ins><span class="cx">         $action = 'set';
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     $keywords = $self-&gt;_check_keywords($keywords);
</span><ins>+    my @old_keywords = @{ $self-&gt;keyword_objects };
+    my @result;
</ins><span class="cx"> 
</span><del>-    my (@result, $any_changes);
</del><span class="cx">     if ($action eq 'set') {
</span><span class="cx">         @result = @$keywords;
</span><del>-        # Check if anything was added or removed.
-        my @old_ids = map { $_-&gt;id } @{$self-&gt;keyword_objects};
-        my @new_ids = map { $_-&gt;id } @result;
-        my ($removed, $added) = diff_arrays(\@old_ids, \@new_ids);
-        $any_changes = scalar @$removed || scalar @$added;
</del><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         # We're adding or deleting specific keywords.
</span><del>-        my %keys = map {$_-&gt;id =&gt; $_} @{$self-&gt;keyword_objects};
</del><ins>+        my %keys = map { $_-&gt;id =&gt; $_ } @old_keywords;
</ins><span class="cx">         if ($action eq 'add') {
</span><span class="cx">             $keys{$_-&gt;id} = $_ foreach @$keywords;
</span><span class="cx">         }
</span><span class="lines">@@ -2762,11 +3003,17 @@
</span><span class="cx">             delete $keys{$_-&gt;id} foreach @$keywords;
</span><span class="cx">         }
</span><span class="cx">         @result = values %keys;
</span><del>-        $any_changes = scalar @$keywords;
</del><span class="cx">     }
</span><ins>+
+    # Check if anything was added or removed.
+    my @old_ids = map { $_-&gt;id } @old_keywords;
+    my @new_ids = map { $_-&gt;id } @result;
+    my ($removed, $added) = diff_arrays(\@old_ids, \@new_ids);
+    my $any_changes = scalar @$removed || scalar @$added;
+
</ins><span class="cx">     # Make sure we retain the sort order.
</span><span class="cx">     @result = sort {lc($a-&gt;name) cmp lc($b-&gt;name)} @result;
</span><del>-    
</del><ins>+
</ins><span class="cx">     if ($any_changes) {
</span><span class="cx">         my $privs;
</span><span class="cx">         my $new = join(', ', (map {$_-&gt;name} @result));
</span><span class="lines">@@ -3024,7 +3271,6 @@
</span><span class="cx"> # These are accessors that don't need to access the database.
</span><span class="cx"> # Keep them in alphabetical order.
</span><span class="cx"> 
</span><del>-sub alias               { return $_[0]-&gt;{alias}               }
</del><span class="cx"> sub bug_file_loc        { return $_[0]-&gt;{bug_file_loc}        }
</span><span class="cx"> sub bug_id              { return $_[0]-&gt;{bug_id}              }
</span><span class="cx"> sub bug_severity        { return $_[0]-&gt;{bug_severity}        }
</span><span class="lines">@@ -3107,7 +3353,7 @@
</span><span class="cx">         # If $dupes{$this_dup} is already set to 1, then a loop
</span><span class="cx">         # already exists which does not involve this bug.
</span><span class="cx">         # As the user is not responsible for this loop, do not
</span><del>-        # prevent him from marking this bug as a duplicate.
</del><ins>+        # prevent them from marking this bug as a duplicate.
</ins><span class="cx">         return $last_dup if exists $dupes{$this_dup};
</span><span class="cx">         $dupes{$this_dup} = 1;
</span><span class="cx">         $last_dup = $this_dup;
</span><span class="lines">@@ -3134,6 +3380,19 @@
</span><span class="cx">     return $self-&gt;{'actual_time'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub alias {
+    my ($self) = @_;
+    return $self-&gt;{'alias'} if exists $self-&gt;{'alias'};
+    return [] if $self-&gt;{'error'};
+
+    my $dbh = Bugzilla-&gt;dbh;
+    $self-&gt;{'alias'} = $dbh-&gt;selectcol_arrayref(
+        q{SELECT alias FROM bugs_aliases WHERE bug_id = ? ORDER BY alias},
+        undef, $self-&gt;bug_id);
+
+    return $self-&gt;{'alias'};
+}
+
</ins><span class="cx"> sub any_flags_requesteeble {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{'any_flags_requesteeble'} 
</span><span class="lines">@@ -3156,7 +3415,8 @@
</span><span class="cx">     return [] if $self-&gt;{'error'};
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;{'attachments'} =
</span><del>-        Bugzilla::Attachment-&gt;get_attachments_by_bug($self-&gt;bug_id, {preload =&gt; 1});
</del><ins>+        Bugzilla::Attachment-&gt;get_attachments_by_bug($self, {preload =&gt; 1});
+    $_-&gt;object_cache_set() foreach @{ $self-&gt;{'attachments'} };
</ins><span class="cx">     return $self-&gt;{'attachments'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3164,7 +3424,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{'assigned_to_obj'} if exists $self-&gt;{'assigned_to_obj'};
</span><span class="cx">     $self-&gt;{'assigned_to'} = 0 if $self-&gt;{'error'};
</span><del>-    $self-&gt;{'assigned_to_obj'} ||= new Bugzilla::User($self-&gt;{'assigned_to'});
</del><ins>+    $self-&gt;{'assigned_to_obj'} ||= new Bugzilla::User({ id =&gt; $self-&gt;{'assigned_to'}, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{'assigned_to_obj'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3209,8 +3469,6 @@
</span><span class="cx">         ORDER BY profiles.login_name},
</span><span class="cx">       undef, $self-&gt;bug_id);
</span><span class="cx"> 
</span><del>-    $self-&gt;{'cc'} = undef if !scalar(@{$self-&gt;{'cc'}});
-
</del><span class="cx">     return $self-&gt;{'cc'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3229,11 +3487,8 @@
</span><span class="cx"> 
</span><span class="cx"> sub component {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return $self-&gt;{component} if exists $self-&gt;{component};
</del><span class="cx">     return '' if $self-&gt;{error};
</span><del>-    ($self-&gt;{component}) = Bugzilla-&gt;dbh-&gt;selectrow_array(
-        'SELECT name FROM components WHERE id = ?',
-        undef, $self-&gt;{component_id});
</del><ins>+    $self-&gt;{component} //= $self-&gt;component_obj-&gt;name;
</ins><span class="cx">     return $self-&gt;{component};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3242,30 +3497,43 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{component_obj} if defined $self-&gt;{component_obj};
</span><span class="cx">     return {} if $self-&gt;{error};
</span><del>-    $self-&gt;{component_obj} = new Bugzilla::Component($self-&gt;{component_id});
</del><ins>+    $self-&gt;{component_obj} =
+        new Bugzilla::Component({ id =&gt; $self-&gt;{component_id}, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{component_obj};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub classification_id {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return $self-&gt;{classification_id} if exists $self-&gt;{classification_id};
</del><span class="cx">     return 0 if $self-&gt;{error};
</span><del>-    ($self-&gt;{classification_id}) = Bugzilla-&gt;dbh-&gt;selectrow_array(
-        'SELECT classification_id FROM products WHERE id = ?',
-        undef, $self-&gt;{product_id});
</del><ins>+    $self-&gt;{classification_id} //= $self-&gt;product_obj-&gt;classification_id;
</ins><span class="cx">     return $self-&gt;{classification_id};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub classification {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return $self-&gt;{classification} if exists $self-&gt;{classification};
</del><span class="cx">     return '' if $self-&gt;{error};
</span><del>-    ($self-&gt;{classification}) = Bugzilla-&gt;dbh-&gt;selectrow_array(
-        'SELECT name FROM classifications WHERE id = ?',
-        undef, $self-&gt;classification_id);
</del><ins>+    $self-&gt;{classification} //= $self-&gt;product_obj-&gt;classification-&gt;name;
</ins><span class="cx">     return $self-&gt;{classification};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub default_bug_status {
+    my $class = shift;
+    # XXX This should just call new_bug_statuses when the UI accepts closed
+    # bug statuses instead of accepting them as a parameter.
+    my @statuses = @_;
+
+    my $status;
+    if (scalar(@statuses) == 1) {
+        $status = $statuses[0]-&gt;name;
+    }
+    else {
+        $status = ($statuses[0]-&gt;name ne 'UNCONFIRMED')
+                  ? $statuses[0]-&gt;name : $statuses[1]-&gt;name;
+    }
+
+    return $status;
+}
+
</ins><span class="cx"> sub dependson {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{'dependson'} if exists $self-&gt;{'dependson'};
</span><span class="lines">@@ -3281,6 +3549,26 @@
</span><span class="cx">     return $self-&gt;{depends_on_obj};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub duplicates {
+    my $self = shift;
+    return $self-&gt;{duplicates} if exists $self-&gt;{duplicates};
+    return [] if $self-&gt;{error};
+    $self-&gt;{duplicates} = Bugzilla::Bug-&gt;new_from_list($self-&gt;duplicate_ids);
+    return $self-&gt;{duplicates};
+}
+
+sub duplicate_ids {
+    my $self = shift;
+    return $self-&gt;{duplicate_ids} if exists $self-&gt;{duplicate_ids};
+    return [] if $self-&gt;{error};
+
+    my $dbh = Bugzilla-&gt;dbh;
+    $self-&gt;{duplicate_ids} =
+      $dbh-&gt;selectcol_arrayref('SELECT dupe FROM duplicates WHERE dupe_of = ?',
+                               undef, $self-&gt;id);
+    return $self-&gt;{duplicate_ids};
+}
+
</ins><span class="cx"> sub flag_types {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{'flag_types'} if exists $self-&gt;{'flag_types'};
</span><span class="lines">@@ -3305,7 +3593,10 @@
</span><span class="cx"> 
</span><span class="cx"> sub isopened {
</span><span class="cx">     my $self = shift;
</span><del>-    return is_open_state($self-&gt;{bug_status}) ? 1 : 0;
</del><ins>+    unless (exists $self-&gt;{isopened}) {
+        $self-&gt;{isopened} = is_open_state($self-&gt;{bug_status}) ? 1 : 0;
+    }
+    return $self-&gt;{isopened};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub keywords {
</span><span class="lines">@@ -3334,11 +3625,21 @@
</span><span class="cx">     if (!defined $self-&gt;{'comments'}) {
</span><span class="cx">         $self-&gt;{'comments'} = Bugzilla::Comment-&gt;match({ bug_id =&gt; $self-&gt;id });
</span><span class="cx">         my $count = 0;
</span><ins>+        state $is_mysql = Bugzilla-&gt;dbh-&gt;isa('Bugzilla::DB::Mysql') ? 1 : 0;
</ins><span class="cx">         foreach my $comment (@{ $self-&gt;{'comments'} }) {
</span><span class="cx">             $comment-&gt;{count} = $count++;
</span><span class="cx">             $comment-&gt;{bug} = $self;
</span><ins>+            # XXX - hack for MySQL. Convert [U+....] back into its Unicode
+            # equivalent for characters above U+FFFF as MySQL older than 5.5.3
+            # cannot store them, see Bugzilla::Comment::_check_thetext().
+            if ($is_mysql) {
+                # Perl 5.13.8 and older complain about non-characters.
+                no warnings 'utf8';
+                $comment-&gt;{thetext} =~ s/\x{FDD0}\[U\+((?:[1-9A-F]|10)[0-9A-F]{4})\]\x{FDD1}/chr(hex $1)/eg
+            }
</ins><span class="cx">         }
</span><del>-        Bugzilla::Comment-&gt;preload($self-&gt;{'comments'});
</del><ins>+        # Some bugs may have no comments when upgrading old installations.
+        Bugzilla::Comment-&gt;preload($self-&gt;{'comments'}) if $count;
</ins><span class="cx">     }
</span><span class="cx">     my @comments = @{ $self-&gt;{'comments'} };
</span><span class="cx"> 
</span><span class="lines">@@ -3362,6 +3663,28 @@
</span><span class="cx">     return \@comments;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub new_bug_statuses {
+    my ($class, $product) = @_;
+    my $user = Bugzilla-&gt;user;
+
+    # Construct the list of allowable statuses.
+    my @statuses = @{ Bugzilla::Bug-&gt;statuses_available($product) };
+
+    # If the user has no privs...
+    unless ($user-&gt;in_group('editbugs', $product-&gt;id)
+            || $user-&gt;in_group('canconfirm', $product-&gt;id))
+    {
+        # ... use UNCONFIRMED if available, else use the first status of the list.
+        my ($unconfirmed) = grep { $_-&gt;name eq 'UNCONFIRMED' } @statuses;
+    
+        # Because of an apparent Perl bug, &quot;$unconfirmed || $statuses[0]&quot; doesn't
+        # work, so we're using an &quot;?:&quot; operator. See bug 603314 for details.
+        @statuses = ($unconfirmed ? $unconfirmed : $statuses[0]);
+    }
+
+    return \@statuses;
+}
+
</ins><span class="cx"> # This is needed by xt/search.t.
</span><span class="cx"> sub percentage_complete {
</span><span class="cx">     my $self = shift;
</span><span class="lines">@@ -3378,11 +3701,8 @@
</span><span class="cx"> 
</span><span class="cx"> sub product {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return $self-&gt;{product} if exists $self-&gt;{product};
</del><span class="cx">     return '' if $self-&gt;{error};
</span><del>-    ($self-&gt;{product}) = Bugzilla-&gt;dbh-&gt;selectrow_array(
-        'SELECT name FROM products WHERE id = ?',
-        undef, $self-&gt;{product_id});
</del><ins>+    $self-&gt;{product} //= $self-&gt;product_obj-&gt;name;
</ins><span class="cx">     return $self-&gt;{product};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3390,7 +3710,8 @@
</span><span class="cx"> sub product_obj {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     return {} if $self-&gt;{error};
</span><del>-    $self-&gt;{product_obj} ||= new Bugzilla::Product($self-&gt;{product_id});
</del><ins>+    $self-&gt;{product_obj} ||=
+        new Bugzilla::Product({ id =&gt; $self-&gt;{product_id}, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{product_obj};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3400,11 +3721,8 @@
</span><span class="cx">     return undef if $self-&gt;{'error'};
</span><span class="cx"> 
</span><span class="cx">     if (Bugzilla-&gt;params-&gt;{'useqacontact'} &amp;&amp; $self-&gt;{'qa_contact'}) {
</span><del>-        $self-&gt;{'qa_contact_obj'} = new Bugzilla::User($self-&gt;{'qa_contact'});
</del><ins>+        $self-&gt;{'qa_contact_obj'} = new Bugzilla::User({ id =&gt; $self-&gt;{'qa_contact'}, cache =&gt; 1 });
</ins><span class="cx">     } else {
</span><del>-        # XXX - This is somewhat inconsistent with the assignee/reporter 
-        # methods, which will return an empty User if they get a 0. 
-        # However, we're keeping it this way now, for backwards-compatibility.
</del><span class="cx">         $self-&gt;{'qa_contact_obj'} = undef;
</span><span class="cx">     }
</span><span class="cx">     return $self-&gt;{'qa_contact_obj'};
</span><span class="lines">@@ -3414,7 +3732,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{'reporter'} if exists $self-&gt;{'reporter'};
</span><span class="cx">     $self-&gt;{'reporter_id'} = 0 if $self-&gt;{'error'};
</span><del>-    $self-&gt;{'reporter'} = new Bugzilla::User($self-&gt;{'reporter_id'});
</del><ins>+    $self-&gt;{'reporter'} = new Bugzilla::User({ id =&gt; $self-&gt;{'reporter_id'}, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{'reporter'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3442,18 +3760,40 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub statuses_available {
</span><del>-    my $self = shift;
-    return [] if $self-&gt;{'error'};
-    return $self-&gt;{'statuses_available'}
-        if defined $self-&gt;{'statuses_available'};
</del><ins>+    my ($invocant, $product) = @_;
</ins><span class="cx"> 
</span><del>-    my @statuses = @{ $self-&gt;status-&gt;can_change_to };
</del><ins>+    my @statuses;
</ins><span class="cx"> 
</span><ins>+    if (ref $invocant) {
+      return [] if $invocant-&gt;{'error'};
+
+      return $invocant-&gt;{'statuses_available'}
+          if defined $invocant-&gt;{'statuses_available'};
+
+        @statuses = @{ $invocant-&gt;status-&gt;can_change_to };
+        $product = $invocant-&gt;product_obj;
+    } else {
+        @statuses = @{ Bugzilla::Status-&gt;can_change_to };
+    }
+
</ins><span class="cx">     # UNCONFIRMED is only a valid status if it is enabled in this product.
</span><del>-    if (!$self-&gt;product_obj-&gt;allows_unconfirmed) {
</del><ins>+    if (!$product-&gt;allows_unconfirmed) {
</ins><span class="cx">         @statuses = grep { $_-&gt;name ne 'UNCONFIRMED' } @statuses;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (ref $invocant) {
+        my $available = $invocant-&gt;_refine_available_statuses(@statuses);
+        $invocant-&gt;{'statuses_available'} = $available;
+        return $available;
+    }
+
+    return \@statuses;
+}
+
+sub _refine_available_statuses {
+    my $self = shift;
+    my @statuses = @_;
+
</ins><span class="cx">     my @available;
</span><span class="cx">     foreach my $status (@statuses) {
</span><span class="cx">         # Make sure this is a legal status transition
</span><span class="lines">@@ -3466,9 +3806,8 @@
</span><span class="cx">     if (!grep($_-&gt;name eq $self-&gt;status-&gt;name, @available)) {
</span><span class="cx">         unshift(@available, $self-&gt;status);
</span><span class="cx">     }
</span><del>-
-    $self-&gt;{'statuses_available'} = \@available;
-    return $self-&gt;{'statuses_available'};
</del><ins>+    
+    return \@available;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub show_attachment_flags {
</span><span class="lines">@@ -3583,23 +3922,23 @@
</span><span class="cx">     return {} if $self-&gt;{'error'};
</span><span class="cx"> 
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><del>-
</del><span class="cx">     my $prod_id = $self-&gt;{'product_id'};
</span><span class="cx"> 
</span><del>-    my $unknown_privileges = $user-&gt;in_group('editbugs', $prod_id);
-    my $canedit = $unknown_privileges
-                  || $user-&gt;id == $self-&gt;{'assigned_to'}
-                  || (Bugzilla-&gt;params-&gt;{'useqacontact'}
-                      &amp;&amp; $self-&gt;{'qa_contact'}
-                      &amp;&amp; $user-&gt;id == $self-&gt;{'qa_contact'});
-    my $canconfirm = $unknown_privileges
-                     || $user-&gt;in_group('canconfirm', $prod_id);
-    my $isreporter = $user-&gt;id
-                     &amp;&amp; $user-&gt;id == $self-&gt;{reporter_id};
</del><ins>+    my $editbugs = $user-&gt;in_group('editbugs', $prod_id);
+    my $is_reporter = $user-&gt;id == $self-&gt;{reporter_id} ? 1 : 0;
+    my $is_assignee = $user-&gt;id == $self-&gt;{'assigned_to'} ? 1 : 0;
+    my $is_qa_contact = Bugzilla-&gt;params-&gt;{'useqacontact'}
+                        &amp;&amp; $self-&gt;{'qa_contact'}
+                        &amp;&amp; $user-&gt;id == $self-&gt;{'qa_contact'} ? 1 : 0;
</ins><span class="cx"> 
</span><ins>+    my $canedit = $editbugs || $is_assignee || $is_qa_contact;
+    my $canconfirm = $editbugs || $user-&gt;in_group('canconfirm', $prod_id);
+    my $has_any_role = $is_reporter || $is_assignee || $is_qa_contact;
+
</ins><span class="cx">     $self-&gt;{'user'} = {canconfirm =&gt; $canconfirm,
</span><span class="cx">                        canedit    =&gt; $canedit,
</span><del>-                       isreporter =&gt; $isreporter};
</del><ins>+                       isreporter =&gt; $is_reporter,
+                       has_any_role =&gt; $has_any_role};
</ins><span class="cx">     return $self-&gt;{'user'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3635,6 +3974,11 @@
</span><span class="cx">     my @resolutions = grep($_-&gt;name, @{ $resolution_field-&gt;legal_values });
</span><span class="cx">     $choices{'resolution'} = \@resolutions;
</span><span class="cx"> 
</span><ins>+    foreach my $key (keys %choices) {
+        my $value = $self-&gt;$key;
+        $choices{$key} = [grep { $_-&gt;is_active || $_-&gt;name eq $value } @{ $choices{$key} }];
+    }
+
</ins><span class="cx">     $self-&gt;{'choices'} = \%choices;
</span><span class="cx">     return $self-&gt;{'choices'};
</span><span class="cx"> }
</span><span class="lines">@@ -3646,11 +3990,10 @@
</span><span class="cx"> # the ID of the bug if it exists or the undefined value if it doesn't.
</span><span class="cx"> sub bug_alias_to_id {
</span><span class="cx">     my ($alias) = @_;
</span><del>-    return undef unless Bugzilla-&gt;params-&gt;{&quot;usebugaliases&quot;};
</del><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     trick_taint($alias);
</span><span class="cx">     return $dbh-&gt;selectrow_array(
</span><del>-        &quot;SELECT bug_id FROM bugs WHERE alias = ?&quot;, undef, $alias);
</del><ins>+        &quot;SELECT bug_id FROM bugs_aliases WHERE alias = ?&quot;, undef, $alias);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #####################################################################
</span><span class="lines">@@ -3674,9 +4017,7 @@
</span><span class="cx">         # Ensure field exists before attempting to remove it.
</span><span class="cx">         splice(@fields, $location, 1) if ($location &gt; -1);
</span><span class="cx">     }
</span><del>-    # Sorted because the old @::log_columns variable, which this replaces,
-    # was sorted.
-    return sort(@fields);
</del><ins>+    return @fields;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # XXX - When Bug::update() will be implemented, we should make this routine
</span><span class="lines">@@ -3684,36 +4025,76 @@
</span><span class="cx"> # Join with bug_status and bugs tables to show bugs with open statuses first,
</span><span class="cx"> # and then the others
</span><span class="cx"> sub EmitDependList {
</span><del>-    my ($myfield, $targetfield, $bug_id) = (@_);
</del><ins>+    my ($my_field, $target_field, $bug_id, $exclude_resolved) = @_;
+    my $cache = Bugzilla-&gt;request_cache-&gt;{bug_dependency_list} ||= {};
+
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    my $list_ref = $dbh-&gt;selectcol_arrayref(
-          &quot;SELECT $targetfield
</del><ins>+    $exclude_resolved = $exclude_resolved ? 1 : 0;
+    my $is_open_clause = $exclude_resolved ? 'AND is_open = 1' : '';
+
+    $cache-&gt;{&quot;${target_field}_sth_$exclude_resolved&quot;} ||= $dbh-&gt;prepare(
+          &quot;SELECT $target_field
</ins><span class="cx">              FROM dependencies
</span><del>-                  INNER JOIN bugs ON dependencies.$targetfield = bugs.bug_id
</del><ins>+                  INNER JOIN bugs ON dependencies.$target_field = bugs.bug_id
</ins><span class="cx">                   INNER JOIN bug_status ON bugs.bug_status = bug_status.value
</span><del>-            WHERE $myfield = ?
-            ORDER BY is_open DESC, $targetfield&quot;,
-            undef, $bug_id);
-    return $list_ref;
</del><ins>+            WHERE $my_field = ? $is_open_clause
+            ORDER BY is_open DESC, $target_field&quot;);
+
+    return $dbh-&gt;selectcol_arrayref(
+        $cache-&gt;{&quot;${target_field}_sth_$exclude_resolved&quot;},
+        undef, $bug_id);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Creates a lot of bug objects in the same order as the input array.
</span><span class="cx"> sub _bugs_in_order {
</span><span class="cx">     my ($self, $bug_ids) = @_;
</span><del>-    my $bugs = $self-&gt;new_from_list($bug_ids);
-    my %bug_map = map { $_-&gt;id =&gt; $_ } @$bugs;
-    my @result = map { $bug_map{$_} } @$bug_ids;
-    return \@result;
</del><ins>+    return [] unless @$bug_ids;
+
+    my %bug_map;
+    my $dbh = Bugzilla-&gt;dbh;
+
+    # there's no need to load bugs from the database if they are already in the
+    # object-cache
+    my @missing_ids;
+    foreach my $bug_id (@$bug_ids) {
+        if (my $bug = Bugzilla::Bug-&gt;object_cache_get($bug_id)) {
+            $bug_map{$bug_id} = $bug;
+        }
+        else {
+            push @missing_ids, $bug_id;
+        }
+    }
+    if (@missing_ids) {
+        my $bugs = Bugzilla::Bug-&gt;new_from_list(\@missing_ids);
+        $bug_map{$_-&gt;id} = $_ foreach @$bugs;
+    }
+
+    # Dependencies are often displayed using their aliases instead of their
+    # bug ID. Load them all at once.
+    my $rows = $dbh-&gt;selectall_arrayref(
+        'SELECT bug_id, alias FROM bugs_aliases WHERE ' .
+        $dbh-&gt;sql_in('bug_id', $bug_ids) . ' ORDER BY alias');
+
+    foreach my $row (@$rows) {
+        my ($bug_id, $alias) = @$row;
+        $bug_map{$bug_id}-&gt;{alias} ||= [];
+        push @{ $bug_map{$bug_id}-&gt;{alias} }, $alias;
+    }
+    # Make sure all bugs have their alias attribute set.
+    $bug_map{$_}-&gt;{alias} ||= [] foreach @$bug_ids;
+
+    return [ map { $bug_map{$_} } @$bug_ids ];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Get the activity of a bug, starting from $starttime (if given).
</span><span class="cx"> # This routine assumes Bugzilla::Bug-&gt;check has been previously called.
</span><del>-sub GetBugActivity {
-    my ($bug_id, $attach_id, $starttime) = @_;
</del><ins>+sub get_activity {
+    my ($self, $attach_id, $starttime, $include_comment_tags) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><ins>+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><span class="cx">     # Arguments passed to the SQL query.
</span><del>-    my @args = ($bug_id);
</del><ins>+    my @args = ($self-&gt;id);
</ins><span class="cx"> 
</span><span class="cx">     # Only consider changes since $starttime, if given.
</span><span class="cx">     my $datepart = &quot;&quot;;
</span><span class="lines">@@ -3720,7 +4101,7 @@
</span><span class="cx">     if (defined $starttime) {
</span><span class="cx">         trick_taint($starttime);
</span><span class="cx">         push (@args, $starttime);
</span><del>-        $datepart = &quot;AND bugs_activity.bug_when &gt; ?&quot;;
</del><ins>+        $datepart = &quot;AND bug_when &gt; ?&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $attachpart = &quot;&quot;;
</span><span class="lines">@@ -3732,8 +4113,7 @@
</span><span class="cx">     # Only includes attachments the user is allowed to see.
</span><span class="cx">     my $suppjoins = &quot;&quot;;
</span><span class="cx">     my $suppwhere = &quot;&quot;;
</span><del>-    if (!Bugzilla-&gt;user-&gt;is_insider) 
-    {
</del><ins>+    if (!$user-&gt;is_insider) {
</ins><span class="cx">         $suppjoins = &quot;LEFT JOIN attachments 
</span><span class="cx">                    ON attachments.attach_id = bugs_activity.attach_id&quot;;
</span><span class="cx">         $suppwhere = &quot;AND COALESCE(attachments.isprivate, 0) = 0&quot;;
</span><span class="lines">@@ -3741,11 +4121,11 @@
</span><span class="cx"> 
</span><span class="cx">     my $query = &quot;SELECT fielddefs.name, bugs_activity.attach_id, &quot; .
</span><span class="cx">         $dbh-&gt;sql_date_format('bugs_activity.bug_when', '%Y.%m.%d %H:%i:%s') .
</span><del>-            &quot;, bugs_activity.removed, bugs_activity.added, profiles.login_name, 
</del><ins>+            &quot; AS bug_when, bugs_activity.removed, bugs_activity.added, profiles.login_name,
</ins><span class="cx">                bugs_activity.comment_id
</span><span class="cx">           FROM bugs_activity
</span><span class="cx">                $suppjoins
</span><del>-     LEFT JOIN fielddefs
</del><ins>+    INNER JOIN fielddefs
</ins><span class="cx">             ON bugs_activity.fieldid = fielddefs.id
</span><span class="cx">     INNER JOIN profiles
</span><span class="cx">             ON profiles.userid = bugs_activity.who
</span><span class="lines">@@ -3752,9 +4132,43 @@
</span><span class="cx">          WHERE bugs_activity.bug_id = ?
</span><span class="cx">                $datepart
</span><span class="cx">                $attachpart
</span><del>-               $suppwhere
-      ORDER BY bugs_activity.bug_when&quot;;
</del><ins>+               $suppwhere &quot;;
</ins><span class="cx"> 
</span><ins>+    if (Bugzilla-&gt;params-&gt;{'comment_taggers_group'}
+        &amp;&amp; $include_comment_tags
+        &amp;&amp; !$attach_id)
+    {
+        # Only includes comment tag activity for comments the user is allowed to see.
+        $suppjoins = &quot;&quot;;
+        $suppwhere = &quot;&quot;;
+        if (!Bugzilla-&gt;user-&gt;is_insider) {
+            $suppjoins = &quot;INNER JOIN longdescs
+                          ON longdescs.comment_id = longdescs_tags_activity.comment_id&quot;;
+            $suppwhere = &quot;AND longdescs.isprivate = 0&quot;;
+        }
+
+        $query .= &quot;
+            UNION ALL
+            SELECT 'comment_tag' AS name,
+                   NULL AS attach_id,&quot; .
+                   $dbh-&gt;sql_date_format('longdescs_tags_activity.bug_when', '%Y.%m.%d %H:%i:%s') . &quot; AS bug_when,
+                   longdescs_tags_activity.removed,
+                   longdescs_tags_activity.added,
+                   profiles.login_name,
+                   longdescs_tags_activity.comment_id as comment_id
+              FROM longdescs_tags_activity
+                   INNER JOIN profiles ON profiles.userid = longdescs_tags_activity.who
+                   $suppjoins
+             WHERE longdescs_tags_activity.bug_id = ?
+                   $datepart
+                   $suppwhere
+        &quot;;
+        push @args, $self-&gt;id;
+        push @args, $starttime if defined $starttime;
+    }
+
+    $query .= &quot;ORDER BY bug_when, comment_id&quot;;
+
</ins><span class="cx">     my $list = $dbh-&gt;selectall_arrayref($query, undef, @args);
</span><span class="cx"> 
</span><span class="cx">     my @operations;
</span><span class="lines">@@ -3768,16 +4182,11 @@
</span><span class="cx">         my $activity_visible = 1;
</span><span class="cx"> 
</span><span class="cx">         # check if the user should see this field's activity
</span><del>-        if ($fieldname eq 'remaining_time'
-            || $fieldname eq 'estimated_time'
-            || $fieldname eq 'work_time'
-            || $fieldname eq 'deadline')
-        {
-            $activity_visible = Bugzilla-&gt;user-&gt;is_timetracker;
</del><ins>+        if (grep { $fieldname eq $_ } TIMETRACKING_FIELDS) {
+            $activity_visible = $user-&gt;is_timetracker;
</ins><span class="cx">         }
</span><span class="cx">         elsif ($fieldname eq 'longdescs.isprivate'
</span><del>-                &amp;&amp; !Bugzilla-&gt;user-&gt;is_insider 
-                &amp;&amp; $added) 
</del><ins>+               &amp;&amp; !$user-&gt;is_insider &amp;&amp; $added)
</ins><span class="cx">         { 
</span><span class="cx">             $activity_visible = 0;
</span><span class="cx">         } 
</span><span class="lines">@@ -3808,16 +4217,27 @@
</span><span class="cx">                 $changes = [];
</span><span class="cx">             }
</span><span class="cx"> 
</span><ins>+            # If this is the same field as the previous item, then concatenate
+            # the data into the same change.
+            if ($operation-&gt;{'who'} &amp;&amp; $who eq $operation-&gt;{'who'}
+                &amp;&amp; $when eq $operation-&gt;{'when'}
+                &amp;&amp; $fieldname eq $operation-&gt;{'fieldname'}
+                &amp;&amp; ($comment_id || 0) == ($operation-&gt;{'comment_id'} || 0)
+                &amp;&amp; ($attachid || 0) == ($operation-&gt;{'attachid'} || 0))
+            {
+                my $old_change = pop @$changes;
+                $removed = join_activity_entries($fieldname, $old_change-&gt;{'removed'}, $removed);
+                $added = join_activity_entries($fieldname, $old_change-&gt;{'added'}, $added);
+            }
</ins><span class="cx">             $operation-&gt;{'who'} = $who;
</span><span class="cx">             $operation-&gt;{'when'} = $when;
</span><del>-
-            $change{'fieldname'} = $fieldname;
-            $change{'attachid'} = $attachid;
</del><ins>+            $operation-&gt;{'fieldname'} = $change{'fieldname'} = $fieldname;
+            $operation-&gt;{'attachid'} = $change{'attachid'} = $attachid;
</ins><span class="cx">             $change{'removed'} = $removed;
</span><span class="cx">             $change{'added'} = $added;
</span><del>-            
</del><ins>+
</ins><span class="cx">             if ($comment_id) {
</span><del>-                $change{'comment'} = Bugzilla::Comment-&gt;new($comment_id);
</del><ins>+                $operation-&gt;{comment_id} = $change{'comment'} = Bugzilla::Comment-&gt;new($comment_id);
</ins><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             push (@$changes, \%change);
</span><span class="lines">@@ -3834,8 +4254,13 @@
</span><span class="cx"> 
</span><span class="cx"> # Update the bugs_activity table to reflect changes made in bugs.
</span><span class="cx"> sub LogActivityEntry {
</span><del>-    my ($i, $col, $removed, $added, $whoid, $timestamp, $comment_id) = @_;
-    my $dbh = Bugzilla-&gt;dbh;
</del><ins>+    my ($bug_id, $field, $removed, $added, $user_id, $timestamp, $comment_id,
+        $attach_id) = @_;
+    my $sth = Bugzilla-&gt;dbh-&gt;prepare_cached(
+        'INSERT INTO bugs_activity
+        (bug_id, who, bug_when, fieldid, removed, added, comment_id, attach_id)
+        VALUES (?, ?, ?, ?, ?, ?, ?, ?)');
+
</ins><span class="cx">     # in the case of CCs, deps, and keywords, there's a possibility that someone
</span><span class="cx">     # might try to add or remove a lot of them at once, which might take more
</span><span class="cx">     # space than the activity table allows.  We'll solve this by splitting it
</span><span class="lines">@@ -3846,7 +4271,6 @@
</span><span class="cx">             my $commaposition = find_wrap_point($removed, MAX_LINE_LENGTH);
</span><span class="cx">             $removestr = substr($removed, 0, $commaposition);
</span><span class="cx">             $removed = substr($removed, $commaposition);
</span><del>-            $removed =~ s/^[,\s]+//; # remove any comma or space
</del><span class="cx">         } else {
</span><span class="cx">             $removed = &quot;&quot;; # no more entries
</span><span class="cx">         }
</span><span class="lines">@@ -3854,20 +4278,34 @@
</span><span class="cx">             my $commaposition = find_wrap_point($added, MAX_LINE_LENGTH);
</span><span class="cx">             $addstr = substr($added, 0, $commaposition);
</span><span class="cx">             $added = substr($added, $commaposition);
</span><del>-            $added =~ s/^[,\s]+//; # remove any comma or space
</del><span class="cx">         } else {
</span><span class="cx">             $added = &quot;&quot;; # no more entries
</span><span class="cx">         }
</span><span class="cx">         trick_taint($addstr);
</span><span class="cx">         trick_taint($removestr);
</span><del>-        my $fieldid = get_field_id($col);
-        $dbh-&gt;do(&quot;INSERT INTO bugs_activity
-                  (bug_id, who, bug_when, fieldid, removed, added, comment_id)
-                  VALUES (?, ?, ?, ?, ?, ?, ?)&quot;,
-                  undef, ($i, $whoid, $timestamp, $fieldid, $removestr, $addstr, $comment_id));
</del><ins>+        my $fieldid = get_field_id($field);
+        $sth-&gt;execute($bug_id, $user_id, $timestamp, $fieldid, $removestr,
+            $addstr, $comment_id, $attach_id);
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# Update bug_user_last_visit table
+sub update_user_last_visit {
+    my ($self, $user, $last_visit_ts) = @_;
+    my $lv = Bugzilla::BugUserLastVisit-&gt;match({ bug_id  =&gt; $self-&gt;id,
+                                                 user_id =&gt; $user-&gt;id })-&gt;[0];
+
+    if ($lv) {
+        $lv-&gt;set(last_visit_ts =&gt; $last_visit_ts);
+        $lv-&gt;update;
+    }
+    else {
+        Bugzilla::BugUserLastVisit-&gt;create({ bug_id        =&gt; $self-&gt;id,
+                                             user_id       =&gt; $user-&gt;id,
+                                             last_visit_ts =&gt; $last_visit_ts });
+    }
+}
+
</ins><span class="cx"> # Convert WebService API and email_in.pl field names to internal DB field
</span><span class="cx"> # names.
</span><span class="cx"> sub map_fields {
</span><span class="lines">@@ -3875,6 +4313,8 @@
</span><span class="cx"> 
</span><span class="cx">     my %field_values;
</span><span class="cx">     foreach my $field (keys %$params) {
</span><ins>+        # Don't allow setting private fields via email_in or the WebService.
+        next if $field =~ /^_/;
</ins><span class="cx">         my $field_name;
</span><span class="cx">         if ($except-&gt;{$field}) {
</span><span class="cx">            $field_name = $field;
</span><span class="lines">@@ -3941,12 +4381,12 @@
</span><span class="cx">         return 1;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Allow anyone to change comments.
-    if ($field =~ /^longdesc/) {
</del><ins>+    # Allow anyone to change comments, or set flags
+    if ($field =~ /^longdesc/ || $field eq 'flagtypes.name') {
</ins><span class="cx">         return 1;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # If the user isn't allowed to change a field, we must tell him who can.
</del><ins>+    # If the user isn't allowed to change a field, we must tell them who can.
</ins><span class="cx">     # We store the required permission set into the $PrivilegesRequired
</span><span class="cx">     # variable which gets passed to the error template.
</span><span class="cx">     #
</span><span class="lines">@@ -3954,9 +4394,10 @@
</span><span class="cx">     # $PrivilegesRequired = PRIVILEGES_REQUIRED_REPORTER : the reporter, assignee or an empowered user;
</span><span class="cx">     # $PrivilegesRequired = PRIVILEGES_REQUIRED_ASSIGNEE : the assignee or an empowered user;
</span><span class="cx">     # $PrivilegesRequired = PRIVILEGES_REQUIRED_EMPOWERED : an empowered user.
</span><del>-    
-    # Only users in the time-tracking group can change time-tracking fields.
-    if ( grep($_ eq $field, TIMETRACKING_FIELDS) ) {
</del><ins>+
+    # Only users in the time-tracking group can change time-tracking fields,
+    # including the deadline.
+    if (grep { $_ eq $field } (TIMETRACKING_FIELDS, 'deadline')) {
</ins><span class="cx">         if (!$user-&gt;is_timetracker) {
</span><span class="cx">             $$PrivilegesRequired = PRIVILEGES_REQUIRED_EMPOWERED;
</span><span class="cx">             return 0;
</span><span class="lines">@@ -3997,7 +4438,7 @@
</span><span class="cx">     # is not allowed to change.
</span><span class="cx"> 
</span><span class="cx">     # The reporter may not:
</span><del>-    # - reassign bugs, unless the bugs are assigned to him;
</del><ins>+    # - reassign bugs, unless the bugs are assigned to them;
</ins><span class="cx">     #   in that case we will have already returned 1 above
</span><span class="cx">     #   when checking for the assignee of the bug.
</span><span class="cx">     if ($field eq 'assigned_to') {
</span><span class="lines">@@ -4014,7 +4455,7 @@
</span><span class="cx">         $$PrivilegesRequired = PRIVILEGES_REQUIRED_ASSIGNEE;
</span><span class="cx">         return 0;
</span><span class="cx">     }
</span><del>-    # - change the priority (unless he could have set it originally)
</del><ins>+    # - change the priority (unless they could have set it originally)
</ins><span class="cx">     if ($field eq 'priority'
</span><span class="cx">         &amp;&amp; !Bugzilla-&gt;params-&gt;{'letsubmitterchoosepriority'})
</span><span class="cx">     {
</span><span class="lines">@@ -4084,6 +4525,10 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my %deps;
</span><span class="cx">     my %deptree;
</span><ins>+    my %sth;
+    $sth{dependson} = $dbh-&gt;prepare('SELECT dependson FROM dependencies WHERE blocked   = ?');
+    $sth{blocked}   = $dbh-&gt;prepare('SELECT blocked   FROM dependencies WHERE dependson = ?');
+
</ins><span class="cx">     foreach my $pair ([&quot;blocked&quot;, &quot;dependson&quot;], [&quot;dependson&quot;, &quot;blocked&quot;]) {
</span><span class="cx">         my ($me, $target) = @{$pair};
</span><span class="cx">         $deptree{$target} = [];
</span><span class="lines">@@ -4108,10 +4553,7 @@
</span><span class="cx">         my @stack = @{$deps{$target}};
</span><span class="cx">         while (@stack) {
</span><span class="cx">             my $i = shift @stack;
</span><del>-            my $dep_list =
-                $dbh-&gt;selectcol_arrayref(&quot;SELECT $target
-                                          FROM dependencies
-                                          WHERE $me = ?&quot;, undef, $i);
</del><ins>+            my $dep_list = $dbh-&gt;selectcol_arrayref($sth{$target}, undef, $i);
</ins><span class="cx">             foreach my $t (@$dep_list) {
</span><span class="cx">                 # ignore any _current_ dependencies involving this bug,
</span><span class="cx">                 # as they will be overwritten with data from the form.
</span><span class="lines">@@ -4190,3 +4632,295 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+__END__
+=head1 B&lt;Methods&gt;
+
+=over
+
+=item C&lt;initialize&gt;
+
+Ensures the accessors for custom fields are always created.
+
+=item C&lt;add_alias($alias)&gt;
+
+Adds an alias to the internal respresentation of the bug. You will need to
+call L&lt;update&gt; to make the changes permanent.
+
+=item C&lt;remove_alias($alias)&gt;
+
+Removes an alias from the internal respresentation of the bug. You will need to
+call L&lt;update&gt; to make the changes permanent.
+
+=item C&lt;update_user_last_visit($user, $last_visit)&gt;
+
+Creates or updates a L&lt;Bugzilla::BugUserLastVisit&gt; for this bug and the supplied
+$user, the timestamp given as $last_visit.
+
+=back
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item remove_cc
+
+=item add_see_also
+
+=item choices
+
+=item keywords
+
+=item blocked
+
+=item qa_contact
+
+=item add_comment
+
+=item bug_severity
+
+=item dup_id
+
+=item set_priority
+
+=item any_flags_requesteeble
+
+=item set_bug_status
+
+=item estimated_time
+
+=item set_platform
+
+=item statuses_available
+
+=item set_custom_field
+
+=item remove_see_also
+
+=item remove_from_db
+
+=item product_obj
+
+=item reporter_accessible
+
+=item set_summary
+
+=item LogActivityEntry
+
+=item set_assigned_to
+
+=item add_group
+
+=item bug_file_loc
+
+=item DATE_COLUMNS
+
+=item set_component
+
+=item delta_ts
+
+=item set_resolution
+
+=item version
+
+=item deadline
+
+=item fields
+
+=item dependson
+
+=item check_can_change_field
+
+=item update
+
+=item set_op_sys
+
+=item object_cache_key
+
+=item bug_group
+
+=item comments
+
+=item map_fields
+
+=item assigned_to
+
+=item user
+
+=item ValidateDependencies
+
+=item short_desc
+
+=item duplicate_ids
+
+=item isopened
+
+=item remaining_time
+
+=item set_deadline
+
+=item preload
+
+=item groups_in
+
+=item clear_resolution
+
+=item set_estimated_time
+
+=item in_group
+
+=item status
+
+=item get_activity
+
+=item reporter
+
+=item rep_platform
+
+=item DB_COLUMNS
+
+=item flag_types
+
+=item bug_status
+
+=item attachments
+
+=item flags
+
+=item set_flags
+
+=item actual_time
+
+=item component
+
+=item UPDATE_COLUMNS
+
+=item set_cclist_accessible
+
+=item set_bug_ignored
+
+=item product
+
+=item VALIDATORS
+
+=item show_attachment_flags
+
+=item set_comment_is_private
+
+=item set_severity
+
+=item send_changes
+
+=item add_tag
+
+=item bug_id
+
+=item reset_qa_contact
+
+=item remove_group
+
+=item set_dup_id
+
+=item set_target_milestone
+
+=item cc_users
+
+=item everconfirmed
+
+=item check_is_visible
+
+=item check_for_edit
+
+=item match
+
+=item VALIDATOR_DEPENDENCIES
+
+=item possible_duplicates
+
+=item set_url
+
+=item add_cc
+
+=item blocks_obj
+
+=item set_status_whiteboard
+
+=item product_id
+
+=item error
+
+=item reset_assigned_to
+
+=item status_whiteboard
+
+=item create
+
+=item set_all
+
+=item set_reporter_accessible
+
+=item classification_id
+
+=item tags
+
+=item modify_keywords
+
+=item priority
+
+=item keyword_objects
+
+=item set_dependencies
+
+=item depends_on_obj
+
+=item cclist_accessible
+
+=item cc
+
+=item duplicates
+
+=item component_obj
+
+=item see_also
+
+=item groups
+
+=item default_bug_status
+
+=item related_bugs
+
+=item editable_bug_fields
+
+=item resolution
+
+=item lastdiffed
+
+=item classification
+
+=item alias
+
+=item op_sys
+
+=item remove_tag
+
+=item percentage_complete
+
+=item EmitDependList
+
+=item bug_alias_to_id
+
+=item set_qa_contact
+
+=item creation_ts
+
+=item set_version
+
+=item component_id
+
+=item new_bug_statuses
+
+=item set_remaining_time
+
+=item target_milestone
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugMailpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugMail.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugMail.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugMail.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,40 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;,
-#                 Bryce Nesbitt &lt;bryce-mozilla@nextbus.com&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Alan Raetz &lt;al_raetz@yahoo.com&gt;
-#                 Jacob Steenhagen &lt;jake@actex.net&gt;
-#                 Matthew Tuck &lt;matty@chariot.net.au&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-#                 Reed Loden &lt;reed@reedloden.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::BugMail;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::BugMail;
-
</del><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -43,11 +19,13 @@
</span><span class="cx"> use Bugzilla::Comment;
</span><span class="cx"> use Bugzilla::Mailer;
</span><span class="cx"> use Bugzilla::Hook;
</span><ins>+use Bugzilla::MIME;
</ins><span class="cx"> 
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> use Date::Format;
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> use List::MoreUtils qw(uniq);
</span><ins>+use Storable qw(dclone);
</ins><span class="cx"> 
</span><span class="cx"> use constant BIT_DIRECT    =&gt; 1;
</span><span class="cx"> use constant BIT_WATCHING  =&gt; 2;
</span><span class="lines">@@ -61,9 +39,6 @@
</span><span class="cx">     return %relationships;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# This is a bit of a hack, basically keeping the old system()
-# cmd line interface. Should clean this up at some point.
-#
</del><span class="cx"> # args: bug_id, and an optional hash ref which may have keys for:
</span><span class="cx"> # changer, owner, qa, reporter, cc
</span><span class="cx"> # Optional hash contains values of people which will be forced to those
</span><span class="lines">@@ -111,26 +86,33 @@
</span><span class="cx">         @diffs = _get_new_bugmail_fields($bug);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    my $comments = [];
+
</ins><span class="cx">     if ($params-&gt;{dep_only}) {
</span><span class="cx">         push(@diffs, { field_name =&gt; 'bug_status',
</span><del>-                       old =&gt; $params-&gt;{changes}-&gt;{bug_status}-&gt;[0],
-                       new =&gt; $params-&gt;{changes}-&gt;{bug_status}-&gt;[1],
</del><ins>+                       old        =&gt; $params-&gt;{changes}-&gt;{bug_status}-&gt;[0],
+                       new        =&gt; $params-&gt;{changes}-&gt;{bug_status}-&gt;[1],
</ins><span class="cx">                        login_name =&gt; $changer-&gt;login,
</span><del>-                       blocker =&gt; $params-&gt;{blocker} },
</del><ins>+                       who        =&gt; $changer,
+                       blocker    =&gt; $params-&gt;{blocker} },
</ins><span class="cx">                      { field_name =&gt; 'resolution',
</span><del>-                       old =&gt; $params-&gt;{changes}-&gt;{resolution}-&gt;[0],
-                       new =&gt; $params-&gt;{changes}-&gt;{resolution}-&gt;[1],
</del><ins>+                       old        =&gt; $params-&gt;{changes}-&gt;{resolution}-&gt;[0],
+                       new        =&gt; $params-&gt;{changes}-&gt;{resolution}-&gt;[1],
</ins><span class="cx">                        login_name =&gt; $changer-&gt;login,
</span><del>-                       blocker =&gt; $params-&gt;{blocker} });
</del><ins>+                       who        =&gt; $changer,
+                       blocker    =&gt; $params-&gt;{blocker} });
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         push(@diffs, _get_diffs($bug, $end, \%user_cache));
</span><ins>+
+        $comments = $bug-&gt;comments({ after =&gt; $start, to =&gt; $end });
+        # Skip empty comments.
+        @$comments = grep { $_-&gt;type || $_-&gt;body =~ /\S/ } @$comments;
+
+        # If no changes have been made, there is no need to process further.
+        return {'sent' =&gt; []} unless scalar(@diffs) || scalar(@$comments);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    my $comments = $bug-&gt;comments({ after =&gt; $start, to =&gt; $end });
-    # Skip empty comments.
-    @$comments = grep { $_-&gt;type || $_-&gt;body =~ /\S/ } @$comments;
-
</del><span class="cx">     ###########################################################################
</span><span class="cx">     # Start of email filtering code
</span><span class="cx">     ###########################################################################
</span><span class="lines">@@ -138,7 +120,10 @@
</span><span class="cx">     # A user_id =&gt; roles hash to keep track of people.
</span><span class="cx">     my %recipients;
</span><span class="cx">     my %watching;
</span><del>-    
</del><ins>+
+    # We also record bugs that are referenced
+    my @referenced_bug_ids = ();
+
</ins><span class="cx">     # Now we work out all the people involved with this bug, and note all of
</span><span class="cx">     # the relationships in a hash. The keys are userids, the values are an
</span><span class="cx">     # array of role constants.
</span><span class="lines">@@ -182,8 +167,17 @@
</span><span class="cx">                 $recipients{$uid}-&gt;{+REL_ASSIGNEE} = BIT_DIRECT if $uid;
</span><span class="cx">             }
</span><span class="cx">         }
</span><ins>+
+        if ($change-&gt;{field_name} eq 'dependson' || $change-&gt;{field_name} eq 'blocked') {
+            push @referenced_bug_ids, split(/[\s,]+/, $change-&gt;{old} // '');
+            push @referenced_bug_ids, split(/[\s,]+/, $change-&gt;{new} // '');
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    my $referenced_bugs = scalar(@referenced_bug_ids)
+        ? Bugzilla::Bug-&gt;new_from_list([uniq @referenced_bug_ids])
+        : [];
+
</ins><span class="cx">     # Make sure %user_cache has every user in it so far referenced
</span><span class="cx">     foreach my $user_id (keys %recipients) {
</span><span class="cx">         $user_cache{$user_id} ||= new Bugzilla::User($user_id);
</span><span class="lines">@@ -193,21 +187,24 @@
</span><span class="cx">                             { bug =&gt; $bug, recipients =&gt; \%recipients,
</span><span class="cx">                               users =&gt; \%user_cache, diffs =&gt; \@diffs });
</span><span class="cx"> 
</span><del>-    # Find all those user-watching anyone on the current list, who is not
-    # on it already themselves.
-    my $involved = join(&quot;,&quot;, keys %recipients);
</del><ins>+    # We should not assume %recipients to have any entries.
+    if (scalar keys %recipients) {
+        # Find all those user-watching anyone on the current list, who is not
+        # on it already themselves.
+        my $involved = join(&quot;,&quot;, keys %recipients);
</ins><span class="cx"> 
</span><del>-    my $userwatchers =
-        $dbh-&gt;selectall_arrayref(&quot;SELECT watcher, watched FROM watch
-                                  WHERE watched IN ($involved)&quot;);
</del><ins>+        my $userwatchers =
+            $dbh-&gt;selectall_arrayref(&quot;SELECT watcher, watched FROM watch
+                                      WHERE watched IN ($involved)&quot;);
</ins><span class="cx"> 
</span><del>-    # Mark these people as having the role of the person they are watching
-    foreach my $watch (@$userwatchers) {
-        while (my ($role, $bits) = each %{$recipients{$watch-&gt;[1]}}) {
-            $recipients{$watch-&gt;[0]}-&gt;{$role} |= BIT_WATCHING
-                if $bits &amp; BIT_DIRECT;
</del><ins>+        # Mark these people as having the role of the person they are watching
+        foreach my $watch (@$userwatchers) {
+            while (my ($role, $bits) = each %{$recipients{$watch-&gt;[1]}}) {
+                $recipients{$watch-&gt;[0]}-&gt;{$role} |= BIT_WATCHING
+                    if $bits &amp; BIT_DIRECT;
+            }
+            push(@{$watching{$watch-&gt;[0]}}, $watch-&gt;[1]);
</ins><span class="cx">         }
</span><del>-        push(@{$watching{$watch-&gt;[0]}}, $watch-&gt;[1]);
</del><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Global watcher
</span><span class="lines">@@ -222,7 +219,6 @@
</span><span class="cx">     # the bug in question. However, we are not necessarily going to mail them
</span><span class="cx">     # all - there are preferences, permissions checks and all sorts to do yet.
</span><span class="cx">     my @sent;
</span><del>-    my @excluded;
</del><span class="cx"> 
</span><span class="cx">     # The email client will display the Date: header in the desired timezone,
</span><span class="cx">     # so we can always use UTC here.
</span><span class="lines">@@ -231,12 +227,14 @@
</span><span class="cx"> 
</span><span class="cx">     foreach my $user_id (keys %recipients) {
</span><span class="cx">         my %rels_which_want;
</span><del>-        my $sent_mail = 0;
-        $user_cache{$user_id} ||= new Bugzilla::User($user_id);
-        my $user = $user_cache{$user_id};
</del><ins>+        my $user = $user_cache{$user_id} ||= new Bugzilla::User($user_id);
</ins><span class="cx">         # Deleted users must be excluded.
</span><span class="cx">         next unless $user;
</span><span class="cx"> 
</span><ins>+        # If email notifications are disabled for this account, or the bug
+        # is ignored, there is no need to do additional checks.
+        next if ($user-&gt;email_disabled || $user-&gt;is_bug_ignored($id));
+
</ins><span class="cx">         if ($user-&gt;can_see_bug($id)) {
</span><span class="cx">             # Go through each role the user has and see if they want mail in
</span><span class="cx">             # that role.
</span><span class="lines">@@ -253,7 +251,7 @@
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         if (scalar(%rels_which_want)) {
</span><span class="cx">             # So the user exists, can see the bug, and wants mail in at least
</span><span class="cx">             # one role. But do we want to send it to them?
</span><span class="lines">@@ -266,29 +264,24 @@
</span><span class="cx">                 $dep_ok = $user-&gt;can_see_bug($params-&gt;{blocker}-&gt;id) ? 1 : 0;
</span><span class="cx">             }
</span><span class="cx"> 
</span><del>-            # Make sure the user isn't in the nomail list, and the dep check passed.
-            if ($user-&gt;email_enabled &amp;&amp; $dep_ok) {
-                # OK, OK, if we must. Email the user.
-                $sent_mail = sendMail(
-                    { to       =&gt; $user, 
-                      bug      =&gt; $bug,
-                      comments =&gt; $comments,
-                      date     =&gt; $date,
-                      changer  =&gt; $changer,
-                      watchers =&gt; exists $watching{$user_id} ?
-                                  $watching{$user_id} : undef,
-                      diffs    =&gt; \@diffs,
</del><ins>+            # Email the user if the dep check passed.
+            if ($dep_ok) {
+                my $sent_mail = sendMail(
+                    { to              =&gt; $user, 
+                      bug             =&gt; $bug,
+                      comments        =&gt; $comments,
+                      date            =&gt; $date,
+                      changer         =&gt; $changer,
+                      watchers        =&gt; exists $watching{$user_id} ?
+                                         $watching{$user_id} : undef,
+                      diffs           =&gt; \@diffs,
</ins><span class="cx">                       rels_which_want =&gt; \%rels_which_want,
</span><ins>+                      dep_only        =&gt; $params-&gt;{dep_only},
+                      referenced_bugs =&gt; $referenced_bugs,
</ins><span class="cx">                     });
</span><ins>+                push(@sent, $user-&gt;login) if $sent_mail;
</ins><span class="cx">             }
</span><span class="cx">         }
</span><del>-
-        if ($sent_mail) {
-            push(@sent, $user-&gt;login); 
-        } 
-        else {
-            push(@excluded, $user-&gt;login); 
-        } 
</del><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # When sending bugmail about a blocker being reopened or resolved,
</span><span class="lines">@@ -300,27 +293,29 @@
</span><span class="cx">         $bug-&gt;{lastdiffed} = $end;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return {'sent' =&gt; \@sent, 'excluded' =&gt; \@excluded};
</del><ins>+    return {'sent' =&gt; \@sent};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sendMail {
</span><span class="cx">     my $params = shift;
</span><del>-    
-    my $user   = $params-&gt;{to};
-    my $bug    = $params-&gt;{bug};
-    my @send_comments = @{ $params-&gt;{comments} };
-    my $date = $params-&gt;{date};
-    my $changer = $params-&gt;{changer};
-    my $watchingRef = $params-&gt;{watchers};
-    my @diffs = @{ $params-&gt;{diffs} };
-    my $relRef      = $params-&gt;{rels_which_want};
</del><span class="cx"> 
</span><ins>+    my $user            = $params-&gt;{to};
+    my $bug             = $params-&gt;{bug};
+    my @send_comments   = @{ $params-&gt;{comments} };
+    my $date            = $params-&gt;{date};
+    my $changer         = $params-&gt;{changer};
+    my $watchingRef     = $params-&gt;{watchers};
+    my @diffs           = @{ $params-&gt;{diffs} };
+    my $relRef          = $params-&gt;{rels_which_want};
+    my $dep_only        = $params-&gt;{dep_only};
+    my $referenced_bugs = $params-&gt;{referenced_bugs};
+
</ins><span class="cx">     # Only display changes the user is allowed see.
</span><span class="cx">     my @display_diffs;
</span><span class="cx"> 
</span><span class="cx">     foreach my $diff (@diffs) {
</span><span class="cx">         my $add_diff = 0;
</span><del>-        
</del><ins>+
</ins><span class="cx">         if (grep { $_ eq $diff-&gt;{field_name} } TIMETRACKING_FIELDS) {
</span><span class="cx">             $add_diff = 1 if $user-&gt;is_timetracker;
</span><span class="cx">         }
</span><span class="lines">@@ -350,33 +345,99 @@
</span><span class="cx">     my @watchingrel = map { $relationships{$_} } @reasons_watch;
</span><span class="cx">     push(@headerrel,   'None') unless @headerrel;
</span><span class="cx">     push(@watchingrel, 'None') unless @watchingrel;
</span><del>-    push @watchingrel, map { user_id_to_login($_) } @$watchingRef;
</del><ins>+    push @watchingrel, map { Bugzilla::User-&gt;new($_)-&gt;login } @$watchingRef;
</ins><span class="cx"> 
</span><ins>+    my @changedfields = uniq map { $_-&gt;{field_name} } @display_diffs;
+
+    # Add attachments.created to changedfields if one or more
+    # comments contain information about a new attachment
+    if (grep($_-&gt;type == CMT_ATTACHMENT_CREATED, @send_comments)) {
+        push(@changedfields, 'attachments.created');
+    }
+
+    my $bugmailtype = &quot;changed&quot;;
+    $bugmailtype = &quot;new&quot; if !$bug-&gt;lastdiffed;
+    $bugmailtype = &quot;dep_changed&quot; if $dep_only;
+
</ins><span class="cx">     my $vars = {
</span><del>-        date =&gt; $date,
-        to_user =&gt; $user,
-        bug =&gt; $bug,
-        reasons =&gt; \@reasons,
-        reasons_watch =&gt; \@reasons_watch,
-        reasonsheader =&gt; join(&quot; &quot;, @headerrel),
</del><ins>+        date               =&gt; $date,
+        to_user            =&gt; $user,
+        bug                =&gt; $bug,
+        reasons            =&gt; \@reasons,
+        reasons_watch      =&gt; \@reasons_watch,
+        reasonsheader      =&gt; join(&quot; &quot;, @headerrel),
</ins><span class="cx">         reasonswatchheader =&gt; join(&quot; &quot;, @watchingrel),
</span><del>-        changer =&gt; $changer,
-        diffs =&gt; \@display_diffs,
-        changedfields =&gt; [uniq map { $_-&gt;{field_name} } @display_diffs],
-        new_comments =&gt; \@send_comments,
-        threadingmarker =&gt; build_thread_marker($bug-&gt;id, $user-&gt;id, !$bug-&gt;lastdiffed),
</del><ins>+        changer            =&gt; $changer,
+        diffs              =&gt; \@display_diffs,
+        changedfields      =&gt; \@changedfields,
+        referenced_bugs    =&gt; $user-&gt;visible_bugs($referenced_bugs),
+        new_comments       =&gt; \@send_comments,
+        threadingmarker    =&gt; build_thread_marker($bug-&gt;id, $user-&gt;id, !$bug-&gt;lastdiffed),
+        bugmailtype        =&gt; $bugmailtype,
</ins><span class="cx">     };
</span><del>-    my $msg =  _generate_bugmail($user, $vars);
-    MessageToMTA($msg);
</del><ins>+    if (Bugzilla-&gt;params-&gt;{'use_mailer_queue'}) {
+        enqueue($vars);
+    } else {
+        MessageToMTA(_generate_bugmail($vars));
+    }
</ins><span class="cx"> 
</span><span class="cx">     return 1;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub enqueue {
+    my ($vars) = @_;
+    # we need to flatten all objects to a hash before pushing to the job queue.
+    # the hashes need to be inflated in the dequeue method.
+    $vars-&gt;{bug}          = _flatten_object($vars-&gt;{bug});
+    $vars-&gt;{to_user}      = _flatten_object($vars-&gt;{to_user});
+    $vars-&gt;{changer}      = _flatten_object($vars-&gt;{changer});
+    $vars-&gt;{new_comments} = [ map { _flatten_object($_) } @{ $vars-&gt;{new_comments} } ];
+    foreach my $diff (@{ $vars-&gt;{diffs} }) {
+        $diff-&gt;{who} = _flatten_object($diff-&gt;{who});
+        if (exists $diff-&gt;{blocker}) {
+            $diff-&gt;{blocker} = _flatten_object($diff-&gt;{blocker});
+        }
+    }
+    Bugzilla-&gt;job_queue-&gt;insert('bug_mail', { vars =&gt; $vars });
+}
+
+sub dequeue {
+    my ($payload) = @_;
+    # clone the payload so we can modify it without impacting TheSchwartz's
+    # ability to process the job when we've finished
+    my $vars = dclone($payload);
+    # inflate objects
+    $vars-&gt;{bug}          = Bugzilla::Bug-&gt;new_from_hash($vars-&gt;{bug});
+    $vars-&gt;{to_user}      = Bugzilla::User-&gt;new_from_hash($vars-&gt;{to_user});
+    $vars-&gt;{changer}      = Bugzilla::User-&gt;new_from_hash($vars-&gt;{changer});
+    $vars-&gt;{new_comments} = [ map { Bugzilla::Comment-&gt;new_from_hash($_) } @{ $vars-&gt;{new_comments} } ];
+    foreach my $diff (@{ $vars-&gt;{diffs} }) {
+        $diff-&gt;{who} = Bugzilla::User-&gt;new_from_hash($diff-&gt;{who});
+        if (exists $diff-&gt;{blocker}) {
+            $diff-&gt;{blocker} = Bugzilla::Bug-&gt;new_from_hash($diff-&gt;{blocker});
+        }
+    }
+    # generate bugmail and send
+    MessageToMTA(_generate_bugmail($vars), 1);
+}
+
+sub _flatten_object {
+    my ($object) = @_;
+    # nothing to do if it's already flattened
+    return $object unless blessed($object);
+    # the same objects are used for each recipient, so cache the flattened hash
+    my $cache = Bugzilla-&gt;request_cache-&gt;{bugmail_flat_objects} ||= {};
+    my $key = blessed($object) . '-' . $object-&gt;id;
+    return $cache-&gt;{$key} ||= $object-&gt;flatten_to_hash;
+}
+
</ins><span class="cx"> sub _generate_bugmail {
</span><del>-    my ($user, $vars) = @_;
</del><ins>+    my ($vars) = @_;
+    my $user = $vars-&gt;{to_user};
</ins><span class="cx">     my $template = Bugzilla-&gt;template_inner($user-&gt;setting('lang'));
</span><span class="cx">     my ($msg_text, $msg_html, $msg_header);
</span><del>-  
</del><ins>+    state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
+
</ins><span class="cx">     $template-&gt;process(&quot;email/bugmail-header.txt.tmpl&quot;, $vars, \$msg_header)
</span><span class="cx">         || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     $template-&gt;process(&quot;email/bugmail.txt.tmpl&quot;, $vars, \$msg_text)
</span><span class="lines">@@ -383,30 +444,35 @@
</span><span class="cx">         || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><span class="cx">     my @parts = (
</span><del>-        Email::MIME-&gt;create(
</del><ins>+        Bugzilla::MIME-&gt;create(
</ins><span class="cx">             attributes =&gt; {
</span><del>-                content_type =&gt; &quot;text/plain&quot;,
</del><ins>+                content_type =&gt; 'text/plain',
+                charset      =&gt; $use_utf8 ? 'UTF-8' : 'iso-8859-1',
+                encoding     =&gt; 'quoted-printable',
</ins><span class="cx">             },
</span><del>-            body =&gt; $msg_text,
</del><ins>+            body_str =&gt; $msg_text,
</ins><span class="cx">         )
</span><span class="cx">     );
</span><span class="cx">     if ($user-&gt;setting('email_format') eq 'html') {
</span><span class="cx">         $template-&gt;process(&quot;email/bugmail.html.tmpl&quot;, $vars, \$msg_html)
</span><span class="cx">             || ThrowTemplateError($template-&gt;error());
</span><del>-        push @parts, Email::MIME-&gt;create(
</del><ins>+        push @parts, Bugzilla::MIME-&gt;create(
</ins><span class="cx">             attributes =&gt; {
</span><del>-                content_type =&gt; &quot;text/html&quot;,         
</del><ins>+                content_type =&gt; 'text/html',
+                charset      =&gt; $use_utf8 ? 'UTF-8' : 'iso-8859-1',
+                encoding     =&gt; 'quoted-printable',
</ins><span class="cx">             },
</span><del>-            body =&gt; $msg_html,
</del><ins>+            body_str =&gt; $msg_html,
</ins><span class="cx">         );
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # TT trims the trailing newline, and threadingmarker may be ignored.
-    my $email = new Email::MIME(&quot;$msg_header\n&quot;);
</del><ins>+    my $email = Bugzilla::MIME-&gt;new($msg_header);
</ins><span class="cx">     if (scalar(@parts) == 1) {
</span><span class="cx">         $email-&gt;content_type_set($parts[0]-&gt;content_type);
</span><span class="cx">     } else {
</span><span class="cx">         $email-&gt;content_type_set('multipart/alternative');
</span><ins>+        # Some mail clients need same encoding for each part, even empty ones.
+        $email-&gt;charset_set('UTF-8') if $use_utf8;
</ins><span class="cx">     }
</span><span class="cx">     $email-&gt;parts_set(\@parts);
</span><span class="cx">     return $email;
</span><span class="lines">@@ -434,7 +500,8 @@
</span><span class="cx">                 ON fielddefs.id = bugs_activity.fieldid
</span><span class="cx">              WHERE bugs_activity.bug_id = ?
</span><span class="cx">                    $when_restriction
</span><del>-          ORDER BY bugs_activity.bug_when&quot;, {Slice=&gt;{}}, @args);
</del><ins>+          ORDER BY bugs_activity.bug_when, bugs_activity.id&quot;,
+        {Slice=&gt;{}}, @args);
</ins><span class="cx"> 
</span><span class="cx">     foreach my $diff (@$diffs) {
</span><span class="cx">         $user_cache-&gt;{$diff-&gt;{who}} ||= new Bugzilla::User($diff-&gt;{who}); 
</span><span class="lines">@@ -451,7 +518,25 @@
</span><span class="cx">          }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return @$diffs;
</del><ins>+    my @changes = ();
+    foreach my $diff (@$diffs) {
+        # If this is the same field as the previous item, then concatenate
+        # the data into the same change.
+        if (scalar(@changes)
+            &amp;&amp; $diff-&gt;{field_name}        eq $changes[-1]-&gt;{field_name}
+            &amp;&amp; $diff-&gt;{bug_when}          eq $changes[-1]-&gt;{bug_when}
+            &amp;&amp; $diff-&gt;{who}               eq $changes[-1]-&gt;{who}
+            &amp;&amp; ($diff-&gt;{attach_id} // 0)  == ($changes[-1]-&gt;{attach_id} // 0)
+            &amp;&amp; ($diff-&gt;{comment_id} // 0) == ($changes[-1]-&gt;{comment_id} // 0)
+        ) {
+            my $old_change = pop @changes;
+            $diff-&gt;{old} = join_activity_entries($diff-&gt;{field_name}, $old_change-&gt;{old}, $diff-&gt;{old});
+            $diff-&gt;{new} = join_activity_entries($diff-&gt;{field_name}, $old_change-&gt;{new}, $diff-&gt;{new});
+        }
+        push @changes, $diff;
+    }
+
+    return @changes;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _get_new_bugmail_fields {
</span><span class="lines">@@ -458,11 +543,18 @@
</span><span class="cx">     my $bug = shift;
</span><span class="cx">     my @fields = @{ Bugzilla-&gt;fields({obsolete =&gt; 0, in_new_bugmail =&gt; 1}) };
</span><span class="cx">     my @diffs;
</span><ins>+    my $params = Bugzilla-&gt;params;
</ins><span class="cx"> 
</span><span class="cx">     foreach my $field (@fields) {
</span><span class="cx">         my $name = $field-&gt;name;
</span><span class="cx">         my $value = $bug-&gt;$name;
</span><span class="cx"> 
</span><ins>+        next if !$field-&gt;is_visible_on_bug($bug)
+            || ($name eq 'classification' &amp;&amp; !$params-&gt;{'useclassification'})
+            || ($name eq 'status_whiteboard' &amp;&amp; !$params-&gt;{'usestatuswhiteboard'})
+            || ($name eq 'qa_contact' &amp;&amp; !$params-&gt;{'useqacontact'})
+            || ($name eq 'target_milestone' &amp;&amp; !$params-&gt;{'usetargetmilestone'});
+
</ins><span class="cx">         if (ref $value eq 'ARRAY') {
</span><span class="cx">             $value = join(', ', @$value);
</span><span class="cx">         }
</span><span class="lines">@@ -484,7 +576,10 @@
</span><span class="cx">         # If there isn't anything to show, don't include this header.
</span><span class="cx">         next unless $value;
</span><span class="cx"> 
</span><del>-        push(@diffs, {field_name =&gt; $name, new =&gt; $value});
</del><ins>+        push(@diffs, {
+            field_name =&gt; $name,
+            who        =&gt; $bug-&gt;reporter,
+            new        =&gt; $value});
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return @diffs;
</span><span class="lines">@@ -491,3 +586,36 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 NAME
+
+BugMail - Routines to generate email notifications when a bug is created or
+modified.
+
+=head1 METHODS
+
+=over 4
+
+=item C&lt;enqueue&gt;
+
+Serialises the variables required to generate bugmail and pushes the result to
+the job-queue for processing by TheSchwartz.
+
+=item C&lt;dequeue&gt;
+
+When given serialised variables from the job-queue, recreates the objects from
+the flattened hashes, generates the bugmail, and sends it.
+
+=back
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item relationships
+
+=item sendMail
+
+=item Send
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlBugzillaLocalpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla/Local.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla/Local.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla/Local.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello.
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Bugzilla::Local;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl::Bugzilla);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::BugUrl::Bugzilla);
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><span class="lines">@@ -93,12 +84,6 @@
</span><span class="cx">         ThrowUserError('see_also_self_reference');
</span><span class="cx">     }
</span><span class="cx">  
</span><del>-    my $product = $ref_bug-&gt;product_obj;
-    if (!Bugzilla-&gt;user-&gt;can_edit_product($product-&gt;id)) {
-        ThrowUserError(&quot;product_edit_denied&quot;,
-                       { product =&gt; $product-&gt;name });
-    }
-
</del><span class="cx">     return $uri;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello.
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Bugzilla;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::BugUrl);
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlDebianpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Debian.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Debian.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Debian.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello.
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
-#                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Debian;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -32,7 +19,14 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><del>-    return ($uri-&gt;authority =~ /^bugs.debian.org$/i) ? 1 : 0;
</del><ins>+
+    # Debian BTS URLs can look like various things:
+    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1234
+    #   http://bugs.debian.org/1234
+    return (lc($uri-&gt;authority) eq 'bugs.debian.org'
+            and (($uri-&gt;path =~ /bugreport\.cgi$/
+                  and $uri-&gt;query_param('bug') =~ m|^\d+$|)
+                 or $uri-&gt;path =~ m|^/\d+$|)) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_value {
</span><span class="lines">@@ -40,24 +34,12 @@
</span><span class="cx"> 
</span><span class="cx">     my $uri = $class-&gt;SUPER::_check_value(@_);
</span><span class="cx"> 
</span><del>-    # Debian BTS URLs can look like various things:
-    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1234
-    #   http://bugs.debian.org/1234
-    my $bug_id;
-    if ($uri-&gt;path =~ m|^/(\d+)$|) {
-        $bug_id = $1;
-    }
-    elsif ($uri-&gt;path =~ /bugreport\.cgi$/) {
-        $bug_id = $uri-&gt;query_param('bug');
-        detaint_natural($bug_id);
-    }
-    if (!$bug_id) {
-        ThrowUserError('bug_url_invalid',
-                       { url =&gt; $uri-&gt;path, reason =&gt; 'id' });
-    }
</del><span class="cx">     # This is the shortest standard URL form for Debian BTS URLs,
</span><span class="cx">     # and so we reduce all URLs to this.
</span><del>-    return new URI(&quot;http://bugs.debian.org/&quot; . $bug_id);
</del><ins>+    $uri-&gt;path =~ m|^/(\d+)$| || $uri-&gt;query_param('bug') =~ m|^(\d+)$|;
+    $uri = new URI(&quot;http://bugs.debian.org/$1&quot;);
+
+    return $uri;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlGitHubpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/GitHub.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/GitHub.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/GitHub.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::BugUrl::GitHub;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+
+    # GitHub issue URLs have only one form:
+    #  https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/issues/111
+    # GitHub pull request URLs have only one form:
+    #  https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/pull/111
+    return (lc($uri-&gt;authority) eq 'github.com'
+            and $uri-&gt;path =~ m!^/[^/]+/[^/]+/(?:issues|pull)/\d+$!) ? 1 : 0;
+}
+
+sub _check_value {
+    my ($class, $uri) = @_;
+
+    $uri = $class-&gt;SUPER::_check_value($uri);
+
+    # GitHub HTTP URLs redirect to HTTPS, so just use the HTTPS scheme.
+    $uri-&gt;scheme('https');
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlGooglepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Google.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Google.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Google.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello.
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
-#                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Google;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -32,7 +19,12 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><del>-    return ($uri-&gt;authority =~ /^code.google.com$/i) ? 1 : 0;
</del><ins>+
+    # Google Code URLs only have one form:
+    #   http(s)://code.google.com/p/PROJECT_NAME/issues/detail?id=1234
+    return (lc($uri-&gt;authority) eq 'code.google.com'
+            and $uri-&gt;path =~ m|^/p/[^/]+/issues/detail$|
+            and $uri-&gt;query_param('id') =~ /^\d+$/) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_value {
</span><span class="lines">@@ -40,26 +32,13 @@
</span><span class="cx">     
</span><span class="cx">     $uri = $class-&gt;SUPER::_check_value($uri);
</span><span class="cx"> 
</span><del>-    my $value = $uri-&gt;as_string;
-    # Google Code URLs only have one form:
-    #   http(s)://code.google.com/p/PROJECT_NAME/issues/detail?id=1234
-    my $project_name;
-    if ($uri-&gt;path =~ m|^/p/([^/]+)/issues/detail$|) {
-        $project_name = $1;
-    } else {
-        ThrowUserError('bug_url_invalid', { url =&gt; $value });
-    }
-    my $bug_id = $uri-&gt;query_param('id');
-    detaint_natural($bug_id);
-    if (!$bug_id) {
-        ThrowUserError('bug_url_invalid', { url =&gt; $value, reason =&gt; 'id' });
-    }
</del><span class="cx">     # While Google Code URLs can be either HTTP or HTTPS,
</span><span class="cx">     # always go with the HTTP scheme, as that's the default.
</span><del>-    $value = &quot;http://code.google.com/p/&quot; . $project_name .
-             &quot;/issues/detail?id=&quot; . $bug_id;
</del><ins>+    if ($uri-&gt;scheme eq 'https') {
+        $uri-&gt;scheme('http');
+    }
</ins><span class="cx"> 
</span><del>-    return new URI($value);
</del><ins>+    return $uri;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlJIRApm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/JIRA.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/JIRA.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/JIRA.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Matt Selsky
-# Portions created by Matt Selsky are Copyright (C) 2010
-# Matt Selsky. All Rights Reserved.
-#
-# Contributor(s): Matt Selsky &lt;selsky@columbia.edu&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::JIRA;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -31,6 +19,10 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><ins>+
+    # JIRA URLs have only one basic form (but the jira is optional):
+    #   https://issues.apache.org/jira/browse/KEY-1234
+    #   http://issues.example.com/browse/KEY-1234
</ins><span class="cx">     return ($uri-&gt;path =~ m|/browse/[A-Z][A-Z]+-\d+$|) ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -39,10 +31,6 @@
</span><span class="cx"> 
</span><span class="cx">     my $uri = $class-&gt;SUPER::_check_value(@_);
</span><span class="cx"> 
</span><del>-    # JIRA URLs have only one basic form (but the jira is optional):
-    #   https://issues.apache.org/jira/browse/KEY-1234
-    #   http://issues.example.com/browse/KEY-1234
-
</del><span class="cx">     # Make sure there are no query parameters.
</span><span class="cx">     $uri-&gt;query(undef);
</span><span class="cx">     # And remove any # part if there is one.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlLaunchpadpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Launchpad.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Launchpad.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Launchpad.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello.
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Launchpad;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -31,7 +19,13 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><del>-    return ($uri-&gt;authority =~ /launchpad.net$/) ? 1 : 0;
</del><ins>+
+    # Launchpad bug URLs can look like various things:
+    #   https://bugs.launchpad.net/ubuntu/+bug/1234
+    #   https://launchpad.net/bugs/1234
+    # All variations end with either &quot;/bugs/1234&quot; or &quot;/+bug/1234&quot;
+    return ($uri-&gt;authority =~ /launchpad\.net$/
+            and $uri-&gt;path =~ m|bugs?/\d+$|) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_value {
</span><span class="lines">@@ -39,21 +33,12 @@
</span><span class="cx"> 
</span><span class="cx">     $uri = $class-&gt;SUPER::_check_value($uri);
</span><span class="cx"> 
</span><del>-    my $value = $uri-&gt;as_string;
-    # Launchpad bug URLs can look like various things:
-    #   https://bugs.launchpad.net/ubuntu/+bug/1234
-    #   https://launchpad.net/bugs/1234
-    # All variations end with either &quot;/bugs/1234&quot; or &quot;/+bug/1234&quot;
-    if ($uri-&gt;path =~ m|bugs?/(\d+)$|) {
-        # This is the shortest standard URL form for Launchpad bugs,
-        # and so we reduce all URLs to this.
-        $value = &quot;https://launchpad.net/bugs/$1&quot;;
-    }
-    else {
-        ThrowUserError('bug_url_invalid', { url =&gt; $value, reason =&gt; 'id' });
-    }
</del><ins>+    # This is the shortest standard URL form for Launchpad bugs,
+    # and so we reduce all URLs to this.
+    $uri-&gt;path =~ m|bugs?/(\d+)$|;
+    $uri = new URI(&quot;https://launchpad.net/bugs/$1&quot;);
</ins><span class="cx"> 
</span><del>-    return new URI($value);
</del><ins>+    return $uri;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlMantisBTpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/MantisBT.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/MantisBT.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/MantisBT.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Reed Loden.
-# Portions created by Reed Loden are Copyright (C) 2010
-# Reed Loden. All Rights Reserved.
-#
-# Contributor(s): Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::MantisBT;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -31,6 +19,9 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><ins>+
+    # MantisBT URLs look like the following ('bugs' directory is optional):
+    #   http://www.mantisbt.org/bugs/view.php?id=1234
</ins><span class="cx">     return ($uri-&gt;path_query =~ m|view\.php\?id=\d+$|) ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -39,9 +30,6 @@
</span><span class="cx"> 
</span><span class="cx">     my $uri = $class-&gt;SUPER::_check_value(@_);
</span><span class="cx"> 
</span><del>-    # MantisBT URLs look like the following ('bugs' directory is optional):
-    #   http://www.mantisbt.org/bugs/view.php?id=1234
-
</del><span class="cx">     # Remove any # part if there is one.
</span><span class="cx">     $uri-&gt;fragment(undef);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlSourceForgepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/SourceForge.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/SourceForge.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/SourceForge.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello
-# Portions created by Tiago Mello are Copyright (C) 2011
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::SourceForge;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -31,8 +19,15 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><del>-    return ($uri-&gt;authority =~ /^sourceforge.net$/i
-            and $uri-&gt;path =~ m|/tracker/|) ? 1 : 0;
</del><ins>+
+    # SourceForge tracker URLs have only one form:
+    #  http://sourceforge.net/tracker/?func=detail&amp;aid=111&amp;group_id=111&amp;atid=111
+    return (lc($uri-&gt;authority) eq 'sourceforge.net'
+            and $uri-&gt;path =~ m|/tracker/|
+            and $uri-&gt;query_param('func') eq 'detail'
+            and $uri-&gt;query_param('aid')
+            and $uri-&gt;query_param('group_id')
+            and $uri-&gt;query_param('atid')) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_value {
</span><span class="lines">@@ -40,19 +35,10 @@
</span><span class="cx"> 
</span><span class="cx">     my $uri = $class-&gt;SUPER::_check_value(@_);
</span><span class="cx"> 
</span><del>-    # SourceForge tracker URLs have only one form:
-    #  http://sourceforge.net/tracker/?func=detail&amp;aid=111&amp;group_id=111&amp;atid=111
-    if ($uri-&gt;query_param('func') eq 'detail' and $uri-&gt;query_param('aid')
-        and $uri-&gt;query_param('group_id') and $uri-&gt;query_param('atid'))
-    {
-        # Remove any # part if there is one.
-        $uri-&gt;fragment(undef);
-        return $uri;
-    }
-    else {
-        my $value = $uri-&gt;as_string;
-        ThrowUserError('bug_url_invalid', { url =&gt; $value });
-    }
</del><ins>+    # Remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlTracpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Trac.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Trac.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl/Trac.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Matt Selsky
-# Portions created by Matt Selsky are Copyright (C) 2010
-# Matt Selsky. All Rights Reserved.
-#
-# Contributor(s): Matt Selsky &lt;selsky@columbia.edu&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl::Trac;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::BugUrl);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Error;
-use Bugzilla::Util;
</del><ins>+use parent qw(Bugzilla::BugUrl);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####        Methods        ####
</span><span class="lines">@@ -31,6 +19,10 @@
</span><span class="cx"> 
</span><span class="cx"> sub should_handle {
</span><span class="cx">     my ($class, $uri) = @_;
</span><ins>+
+    # Trac URLs can look like various things:
+    #   http://dev.mutt.org/trac/ticket/1234
+    #   http://trac.roundcube.net/ticket/1484130
</ins><span class="cx">     return ($uri-&gt;path =~ m|/ticket/\d+$|) ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -39,10 +31,6 @@
</span><span class="cx"> 
</span><span class="cx">     my $uri = $class-&gt;SUPER::_check_value(@_);
</span><span class="cx"> 
</span><del>-    # Trac URLs can look like various things:
-    #   http://dev.mutt.org/trac/ticket/1234
-    #   http://trac.roundcube.net/ticket/1484130
-
</del><span class="cx">     # Make sure there are no query parameters.
</span><span class="cx">     $uri-&gt;query(undef);
</span><span class="cx">     # And remove any # part if there is one.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUrlpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUrl.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,24 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Tiago Mello
-# Portions created by Tiago Mello are Copyright (C) 2010
-# Tiago Mello. All Rights Reserved.
-#
-# Contributor(s): Tiago Mello &lt;timello@linux.vnet.ibm.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::BugUrl;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Object);
+
</ins><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::Hook;
</ins><span class="cx"> 
</span><ins>+use URI;
</ins><span class="cx"> use URI::QueryParam;
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -70,6 +63,7 @@
</span><span class="cx">     Bugzilla::BugUrl::Trac
</span><span class="cx">     Bugzilla::BugUrl::MantisBT
</span><span class="cx">     Bugzilla::BugUrl::SourceForge
</span><ins>+    Bugzilla::BugUrl::GitHub
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -115,8 +109,9 @@
</span><span class="cx">     my $objects = $class-&gt;SUPER::_do_list_select(@_);
</span><span class="cx"> 
</span><span class="cx">     foreach my $object (@$objects) {
</span><del>-        eval &quot;use &quot; . $object-&gt;class; die $@ if $@;
-        bless $object, $object-&gt;class;
</del><ins>+        eval &quot;use &quot; . $object-&gt;class;
+        # If the class cannot be loaded, then we build a generic object.
+        bless $object, ($@ ? 'Bugzilla::BugUrl' : $object-&gt;class);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return $objects
</span><span class="lines">@@ -133,8 +128,12 @@
</span><span class="cx"> sub class_for {
</span><span class="cx">     my ($class, $value) = @_;
</span><span class="cx"> 
</span><ins>+    my @sub_classes = $class-&gt;SUB_CLASSES;
+    Bugzilla::Hook::process(&quot;bug_url_sub_classes&quot;,
+        { sub_classes =&gt; \@sub_classes });
+
</ins><span class="cx">     my $uri = URI-&gt;new($value);
</span><del>-    foreach my $subclass ($class-&gt;SUB_CLASSES) {
</del><ins>+    foreach my $subclass (@sub_classes) {
</ins><span class="cx">         eval &quot;use $subclass&quot;;
</span><span class="cx">         die $@ if $@;
</span><span class="cx">         return wantarray ? ($subclass, $uri) : $subclass
</span><span class="lines">@@ -141,8 +140,7 @@
</span><span class="cx">             if $subclass-&gt;should_handle($uri);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    ThrowUserError('bug_url_invalid', { url    =&gt; $value,
-                                        reason =&gt; 'show_bug' });
</del><ins>+    ThrowUserError('bug_url_invalid', { url =&gt; $value });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_class {
</span><span class="lines">@@ -207,3 +205,17 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item should_handle
+
+=item class_for
+
+=item class
+
+=item bug_id
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaBugUserLastVisitpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/BugUserLastVisit.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/BugUserLastVisit.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/BugUserLastVisit.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,93 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::BugUserLastVisit;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Object);
+
+#####################################################################
+# Overriden Constants that are used as methods
+#####################################################################
+
+use constant DB_TABLE       =&gt; 'bug_user_last_visit';
+use constant DB_COLUMNS     =&gt; qw( id user_id bug_id last_visit_ts );
+use constant UPDATE_COLUMNS =&gt; qw( last_visit_ts );
+use constant VALIDATORS     =&gt; {};
+use constant LIST_ORDER     =&gt; 'id';
+use constant NAME_FIELD     =&gt; 'id';
+
+# turn off auditing and exclude these objects from memcached
+use constant { AUDIT_CREATES =&gt; 0,
+               AUDIT_UPDATES =&gt; 0,
+               AUDIT_REMOVES =&gt; 0,
+               USE_MEMCACHED =&gt; 0 };
+
+#####################################################################
+# Provide accessors for our columns
+#####################################################################
+
+sub id            { return $_[0]-&gt;{id}            }
+sub bug_id        { return $_[0]-&gt;{bug_id}        }
+sub user_id       { return $_[0]-&gt;{user_id}       }
+sub last_visit_ts { return $_[0]-&gt;{last_visit_ts} }
+
+sub user {
+    my $self = shift;
+
+    $self-&gt;{user} //= Bugzilla::User-&gt;new({ id =&gt; $self-&gt;user_id, cache =&gt; 1 });
+    return $self-&gt;{user};
+}
+
+1;
+__END__
+
+=head1 NAME
+
+Bugzilla::BugUserLastVisit - Model for BugUserLastVisit bug search data
+
+=head1 SYNOPSIS
+
+  use Bugzilla::BugUserLastVisit;
+
+  my $lv = Bugzilla::BugUserLastVisit-&gt;new($id);
+
+  # Class Functions
+  $user = Bugzilla::BugUserLastVisit-&gt;create({
+      bug_id        =&gt; $bug_id,
+      user_id       =&gt; $user_id,
+      last_visit_ts =&gt; $last_visit_ts
+  });
+
+=head1 DESCRIPTION
+
+This package handles Bugzilla BugUserLastVisit.
+
+C&lt;Bugzilla::BugUserLastVisit&gt; is an implementation of L&lt;Bugzilla::Object&gt;, and
+thus provides all the methods of L&lt;Bugzilla::Object&gt; in addition to the methods
+listed below.
+
+=head1 METHODS
+
+=head2 Accessor Methods
+
+=over
+
+=item C&lt;id&gt;
+
+=item C&lt;bug_id&gt;
+
+=item C&lt;user_id&gt;
+
+=item C&lt;last_visit_ts&gt;
+
+=item C&lt;user&gt;
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaCGIpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/CGI.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/CGI.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/CGI.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,46 +1,26 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::CGI;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(CGI);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(CGI);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><ins>+use Bugzilla::Hook;
</ins><span class="cx"> use Bugzilla::Search::Recent;
</span><span class="cx"> 
</span><span class="cx"> use File::Basename;
</span><span class="cx"> 
</span><del>-BEGIN {
-    if (ON_WINDOWS) {
-        # Help CGI find the correct temp directory as the default list
-        # isn't Windows friendly (Bug 248988)
-        $ENV{'TMPDIR'} = $ENV{'TEMP'} || $ENV{'TMP'} || &quot;$ENV{'WINDIR'}\\TEMP&quot;;
-    }
-    *AUTOLOAD = \&amp;CGI::AUTOLOAD;
-}
-
</del><span class="cx"> sub _init_bz_cgi_globals {
</span><span class="cx">     my $invocant = shift;
</span><span class="cx">     # We need to disable output buffering - see bug 179174
</span><span class="lines">@@ -73,11 +53,29 @@
</span><span class="cx">     # Make sure our outgoing cookie list is empty on each invocation
</span><span class="cx">     $self-&gt;{Bugzilla_cookie_list} = [];
</span><span class="cx"> 
</span><ins>+    # Path-Info is of no use for Bugzilla and interacts badly with IIS.
+    # Moreover, it causes unexpected behaviors, such as totally breaking
+    # the rendering of pages.
+    my $script = basename($0);
+    if (my $path_info = $self-&gt;path_info) {
+        my @whitelist = (&quot;rest.cgi&quot;);
+        Bugzilla::Hook::process('path_info_whitelist', { whitelist =&gt; \@whitelist });
+        if (!grep($_ eq $script, @whitelist)) {
+            # IIS includes the full path to the script in PATH_INFO,
+            # so we have to extract the real PATH_INFO from it,
+            # else we will be redirected outside Bugzilla.
+            my $script_name = $self-&gt;script_name;
+            $path_info =~ s/^\Q$script_name\E//;
+            if ($script_name &amp;&amp; $path_info) {
+                print $self-&gt;redirect($self-&gt;url(-path =&gt; 0, -query =&gt; 1));
+            }
+        }
+    }
+
</ins><span class="cx">     # Send appropriate charset
</span><span class="cx">     $self-&gt;charset(Bugzilla-&gt;params-&gt;{'utf8'} ? 'UTF-8' : '');
</span><span class="cx"> 
</span><span class="cx">     # Redirect to urlbase/sslbase if we are not viewing an attachment.
</span><del>-    my $script = basename($0);
</del><span class="cx">     if ($self-&gt;url_is_attachment_base and $script ne 'attachment.cgi') {
</span><span class="cx">         $self-&gt;redirect_to_urlbase();
</span><span class="cx">     }
</span><span class="lines">@@ -127,7 +125,8 @@
</span><span class="cx">         my $esc_key = url_quote($key);
</span><span class="cx"> 
</span><span class="cx">         foreach my $value ($self-&gt;param($key)) {
</span><del>-            if (defined($value)) {
</del><ins>+            # Omit params with an empty value
+            if (defined($value) &amp;&amp; $value ne '') {
</ins><span class="cx">                 my $esc_value = url_quote($value);
</span><span class="cx"> 
</span><span class="cx">                 push(@parameters, &quot;$esc_key=$esc_value&quot;);
</span><span class="lines">@@ -215,8 +214,11 @@
</span><span class="cx"> 
</span><span class="cx">     # list_id is added in buglist.cgi after calling clean_search_url,
</span><span class="cx">     # and doesn't need to be saved in saved searches.
</span><del>-    $self-&gt;delete('list_id'); 
</del><ins>+    $self-&gt;delete('list_id');
</ins><span class="cx"> 
</span><ins>+    # no_redirect is used internally by redirect_search_url().
+    $self-&gt;delete('no_redirect');
+
</ins><span class="cx">     # And now finally, if query_format is our only parameter, that
</span><span class="cx">     # really means we have no parameters, so we should delete query_format.
</span><span class="cx">     if ($self-&gt;param('query_format') &amp;&amp; scalar($self-&gt;param()) == 1) {
</span><span class="lines">@@ -224,33 +226,24 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Overwrite to ensure nph doesn't get set, and unset HEADERS_ONCE
-sub multipart_init {
-    my $self = shift;
</del><ins>+sub check_etag {
+    my ($self, $valid_etag) = @_;
</ins><span class="cx"> 
</span><del>-    # Keys are case-insensitive, map to lowercase
-    my %args = @_;
-    my %param;
-    foreach my $key (keys %args) {
-        $param{lc $key} = $args{$key};
</del><ins>+    # ETag support.
+    my $if_none_match = $self-&gt;http('If-None-Match');
+    return if !$if_none_match;
+
+    my @if_none = split(/[\s,]+/, $if_none_match);
+    foreach my $possible_etag (@if_none) {
+        # remove quotes from begin and end of the string
+        $possible_etag =~ s/^\&quot;//g;
+        $possible_etag =~ s/\&quot;$//g;
+        if ($possible_etag eq $valid_etag or $possible_etag eq '*') {
+            return 1;
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Set the MIME boundary and content-type
-    my $boundary = $param{'-boundary'}
-        || '------- =_' . generate_random_password(16);
-    delete $param{'-boundary'};
-    $self-&gt;{'separator'} = &quot;\r\n--$boundary\r\n&quot;;
-    $self-&gt;{'final_separator'} = &quot;\r\n--$boundary--\r\n&quot;;
-    $param{'-type'} = SERVER_PUSH($boundary);
-
-    # Note: CGI.pm::multipart_init up to v3.04 explicitly set nph to 0
-    # CGI.pm::multipart_init v3.05 explicitly sets nph to 1
-    # CGI.pm's header() sets nph according to a param or $CGI::NPH, which
-    # is the desired behaviour.
-
-    return $self-&gt;header(
-        %param,
-    ) . &quot;WARNING: YOUR BROWSER DOESN'T SUPPORT THIS SERVER-PUSH TECHNOLOGY.&quot; . $self-&gt;multipart_end;
</del><ins>+    return 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Have to add the cookies in.
</span><span class="lines">@@ -278,22 +271,57 @@
</span><span class="cx">         $headers .= &quot;Set-Cookie: ${cookie}${CGI::CRLF}&quot;;
</span><span class="cx">     }
</span><span class="cx">     $headers .= $CGI::CRLF;
</span><ins>+    $self-&gt;{_multipart_in_progress} = 1;
</ins><span class="cx">     return $headers;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub close_standby_message {
+    my ($self, $contenttype, $disp, $disp_prefix, $extension) = @_;
+    $self-&gt;set_dated_content_disp($disp, $disp_prefix, $extension);
+
+    if ($self-&gt;{_multipart_in_progress}) {
+        print $self-&gt;multipart_end();
+        print $self-&gt;multipart_start(-type =&gt; $contenttype);
+    }
+    elsif (!$self-&gt;{_header_done}) {
+        print $self-&gt;header($contenttype);
+    }
+}
+
</ins><span class="cx"> # Override header so we can add the cookies in
</span><span class="cx"> sub header {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><ins>+    my %headers;
+    my $user = Bugzilla-&gt;user;
+
</ins><span class="cx">     # If there's only one parameter, then it's a Content-Type.
</span><span class="cx">     if (scalar(@_) == 1) {
</span><del>-        # Since we're adding parameters below, we have to name it.
-        unshift(@_, '-type' =&gt; shift(@_));
</del><ins>+        %headers = ('-type' =&gt; shift(@_));
</ins><span class="cx">     }
</span><ins>+    else {
+        %headers = @_;
+    }
</ins><span class="cx"> 
</span><ins>+    if ($self-&gt;{'_content_disp'}) {
+        $headers{'-content_disposition'} = $self-&gt;{'_content_disp'};
+    }
+
+    if (!$user-&gt;id &amp;&amp; $user-&gt;authorizer-&gt;can_login
+        &amp;&amp; !$self-&gt;cookie('Bugzilla_login_request_cookie'))
+    {
+        my %args;
+        $args{'-secure'} = 1 if Bugzilla-&gt;params-&gt;{ssl_redirect};
+
+        $self-&gt;send_cookie(-name =&gt; 'Bugzilla_login_request_cookie',
+                           -value =&gt; generate_random_password(),
+                           -httponly =&gt; 1,
+                           %args);
+    }
+
</ins><span class="cx">     # Add the cookies in if we have any
</span><span class="cx">     if (scalar(@{$self-&gt;{Bugzilla_cookie_list}})) {
</span><del>-        unshift(@_, '-cookie' =&gt; $self-&gt;{Bugzilla_cookie_list});
</del><ins>+        $headers{'-cookie'} = $self-&gt;{Bugzilla_cookie_list};
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Add Strict-Transport-Security (STS) header if this response
</span><span class="lines">@@ -307,28 +335,35 @@
</span><span class="cx">         {
</span><span class="cx">             $sts_opts .= '; includeSubDomains';
</span><span class="cx">         }
</span><del>-        unshift(@_, '-strict_transport_security' =&gt; $sts_opts);
</del><ins>+        
+        $headers{'-strict_transport_security'} = $sts_opts;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Add X-Frame-Options header to prevent framing and subsequent
</span><span class="cx">     # possible clickjacking problems.
</span><span class="cx">     unless ($self-&gt;url_is_attachment_base) {
</span><del>-        unshift(@_, '-x_frame_options' =&gt; 'SAMEORIGIN');
</del><ins>+        $headers{'-x_frame_options'} = 'SAMEORIGIN';
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Add X-XSS-Protection header to prevent simple XSS attacks
</span><span class="cx">     # and enforce the blocking (rather than the rewriting) mode.
</span><del>-    unshift(@_, '-x_xss_protection' =&gt; '1; mode=block');
</del><ins>+    $headers{'-x_xss_protection'} = '1; mode=block';
</ins><span class="cx"> 
</span><span class="cx">     # Add X-Content-Type-Options header to prevent browsers sniffing
</span><span class="cx">     # the MIME type away from the declared Content-Type.
</span><del>-    unshift(@_, '-x_content_type_options' =&gt; 'nosniff');
</del><ins>+    $headers{'-x_content_type_options'} = 'nosniff';
</ins><span class="cx"> 
</span><del>-    return $self-&gt;SUPER::header(@_) || &quot;&quot;;
</del><ins>+    Bugzilla::Hook::process('cgi_headers',
+        { cgi =&gt; $self, headers =&gt; \%headers }
+    );
+    $self-&gt;{_header_done} = 1;
+
+    return $self-&gt;SUPER::header(%headers) || &quot;&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub param {
</span><span class="cx">     my $self = shift;
</span><ins>+    local $CGI::LIST_CONTEXT_WARN = 0;
</ins><span class="cx"> 
</span><span class="cx">     # When we are just requesting the value of a parameter...
</span><span class="cx">     if (scalar(@_) == 1) {
</span><span class="lines">@@ -340,10 +375,7 @@
</span><span class="cx">         if (!scalar(@result)
</span><span class="cx">             &amp;&amp; $self-&gt;request_method &amp;&amp; $self-&gt;request_method eq 'POST')
</span><span class="cx">         {
</span><del>-            # Some servers fail to set the QUERY_STRING parameter, which
-            # causes undef issues
-            $ENV{'QUERY_STRING'} = '' unless exists $ENV{'QUERY_STRING'};
-            @result = $self-&gt;SUPER::url_param(@_);
</del><ins>+            @result = $self-&gt;url_param(@_);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         # Fix UTF-8-ness of input parameters.
</span><span class="lines">@@ -368,6 +400,14 @@
</span><span class="cx">     return $self-&gt;SUPER::param(@_);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub url_param {
+    my $self = shift;
+    # Some servers fail to set the QUERY_STRING parameter, which
+    # causes undef issues
+    $ENV{'QUERY_STRING'} //= '';
+    return $self-&gt;SUPER::url_param(@_);
+}
+
</ins><span class="cx"> sub _fix_utf8 {
</span><span class="cx">     my $input = shift;
</span><span class="cx">     # The is_utf8 is here in case CGI gets smart about utf8 someday.
</span><span class="lines">@@ -432,6 +472,10 @@
</span><span class="cx"> # URLs that get POSTed to buglist.cgi.
</span><span class="cx"> sub redirect_search_url {
</span><span class="cx">     my $self = shift;
</span><ins>+
+    # If there is no parameter, there is nothing to do.
+    return unless $self-&gt;param;
+
</ins><span class="cx">     # If we're retreiving an old list, we never need to redirect or
</span><span class="cx">     # do anything related to Bugzilla::Search::Recent.
</span><span class="cx">     return if $self-&gt;param('regetlastlist');
</span><span class="lines">@@ -455,6 +499,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    my $no_redirect = $self-&gt;param('no_redirect');
</ins><span class="cx">     $self-&gt;clean_search_url();
</span><span class="cx"> 
</span><span class="cx">     # Make sure we still have params still after cleaning otherwise we 
</span><span class="lines">@@ -468,11 +513,15 @@
</span><span class="cx">         $self-&gt;param('list_id', $recent_search-&gt;id);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Browsers which support history.replaceState do not need to be
+    # redirected. We can fix the URL on the fly.
+    return if $no_redirect;
+
</ins><span class="cx">     # GET requests that lacked a list_id are always redirected. POST requests
</span><span class="cx">     # are only redirected if they're under the CGI_URI_LIMIT though.
</span><del>-    my $uri_length = length($self-&gt;self_url());
-    if ($self-&gt;request_method() ne 'POST' or $uri_length &lt; CGI_URI_LIMIT) {
-        print $self-&gt;redirect(-url =&gt; $self-&gt;self_url());
</del><ins>+    my $self_url = $self-&gt;self_url();
+    if ($self-&gt;request_method() ne 'POST' or length($self_url) &lt; CGI_URI_LIMIT) {
+        print $self-&gt;redirect(-url =&gt; $self_url);
</ins><span class="cx">         exit;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -526,9 +575,25 @@
</span><span class="cx">         $regex =~ s/\\\%bugid\\\%/\\d+/;
</span><span class="cx">     }
</span><span class="cx">     $regex = &quot;^$regex&quot;;
</span><del>-    return ($self-&gt;self_url =~ $regex) ? 1 : 0;
</del><ins>+    return ($self-&gt;url =~ $regex) ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub set_dated_content_disp {
+    my ($self, $type, $prefix, $ext) = @_;
+
+    my @time = localtime(time());
+    my $date = sprintf &quot;%04d-%02d-%02d&quot;, 1900+$time[5], $time[4]+1, $time[3];
+    my $filename = &quot;$prefix-$date.$ext&quot;;
+
+    $filename =~ s/\s/_/g; # Remove whitespace to avoid HTTP header tampering
+    $filename =~ s/\\/_/g; # Remove backslashes as well
+    $filename =~ s/&quot;/\\&quot;/g; # escape quotes
+
+    my $disposition = &quot;$type; filename=\&quot;$filename\&quot;&quot;;
+
+    $self-&gt;{'_content_disp'} = $disposition;
+}
+
</ins><span class="cx"> ##########################
</span><span class="cx"> # Vars TIEHASH Interface #
</span><span class="cx"> ##########################
</span><span class="lines">@@ -603,7 +668,9 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;canonicalise_query(@exclude)&gt;
</span><span class="cx"> 
</span><del>-This returns a sorted string of the parameters, suitable for use in a url.
</del><ins>+This returns a sorted string of the parameters whose values are non-empty,
+suitable for use in a url.
+
</ins><span class="cx"> Values in C&lt;@exclude&gt; are not included in the result.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;send_cookie&gt;
</span><span class="lines">@@ -636,8 +703,44 @@
</span><span class="cx"> 
</span><span class="cx"> Redirects from the current URL to one prefixed by the urlbase parameter.
</span><span class="cx"> 
</span><ins>+=item C&lt;multipart_start&gt;
+
+Starts a new part of the multipart document using the specified MIME type.
+If not specified, text/html is assumed.
+
+=item C&lt;close_standby_message&gt;
+
+Ends a part of the multipart document, and starts another part.
+
+=item C&lt;set_dated_content_disp&gt;
+
+Sets an appropriate date-dependent value for the Content Disposition header
+for a downloadable resource.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;CGI|CGI&gt;, L&lt;CGI::Cookie|CGI::Cookie&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item check_etag
+
+=item clean_search_url
+
+=item url_is_attachment_base
+
+=item should_set
+
+=item redirect_search_url
+
+=item param
+
+=item url_param
+
+=item header
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaChartpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Chart.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Chart.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Chart.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,10 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Albert Ting &lt;altlst@sonic.net&gt;
-#                 A. Karl Kornel &lt;karl@kornel.name&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-use strict;
-
</del><span class="cx"> # This module represents a chart.
</span><span class="cx"> #
</span><span class="cx"> # Note that it is perfectly legal for the 'lines' member variable of this
</span><span class="lines">@@ -31,6 +13,10 @@
</span><span class="cx"> # the same points.
</span><span class="cx"> package Bugzilla::Chart;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Series;
</span><span class="lines">@@ -436,9 +422,35 @@
</span><span class="cx">     my $data = $self-&gt;data;
</span><span class="cx">     
</span><span class="cx">     require Data::Dumper;
</span><del>-    print &quot;&lt;pre&gt;Bugzilla::Chart object:\n&quot;;
</del><ins>+    say &quot;&lt;pre&gt;Bugzilla::Chart object:&quot;;
</ins><span class="cx">     print html_quote(Data::Dumper::Dumper($self));
</span><span class="cx">     print &quot;&lt;/pre&gt;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item remove
+
+=item add
+
+=item dump
+
+=item readData
+
+=item getSeriesIDs
+
+=item data
+
+=item init
+
+=item getVisibleSeries
+
+=item generateDateProgression
+
+=item sum
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaClassificationpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Classification.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Classification.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Classification.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Classification;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Classification;
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -25,12 +17,15 @@
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Product;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
</del><ins>+use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object Exporter);
+@Bugzilla::Classification::EXPORT = qw(sort_products_by_classification);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####    Initialization     ####
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_TABLE =&gt; 'classifications';
</span><span class="cx"> use constant LIST_ORDER =&gt; 'sortkey, name';
</span><span class="cx"> 
</span><span class="lines">@@ -56,6 +51,7 @@
</span><span class="cx"> ###############################
</span><span class="cx"> ####     Constructors     #####
</span><span class="cx"> ###############################
</span><ins>+
</ins><span class="cx"> sub remove_from_db {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -63,10 +59,20 @@
</span><span class="cx">     ThrowUserError(&quot;classification_not_deletable&quot;) if ($self-&gt;id == 1);
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><ins>+
</ins><span class="cx">     # Reclassify products to the default classification, if needed.
</span><del>-    $dbh-&gt;do(&quot;UPDATE products SET classification_id = 1
-              WHERE classification_id = ?&quot;, undef, $self-&gt;id);
</del><ins>+    my $product_ids = $dbh-&gt;selectcol_arrayref(
+        'SELECT id FROM products WHERE classification_id = ?', undef, $self-&gt;id);
</ins><span class="cx"> 
</span><ins>+    if (@$product_ids) {
+        $dbh-&gt;do('UPDATE products SET classification_id = 1 WHERE '
+                  . $dbh-&gt;sql_in('id', $product_ids));
+        foreach my $id (@$product_ids) {
+            Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'products', id =&gt; $id });
+        }
+        Bugzilla-&gt;memcached-&gt;clear_config();
+    }
+
</ins><span class="cx">     $self-&gt;SUPER::remove_from_db();
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="lines">@@ -162,6 +168,38 @@
</span><span class="cx"> sub description { return $_[0]-&gt;{'description'}; }
</span><span class="cx"> sub sortkey     { return $_[0]-&gt;{'sortkey'};     }
</span><span class="cx"> 
</span><ins>+
+###############################
+####       Helpers         ####
+###############################
+
+# This function is a helper to sort products to be listed
+# in global/choose-product.html.tmpl.
+
+sub sort_products_by_classification {
+    my $products = shift;
+    my $list;
+
+    if (Bugzilla-&gt;params-&gt;{'useclassification'}) {
+        my $class = {};
+        # Get all classifications with at least one product.
+        foreach my $product (@$products) {
+            $class-&gt;{$product-&gt;classification_id}-&gt;{'object'} ||=
+                new Bugzilla::Classification($product-&gt;classification_id);
+            # Nice way to group products per classification, without querying
+            # the DB again.
+            push(@{$class-&gt;{$product-&gt;classification_id}-&gt;{'products'}}, $product);
+        }
+        $list = [sort {$a-&gt;{'object'}-&gt;sortkey &lt;=&gt; $b-&gt;{'object'}-&gt;sortkey
+                       || lc($a-&gt;{'object'}-&gt;name) cmp lc($b-&gt;{'object'}-&gt;name)}
+                      (values %$class)];
+    }
+    else {
+        $list = [{object =&gt; undef, products =&gt; $products}];
+    }
+    return $list;
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -218,4 +256,39 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head1 SUBROUTINES
+
+=over
+
+=item C&lt;sort_products_by_classification&gt;
+
+ Description: This is a helper which returns a list of products sorted
+              by classification in a form suitable to be passed to the
+              global/choose-product.html.tmpl template.
+
+ Params:      An arrayref of product objects.
+
+ Returns:     An arrayref of hashes suitable to be passed to
+              global/choose-product.html.tmpl.
+
+=back
+
</ins><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_description
+
+=item sortkey
+
+=item set_name
+
+=item description
+
+=item remove_from_db
+
+=item set_sortkey
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaCommentTagWeightspm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Comment/TagWeights.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Comment/TagWeights.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Comment/TagWeights.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,78 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Comment::TagWeights;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Object);
+
+use Bugzilla::Constants;
+
+# No auditing required
+use constant AUDIT_CREATES =&gt; 0;
+use constant AUDIT_UPDATES =&gt; 0;
+use constant AUDIT_REMOVES =&gt; 0;
+
+use constant DB_COLUMNS =&gt; qw(
+    id
+    tag
+    weight
+);
+
+use constant UPDATE_COLUMNS =&gt; qw(
+    weight
+);
+
+use constant DB_TABLE   =&gt; 'longdescs_tags_weights';
+use constant ID_FIELD   =&gt; 'id';
+use constant NAME_FIELD =&gt; 'tag';
+use constant LIST_ORDER =&gt; 'weight DESC';
+use constant VALIDATORS =&gt; { };
+
+# There's no gain to caching these objects
+use constant USE_MEMCACHED =&gt; 0;
+
+sub tag    { return $_[0]-&gt;{'tag'} }
+sub weight { return $_[0]-&gt;{'weight'} }
+
+sub set_weight { $_[0]-&gt;set('weight', $_[1]); }
+
+1;
+
+=head1 NAME
+
+Comment::TagWeights - Bugzilla comment weighting class.
+
+=head1 DESCRIPTION
+
+TagWeights.pm represents a Comment::TagWeight object. It is an implementation
+of L&lt;Bugzilla::Object&gt;, and thus provides all methods that L&lt;Bugzilla::Object&gt;
+provides.
+
+TagWeights is used to quickly find tags and order by their usage count.
+
+=head1 PROPERTIES
+
+=over
+
+=item C&lt;tag&gt;
+
+C&lt;getter string&gt; The tag
+
+=item C&lt;weight&gt;
+
+C&lt;getter int&gt; The tag's weight. The value returned corresponds to the number of
+comments with this tag attached.
+
+=item C&lt;set_weight&gt;
+
+C&lt;setter int&gt; Set the tag's weight.
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaCommentpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Comment.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Comment.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Comment.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,26 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is James Robson.
-# Portions created by James Robson are Copyright (c) 2009 James Robson.
-# All rights reserved.
-#
-# Contributor(s): James Robson &lt;arbingersys@gmail.com&gt; 
-#                 Christian Legnitto &lt;clegnitto@mozilla.com&gt; 
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Comment;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Comment;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Attachment;
</span><ins>+use Bugzilla::Comment::TagWeights;
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><ins>+use List::Util qw(first);
</ins><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -92,15 +82,70 @@
</span><span class="cx"> 
</span><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><del>-    my $changes = $self-&gt;SUPER::update(@_);
-    $self-&gt;bug-&gt;_sync_fulltext();
</del><ins>+    my ($changes, $old_comment) = $self-&gt;SUPER::update(@_);
+
+    if (exists $changes-&gt;{'thetext'} || exists $changes-&gt;{'isprivate'}) {
+        $self-&gt;bug-&gt;_sync_fulltext( update_comments =&gt; 1);
+    }
+
+    my @old_tags = @{ $old_comment-&gt;tags };
+    my @new_tags = @{ $self-&gt;tags };
+    my ($removed_tags, $added_tags) = diff_arrays(\@old_tags, \@new_tags);
+
+    if (@$removed_tags || @$added_tags) {
+        my $dbh = Bugzilla-&gt;dbh;
+        my $when = $dbh-&gt;selectrow_array(&quot;SELECT LOCALTIMESTAMP(0)&quot;);
+        my $sth_delete = $dbh-&gt;prepare(
+            &quot;DELETE FROM longdescs_tags WHERE comment_id = ? AND tag = ?&quot;
+        );
+        my $sth_insert = $dbh-&gt;prepare(
+            &quot;INSERT INTO longdescs_tags(comment_id, tag) VALUES (?, ?)&quot;
+        );
+        my $sth_activity = $dbh-&gt;prepare(
+            &quot;INSERT INTO longdescs_tags_activity
+            (bug_id, comment_id, who, bug_when, added, removed)
+            VALUES (?, ?, ?, ?, ?, ?)&quot;
+        );
+
+        foreach my $tag (@$removed_tags) {
+            my $weighted = Bugzilla::Comment::TagWeights-&gt;new({ name =&gt; $tag });
+            if ($weighted) {
+                if ($weighted-&gt;weight == 1) {
+                    $weighted-&gt;remove_from_db();
+                } else {
+                    $weighted-&gt;set_weight($weighted-&gt;weight - 1);
+                    $weighted-&gt;update();
+                }
+            }
+            trick_taint($tag);
+            $sth_delete-&gt;execute($self-&gt;id, $tag);
+            $sth_activity-&gt;execute(
+                $self-&gt;bug_id, $self-&gt;id, Bugzilla-&gt;user-&gt;id, $when, '', $tag);
+        }
+
+        foreach my $tag (@$added_tags) {
+            my $weighted = Bugzilla::Comment::TagWeights-&gt;new({ name =&gt; $tag });
+            if ($weighted) {
+                $weighted-&gt;set_weight($weighted-&gt;weight + 1);
+                $weighted-&gt;update();
+            } else {
+                Bugzilla::Comment::TagWeights-&gt;create({ tag =&gt; $tag, weight =&gt; 1 });
+            }
+            trick_taint($tag);
+            $sth_insert-&gt;execute($self-&gt;id, $tag);
+            $sth_activity-&gt;execute(
+                $self-&gt;bug_id, $self-&gt;id, Bugzilla-&gt;user-&gt;id, $when, $tag, '');
+        }
+    }
+
</ins><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Speeds up displays of comment lists by loading all -&gt;author objects
-# at once for a whole list.
</del><ins>+# Speeds up displays of comment lists by loading all author objects and tags at
+# once for a whole list.
</ins><span class="cx"> sub preload {
</span><span class="cx">     my ($class, $comments) = @_;
</span><ins>+    # Author
</ins><span class="cx">     my %user_ids = map { $_-&gt;{who} =&gt; 1 } @$comments;
</span><span class="cx">     my $users = Bugzilla::User-&gt;new_from_list([keys %user_ids]);
</span><span class="cx">     my %user_map = map { $_-&gt;id =&gt; $_ } @$users;
</span><span class="lines">@@ -107,6 +152,24 @@
</span><span class="cx">     foreach my $comment (@$comments) {
</span><span class="cx">         $comment-&gt;{author} = $user_map{$comment-&gt;{who}};
</span><span class="cx">     }
</span><ins>+    # Tags
+    if (Bugzilla-&gt;params-&gt;{'comment_taggers_group'}) {
+        my $dbh = Bugzilla-&gt;dbh;
+        my @comment_ids = map { $_-&gt;id } @$comments;
+        my %comment_map = map { $_-&gt;id =&gt; $_ } @$comments;
+        my $rows = $dbh-&gt;selectall_arrayref(
+            &quot;SELECT comment_id, &quot; . $dbh-&gt;sql_group_concat('tag', &quot;','&quot;) . &quot;
+               FROM longdescs_tags
+              WHERE &quot; . $dbh-&gt;sql_in('comment_id', \@comment_ids) . ' ' .
+              $dbh-&gt;sql_group_by('comment_id'));
+        foreach my $row (@$rows) {
+            $comment_map{$row-&gt;[0]}-&gt;{tags} = [ split(/,/, $row-&gt;[1]) ];
+        }
+        # Also sets the 'tags' attribute for comments which have no entry
+        # in the longdescs_tags table, else calling $comment-&gt;tags will
+        # trigger another SQL query again.
+        $comment_map{$_}-&gt;{tags} ||= [] foreach @comment_ids;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -126,6 +189,43 @@
</span><span class="cx"> sub type        { return $_[0]-&gt;{'type'};      }
</span><span class="cx"> sub extra_data  { return $_[0]-&gt;{'extra_data'} }
</span><span class="cx"> 
</span><ins>+sub tags {
+    my ($self) = @_;
+    state $comment_taggers_group = Bugzilla-&gt;params-&gt;{'comment_taggers_group'};
+    return [] unless $comment_taggers_group;
+    $self-&gt;{'tags'} ||= Bugzilla-&gt;dbh-&gt;selectcol_arrayref(
+        &quot;SELECT tag
+           FROM longdescs_tags
+          WHERE comment_id = ?
+          ORDER BY tag&quot;,
+        undef, $self-&gt;id);
+    return $self-&gt;{'tags'};
+}
+
+sub collapsed {
+    my ($self) = @_;
+    state $comment_taggers_group = Bugzilla-&gt;params-&gt;{'comment_taggers_group'};
+    return 0 unless $comment_taggers_group;
+    return $self-&gt;{collapsed} if exists $self-&gt;{collapsed};
+
+    state $collapsed_comment_tags = Bugzilla-&gt;params-&gt;{'collapsed_comment_tags'};
+    $self-&gt;{collapsed} = 0;
+    Bugzilla-&gt;request_cache-&gt;{comment_tags_collapsed}
+            ||= [ split(/\s*,\s*/, $collapsed_comment_tags) ];
+    my @collapsed_tags = @{ Bugzilla-&gt;request_cache-&gt;{comment_tags_collapsed} };
+    foreach my $my_tag (@{ $self-&gt;tags }) {
+        $my_tag = lc($my_tag);
+        foreach my $collapsed_tag (@collapsed_tags) {
+            if ($my_tag eq lc($collapsed_tag)) {
+                $self-&gt;{collapsed} = 1;
+                last;
+            }
+        }
+        last if $self-&gt;{collapsed};
+    }
+    return $self-&gt;{collapsed};
+}
+
</ins><span class="cx"> sub bug {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     require Bugzilla::Bug;
</span><span class="lines">@@ -143,13 +243,15 @@
</span><span class="cx"> sub attachment {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return undef if not $self-&gt;is_about_attachment;
</span><del>-    $self-&gt;{attachment} ||= new Bugzilla::Attachment($self-&gt;extra_data);
</del><ins>+    $self-&gt;{attachment} ||=
+        new Bugzilla::Attachment({ id =&gt; $self-&gt;extra_data, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{attachment};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub author { 
</span><span class="cx">     my $self = shift;
</span><del>-    $self-&gt;{'author'} ||= new Bugzilla::User($self-&gt;{'who'});
</del><ins>+    $self-&gt;{'author'}
+      ||= new Bugzilla::User({ id =&gt; $self-&gt;{'who'}, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{'author'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -181,6 +283,26 @@
</span><span class="cx"> sub set_type        { $_[0]-&gt;set('type',       $_[1]); }
</span><span class="cx"> sub set_extra_data  { $_[0]-&gt;set('extra_data', $_[1]); }
</span><span class="cx"> 
</span><ins>+sub add_tag {
+    my ($self, $tag) = @_;
+    $tag = $self-&gt;_check_tag($tag);
+
+    my $tags = $self-&gt;tags;
+    return if grep { lc($tag) eq lc($_) } @$tags;
+    push @$tags, $tag;
+    $self-&gt;{'tags'} = [ sort @$tags ];
+}
+
+sub remove_tag {
+    my ($self, $tag) = @_;
+    $tag = $self-&gt;_check_tag($tag);
+
+    my $tags = $self-&gt;tags;
+    my $index = first { lc($tags-&gt;[$_]) eq lc($tag) } 0..scalar(@$tags) - 1;
+    return unless defined $index;
+    splice(@$tags, $index, 1);
+}
+
</ins><span class="cx"> ##############
</span><span class="cx"> # Validators #
</span><span class="cx"> ##############
</span><span class="lines">@@ -311,6 +433,18 @@
</span><span class="cx">     $thetext =~ s/\s*$//s;
</span><span class="cx">     $thetext =~ s/\r\n?/\n/g; # Get rid of \r.
</span><span class="cx"> 
</span><ins>+    # Characters above U+FFFF cannot be stored by MySQL older than 5.5.3 as they
+    # require the new utf8mb4 character set. Other DB servers are handling them
+    # without any problem. So we need to replace these characters if we use MySQL,
+    # else the comment is truncated.
+    # XXX - Once we use utf8mb4 for comments, this hack for MySQL can go away.
+    state $is_mysql = Bugzilla-&gt;dbh-&gt;isa('Bugzilla::DB::Mysql') ? 1 : 0;
+    if ($is_mysql) {
+        # Perl 5.13.8 and older complain about non-characters.
+        no warnings 'utf8';
+        $thetext =~ s/([\x{10000}-\x{10FFFF}])/&quot;\x{FDD0}[&quot; . uc(sprintf('U+%04x', ord($1))) . &quot;]\x{FDD1}&quot;/eg;
+    }
+
</ins><span class="cx">     ThrowUserError('comment_too_long') if length($thetext) &gt; MAX_COMMENT_LENGTH;
</span><span class="cx">     return $thetext;
</span><span class="cx"> }
</span><span class="lines">@@ -323,6 +457,17 @@
</span><span class="cx">     return $isprivate ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _check_tag {
+    my ($invocant, $tag) = @_;
+    length($tag) &lt; MIN_COMMENT_TAG_LENGTH
+        and ThrowUserError('comment_tag_too_short', { tag =&gt; $tag });
+    length($tag) &gt; MAX_COMMENT_TAG_LENGTH
+        and ThrowUserError('comment_tag_too_long', { tag =&gt; $tag });
+    $tag =~ /^[\w\d\._-]+$/
+        or ThrowUserError('comment_tag_invalid', { tag =&gt; $tag });
+    return $tag;
+}
+
</ins><span class="cx"> sub count {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -337,7 +482,7 @@
</span><span class="cx">         undef, $self-&gt;bug_id, $self-&gt;creation_ts);
</span><span class="cx"> 
</span><span class="cx">     return --$self-&gt;{'count'};
</span><del>-}   
</del><ins>+}
</ins><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="lines">@@ -383,7 +528,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;is_private&gt;
</span><span class="cx"> 
</span><del>-C&lt;boolean&gt; Comment is marked as private
</del><ins>+C&lt;boolean&gt; Comment is marked as private.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;already_wrapped&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -398,6 +543,54 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;int&gt; The position this comment is located in the full list of comments for a bug starting from 0.
</span><span class="cx"> 
</span><ins>+=item C&lt;collapsed&gt;
+
+C&lt;boolean&gt; Comment should be displayed as collapsed by default.
+
+=item C&lt;tags&gt;
+
+C&lt;array of strings&gt; The tags attached to the comment.
+
+=item C&lt;add_tag&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Attaches the specified tag to the comment.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;tag&gt;
+
+C&lt;string&gt; The tag to attach.
+
+=back
+
+=back
+
+=item C&lt;remove_tag&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Detaches the specified tag from the comment.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;tag&gt;
+
+C&lt;string&gt; The tag to detach.
+
+=back
+
+=back
+
</ins><span class="cx"> =item C&lt;body_full&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -431,3 +624,29 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_type
+
+=item bug
+
+=item set_extra_data
+
+=item set_is_private
+
+=item attachment
+
+=item is_about_attachment
+
+=item extra_data
+
+=item preload
+
+=item type
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaComponentpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Component.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Component.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Component.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Component;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -155,6 +147,12 @@
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><ins>+    # Products must have at least one component.
+    my @components = @{ $self-&gt;product-&gt;components };
+    if (scalar(@components) == 1) {
+        ThrowUserError('component_is_last', { comp =&gt; $self });
+    }
+
</ins><span class="cx">     if ($self-&gt;bug_count) {
</span><span class="cx">         if (Bugzilla-&gt;params-&gt;{'allowbugdeletion'}) {
</span><span class="cx">             require Bugzilla::Bug;
</span><span class="lines">@@ -168,15 +166,10 @@
</span><span class="cx">             ThrowUserError('component_has_bugs', {nb =&gt; $self-&gt;bug_count});
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    # Update the list of components in the product object.
+    $self-&gt;product-&gt;{components} = [grep { $_-&gt;id != $self-&gt;id } @components];
+    $self-&gt;SUPER::remove_from_db();
</ins><span class="cx"> 
</span><del>-    $dbh-&gt;do('DELETE FROM flaginclusions WHERE component_id = ?',
-             undef, $self-&gt;id);
-    $dbh-&gt;do('DELETE FROM flagexclusions WHERE component_id = ?',
-             undef, $self-&gt;id);
-    $dbh-&gt;do('DELETE FROM component_cc WHERE component_id = ?',
-             undef, $self-&gt;id);
-    $dbh-&gt;do('DELETE FROM components WHERE id = ?', undef, $self-&gt;id);
-
</del><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -353,21 +346,16 @@
</span><span class="cx"> sub default_assignee {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><del>-    if (!defined $self-&gt;{'default_assignee'}) {
-        $self-&gt;{'default_assignee'} =
-            new Bugzilla::User($self-&gt;{'initialowner'});
-    }
-    return $self-&gt;{'default_assignee'};
</del><ins>+    return $self-&gt;{'default_assignee'}
+      ||= new Bugzilla::User({ id =&gt; $self-&gt;{'initialowner'}, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub default_qa_contact {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><del>-    if (!defined $self-&gt;{'default_qa_contact'}) {
-        $self-&gt;{'default_qa_contact'} =
-            new Bugzilla::User($self-&gt;{'initialqacontact'});
-    }
-    return $self-&gt;{'default_qa_contact'};
</del><ins>+    return unless $self-&gt;{'initialqacontact'};
+    return $self-&gt;{'default_qa_contact'}
+      ||= new Bugzilla::User({id =&gt; $self-&gt;{'initialqacontact'}, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub flag_types {
</span><span class="lines">@@ -429,10 +417,10 @@
</span><span class="cx"> 
</span><span class="cx"> sub is_set_on_bug {
</span><span class="cx">     my ($self, $bug) = @_;
</span><del>-    # We treat it like a hash always, so that we don't have to check if it's
-    # a hash or an object.
-    return 0 if !defined $bug-&gt;{component_id};
-    $bug-&gt;{component_id} == $self-&gt;id ? 1 : 0;
</del><ins>+    my $value = blessed($bug) ? $bug-&gt;component_id : $bug-&gt;{component};
+    $value = $value-&gt;id if blessed($value);
+    return 0 unless $value;
+    return $value == $self-&gt;id ? 1 : 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -501,10 +489,12 @@
</span><span class="cx"> 
</span><span class="cx">  Params:      $param - If you pass an integer, the integer is the
</span><span class="cx">                        component ID from the database that we want to
</span><del>-                       read in. If you pass in a hash with the 'name'
-                       and 'product' keys, then the value of the name
-                       key is the name of a component being in the given
-                       product.
</del><ins>+                       read in. 
+                       However, If you pass in a hash, it must contain
+                       two keys:
+                       name (string): the name of the component
+                       product (object): an object of Bugzilla::Product
+                       representing the product that the component belongs to.
</ins><span class="cx"> 
</span><span class="cx">  Returns:     A Bugzilla::Component object.
</span><span class="cx"> 
</span><span class="lines">@@ -516,7 +506,7 @@
</span><span class="cx"> 
</span><span class="cx">  Returns:     Integer with the number of bugs.
</span><span class="cx"> 
</span><del>-=item C&lt;bugs_ids()&gt;
</del><ins>+=item C&lt;bug_ids()&gt;
</ins><span class="cx"> 
</span><span class="cx">  Description: Returns all bug IDs that belong to the component.
</span><span class="cx"> 
</span><span class="lines">@@ -540,7 +530,8 @@
</span><span class="cx"> 
</span><span class="cx">  Params:      none.
</span><span class="cx"> 
</span><del>- Returns:     A Bugzilla::User object.
</del><ins>+ Returns:     A Bugzilla::User object if the default QA contact is defined for
+              the component. Otherwise, returns undef.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;initial_cc&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -642,17 +633,17 @@
</span><span class="cx">  Description: Create a new component for the given product.
</span><span class="cx"> 
</span><span class="cx">  Params:      The hashref must have the following keys:
</span><del>-              name            - name of the new component (string). This name
-                                must be unique within the product.
-              product         - a Bugzilla::Product object to which
-                                the Component is being added.
-              description     - description of the new component (string).
-              initialowner    - login name of the default assignee (string).
</del><ins>+              name             - name of the new component (string). This name
+                                 must be unique within the product.
+              product          - a Bugzilla::Product object to which
+                                 the Component is being added.
+              description      - description of the new component (string).
+              initialowner     - login name of the default assignee (string).
</ins><span class="cx">               The following keys are optional:
</span><del>-              initiaqacontact - login name of the default QA contact (string),
-                                or an empty string to clear it.
-              initial_cc      - an arrayref of login names to add to the
-                                CC list by default.
</del><ins>+              initialqacontact - login name of the default QA contact (string),
+                                 or an empty string to clear it.
+              initial_cc       - an arrayref of login names to add to the
+                                 CC list by default.
</ins><span class="cx"> 
</span><span class="cx">  Returns:     A Bugzilla::Component object.
</span><span class="cx"> 
</span><span class="lines">@@ -659,3 +650,19 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item is_set_on_bug
+
+=item product_id
+
+=item set_is_active
+
+=item description
+
+=item is_active
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigAdminpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Admin.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Admin.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Admin.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Admin;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span><span class="lines">@@ -56,6 +34,13 @@
</span><span class="cx">    name =&gt; 'allowuserdeletion',
</span><span class="cx">    type =&gt; 'b',
</span><span class="cx">    default =&gt; 0
</span><ins>+  },
+
+  {
+   name =&gt; 'last_visit_keep_days',
+   type =&gt; 't',
+   default =&gt; 10,
+   checker =&gt; \&amp;check_numeric
</ins><span class="cx">   });
</span><span class="cx">   return @param_list;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigAdvancedpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Advanced.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Advanced.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Advanced.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Advanced;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigAttachmentpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Attachment.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Attachment.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Attachment.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Attachment;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigAuthpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Auth.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Auth.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Auth.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Auth;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span><span class="lines">@@ -97,9 +75,15 @@
</span><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">   {
</span><ins>+   name =&gt; 'webservice_email_filter',
+   type =&gt; 'b',
+   default =&gt; 0
+  },
+
+  {
</ins><span class="cx">    name =&gt; 'emailregexp',
</span><span class="cx">    type =&gt; 't',
</span><del>-   default =&gt; q:^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$:,
</del><ins>+   default =&gt; q:^[\\w\\.\\+\\-=']+@[\\w\\.\\-]+\\.[\\w\\-]+$:,
</ins><span class="cx">    checker =&gt; \&amp;check_regexp
</span><span class="cx">   },
</span><span class="cx"> 
</span><span class="lines">@@ -130,7 +114,14 @@
</span><span class="cx">                 'letters_numbers_specialchars' ],
</span><span class="cx">    default =&gt; 'no_constraints',
</span><span class="cx">    checker =&gt; \&amp;check_multi
</span><del>-  } );
</del><ins>+  },
+
+  {
+   name =&gt; 'password_check_on_login',
+   type =&gt; 'b',
+   default =&gt; '1'
+  },
+  );
</ins><span class="cx">   return @param_list;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigBugChangepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugChange.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugChange.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugChange.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::BugChange;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> use Bugzilla::Status;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigBugFieldspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugFields.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugFields.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/BugFields.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::BugFields;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="lines">@@ -72,12 +50,6 @@
</span><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">   {
</span><del>-   name =&gt; 'usebugaliases',
-   type =&gt; 'b',
-   default =&gt; 0
-  },
-
-  {
</del><span class="cx">    name =&gt; 'use_see_also',
</span><span class="cx">    type =&gt; 'b',
</span><span class="cx">    default =&gt; 1
</span><span class="lines">@@ -113,7 +85,13 @@
</span><span class="cx">    choices =&gt; ['', @legal_OS],
</span><span class="cx">    default =&gt; '',
</span><span class="cx">    checker =&gt; \&amp;check_opsys
</span><del>-  } );
</del><ins>+  },
+
+  {
+   name =&gt; 'collapsed_comment_tags',
+   type =&gt; 't',
+   default =&gt; 'obsolete, spam',
+  });
</ins><span class="cx">   return @param_list;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigCommonpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Common.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Common.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Common.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,38 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Common;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Email::Address;
</span><span class="cx"> use Socket;
</span><span class="lines">@@ -43,15 +20,16 @@
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> @Bugzilla::Config::Common::EXPORT =
</span><span class="cx">     qw(check_multi check_numeric check_regexp check_url check_group
</span><span class="cx">        check_sslbase check_priority check_severity check_platform
</span><span class="cx">        check_opsys check_shadowdb check_urlbase check_webdotbase
</span><del>-       check_user_verify_class check_ip
</del><ins>+       check_user_verify_class check_ip check_font_file
</ins><span class="cx">        check_mail_delivery_method check_notification check_utf8
</span><span class="cx">        check_bug_status check_smtp_auth check_theschwartz_available
</span><del>-       check_maxattachmentsize check_email
</del><ins>+       check_maxattachmentsize check_email check_smtp_ssl
+       check_comment_taggers_group check_smtp_server
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> # Checking functions for the various values
</span><span class="lines">@@ -67,7 +45,10 @@
</span><span class="cx">         return &quot;&quot;;
</span><span class="cx">     }
</span><span class="cx">     elsif ($param-&gt;{'type'} eq 'm' || $param-&gt;{'type'} eq 'o') {
</span><del>-        foreach my $chkParam (split(',', $value)) {
</del><ins>+        if (ref($value) ne &quot;ARRAY&quot;) {
+            $value = [split(',', $value)]
+        }
+        foreach my $chkParam (@$value) {
</ins><span class="cx">             unless (scalar(grep {$_ eq $chkParam} (@{$param-&gt;{'choices'}}))) {
</span><span class="cx">                 return &quot;Invalid choice '$chkParam' for multi-select list param '$param-&gt;{'name'}'&quot;;
</span><span class="cx">             }
</span><span class="lines">@@ -122,7 +103,7 @@
</span><span class="cx">         my $iaddr = inet_aton($host) || return &quot;The host $host cannot be resolved&quot;;
</span><span class="cx">         my $sin = sockaddr_in($port, $iaddr);
</span><span class="cx">         if (!connect(SOCK, $sin)) {
</span><del>-            return &quot;Failed to connect to $host:$port; unable to enable SSL&quot;;
</del><ins>+            return &quot;Failed to connect to $host:$port ($!); unable to enable SSL&quot;;
</ins><span class="cx">         }
</span><span class="cx">         close(SOCK);
</span><span class="cx">     }
</span><span class="lines">@@ -256,7 +237,7 @@
</span><span class="cx">         # Check .htaccess allows access to generated images
</span><span class="cx">         my $webdotdir = bz_locations()-&gt;{'webdotdir'};
</span><span class="cx">         if(-e &quot;$webdotdir/.htaccess&quot;) {
</span><del>-            open HTACCESS, &quot;$webdotdir/.htaccess&quot;;
</del><ins>+            open HTACCESS, &quot;&lt;&quot;, &quot;$webdotdir/.htaccess&quot;;
</ins><span class="cx">             if(! grep(/ \\\.png\$/,&lt;HTACCESS&gt;)) {
</span><span class="cx">                 return &quot;Dependency graph images are not accessible.\nAssuming that you have not modified the file, delete $webdotdir/.htaccess and re-run checksetup.pl to rectify.\n&quot;;
</span><span class="cx">             }
</span><span class="lines">@@ -266,6 +247,20 @@
</span><span class="cx">     return &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_font_file {
+    my ($font) = @_;
+    $font = trim($font);
+    return '' unless $font;
+
+    if ($font !~ /\.(ttf|otf)$/) {
+        return &quot;The file must point to a TrueType or OpenType font file (its extension must be .ttf or .otf)&quot;
+    }
+    if (! -f $font) {
+        return &quot;The file '$font' cannot be found. Make sure you typed the full path to the file&quot;
+    }
+    return '';
+}
+
</ins><span class="cx"> sub check_user_verify_class {
</span><span class="cx">     # doeditparams traverses the list of params, and for each one it checks,
</span><span class="cx">     # then updates. This means that if one param checker wants to look at 
</span><span class="lines">@@ -307,7 +302,7 @@
</span><span class="cx">     my $check = check_multi(@_);
</span><span class="cx">     return $check if $check;
</span><span class="cx">     my $mailer = shift;
</span><del>-    if ($mailer eq 'sendmail' and ON_WINDOWS) {
</del><ins>+    if ($mailer eq 'Sendmail' and ON_WINDOWS) {
</ins><span class="cx">         # look for sendmail.exe 
</span><span class="cx">         return &quot;Failed to locate &quot; . SENDMAIL_EXE
</span><span class="cx">             unless -e SENDMAIL_EXE;
</span><span class="lines">@@ -350,6 +345,35 @@
</span><span class="cx">     return &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_smtp_server {
+    my $host = shift;
+    my $port;
+
+    return '' unless $host;
+
+    if ($host =~ /:/) {
+        ($host, $port) = split(/:/, $host, 2);
+        unless ($port &amp;&amp; detaint_natural($port)) {
+            return &quot;Invalid port. It must be an integer (typically 25, 465 or 587)&quot;;
+        }
+    }
+    trick_taint($host);
+    # Let's first try to connect using SSL. If this fails, we fall back to
+    # an unencrypted connection.
+    foreach my $method (['Net::SMTP::SSL', 465], ['Net::SMTP', 25]) {
+        my ($class, $default_port) = @$method;
+        next if $class eq 'Net::SMTP::SSL' &amp;&amp; !Bugzilla-&gt;feature('smtp_ssl');
+        eval &quot;require $class&quot;;
+        my $smtp = $class-&gt;new($host, Port =&gt; $port || $default_port, Timeout =&gt; 5);
+        if ($smtp) {
+            # The connection works!
+            $smtp-&gt;quit;
+            return '';
+        }
+    }
+    return &quot;Cannot connect to $host&quot; . ($port ? &quot; using port $port&quot; : &quot;&quot;);
+}
+
</ins><span class="cx"> sub check_smtp_auth {
</span><span class="cx">     my $username = shift;
</span><span class="cx">     if ($username and !Bugzilla-&gt;feature('smtp_auth')) {
</span><span class="lines">@@ -359,6 +383,14 @@
</span><span class="cx">     return &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_smtp_ssl {
+    my $use_ssl = shift;
+    if ($use_ssl &amp;&amp; !Bugzilla-&gt;feature('smtp_ssl')) {
+        return &quot;SSL support is not available. Run checksetup.pl for more details&quot;;
+    }
+    return &quot;&quot;;
+}
+
</ins><span class="cx"> sub check_theschwartz_available {
</span><span class="cx">     my $use_queue = shift;
</span><span class="cx">     if ($use_queue &amp;&amp; !Bugzilla-&gt;feature('jobqueue')) {
</span><span class="lines">@@ -369,6 +401,14 @@
</span><span class="cx">     return &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_comment_taggers_group {
+    my $group_name = shift;
+    if ($group_name &amp;&amp; !Bugzilla-&gt;feature('jsonrpc')) {
+        return &quot;Comment tagging requires installation of the JSONRPC feature&quot;;
+    }
+    return check_group($group_name);
+}
+
</ins><span class="cx"> # OK, here are the parameter definitions themselves.
</span><span class="cx"> #
</span><span class="cx"> # Each definition is a hash with keys:
</span><span class="lines">@@ -467,4 +507,63 @@
</span><span class="cx"> 
</span><span class="cx"> Checks that the value is a valid regexp
</span><span class="cx"> 
</span><ins>+=item C&lt;check_comment_taggers_group&gt;
+
+Checks that the required modules for comment tagging are installed, and that a
+valid group is provided.
+
</ins><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item check_notification
+
+=item check_priority
+
+=item check_ip
+
+=item check_user_verify_class
+
+=item check_bug_status
+
+=item check_shadowdb
+
+=item check_smtp_server
+
+=item check_smtp_auth
+
+=item check_url
+
+=item check_urlbase
+
+=item check_email
+
+=item check_webdotbase
+
+=item check_font_file
+
+=item get_param_list
+
+=item check_maxattachmentsize
+
+=item check_utf8
+
+=item check_group
+
+=item check_opsys
+
+=item check_platform
+
+=item check_severity
+
+=item check_sslbase
+
+=item check_mail_delivery_method
+
+=item check_theschwartz_available
+
+=item check_smtp_ssl
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigCorepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Core.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Core.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Core.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Core;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigDependencyGraphpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/DependencyGraph.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/DependencyGraph.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/DependencyGraph.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::DependencyGraph;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span><span class="lines">@@ -43,9 +21,16 @@
</span><span class="cx">   {
</span><span class="cx">    name =&gt; 'webdotbase',
</span><span class="cx">    type =&gt; 't',
</span><del>-   default =&gt; 'http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%',
</del><ins>+   default =&gt; '',
</ins><span class="cx">    checker =&gt; \&amp;check_webdotbase
</span><del>-  } );
</del><ins>+  },
+
+  {
+   name =&gt; 'font_file',
+   type =&gt; 't',
+   default =&gt; '',
+   checker =&gt; \&amp;check_font_file
+  });
</ins><span class="cx">   return @param_list;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigGeneralpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/General.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/General.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/General.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::General;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span><span class="cx"> our $sortkey = 150;
</span><span class="lines">@@ -45,13 +25,6 @@
</span><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">   {
</span><del>-   name =&gt; 'docs_urlbase',
-   type =&gt; 't',
-   default =&gt; 'docs/%lang%/html/',
-   checker =&gt; \&amp;check_url
-  },
-
-  {
</del><span class="cx">    name =&gt; 'utf8',
</span><span class="cx">    type =&gt; 'b',
</span><span class="cx">    default =&gt; '0',
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigGroupSecuritypm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/GroupSecurity.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/GroupSecurity.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/GroupSecurity.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::GroupSecurity;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="lines">@@ -79,8 +57,16 @@
</span><span class="cx">    default =&gt; 'editbugs',
</span><span class="cx">    checker =&gt; \&amp;check_group
</span><span class="cx">   },
</span><del>-  
</del><ins>+
</ins><span class="cx">   {
</span><ins>+   name =&gt; 'comment_taggers_group',
+   type =&gt; 's',
+   choices =&gt; \&amp;_get_all_group_names,
+   default =&gt; 'editbugs',
+   checker =&gt; \&amp;check_comment_taggers_group
+  },
+
+  {
</ins><span class="cx">    name =&gt; 'debug_group',
</span><span class="cx">    type =&gt; 's',
</span><span class="cx">    choices =&gt; \&amp;_get_all_group_names,
</span><span class="lines">@@ -98,6 +84,12 @@
</span><span class="cx">    name =&gt; 'strict_isolation',
</span><span class="cx">    type =&gt; 'b',
</span><span class="cx">    default =&gt; 0
</span><ins>+  },
+
+  {
+   name =&gt; 'or_groups',
+   type =&gt; 'b',
+   default =&gt; 0
</ins><span class="cx">   } );
</span><span class="cx">   return @param_list;
</span><span class="cx"> }
</span><span class="lines">@@ -107,4 +99,5 @@
</span><span class="cx">     unshift(@group_names, '');
</span><span class="cx">     return \@group_names;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigLDAPpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/LDAP.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/LDAP.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/LDAP.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::LDAP;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigMTApm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/MTA.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/MTA.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/MTA.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,46 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::MTA;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><del>-# Return::Value 1.666002 pollutes the error log with warnings about this
-# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
-# to disable these warnings.
-BEGIN {
-    $Return::Value::NO_CLUCK = 1;
-}
-use Email::Send;
</del><span class="cx"> 
</span><span class="cx"> our $sortkey = 1200;
</span><span class="cx"> 
</span><span class="lines">@@ -50,9 +21,7 @@
</span><span class="cx">   {
</span><span class="cx">    name =&gt; 'mail_delivery_method',
</span><span class="cx">    type =&gt; 's',
</span><del>-   # Bugzilla is not ready yet to send mails to newsgroups, and 'IO'
-   # is of no use for now as we already have our own 'Test' mode.
-   choices =&gt; [grep {$_ ne 'NNTP' &amp;&amp; $_ ne 'IO'} Email::Send-&gt;new()-&gt;all_mailers(), 'None'],
</del><ins>+   choices =&gt; ['Sendmail', 'SMTP', 'Test', 'None'],
</ins><span class="cx">    default =&gt; 'Sendmail',
</span><span class="cx">    checker =&gt; \&amp;check_mail_delivery_method
</span><span class="cx">   },
</span><span class="lines">@@ -73,7 +42,8 @@
</span><span class="cx">   {
</span><span class="cx">    name =&gt; 'smtpserver',
</span><span class="cx">    type =&gt; 't',
</span><del>-   default =&gt; 'localhost'
</del><ins>+   default =&gt; 'localhost',
+   checker =&gt; \&amp;check_smtp_server
</ins><span class="cx">   },
</span><span class="cx">   {
</span><span class="cx">    name =&gt; 'smtp_username',
</span><span class="lines">@@ -87,6 +57,12 @@
</span><span class="cx">    default =&gt; ''
</span><span class="cx">   },
</span><span class="cx">   {
</span><ins>+   name =&gt; 'smtp_ssl',
+   type =&gt; 'b',
+   default =&gt; 0,
+   checker =&gt; \&amp;check_smtp_ssl
+  },
+  {
</ins><span class="cx">    name =&gt; 'smtp_debug',
</span><span class="cx">    type =&gt; 'b',
</span><span class="cx">    default =&gt; 0
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigMemcachedpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Memcached.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Memcached.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Memcached.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Config::Memcached;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::Config::Common;
+
+our $sortkey = 1550;
+
+sub get_param_list {
+  return (
+    {
+        name    =&gt; 'memcached_servers',
+        type    =&gt; 't',
+        default =&gt; ''
+    },
+    {
+        name    =&gt; 'memcached_namespace',
+        type    =&gt; 't',
+        default =&gt; 'bugzilla:',
+    },
+  );
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigPatchViewerpm"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/Bugzilla/Config/PatchViewer.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/PatchViewer.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/PatchViewer.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,75 +0,0 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
-
-package Bugzilla::Config::PatchViewer;
-
-use strict;
-
-use Bugzilla::Config::Common;
-
-our $sortkey = 1300;
-
-sub get_param_list {
-  my $class = shift;
-  my @param_list = (
-  {
-   name    =&gt; 'cvsroot',
-   type    =&gt; 't',
-   default =&gt; '',
-  },
-
-  {
-   name    =&gt; 'cvsroot_get',
-   type    =&gt; 't',
-   default =&gt; '',
-  },
-
-  {
-   name    =&gt; 'bonsai_url',
-   type    =&gt; 't',
-   default =&gt; ''
-  },
-
-  {
-   name    =&gt; 'lxr_url',
-   type    =&gt; 't',
-   default =&gt; ''
-  },
-
-  {
-   name    =&gt; 'lxr_root',
-   type    =&gt; 't',
-   default =&gt; '',
-  } );
-  return @param_list;
-}
-
-1;
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigQuerypm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/Query.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/Query.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/Query.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::Query;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span><span class="lines">@@ -49,13 +27,6 @@
</span><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">   {
</span><del>-   name =&gt; 'mostfreqthreshold',
-   type =&gt; 't',
-   default =&gt; '2',
-   checker =&gt; \&amp;check_numeric
-  },
-
-  {
</del><span class="cx">    name =&gt; 'mybugstemplate',
</span><span class="cx">    type =&gt; 't',
</span><span class="cx">    default =&gt; 'buglist.cgi?resolution=---&amp;amp;emailassigned_to1=1&amp;amp;emailreporter1=1&amp;amp;emailtype1=exact&amp;amp;email1=%userid%'
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigRADIUSpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/RADIUS.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/RADIUS.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/RADIUS.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Marc Schumann.
-# Portions created by Marc Schumann are Copyright (c) 2007 Marc Schumann.
-# All rights reserved.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::RADIUS;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigShadowDBpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/ShadowDB.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/ShadowDB.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/ShadowDB.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::ShadowDB;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigUserMatchpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config/UserMatch.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config/UserMatch.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config/UserMatch.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config::UserMatch;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,43 +1,27 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jake &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Config;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
+use autodie qw(:default);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Hook;
</span><del>-use Bugzilla::Install::Filesystem qw(fix_file_permissions);
-use Data::Dumper;
</del><ins>+use Bugzilla::Util qw(trick_taint);
+
+use JSON::XS;
+use File::Slurp;
</ins><span class="cx"> use File::Temp;
</span><ins>+use File::Basename;
</ins><span class="cx"> 
</span><span class="cx"> # Don't export localvars by default - people should have to explicitly
</span><span class="cx"> # ask for it, as a (probably futile) attempt to stop code using it
</span><span class="lines">@@ -114,8 +98,35 @@
</span><span class="cx"> sub update_params {
</span><span class="cx">     my ($params) = @_;
</span><span class="cx">     my $answer = Bugzilla-&gt;installation_answers;
</span><ins>+    my $datadir = bz_locations()-&gt;{'datadir'};
+    my $param;
</ins><span class="cx"> 
</span><del>-    my $param = read_param_file();
</del><ins>+    # If the old data/params file using Data::Dumper output still exists,
+    # read it. It will be deleted once the parameters are stored in the new
+    # data/params.json file.
+    my $old_file = &quot;$datadir/params&quot;;
+
+    if (-e $old_file) {
+        require Safe;
+        my $s = new Safe;
+
+        $s-&gt;rdo($old_file);
+        die &quot;Error reading $old_file: $!&quot; if $!;
+        die &quot;Error evaluating $old_file: $@&quot; if $@;
+
+        # Now read the param back out from the sandbox.
+        $param = \%{ $s-&gt;varglob('param') };
+    }
+    else {
+        # Rename params.js to params.json if checksetup.pl
+        # was executed with an earlier version of this change
+        rename &quot;$old_file.js&quot;, &quot;$old_file.json&quot;
+            if -e &quot;$old_file.js&quot; &amp;&amp; !-e &quot;$old_file.json&quot;;
+
+        # Read the new data/params.json file.
+        $param = read_param_file();
+    }
+
</ins><span class="cx">     my %new_params;
</span><span class="cx"> 
</span><span class="cx">     # If we didn't return any param values, then this is a new installation.
</span><span class="lines">@@ -174,16 +185,19 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Old mail_delivery_method choices contained no uppercase characters
</span><del>-    if (exists $param-&gt;{'mail_delivery_method'}
-        &amp;&amp; $param-&gt;{'mail_delivery_method'} !~ /[A-Z]/) {
-        my $method = $param-&gt;{'mail_delivery_method'};
-        my %translation = (
-            'sendmail' =&gt; 'Sendmail',
-            'smtp'     =&gt; 'SMTP',
-            'qmail'    =&gt; 'Qmail',
-            'testfile' =&gt; 'Test',
-            'none'     =&gt; 'None');
-        $param-&gt;{'mail_delivery_method'} = $translation{$method};
</del><ins>+    my $mta = $param-&gt;{'mail_delivery_method'};
+    if ($mta) {
+        if ($mta !~ /[A-Z]/) {
+            my %translation = (
+                'sendmail' =&gt; 'Sendmail',
+                'smtp'     =&gt; 'SMTP',
+                'qmail'    =&gt; 'Qmail',
+                'testfile' =&gt; 'Test',
+                'none'     =&gt; 'None');
+            $param-&gt;{'mail_delivery_method'} = $translation{$mta};
+        }
+        # This will force the parameter to be reset to its default value.
+        delete $param-&gt;{'mail_delivery_method'} if $param-&gt;{'mail_delivery_method'} eq 'Qmail';
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Convert the old &quot;ssl&quot; parameter to the new &quot;ssl_redirect&quot; parameter.
</span><span class="lines">@@ -219,6 +233,9 @@
</span><span class="cx"> 
</span><span class="cx">     $param-&gt;{'utf8'} = 1 if $new_install;
</span><span class="cx"> 
</span><ins>+    # Bug 452525: OR based groups are on by default for new installations
+    $param-&gt;{'or_groups'} = 1 if $new_install;
+
</ins><span class="cx">     # --- REMOVE OLD PARAMS ---
</span><span class="cx"> 
</span><span class="cx">     my %oldparams;
</span><span class="lines">@@ -230,7 +247,6 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Write any old parameters to old-params.txt
</span><del>-    my $datadir = bz_locations()-&gt;{'datadir'};
</del><span class="cx">     my $old_param_file = &quot;$datadir/old-params.txt&quot;;
</span><span class="cx">     if (scalar(keys %oldparams)) {
</span><span class="cx">         my $op_file = new IO::File($old_param_file, '&gt;&gt;', 0600)
</span><span class="lines">@@ -240,12 +256,9 @@
</span><span class="cx">               &quot; and so have been\nmoved from your parameters file into&quot;,
</span><span class="cx">               &quot; $old_param_file:\n&quot;;
</span><span class="cx"> 
</span><del>-        local $Data::Dumper::Terse  = 1;
-        local $Data::Dumper::Indent = 0;
-
</del><span class="cx">         my $comma = &quot;&quot;;
</span><span class="cx">         foreach my $item (keys %oldparams) {
</span><del>-            print $op_file &quot;\n\n$item:\n&quot; . Data::Dumper-&gt;Dump([$oldparams{$item}]) . &quot;\n&quot;;
</del><ins>+            print $op_file &quot;\n\n$item:\n&quot; . $oldparams{$item} . &quot;\n&quot;;
</ins><span class="cx">             print &quot;${comma}$item&quot;;
</span><span class="cx">             $comma = &quot;, &quot;;
</span><span class="cx">         }
</span><span class="lines">@@ -253,29 +266,13 @@
</span><span class="cx">         $op_file-&gt;close;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (ON_WINDOWS &amp;&amp; !-e SENDMAIL_EXE
-        &amp;&amp; $param-&gt;{'mail_delivery_method'} eq 'Sendmail')
-    {
-        my $smtp = $answer-&gt;{'SMTP_SERVER'};
-        if (!$smtp) {
-            print &quot;\nBugzilla requires an SMTP server to function on&quot;,
-                  &quot; Windows.\nPlease enter your SMTP server's hostname: &quot;;
-            $smtp = &lt;STDIN&gt;;
-            chomp $smtp;
-            if ($smtp) {
-                $param-&gt;{'smtpserver'} = $smtp;
-             }
-             else {
-                print &quot;\nWarning: No SMTP Server provided, defaulting to&quot;,
-                      &quot; localhost\n&quot;;
-            }
-        }
</del><ins>+    write_params($param);
</ins><span class="cx"> 
</span><del>-        $param-&gt;{'mail_delivery_method'} = 'SMTP';
</del><ins>+    if (-e $old_file) {
+        unlink $old_file;
+        say &quot;$old_file has been converted into $old_file.json, using the JSON format.&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    write_params($param);
-
</del><span class="cx">     # Return deleted params and values so that checksetup.pl has a chance
</span><span class="cx">     # to convert old params to new data.
</span><span class="cx">     return %oldparams;
</span><span class="lines">@@ -284,25 +281,16 @@
</span><span class="cx"> sub write_params {
</span><span class="cx">     my ($param_data) = @_;
</span><span class="cx">     $param_data ||= Bugzilla-&gt;params;
</span><ins>+    my $param_file = bz_locations()-&gt;{'datadir'} . '/params.json';
</ins><span class="cx"> 
</span><del>-    my $datadir    = bz_locations()-&gt;{'datadir'};
-    my $param_file = &quot;$datadir/params&quot;;
</del><ins>+    my $json_data = JSON::XS-&gt;new-&gt;canonical-&gt;pretty-&gt;encode($param_data);
+    write_file($param_file, { binmode =&gt; ':utf8', atomic =&gt; 1 }, \$json_data);
</ins><span class="cx"> 
</span><del>-    local $Data::Dumper::Sortkeys = 1;
</del><ins>+    # It's not common to edit parameters and loading
+    # Bugzilla::Install::Filesystem is slow.
+    require Bugzilla::Install::Filesystem;
+    Bugzilla::Install::Filesystem::fix_file_permissions($param_file);
</ins><span class="cx"> 
</span><del>-    my ($fh, $tmpname) = File::Temp::tempfile('params.XXXXX',
-                                              DIR =&gt; $datadir );
-
-    print $fh (Data::Dumper-&gt;Dump([$param_data], ['*param']))
-      || die &quot;Can't write param file: $!&quot;;
-
-    close $fh;
-
-    rename $tmpname, $param_file
-      or die &quot;Can't rename $tmpname to $param_file: $!&quot;;
-
-    fix_file_permissions($param_file);
-
</del><span class="cx">     # And now we have to reset the params cache so that Bugzilla will re-read
</span><span class="cx">     # them.
</span><span class="cx">     delete Bugzilla-&gt;request_cache-&gt;{params};
</span><span class="lines">@@ -310,21 +298,31 @@
</span><span class="cx"> 
</span><span class="cx"> sub read_param_file {
</span><span class="cx">     my %params;
</span><del>-    my $datadir = bz_locations()-&gt;{'datadir'};
-    if (-e &quot;$datadir/params&quot;) {
-        # Note that checksetup.pl sets file permissions on '$datadir/params'
</del><ins>+    my $file = bz_locations()-&gt;{'datadir'} . '/params.json';
</ins><span class="cx"> 
</span><del>-        # Using Safe mode is _not_ a guarantee of safety if someone does
-        # manage to write to the file. However, it won't hurt...
-        # See bug 165144 for not needing to eval this at all
-        my $s = new Safe;
</del><ins>+    if (-e $file) {
+        my $data;
+        read_file($file, binmode =&gt; ':utf8', buf_ref =&gt; \$data);
</ins><span class="cx"> 
</span><del>-        $s-&gt;rdo(&quot;$datadir/params&quot;);
-        die &quot;Error reading $datadir/params: $!&quot; if $!;
-        die &quot;Error evaluating $datadir/params: $@&quot; if $@;
-
-        # Now read the param back out from the sandbox
-        %params = %{$s-&gt;varglob('param')};
</del><ins>+        # If params.json has been manually edited and e.g. some quotes are
+        # missing, we don't want JSON::XS to leak the content of the file
+        # to all users in its error message, so we have to eval'uate it.
+        %params = eval { %{JSON::XS-&gt;new-&gt;decode($data)} };
+        if ($@) {
+            my $error_msg = (basename($0) eq 'checksetup.pl') ?
+                $@ : 'run checksetup.pl to see the details.';
+            die &quot;Error parsing $file: $error_msg&quot;;
+        }
+        # JSON::XS doesn't detaint data for us.
+        foreach my $key (keys %params) {
+            if (ref($params{$key}) eq &quot;ARRAY&quot;) {
+                foreach my $item (@{$params{$key}}) {
+                    trick_taint($item);
+                }
+            } else {
+                trick_taint($params{$key}) if defined $params{$key};
+            }
+        }
</ins><span class="cx">     }
</span><span class="cx">     elsif ($ENV{'SERVER_SOFTWARE'}) {
</span><span class="cx">        # We're in a CGI, but the params file doesn't exist. We can't
</span><span class="lines">@@ -334,7 +332,7 @@
</span><span class="cx">        # so that the user sees the error.
</span><span class="cx">        require CGI::Carp;
</span><span class="cx">        CGI::Carp-&gt;import('fatalsToBrowser');
</span><del>-       die &quot;The $datadir/params file does not exist.&quot;
</del><ins>+       die &quot;The $file file does not exist.&quot;
</ins><span class="cx">            . ' You probably need to run checksetup.pl.',
</span><span class="cx">     }
</span><span class="cx">     return \%params;
</span><span class="lines">@@ -390,7 +388,7 @@
</span><span class="cx"> Description: Writes the parameters to disk.
</span><span class="cx"> 
</span><span class="cx"> Params:      C&lt;$params&gt; (optional) - A hashref to write to the disk
</span><del>-               instead of C&lt;Bugzilla-&gt;params&gt;. Used only by
</del><ins>+               instead of C&lt;Bugzilla-E&lt;gt&gt;params&gt;. Used only by
</ins><span class="cx">                C&lt;update_params&gt;.
</span><span class="cx"> 
</span><span class="cx"> Returns:     nothing
</span><span class="lines">@@ -398,11 +396,13 @@
</span><span class="cx"> =item C&lt;read_param_file()&gt;
</span><span class="cx"> 
</span><span class="cx"> Description: Most callers should never need this. This is used
</span><del>-             by C&lt;Bugzilla-&gt;params&gt; to directly read C&lt;$datadir/params&gt;
-             and load it into memory. Use C&lt;Bugzilla-&gt;params&gt; instead.
</del><ins>+             by C&lt;Bugzilla-E&lt;gt&gt;params&gt; to directly read C&lt;$datadir/params.json&gt;
+             and load it into memory. Use C&lt;Bugzilla-E&lt;gt&gt;params&gt; instead.
</ins><span class="cx"> 
</span><span class="cx"> Params:      none
</span><span class="cx"> 
</span><del>-Returns:     A hashref containing the current params in C&lt;$datadir/params&gt;.
</del><ins>+Returns:     A hashref containing the current params in C&lt;$datadir/params.json&gt;.
</ins><span class="cx"> 
</span><ins>+=item C&lt;param_panels()&gt;
+
</ins><span class="cx"> =back
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaConstantspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Constants.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Constants.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Constants.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,38 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jake &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Constants;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Exporter);
+
</ins><span class="cx"> # For bz_locations
</span><span class="cx"> use File::Basename;
</span><span class="cx"> use Memoize;
</span><span class="lines">@@ -39,6 +19,7 @@
</span><span class="cx"> 
</span><span class="cx"> @Bugzilla::Constants::EXPORT = qw(
</span><span class="cx">     BUGZILLA_VERSION
</span><ins>+    REST_DOC
</ins><span class="cx"> 
</span><span class="cx">     REMOTE_FILE
</span><span class="cx">     LOCAL_FILE
</span><span class="lines">@@ -45,6 +26,8 @@
</span><span class="cx"> 
</span><span class="cx">     bz_locations
</span><span class="cx"> 
</span><ins>+    CONCATENATE_ASSETS
+
</ins><span class="cx">     IS_NULL
</span><span class="cx">     NOT_NULL
</span><span class="cx"> 
</span><span class="lines">@@ -91,6 +74,9 @@
</span><span class="cx">     COMMENT_COLS_WRAP
</span><span class="cx">     MAX_COMMENT_LENGTH
</span><span class="cx"> 
</span><ins>+    MIN_COMMENT_TAG_LENGTH
+    MAX_COMMENT_TAG_LENGTH
+
</ins><span class="cx">     CMT_NORMAL
</span><span class="cx">     CMT_DUPE_OF
</span><span class="cx">     CMT_HAS_DUPE
</span><span class="lines">@@ -106,7 +92,7 @@
</span><span class="cx">     POS_EVENTS
</span><span class="cx">     EVT_OTHER EVT_ADDED_REMOVED EVT_COMMENT EVT_ATTACHMENT EVT_ATTACHMENT_DATA
</span><span class="cx">     EVT_PROJ_MANAGEMENT EVT_OPENED_CLOSED EVT_KEYWORD EVT_CC EVT_DEPEND_BLOCK
</span><del>-    EVT_BUG_CREATED
</del><ins>+    EVT_BUG_CREATED EVT_COMPONENT
</ins><span class="cx"> 
</span><span class="cx">     NEG_EVENTS
</span><span class="cx">     EVT_UNCONFIRMED EVT_CHANGED_BY_ME 
</span><span class="lines">@@ -126,9 +112,12 @@
</span><span class="cx">     FIELD_TYPE_MULTI_SELECT
</span><span class="cx">     FIELD_TYPE_TEXTAREA
</span><span class="cx">     FIELD_TYPE_DATETIME
</span><ins>+    FIELD_TYPE_DATE
</ins><span class="cx">     FIELD_TYPE_BUG_ID
</span><span class="cx">     FIELD_TYPE_BUG_URLS
</span><span class="cx">     FIELD_TYPE_KEYWORDS
</span><ins>+    FIELD_TYPE_INTEGER
+    FIELD_TYPE_HIGHEST_PLUS_ONE
</ins><span class="cx"> 
</span><span class="cx">     EMPTY_DATETIME_REGEX
</span><span class="cx"> 
</span><span class="lines">@@ -142,6 +131,7 @@
</span><span class="cx">     USAGE_MODE_EMAIL
</span><span class="cx">     USAGE_MODE_JSON
</span><span class="cx">     USAGE_MODE_TEST
</span><ins>+    USAGE_MODE_REST
</ins><span class="cx"> 
</span><span class="cx">     ERROR_MODE_WEBPAGE
</span><span class="cx">     ERROR_MODE_DIE
</span><span class="lines">@@ -148,6 +138,7 @@
</span><span class="cx">     ERROR_MODE_DIE_SOAP_FAULT
</span><span class="cx">     ERROR_MODE_JSON_RPC
</span><span class="cx">     ERROR_MODE_TEST
</span><ins>+    ERROR_MODE_REST
</ins><span class="cx"> 
</span><span class="cx">     COLOR_ERROR
</span><span class="cx">     COLOR_SUCCESS
</span><span class="lines">@@ -165,6 +156,7 @@
</span><span class="cx">     MAX_SUDO_TOKEN_AGE
</span><span class="cx">     MAX_LOGIN_ATTEMPTS
</span><span class="cx">     LOGIN_LOCKOUT_INTERVAL
</span><ins>+    ACCOUNT_CHANGE_INTERVAL
</ins><span class="cx">     MAX_STS_AGE
</span><span class="cx"> 
</span><span class="cx">     SAFE_PROTOCOLS
</span><span class="lines">@@ -180,9 +172,13 @@
</span><span class="cx">     MAX_MILESTONE_SIZE
</span><span class="cx">     MAX_COMPONENT_SIZE
</span><span class="cx">     MAX_FIELD_VALUE_SIZE
</span><ins>+    MAX_FIELD_LONG_DESC_LENGTH
</ins><span class="cx">     MAX_FREETEXT_LENGTH
</span><span class="cx">     MAX_BUG_URL_LENGTH
</span><span class="cx">     MAX_POSSIBLE_DUPLICATES
</span><ins>+    MAX_ATTACH_FILENAME_LENGTH
+    MAX_QUIP_LENGTH
+    MAX_WEBDOT_BUGS
</ins><span class="cx"> 
</span><span class="cx">     PASSWORD_DIGEST_ALGORITHM
</span><span class="cx">     PASSWORD_SALT_LENGTH
</span><span class="lines">@@ -196,6 +192,8 @@
</span><span class="cx"> 
</span><span class="cx">     AUDIT_CREATE
</span><span class="cx">     AUDIT_REMOVE
</span><ins>+
+    MOST_FREQUENT_THRESHOLD
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> @Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
</span><span class="lines">@@ -203,12 +201,21 @@
</span><span class="cx"> # CONSTANTS
</span><span class="cx"> #
</span><span class="cx"> # Bugzilla version
</span><del>-use constant BUGZILLA_VERSION =&gt; &quot;4.2.11&quot;;
</del><ins>+use constant BUGZILLA_VERSION =&gt; &quot;5.0.3&quot;;
</ins><span class="cx"> 
</span><ins>+# A base link to the current REST Documentation. We place it here
+# as it will need to be updated to whatever the current release is.
+use constant REST_DOC =&gt; 'https://bugzilla.readthedocs.org/en/5.0/api/';
+
</ins><span class="cx"> # Location of the remote and local XML files to track new releases.
</span><span class="cx"> use constant REMOTE_FILE =&gt; 'http://updates.bugzilla.org/bugzilla-update.xml';
</span><span class="cx"> use constant LOCAL_FILE  =&gt; 'bugzilla-update.xml'; # Relative to datadir.
</span><span class="cx"> 
</span><ins>+# When true CSS and JavaScript assets will be concatanted and minified at
+# run-time, to reduce the number of requests required to render a page.
+# Setting this to a false value can help debugging.
+use constant CONCATENATE_ASSETS =&gt; 1;
+
</ins><span class="cx"> # These are unique values that are unlikely to match a string or a number,
</span><span class="cx"> # to be used in criteria for match() functions and other things. They start
</span><span class="cx"> # and end with spaces because most Bugzilla stuff has trim() called on it,
</span><span class="lines">@@ -316,6 +323,10 @@
</span><span class="cx"> # Used in _check_comment(). Gives the max length allowed for a comment.
</span><span class="cx"> use constant MAX_COMMENT_LENGTH =&gt; 65535;
</span><span class="cx"> 
</span><ins>+# The minimum and maximum length of comment tags.
+use constant MIN_COMMENT_TAG_LENGTH =&gt; 3;
+use constant MAX_COMMENT_TAG_LENGTH =&gt; 24;
+
</ins><span class="cx"> # The type of bug comments.
</span><span class="cx"> use constant CMT_NORMAL =&gt; 0;
</span><span class="cx"> use constant CMT_DUPE_OF =&gt; 1;
</span><span class="lines">@@ -368,11 +379,13 @@
</span><span class="cx"> use constant EVT_CC                 =&gt; 8;
</span><span class="cx"> use constant EVT_DEPEND_BLOCK       =&gt; 9;
</span><span class="cx"> use constant EVT_BUG_CREATED        =&gt; 10;
</span><ins>+use constant EVT_COMPONENT          =&gt; 11;
</ins><span class="cx"> 
</span><span class="cx"> use constant POS_EVENTS =&gt; EVT_OTHER, EVT_ADDED_REMOVED, EVT_COMMENT, 
</span><span class="cx">                            EVT_ATTACHMENT, EVT_ATTACHMENT_DATA, 
</span><span class="cx">                            EVT_PROJ_MANAGEMENT, EVT_OPENED_CLOSED, EVT_KEYWORD,
</span><del>-                           EVT_CC, EVT_DEPEND_BLOCK, EVT_BUG_CREATED;
</del><ins>+                           EVT_CC, EVT_DEPEND_BLOCK, EVT_BUG_CREATED,
+                           EVT_COMPONENT;
</ins><span class="cx"> 
</span><span class="cx"> use constant EVT_UNCONFIRMED        =&gt; 50;
</span><span class="cx"> use constant EVT_CHANGED_BY_ME      =&gt; 51;
</span><span class="lines">@@ -413,6 +426,11 @@
</span><span class="cx"> use constant FIELD_TYPE_BUG_ID  =&gt; 6;
</span><span class="cx"> use constant FIELD_TYPE_BUG_URLS =&gt; 7;
</span><span class="cx"> use constant FIELD_TYPE_KEYWORDS =&gt; 8;
</span><ins>+use constant FIELD_TYPE_DATE =&gt; 9;
+use constant FIELD_TYPE_INTEGER =&gt; 10;
+# Add new field types above this line, and change the below value in the
+# obvious fashion
+use constant FIELD_TYPE_HIGHEST_PLUS_ONE =&gt; 11;
</ins><span class="cx"> 
</span><span class="cx"> use constant EMPTY_DATETIME_REGEX =&gt; qr/^[0\-:\sA-Za-z]+$/; 
</span><span class="cx"> 
</span><span class="lines">@@ -427,8 +445,7 @@
</span><span class="cx"> # The fields from fielddefs that are blocked from non-timetracking users.
</span><span class="cx"> # work_time is sometimes called actual_time.
</span><span class="cx"> use constant TIMETRACKING_FIELDS =&gt;
</span><del>-    qw(estimated_time remaining_time work_time actual_time
-       percentage_complete deadline);
</del><ins>+    qw(estimated_time remaining_time work_time actual_time percentage_complete);
</ins><span class="cx"> 
</span><span class="cx"> # The maximum number of days a token will remain valid.
</span><span class="cx"> use constant MAX_TOKEN_AGE =&gt; 3;
</span><span class="lines">@@ -443,6 +460,10 @@
</span><span class="cx"> # account is locked.
</span><span class="cx"> use constant LOGIN_LOCKOUT_INTERVAL =&gt; 30;
</span><span class="cx"> 
</span><ins>+# The time in minutes a user must wait before they can request another email to
+# create a new account or change their password.
+use constant ACCOUNT_CHANGE_INTERVAL =&gt; 10;
+
</ins><span class="cx"> # The maximum number of seconds the Strict-Transport-Security header
</span><span class="cx"> # will remain valid. Default is one week.
</span><span class="cx"> use constant MAX_STS_AGE =&gt; 604800;
</span><span class="lines">@@ -458,15 +479,16 @@
</span><span class="cx"> 
</span><span class="cx"> use constant contenttypes =&gt;
</span><span class="cx">   {
</span><del>-   &quot;html&quot;=&gt; &quot;text/html&quot; ,
-   &quot;rdf&quot; =&gt; &quot;application/rdf+xml&quot; ,
-   &quot;atom&quot;=&gt; &quot;application/atom+xml&quot; ,
-   &quot;xml&quot; =&gt; &quot;application/xml&quot; ,
-   &quot;js&quot;  =&gt; &quot;application/x-javascript&quot; ,
-   &quot;json&quot;=&gt; &quot;application/json&quot; ,
-   &quot;csv&quot; =&gt; &quot;text/csv&quot; ,
-   &quot;png&quot; =&gt; &quot;image/png&quot; ,
-   &quot;ics&quot; =&gt; &quot;text/calendar&quot; ,
</del><ins>+   &quot;html&quot; =&gt; &quot;text/html&quot; ,
+   &quot;rdf&quot;  =&gt; &quot;application/rdf+xml&quot; ,
+   &quot;atom&quot; =&gt; &quot;application/atom+xml&quot; ,
+   &quot;xml&quot;  =&gt; &quot;application/xml&quot; ,
+   &quot;dtd&quot;  =&gt; &quot;application/xml-dtd&quot; , 
+   &quot;js&quot;   =&gt; &quot;application/x-javascript&quot; ,
+   &quot;json&quot; =&gt; &quot;application/json&quot; ,
+   &quot;csv&quot;  =&gt; &quot;text/csv&quot; ,
+   &quot;png&quot;  =&gt; &quot;image/png&quot; ,
+   &quot;ics&quot;  =&gt; &quot;text/calendar&quot; ,
</ins><span class="cx">   };
</span><span class="cx"> 
</span><span class="cx"> # Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla-&gt;usage_mode.
</span><span class="lines">@@ -476,6 +498,7 @@
</span><span class="cx"> use constant USAGE_MODE_EMAIL      =&gt; 3;
</span><span class="cx"> use constant USAGE_MODE_JSON       =&gt; 4;
</span><span class="cx"> use constant USAGE_MODE_TEST       =&gt; 5;
</span><ins>+use constant USAGE_MODE_REST       =&gt; 6;
</ins><span class="cx"> 
</span><span class="cx"> # Error modes. Default set by Bugzilla-&gt;usage_mode (so ERROR_MODE_WEBPAGE
</span><span class="cx"> # usually). Use with Bugzilla-&gt;error_mode.
</span><span class="lines">@@ -484,6 +507,7 @@
</span><span class="cx"> use constant ERROR_MODE_DIE_SOAP_FAULT =&gt; 2;
</span><span class="cx"> use constant ERROR_MODE_JSON_RPC       =&gt; 3;
</span><span class="cx"> use constant ERROR_MODE_TEST           =&gt; 4;
</span><ins>+use constant ERROR_MODE_REST           =&gt; 5;
</ins><span class="cx"> 
</span><span class="cx"> # The ANSI colors of messages that command-line scripts use
</span><span class="cx"> use constant COLOR_ERROR =&gt; 'red';
</span><span class="lines">@@ -513,7 +537,9 @@
</span><span class="cx">                 dbd =&gt; {
</span><span class="cx">                     package =&gt; 'DBD-Pg',
</span><span class="cx">                     module  =&gt; 'DBD::Pg',
</span><del>-                    version =&gt; '1.45',
</del><ins>+                    # 2.7.0 fixes a problem with quoting strings
+                    # containing backslashes in them.
+                    version =&gt; '2.7.0',
</ins><span class="cx">                 },
</span><span class="cx">                 name =&gt; 'PostgreSQL'},
</span><span class="cx">      'oracle'=&gt; {db =&gt; 'Bugzilla::DB::Oracle', db_version =&gt; '10.02.0',
</span><span class="lines">@@ -557,7 +583,7 @@
</span><span class="cx"> use constant MAX_PRODUCT_SIZE =&gt; 64;
</span><span class="cx"> 
</span><span class="cx"> # The longest milestone name allowed.
</span><del>-use constant MAX_MILESTONE_SIZE =&gt; 20;
</del><ins>+use constant MAX_MILESTONE_SIZE =&gt; 64;
</ins><span class="cx"> 
</span><span class="cx"> # The longest component name allowed.
</span><span class="cx"> use constant MAX_COMPONENT_SIZE =&gt; 64;
</span><span class="lines">@@ -565,6 +591,9 @@
</span><span class="cx"> # The maximum length for values of &lt;select&gt; fields.
</span><span class="cx"> use constant MAX_FIELD_VALUE_SIZE =&gt; 64;
</span><span class="cx"> 
</span><ins>+# The maximum length for the long description of fields.
+use constant MAX_FIELD_LONG_DESC_LENGTH =&gt; 255;
+
</ins><span class="cx"> # Maximum length allowed for free text fields.
</span><span class="cx"> use constant MAX_FREETEXT_LENGTH =&gt; 255;
</span><span class="cx"> 
</span><span class="lines">@@ -575,21 +604,33 @@
</span><span class="cx"> # will return.
</span><span class="cx"> use constant MAX_POSSIBLE_DUPLICATES =&gt; 25;
</span><span class="cx"> 
</span><ins>+# Maximum length of filename stored in attachments table (longer ones will
+# be truncated to this value). Do not increase above 255 without making the
+# necessary schema changes to store longer names.
+use constant MAX_ATTACH_FILENAME_LENGTH =&gt; 255;
+
+# Maximum length of a quip.
+use constant MAX_QUIP_LENGTH =&gt; 512;
+
+# Maximum number of bugs to display in a dependency graph
+use constant MAX_WEBDOT_BUGS =&gt; 2000;
+
</ins><span class="cx"> # This is the name of the algorithm used to hash passwords before storing
</span><span class="cx"> # them in the database. This can be any string that is valid to pass to
</span><span class="cx"> # Perl's &quot;Digest&quot; module. Note that if you change this, it won't take
</span><del>-# effect until a user changes his password.
</del><ins>+# effect until a user logs in or changes their password.
</ins><span class="cx"> use constant PASSWORD_DIGEST_ALGORITHM =&gt; 'SHA-256';
</span><del>-# How long of a salt should we use? Note that if you change this, none
-# of your users will be able to log in until they reset their passwords.
</del><ins>+# How long of a salt should we use? Note that if you change this, it
+# won't take effect until a user logs in or changes their password.
</ins><span class="cx"> use constant PASSWORD_SALT_LENGTH =&gt; 8;
</span><span class="cx"> 
</span><span class="cx"> # Certain scripts redirect to GET even if the form was submitted originally
</span><span class="cx"> # via POST such as buglist.cgi. This value determines whether the redirect
</span><span class="cx"> # can be safely done or not based on the web server's URI length setting.
</span><del>-use constant CGI_URI_LIMIT =&gt; 8000;
</del><ins>+# See http://support.microsoft.com/kb/208427 for why MSIE is different
+use constant CGI_URI_LIMIT =&gt; ($ENV{'HTTP_USER_AGENT'} || '') =~ /MSIE/ ? 2083 : 8000;
</ins><span class="cx"> 
</span><del>-# If the user isn't allowed to change a field, we must tell him who can.
</del><ins>+# If the user isn't allowed to change a field, we must tell them who can.
</ins><span class="cx"> # We store the required permission set into the $PrivilegesRequired
</span><span class="cx"> # variable which gets passed to the error template.
</span><span class="cx"> 
</span><span class="lines">@@ -603,6 +644,10 @@
</span><span class="cx"> use constant AUDIT_CREATE =&gt; '__create__';
</span><span class="cx"> use constant AUDIT_REMOVE =&gt; '__remove__';
</span><span class="cx"> 
</span><ins>+# The minimum number of duplicates a bug needs to show up
+# on the &quot;Most frequently reported bugs&quot; page.
+use constant MOST_FREQUENT_THRESHOLD =&gt; 2;
+
</ins><span class="cx"> sub bz_locations {
</span><span class="cx">     # Force memoize() to re-compute data per project, to avoid
</span><span class="cx">     # sharing the same data across different installations.
</span><span class="lines">@@ -663,6 +708,7 @@
</span><span class="cx">         # The script should really generate these graphs directly...
</span><span class="cx">         'webdotdir'   =&gt; &quot;$datadir/webdot&quot;,
</span><span class="cx">         'extensionsdir' =&gt; &quot;$libpath/extensions&quot;,
</span><ins>+        'assetsdir'   =&gt; &quot;$datadir/assets&quot;,
</ins><span class="cx">     };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -671,3 +717,15 @@
</span><span class="cx"> BEGIN { memoize('_bz_locations') };
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item DB_MODULE
+
+=item contenttypes
+
+=item bz_locations
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBMysqlpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Mysql.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Mysql.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Mysql.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dave Miller &lt;davem00@aol.com&gt;
-#                 Gayathri Swaminath &lt;gayathrik00@aol.com&gt;
-#                 Jeroen Ruigrok van der Werven &lt;asmodai@wxs.nl&gt;
-#                 Dave Lawrence &lt;dkl@redhat.com&gt;
-#                 Tomas Kopal &lt;Tomas.Kopal@altap.cz&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -40,9 +20,13 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Mysql;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::DB);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::DB);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Util qw(install_string);
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -75,6 +59,18 @@
</span><span class="cx">         mysql_auto_reconnect =&gt; 1,
</span><span class="cx">     );
</span><span class="cx">     
</span><ins>+    # MySQL SSL options
+    my ($ssl_ca_file, $ssl_ca_path, $ssl_cert, $ssl_key) =
+        @$params{qw(db_mysql_ssl_ca_file db_mysql_ssl_ca_path
+                    db_mysql_ssl_client_cert db_mysql_ssl_client_key)};
+    if ($ssl_ca_file || $ssl_ca_path || $ssl_cert || $ssl_key) {
+        $attrs{'mysql_ssl'}             = 1;
+        $attrs{'mysql_ssl_ca_file'}     = $ssl_ca_file if $ssl_ca_file;
+        $attrs{'mysql_ssl_ca_path'}     = $ssl_ca_path if $ssl_ca_path;
+        $attrs{'mysql_ssl_client_cert'} = $ssl_cert    if $ssl_cert;
+        $attrs{'mysql_ssl_client_key'}  = $ssl_key     if $ssl_key;
+    }
+
</ins><span class="cx">     my $self = $class-&gt;db_new({ dsn =&gt; $dsn, user =&gt; $user, 
</span><span class="cx">                                 pass =&gt; $pass, attrs =&gt; \%attrs });
</span><span class="cx"> 
</span><span class="lines">@@ -90,17 +86,18 @@
</span><span class="cx">     $self-&gt;{private_bz_dsn} = $dsn;
</span><span class="cx"> 
</span><span class="cx">     bless ($self, $class);
</span><del>-    
-    # Bug 321645 - disable MySQL strict mode, if set
</del><ins>+
+    # Check for MySQL modes.
</ins><span class="cx">     my ($var, $sql_mode) = $self-&gt;selectrow_array(
</span><span class="cx">         &quot;SHOW VARIABLES LIKE 'sql\\_mode'&quot;);
</span><span class="cx"> 
</span><ins>+    # Disable ANSI and strict modes, else Bugzilla will crash.
</ins><span class="cx">     if ($sql_mode) {
</span><span class="cx">         # STRICT_TRANS_TABLE or STRICT_ALL_TABLES enable MySQL strict mode,
</span><span class="cx">         # causing bug 321645. TRADITIONAL sets these modes (among others) as
</span><span class="cx">         # well, so it has to be stipped as well
</span><span class="cx">         my $new_sql_mode =
</span><del>-            join(&quot;,&quot;, grep {$_ !~ /^STRICT_(?:TRANS|ALL)_TABLES|TRADITIONAL$/}
</del><ins>+            join(&quot;,&quot;, grep {$_ !~ /^(?:ANSI|STRICT_(?:TRANS|ALL)_TABLES|TRADITIONAL)$/}
</ins><span class="cx">                             split(/,/, $sql_mode));
</span><span class="cx"> 
</span><span class="cx">         if ($sql_mode ne $new_sql_mode) {
</span><span class="lines">@@ -112,6 +109,10 @@
</span><span class="cx">     # into bugs_fulltext).
</span><span class="cx">     $self-&gt;do('SET SESSION group_concat_max_len = 128000000');
</span><span class="cx"> 
</span><ins>+    # MySQL 5.5.2 and older have this variable set to true, which causes
+    # trouble, see bug 870369.
+    $self-&gt;do('SET SESSION sql_auto_is_null = 0');
+
</ins><span class="cx">     return $self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -126,10 +127,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sql_group_concat {
</span><del>-    my ($self, $column, $separator, $sort) = @_;
</del><ins>+    my ($self, $column, $separator, $sort, $order_by) = @_;
</ins><span class="cx">     $separator = $self-&gt;quote(', ') if !defined $separator;
</span><span class="cx">     $sort = 1 if !defined $sort;
</span><del>-    if ($sort) {
</del><ins>+    if ($order_by) {
+        $column .= &quot; ORDER BY $order_by&quot;;
+    }
+    elsif ($sort) {
</ins><span class="cx">         my $sort_order = $column;
</span><span class="cx">         $sort_order =~ s/^DISTINCT\s+//i;
</span><span class="cx">         $column = &quot;$column ORDER BY $sort_order&quot;;
</span><span class="lines">@@ -180,15 +184,19 @@
</span><span class="cx">     if ($text =~ /(?:^|\W)[+\-&lt;&gt;~&quot;()]/ || $text =~ /[()&quot;*](?:$|\W)/) {
</span><span class="cx">         $mode = 'IN BOOLEAN MODE';
</span><span class="cx"> 
</span><del>-        # quote un-quoted compound words
-        my @words = quotewords('[\s()]+', 'delimiters', $text);
-        foreach my $word (@words) {
-            # match words that have non-word chars in the middle of them
-            if ($word =~ /\w\W+\w/ &amp;&amp; $word !~ m/&quot;/) {
-                $word = '&quot;' . $word . '&quot;';
</del><ins>+        my @terms = split(quotemeta(FULLTEXT_OR), $text);
+        foreach my $term (@terms) {
+            # quote un-quoted compound words
+            my @words = quotewords('[\s()]+', 'delimiters', $term);
+            foreach my $word (@words) {
+                # match words that have non-word chars in the middle of them
+                if ($word =~ /\w\W+\w/ &amp;&amp; $word !~ m/&quot;/) {
+                    $word = '&quot;' . $word . '&quot;';
+                }
</ins><span class="cx">             }
</span><ins>+            $term = join('', @words);
</ins><span class="cx">         }
</span><del>-        $text = join('', @words);
</del><ins>+        $text = join(FULLTEXT_OR, @terms);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # quote the text for use in the MATCH AGAINST expression
</span><span class="lines">@@ -1050,3 +1058,49 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item sql_date_format
+
+=item bz_explain
+
+=item bz_last_key
+
+=item sql_position
+
+=item sql_fulltext_search
+
+=item sql_iposition
+
+=item bz_enum_initial_values
+
+=item sql_group_by
+
+=item sql_limit
+
+=item sql_not_regexp
+
+=item sql_string_concat
+
+=item sql_date_math
+
+=item sql_to_days
+
+=item bz_check_server_version
+
+=item sql_from_days
+
+=item sql_regexp
+
+=item sql_istring
+
+=item sql_group_concat
+
+=item bz_setup_database
+
+=item bz_db_is_utf8
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBOraclepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Oracle.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Oracle.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Oracle.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Oracle Corporation. 
-# Portions created by Oracle are Copyright (C) 2007 Oracle Corporation. 
-# All Rights Reserved.
-#
-# Contributor(s): Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Xiaoou Wu   &lt;xiaoou.wu@oracle.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -35,9 +20,13 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Oracle;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::DB);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::DB);
+
</ins><span class="cx"> use DBD::Oracle;
</span><span class="cx"> use DBD::Oracle qw(:ora_types);
</span><span class="cx"> use List::Util qw(max);
</span><span class="lines">@@ -56,8 +45,6 @@
</span><span class="cx"> use constant MIN_LONG_READ_LEN =&gt; 32 * 1024;
</span><span class="cx"> use constant FULLTEXT_OR =&gt; ' OR ';
</span><span class="cx"> 
</span><del>-our $fulltext_label = 0;
-
</del><span class="cx"> sub new {
</span><span class="cx">     my ($class, $params) = @_;
</span><span class="cx">     my ($user, $pass, $host, $dbname, $port) = 
</span><span class="lines">@@ -176,10 +163,11 @@
</span><span class="cx"> 
</span><span class="cx"> sub sql_fulltext_search {
</span><span class="cx">     my ($self, $column, $text) = @_;
</span><ins>+    state $label = 0;
</ins><span class="cx">     $text = $self-&gt;quote($text);
</span><span class="cx">     trick_taint($text);
</span><del>-    $fulltext_label++;
-    return &quot;CONTAINS($column,$text,$fulltext_label) &gt; 0&quot;, &quot;SCORE($fulltext_label)&quot;;
</del><ins>+    $label++;
+    return &quot;CONTAINS($column,$text,$label) &gt; 0&quot;, &quot;SCORE($label)&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sql_date_format {
</span><span class="lines">@@ -314,9 +302,8 @@
</span><span class="cx">     my $is_select = ($part =~ m/^\s*SELECT\b/io);
</span><span class="cx">     my $has_from =  ($part =~ m/\bFROM\b/io) if $is_select;
</span><span class="cx"> 
</span><del>-    # Oracle recognizes CURRENT_DATE, but not CURRENT_DATE()
-    # and its CURRENT_DATE is a date+time, so wrap in TRUNC()
-    $part =~ s/\bCURRENT_DATE\b(?:\(\))?/TRUNC(CURRENT_DATE)/io;
</del><ins>+    # Oracle includes the time in CURRENT_DATE.
+    $part =~ s/\bCURRENT_DATE\b/TRUNC(CURRENT_DATE)/io;
</ins><span class="cx"> 
</span><span class="cx">     # Oracle use SUBSTR instead of SUBSTRING
</span><span class="cx">     $part =~ s/\bSUBSTRING\b/SUBSTR/io;
</span><span class="lines">@@ -346,19 +333,14 @@
</span><span class="cx">         $has_from = ($nonstring =~ m/\bFROM\b/io) 
</span><span class="cx">                     if ($is_select and !$has_from);
</span><span class="cx"> 
</span><del>-        # Oracle recognizes CURRENT_DATE, but not CURRENT_DATE()
-        # and its CURRENT_DATE is a date+time, so wrap in TRUNC()
-        $nonstring =~ s/\bCURRENT_DATE\b(?:\(\))?/TRUNC(CURRENT_DATE)/io;
</del><ins>+        # Oracle includes the time in CURRENT_DATE.
+        $nonstring =~ s/\bCURRENT_DATE\b/TRUNC(CURRENT_DATE)/io;
</ins><span class="cx"> 
</span><span class="cx">         # Oracle use SUBSTR instead of SUBSTRING
</span><span class="cx">         $nonstring =~ s/\bSUBSTRING\b/SUBSTR/io;
</span><del>-        
</del><ins>+
</ins><span class="cx">         # Oracle need no 'AS'
</span><span class="cx">         $nonstring =~ s/\bAS\b//ig;
</span><del>-        
-        # Take the first 4000 chars for comparison  
-        $nonstring =~ s/\(\s*(longdescs_\d+\.thetext|attachdata_\d+\.thedata)/
-                      \(DBMS_LOB.SUBSTR\($1, 4000, 1\)/ig;
</del><span class="cx"> 
</span><span class="cx">         # Look for a LIMIT clause
</span><span class="cx">         ($limit) = ($nonstring =~ m(/\* LIMIT (\d*) \*/)o);
</span><span class="lines">@@ -737,7 +719,12 @@
</span><span class="cx"> ############################################################################
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Oracle::st;
</span><del>-use base qw(DBI::st);
</del><ins>+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent -norequire, qw(DBI::st);
</ins><span class="cx">  
</span><span class="cx"> sub fetchrow_arrayref {
</span><span class="cx">     my $self = shift;
</span><span class="lines">@@ -802,3 +789,69 @@
</span><span class="cx">    return $row;
</span><span class="cx"> }
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item adjust_statement
+
+=item bz_check_regexp
+
+=item bz_drop_table
+
+=item bz_explain
+
+=item bz_last_key
+
+=item bz_setup_database
+
+=item bz_table_columns_real
+
+=item bz_table_list_real
+
+=item do
+
+=item prepare
+
+=item prepare_cached
+
+=item quote_identifier
+
+=item selectall_arrayref
+
+=item selectall_hashref
+
+=item selectcol_arrayref
+
+=item selectrow_array
+
+=item selectrow_arrayref
+
+=item selectrow_hashref
+
+=item sql_date_format
+
+=item sql_date_math
+
+=item sql_from_days
+
+=item sql_fulltext_search
+
+=item sql_group_concat
+
+=item sql_in
+
+=item sql_limit
+
+=item sql_not_regexp
+
+=item sql_position
+
+=item sql_regexp
+
+=item sql_string_concat
+
+=item sql_to_days
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBPgpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Pg.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Pg.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Pg.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dave Miller &lt;davem00@aol.com&gt;
-#                 Gayathri Swaminath &lt;gayathrik00@aol.com&gt;
-#                 Jeroen Ruigrok van der Werven &lt;asmodai@wxs.nl&gt;
-#                 Dave Lawrence &lt;dkl@redhat.com&gt;
-#                 Tomas Kopal &lt;Tomas.Kopal@altap.cz&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -41,13 +21,16 @@
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Pg;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><ins>+use Bugzilla::Version;
</ins><span class="cx"> use DBD::Pg;
</span><span class="cx"> 
</span><span class="cx"> # This module extends the DB interface via inheritance
</span><del>-use base qw(Bugzilla::DB);
</del><ins>+use parent qw(Bugzilla::DB);
</ins><span class="cx"> 
</span><span class="cx"> use constant BLOB_TYPE =&gt; { pg_type =&gt; DBD::Pg::PG_BYTEA };
</span><span class="cx"> 
</span><span class="lines">@@ -98,14 +81,37 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sql_group_concat {
</span><del>-    my ($self, $text, $separator, $sort) = @_;
</del><ins>+    my ($self, $text, $separator, $sort, $order_by) = @_;
</ins><span class="cx">     $sort = 1 if !defined $sort;
</span><span class="cx">     $separator = $self-&gt;quote(', ') if !defined $separator;
</span><del>-    my $sql = &quot;array_accum($text)&quot;;
-    if ($sort) {
-        $sql = &quot;array_sort($sql)&quot;;
</del><ins>+
+    # PostgreSQL 8.x doesn't support STRING_AGG
+    if (vers_cmp($self-&gt;bz_server_version, 9) &lt; 0) {
+        my $sql = &quot;ARRAY_ACCUM($text)&quot;;
+        if ($sort) {
+            $sql = &quot;ARRAY_SORT($sql)&quot;;
+        }
+        return &quot;ARRAY_TO_STRING($sql, $separator)&quot;;
</ins><span class="cx">     }
</span><del>-    return &quot;array_to_string($sql, $separator)&quot;;
</del><ins>+
+    if ($order_by &amp;&amp; $text =~ /^DISTINCT\s*(.+)$/i) {
+        # Since Postgres (quite rightly) doesn't support &quot;SELECT DISTINCT x
+        # ORDER BY y&quot;, we need to sort the list, and then get the unique
+        # values
+        return &quot;ARRAY_TO_STRING(ANYARRAY_UNIQ(ARRAY_AGG($1 ORDER BY $order_by)), $separator)&quot;;
+    }
+
+    # Determine the ORDER BY clause (if any)
+    if ($order_by) {
+        $order_by = &quot; ORDER BY $order_by&quot;;
+    }
+    elsif ($sort) {
+        # We don't include the DISTINCT keyword in an order by
+        $text =~ /^(?:DISTINCT\s*)?(.+)$/i;
+        $order_by = &quot; ORDER BY $1&quot;;
+    }
+
+    return &quot;STRING_AGG(${text}::text, $separator${order_by}::text)&quot;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sql_istring {
</span><span class="lines">@@ -120,6 +126,36 @@
</span><span class="cx">     return &quot;POSITION(${fragment}::text IN ${text}::text)&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub sql_like {
+    my ($self, $fragment, $column, $not) = @_;
+    $not //= '';
+
+    return &quot;${column}::text $not LIKE &quot; . $self-&gt;sql_like_escape($fragment) . &quot; ESCAPE '|'&quot;;
+}
+
+sub sql_ilike {
+    my ($self, $fragment, $column, $not) = @_;
+    $not //= '';
+
+    return &quot;${column}::text $not ILIKE &quot; . $self-&gt;sql_like_escape($fragment) . &quot; ESCAPE '|'&quot;;
+}
+
+sub sql_not_ilike {
+    return shift-&gt;sql_ilike(@_, 'NOT');
+}
+
+# Escapes any % or _ characters which are special in a LIKE match.
+# Also performs a $dbh-&gt;quote to escape any quote characters.
+sub sql_like_escape {
+    my ($self, $fragment) = @_;
+
+    $fragment =~ s/\|/\|\|/g;  # escape the escape character if it appears
+    $fragment =~ s/%/\|%/g;    # percent and underscore are the special match
+    $fragment =~ s/_/\|_/g;    # characters in SQL.
+
+    return $self-&gt;quote(&quot;%$fragment%&quot;);
+}
+
</ins><span class="cx"> sub sql_regexp {
</span><span class="cx">     my ($self, $expr, $pattern, $nocheck, $real_pattern) = @_;
</span><span class="cx">     $real_pattern ||= $pattern;
</span><span class="lines">@@ -229,21 +265,25 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     $self-&gt;SUPER::bz_setup_database(@_);
</span><span class="cx"> 
</span><del>-    # Custom Functions
-    my $function = 'array_accum';
-    my $array_accum = $self-&gt;selectrow_array(
-        'SELECT 1 FROM pg_proc WHERE proname = ?', undef, $function);
-    if (!$array_accum) {
-        print &quot;Creating function $function...\n&quot;;
-        $self-&gt;do(&quot;CREATE AGGREGATE array_accum (
-                       SFUNC = array_append,
-                       BASETYPE = anyelement,
-                       STYPE = anyarray,
-                       INITCOND = '{}' 
-                   )&quot;);
-    }
</del><ins>+    my ($has_plpgsql) = $self-&gt;selectrow_array(&quot;SELECT COUNT(*) FROM pg_language WHERE lanname = 'plpgsql'&quot;);
+    $self-&gt;do('CREATE LANGUAGE plpgsql') unless $has_plpgsql;
</ins><span class="cx"> 
</span><del>-   $self-&gt;do(&lt;&lt;'END');
</del><ins>+    if (vers_cmp($self-&gt;bz_server_version, 9) &lt; 0) {
+        # Custom Functions for Postgres 8
+        my $function = 'array_accum';
+        my $array_accum = $self-&gt;selectrow_array(
+            'SELECT 1 FROM pg_proc WHERE proname = ?', undef, $function);
+        if (!$array_accum) {
+            print &quot;Creating function $function...\n&quot;;
+            $self-&gt;do(&quot;CREATE AGGREGATE array_accum (
+                           SFUNC = array_append,
+                           BASETYPE = anyelement,
+                           STYPE = anyarray,
+                           INITCOND = '{}' 
+                       )&quot;);
+        }
+
+       $self-&gt;do(&lt;&lt;'END');
</ins><span class="cx"> CREATE OR REPLACE FUNCTION array_sort(ANYARRAY)
</span><span class="cx"> RETURNS ANYARRAY LANGUAGE SQL
</span><span class="cx"> IMMUTABLE STRICT
</span><span class="lines">@@ -256,7 +296,58 @@
</span><span class="cx"> );
</span><span class="cx"> $$;
</span><span class="cx"> END
</span><ins>+    }
+    else {
+        # Custom functions for Postgres 9.0+
</ins><span class="cx"> 
</span><ins>+        # -Copyright © 2013 Joshua D. Burns (JDBurnZ) and Message In Action LLC
+        # JDBurnZ: https://github.com/JDBurnZ
+        # Message In Action: https://www.messageinaction.com
+        #
+        #Permission is hereby granted, free of charge, to any person obtaining a copy of
+        #this software and associated documentation files (the &quot;Software&quot;), to deal in
+        #the Software without restriction, including without limitation the rights to
+        #use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+        #the Software, and to permit persons to whom the Software is furnished to do so,
+        #subject to the following conditions:
+        #
+        #The above copyright notice and this permission notice shall be included in all
+        #copies or substantial portions of the Software.
+        #
+        #THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+        #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+        #FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+        #COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+        #IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+        #CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+        $self-&gt;do(q|
+            DROP FUNCTION IF EXISTS anyarray_uniq(anyarray);
+            CREATE OR REPLACE FUNCTION anyarray_uniq(with_array anyarray)
+            RETURNS anyarray AS $BODY$
+            DECLARE
+                -- The variable used to track iteration over &quot;with_array&quot;.
+                loop_offset integer;
+
+                -- The array to be returned by this function.
+                return_array with_array%TYPE := '{}';
+            BEGIN
+                IF with_array IS NULL THEN
+                    return NULL;
+                END IF;
+
+                -- Iterate over each element in &quot;concat_array&quot;.
+                FOR loop_offset IN ARRAY_LOWER(with_array, 1)..ARRAY_UPPER(with_array, 1) LOOP
+                    IF NOT with_array[loop_offset] = ANY(return_array) THEN
+                        return_array = ARRAY_APPEND(return_array, with_array[loop_offset]);
+                    END IF;
+                END LOOP;
+
+                RETURN return_array;
+            END;
+            $BODY$ LANGUAGE plpgsql;
+        |);
+    }
+
</ins><span class="cx">     # PostgreSQL doesn't like having *any* index on the thetext
</span><span class="cx">     # field, because it can't have index data longer than 2770
</span><span class="cx">     # characters on that field.
</span><span class="lines">@@ -386,3 +477,82 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head2 Functions
+
+=over
+
+=item C&lt;sql_like_escape&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+The postgres versions of the sql_like methods use the ANSI SQL LIKE
+statements to perform substring searching.  To prevent issues with
+users attempting to search for strings containing special characters
+associated with LIKE, we escape them out so they don't affect the search
+terms.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;$fragment&gt; - The string fragment in need of escaping and quoting
+
+=back
+
+=item B&lt;Returns&gt;
+
+The fragment with any pre existing %,_,| characters escaped out, wrapped in
+percent characters and quoted.
+
+=back
+
+=back
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item sql_date_format
+
+=item bz_explain
+
+=item bz_sequence_exists
+
+=item bz_last_key
+
+=item sql_position
+
+=item sql_like
+
+=item sql_ilike
+
+=item sql_not_ilike
+
+=item sql_limit
+
+=item sql_not_regexp
+
+=item sql_string_concat
+
+=item sql_date_math
+
+=item sql_to_days
+
+=item bz_check_server_version
+
+=item sql_from_days
+
+=item bz_table_list_real
+
+=item sql_regexp
+
+=item sql_istring
+
+=item sql_group_concat
+
+=item bz_setup_database
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSchemaMysqlpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Mysql.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Mysql.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Mysql.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Andrew Dunstan &lt;andrew@dunslane.net&gt;,
-#                 Edward J. Sabol &lt;edwardjsabol@iname.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Schema::Mysql;
</span><span class="cx"> 
</span><span class="lines">@@ -29,10 +13,13 @@
</span><span class="cx"> #
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::DB::Schema);
</del><ins>+use parent qw(Bugzilla::DB::Schema);
</ins><span class="cx"> 
</span><span class="cx"> # This is for column_info_to_column, to know when a tinyint is a 
</span><span class="cx"> # boolean and when it's really a tinyint. This only has to be accurate
</span><span class="lines">@@ -120,7 +107,7 @@
</span><span class="cx">         LONGBLOB =&gt;     'longblob',
</span><span class="cx"> 
</span><span class="cx">         DATETIME =&gt;     'datetime',
</span><del>-
</del><ins>+        DATE     =&gt;     'date',
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_adjust_schema;
</span><span class="lines">@@ -329,7 +316,7 @@
</span><span class="cx">             $default = 0 if $default =~ /^0\.0+$/;
</span><span class="cx">             # If we're not a number, we're a string and need to be
</span><span class="cx">             # quoted.
</span><del>-            $default = $dbh-&gt;quote($default) if !($default =~ /^(-)?(\d+)(.\d+)?$/);
</del><ins>+            $default = $dbh-&gt;quote($default) if !($default =~ /^(-)?([0-9]+)(\.[0-9]+)?$/);
</ins><span class="cx">             $column-&gt;{DEFAULT} = $default;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -397,3 +384,27 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_rename_column_ddl
+
+=item get_create_database_sql
+
+=item get_drop_index_ddl
+
+=item get_set_serial_sql
+
+=item get_rename_indexes_ddl
+
+=item get_drop_fk_sql
+
+=item MYISAM_TABLES
+
+=item column_info_to_column
+
+=item get_alter_column_ddl
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSchemaOraclepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Oracle.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Oracle.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Oracle.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Oracle Corporation.
-# Portions created by Oracle are Copyright (C) 2007 Oracle Corporation.
-# All Rights Reserved.
-#
-# Contributor(s): Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Xiaoou Wu &lt;xiaoou.wu@oracle.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Schema::Oracle;
</span><span class="cx"> 
</span><span class="lines">@@ -28,9 +13,11 @@
</span><span class="cx"> #
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::DB::Schema);
</del><ins>+use parent qw(Bugzilla::DB::Schema);
</ins><span class="cx"> use Carp qw(confess);
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><span class="lines">@@ -70,7 +57,7 @@
</span><span class="cx">         LONGBLOB =&gt;     'blob',
</span><span class="cx"> 
</span><span class="cx">         DATETIME =&gt;     'date',
</span><del>-
</del><ins>+        DATE     =&gt;     'date',
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_adjust_schema;
</span><span class="lines">@@ -518,3 +505,33 @@
</span><span class="cx"> } 
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_rename_column_ddl
+
+=item get_add_fks_sql
+
+=item get_drop_index_ddl
+
+=item get_rename_table_sql
+
+=item get_add_column_ddl
+
+=item get_set_serial_sql
+
+=item get_drop_column_ddl
+
+=item get_drop_table_ddl
+
+=item get_drop_fk_sql
+
+=item get_table_ddl
+
+=item get_alter_column_ddl
+
+=item get_fk_ddl
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSchemaPgpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Pg.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Pg.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Pg.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Andrew Dunstan &lt;andrew@dunslane.net&gt;,
-#                 Edward J. Sabol &lt;edwardjsabol@iname.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Schema::Pg;
</span><span class="cx"> 
</span><span class="lines">@@ -29,8 +13,11 @@
</span><span class="cx"> #
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::DB::Schema);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::DB::Schema);
</ins><span class="cx"> use Storable qw(dclone);
</span><span class="cx"> 
</span><span class="cx"> #------------------------------------------------------------------------------
</span><span class="lines">@@ -80,7 +67,7 @@
</span><span class="cx">         LONGBLOB =&gt;     'bytea',
</span><span class="cx"> 
</span><span class="cx">         DATETIME =&gt;     'timestamp(0) without time zone',
</span><del>-
</del><ins>+        DATE     =&gt;     'date',
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_adjust_schema;
</span><span class="lines">@@ -202,3 +189,17 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_rename_column_ddl
+
+=item get_rename_table_sql
+
+=item get_create_database_sql
+
+=item get_set_serial_sql
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSchemaSqlitepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Sqlite.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Sqlite.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema/Sqlite.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-use strict;
</del><span class="cx"> package Bugzilla::DB::Schema::Sqlite;
</span><del>-use base qw(Bugzilla::DB::Schema);
</del><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::DB::Schema);
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util qw(generate_random_password);
</span><span class="cx"> 
</span><span class="lines">@@ -57,6 +47,7 @@
</span><span class="cx">         LONGBLOB =&gt;     'blob',
</span><span class="cx"> 
</span><span class="cx">         DATETIME =&gt;     'DATETIME',
</span><ins>+        DATE     =&gt;     'DATETIME',
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_adjust_schema;
</span><span class="lines">@@ -310,3 +301,25 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_rename_column_ddl
+
+=item get_add_fks_sql
+
+=item get_drop_fk_sql
+
+=item get_create_database_sql
+
+=item get_alter_column_ddl
+
+=item get_add_column_ddl
+
+=item get_type_ddl
+
+=item get_drop_column_ddl
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSchemapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Schema.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Andrew Dunstan &lt;andrew@dunslane.net&gt;,
-#                 Edward J. Sabol &lt;edwardjsabol@iname.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Dennis Melentyev &lt;dennis.melentyev@infopulse.com.ua&gt;
-#                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
-#                 Elliotte Martin &lt;emartin@everythingsolved.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB::Schema;
</span><span class="cx"> 
</span><span class="lines">@@ -35,7 +15,10 @@
</span><span class="cx"> #
</span><span class="cx"> ###########################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Hook;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -272,12 +255,12 @@
</span><span class="cx">                                     REFERENCES =&gt; {TABLE  =&gt; 'profiles',
</span><span class="cx">                                                    COLUMN =&gt; 'userid'}},
</span><span class="cx">             version             =&gt; {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1},
</span><del>-            component_id        =&gt; {TYPE =&gt; 'INT2', NOTNULL =&gt; 1,
</del><ins>+            component_id        =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</ins><span class="cx">                                     REFERENCES =&gt; {TABLE  =&gt; 'components',
</span><span class="cx">                                                    COLUMN =&gt; 'id'}},
</span><span class="cx">             resolution          =&gt; {TYPE =&gt; 'varchar(64)',
</span><span class="cx">                                     NOTNULL =&gt; 1, DEFAULT =&gt; &quot;''&quot;},
</span><del>-            target_milestone    =&gt; {TYPE =&gt; 'varchar(20)',
</del><ins>+            target_milestone    =&gt; {TYPE =&gt; 'varchar(64)',
</ins><span class="cx">                                     NOTNULL =&gt; 1, DEFAULT =&gt; &quot;'---'&quot;},
</span><span class="cx">             qa_contact          =&gt; {TYPE =&gt; 'INT3',
</span><span class="cx">                                     REFERENCES =&gt; {TABLE  =&gt; 'profiles',
</span><span class="lines">@@ -295,11 +278,8 @@
</span><span class="cx">             remaining_time      =&gt; {TYPE =&gt; 'decimal(7,2)',
</span><span class="cx">                                     NOTNULL =&gt; 1, DEFAULT =&gt; '0'},
</span><span class="cx">             deadline            =&gt; {TYPE =&gt; 'DATETIME'},
</span><del>-            alias               =&gt; {TYPE =&gt; 'varchar(20)'},
</del><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><del>-            bugs_alias_idx            =&gt; {FIELDS =&gt; ['alias'],
-                                          TYPE =&gt; 'UNIQUE'},
</del><span class="cx">             bugs_assigned_to_idx      =&gt; ['assigned_to'],
</span><span class="cx">             bugs_creation_ts_idx      =&gt; ['creation_ts'],
</span><span class="cx">             bugs_delta_ts_idx         =&gt; ['delta_ts'],
</span><span class="lines">@@ -342,6 +322,8 @@
</span><span class="cx"> 
</span><span class="cx">     bugs_activity =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><ins>+            id        =&gt; {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1, 
+                          PRIMARYKEY =&gt; 1}, 
</ins><span class="cx">             bug_id    =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="cx">                           REFERENCES    =&gt;  {TABLE  =&gt;  'bugs',
</span><span class="cx">                                              COLUMN =&gt;  'bug_id',
</span><span class="lines">@@ -358,8 +340,8 @@
</span><span class="cx">                           REFERENCES    =&gt;  {TABLE  =&gt;  'fielddefs',
</span><span class="cx">                                              COLUMN =&gt;  'id'}},
</span><span class="cx">             added     =&gt; {TYPE =&gt; 'varchar(255)'},
</span><del>-            removed   =&gt; {TYPE =&gt; 'TINYTEXT'},
-            comment_id =&gt; {TYPE =&gt; 'INT3', 
</del><ins>+            removed   =&gt; {TYPE =&gt; 'varchar(255)'},
+            comment_id =&gt; {TYPE =&gt; 'INT4', 
</ins><span class="cx">                            REFERENCES =&gt; { TABLE  =&gt; 'longdescs',
</span><span class="cx">                                            COLUMN =&gt; 'comment_id',
</span><span class="cx">                                            DELETE =&gt; 'CASCADE'}},
</span><span class="lines">@@ -370,9 +352,25 @@
</span><span class="cx">             bugs_activity_bug_when_idx =&gt; ['bug_when'],
</span><span class="cx">             bugs_activity_fieldid_idx =&gt; ['fieldid'],
</span><span class="cx">             bugs_activity_added_idx   =&gt; ['added'],
</span><ins>+            bugs_activity_removed_idx =&gt; ['removed'], 
</ins><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><ins>+    bugs_aliases =&gt; {
+        FIELDS =&gt; [
+            alias     =&gt; {TYPE =&gt; 'varchar(40)', NOTNULL =&gt; 1},
+            bug_id    =&gt; {TYPE =&gt; 'INT3',
+                          REFERENCES =&gt; {TABLE  =&gt; 'bugs',
+                                         COLUMN =&gt; 'bug_id',
+                                         DELETE =&gt; 'CASCADE'}},
+        ],
+        INDEXES =&gt; [
+            bugs_aliases_bug_id_idx =&gt; ['bug_id'],
+            bugs_aliases_alias_idx  =&gt; {FIELDS =&gt; ['alias'],
+                                        TYPE =&gt; 'UNIQUE'},
+        ],
+    },
+
</ins><span class="cx">     cc =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><span class="cx">             bug_id =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="lines">@@ -393,7 +391,7 @@
</span><span class="cx"> 
</span><span class="cx">     longdescs =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><del>-            comment_id      =&gt; {TYPE =&gt; 'MEDIUMSERIAL',  NOTNULL =&gt; 1,
</del><ins>+            comment_id      =&gt; {TYPE =&gt; 'INTSERIAL',  NOTNULL =&gt; 1,
</ins><span class="cx">                                 PRIMARYKEY =&gt; 1},
</span><span class="cx">             bug_id          =&gt; {TYPE =&gt; 'INT3',  NOTNULL =&gt; 1,
</span><span class="cx">                                 REFERENCES =&gt; {TABLE =&gt; 'bugs',
</span><span class="lines">@@ -415,12 +413,60 @@
</span><span class="cx">             extra_data      =&gt; {TYPE =&gt; 'varchar(255)'}
</span><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><del>-            longdescs_bug_id_idx   =&gt; ['bug_id'],
</del><ins>+            longdescs_bug_id_idx   =&gt; [qw(bug_id work_time)],
</ins><span class="cx">             longdescs_who_idx     =&gt; [qw(who bug_id)],
</span><span class="cx">             longdescs_bug_when_idx =&gt; ['bug_when'],
</span><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><ins>+    longdescs_tags =&gt; {
+        FIELDS =&gt; [
+            id         =&gt; { TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1 },
+            comment_id =&gt; { TYPE =&gt; 'INT4',
+                            REFERENCES =&gt; { TABLE  =&gt; 'longdescs',
+                                            COLUMN =&gt; 'comment_id',
+                                            DELETE =&gt; 'CASCADE' }},
+            tag        =&gt; { TYPE =&gt; 'varchar(24)',  NOTNULL =&gt; 1 },
+        ],
+        INDEXES =&gt; [
+            longdescs_tags_idx =&gt; { FIELDS =&gt; ['comment_id', 'tag'], TYPE =&gt; 'UNIQUE' },
+        ],
+    },
+
+    longdescs_tags_weights =&gt; {
+        FIELDS =&gt; [
+            id     =&gt; { TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1 },
+            tag    =&gt; { TYPE =&gt; 'varchar(24)',  NOTNULL =&gt; 1 },
+            weight =&gt; { TYPE =&gt; 'INT3',         NOTNULL =&gt; 1 },
+        ],
+        INDEXES =&gt; [
+            longdescs_tags_weights_tag_idx =&gt; { FIELDS =&gt; ['tag'], TYPE =&gt; 'UNIQUE' },
+        ],
+    },
+
+    longdescs_tags_activity =&gt; {
+        FIELDS =&gt; [
+            id         =&gt; { TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1 },
+            bug_id     =&gt; { TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                            REFERENCES =&gt;  { TABLE  =&gt;  'bugs',
+                                             COLUMN =&gt;  'bug_id',
+                                             DELETE =&gt; 'CASCADE' }},
+            comment_id =&gt; { TYPE =&gt; 'INT4',
+                            REFERENCES =&gt; { TABLE  =&gt; 'longdescs',
+                                            COLUMN =&gt; 'comment_id',
+                                            DELETE =&gt; 'CASCADE' }},
+            who        =&gt; { TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                            REFERENCES =&gt; { TABLE  =&gt; 'profiles',
+                                            COLUMN =&gt; 'userid' }},
+            bug_when  =&gt; { TYPE =&gt; 'DATETIME', NOTNULL =&gt; 1 },
+            added     =&gt; { TYPE =&gt; 'varchar(24)' },
+            removed   =&gt; { TYPE =&gt; 'varchar(24)' },
+        ],
+        INDEXES =&gt; [
+            longdescs_tags_activity_bug_id_idx  =&gt; ['bug_id'],
+        ],
+    },
+
</ins><span class="cx">     dependencies =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><span class="cx">             blocked   =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="lines">@@ -433,7 +479,8 @@
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><del>-            dependencies_blocked_idx   =&gt; ['blocked'],
</del><ins>+            dependencies_blocked_idx =&gt; {FIELDS =&gt; [qw(blocked dependson)],
+                                         TYPE   =&gt; 'UNIQUE'},
</ins><span class="cx">             dependencies_dependson_idx =&gt; ['dependson'],
</span><span class="cx">         ],
</span><span class="cx">     },
</span><span class="lines">@@ -452,7 +499,7 @@
</span><span class="cx">             mimetype     =&gt; {TYPE =&gt; 'TINYTEXT', NOTNULL =&gt; 1},
</span><span class="cx">             ispatch      =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                              DEFAULT =&gt; 'FALSE'},
</span><del>-            filename     =&gt; {TYPE =&gt; 'varchar(100)', NOTNULL =&gt; 1},
</del><ins>+            filename     =&gt; {TYPE =&gt; 'varchar(255)', NOTNULL =&gt; 1},
</ins><span class="cx">             submitter_id =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="cx">                              REFERENCES =&gt; {TABLE =&gt; 'profiles',
</span><span class="cx">                                             COLUMN =&gt; 'userid'}},
</span><span class="lines">@@ -526,6 +573,9 @@
</span><span class="cx">             added     =&gt; {TYPE =&gt; 'MEDIUMTEXT'},
</span><span class="cx">             at_time   =&gt; {TYPE =&gt; 'DATETIME', NOTNULL =&gt; 1},
</span><span class="cx">         ],
</span><ins>+        INDEXES =&gt; [
+                    audit_log_class_idx =&gt; ['class', 'at_time'],
+        ],
</ins><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     # Keywords
</span><span class="lines">@@ -645,14 +695,14 @@
</span><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'products',
</span><span class="cx">                                             COLUMN =&gt; 'id',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><del>-            component_id =&gt; {TYPE =&gt; 'INT2',
</del><ins>+            component_id =&gt; {TYPE =&gt; 'INT3',
</ins><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'components',
</span><span class="cx">                                             COLUMN =&gt; 'id',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><del>-            flaginclusions_type_id_idx =&gt;
-                [qw(type_id product_id component_id)],
</del><ins>+            flaginclusions_type_id_idx =&gt; { FIELDS =&gt; [qw(type_id product_id component_id)],
+                                            TYPE   =&gt; 'UNIQUE' },
</ins><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -666,14 +716,14 @@
</span><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'products',
</span><span class="cx">                                             COLUMN =&gt; 'id',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><del>-            component_id =&gt; {TYPE =&gt; 'INT2',
</del><ins>+            component_id =&gt; {TYPE =&gt; 'INT3',
</ins><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'components',
</span><span class="cx">                                             COLUMN =&gt; 'id',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><del>-            flagexclusions_type_id_idx =&gt;
-                [qw(type_id product_id component_id)],
</del><ins>+            flagexclusions_type_id_idx =&gt; { FIELDS =&gt; [qw(type_id product_id component_id)],
+                                            TYPE   =&gt; 'UNIQUE' },
</ins><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -690,6 +740,7 @@
</span><span class="cx">             custom      =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                             DEFAULT =&gt; 'FALSE'},
</span><span class="cx">             description =&gt; {TYPE =&gt; 'TINYTEXT', NOTNULL =&gt; 1},
</span><ins>+            long_desc   =&gt; {TYPE =&gt; 'varchar(255)', NOTNULL =&gt; 1, DEFAULT =&gt; &quot;''&quot;},
</ins><span class="cx">             mailhead    =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                             DEFAULT =&gt; 'FALSE'},
</span><span class="cx">             sortkey     =&gt; {TYPE =&gt; 'INT2', NOTNULL =&gt; 1},
</span><span class="lines">@@ -768,7 +819,7 @@
</span><span class="cx">                            REFERENCES =&gt; {TABLE  =&gt; 'products',
</span><span class="cx">                                           COLUMN =&gt; 'id',
</span><span class="cx">                                           DELETE =&gt; 'CASCADE'}},
</span><del>-            value      =&gt; {TYPE =&gt; 'varchar(20)', NOTNULL =&gt; 1},
</del><ins>+            value      =&gt; {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1},
</ins><span class="cx">             sortkey    =&gt; {TYPE =&gt; 'INT2', NOTNULL =&gt; 1,
</span><span class="cx">                            DEFAULT =&gt; 0},
</span><span class="cx">             isactive   =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1, 
</span><span class="lines">@@ -889,6 +940,7 @@
</span><span class="cx">             extern_id      =&gt; {TYPE =&gt; 'varchar(64)'},
</span><span class="cx">             is_enabled     =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1, 
</span><span class="cx">                                DEFAULT =&gt; 'TRUE'}, 
</span><ins>+            last_seen_date =&gt; {TYPE =&gt; 'DATETIME'},
</ins><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><span class="cx">             profiles_login_name_idx =&gt; {FIELDS =&gt; ['login_name'],
</span><span class="lines">@@ -915,6 +967,8 @@
</span><span class="cx"> 
</span><span class="cx">     profiles_activity =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><ins>+            id            =&gt; {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, 
+                              PRIMARYKEY =&gt; 1}, 
</ins><span class="cx">             userid        =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="cx">                               REFERENCES =&gt; {TABLE  =&gt; 'profiles', 
</span><span class="cx">                                              COLUMN =&gt; 'userid',
</span><span class="lines">@@ -952,6 +1006,23 @@
</span><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><ins>+    email_bug_ignore =&gt; {
+        FIELDS =&gt; [
+            user_id =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                        REFERENCES =&gt; {TABLE  =&gt; 'profiles',
+                                       COLUMN =&gt; 'userid',
+                                       DELETE =&gt; 'CASCADE'}},
+            bug_id  =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                        REFERENCES =&gt; {TABLE  =&gt; 'bugs',
+                                       COLUMN =&gt; 'bug_id',
+                                       DELETE =&gt; 'CASCADE'}},
+        ],
+        INDEXES =&gt; [
+            email_bug_ignore_user_id_idx =&gt; {FIELDS =&gt; [qw(user_id bug_id)],
+                                             TYPE   =&gt; 'UNIQUE'},
+        ],
+    },
+
</ins><span class="cx">     watch =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><span class="cx">             watcher =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</span><span class="lines">@@ -1035,6 +1106,23 @@
</span><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><ins>+    reports =&gt; {
+        FIELDS =&gt; [
+            id      =&gt; {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1,
+                        PRIMARYKEY =&gt; 1},
+            user_id =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                        REFERENCES =&gt; {TABLE  =&gt; 'profiles',
+                                       COLUMN =&gt; 'userid',
+                                       DELETE =&gt; 'CASCADE'}},
+            name    =&gt; {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1},
+            query   =&gt; {TYPE =&gt; 'LONGTEXT', NOTNULL =&gt; 1},
+        ],
+        INDEXES =&gt; [
+            reports_user_id_idx =&gt; {FIELDS =&gt; [qw(user_id name)],
+                                   TYPE =&gt; 'UNIQUE'},
+        ],
+    },
+
</ins><span class="cx">     component_cc =&gt; {
</span><span class="cx"> 
</span><span class="cx">         FIELDS =&gt; [
</span><span class="lines">@@ -1042,7 +1130,7 @@
</span><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'profiles',
</span><span class="cx">                                             COLUMN =&gt; 'userid',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><del>-            component_id =&gt; {TYPE =&gt; 'INT2', NOTNULL =&gt; 1,
</del><ins>+            component_id =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
</ins><span class="cx">                              REFERENCES =&gt; {TABLE  =&gt; 'components',
</span><span class="cx">                                             COLUMN =&gt; 'id',
</span><span class="cx">                                             DELETE =&gt; 'CASCADE'}},
</span><span class="lines">@@ -1102,7 +1190,7 @@
</span><span class="cx">             issuedate =&gt; {TYPE =&gt; 'DATETIME', NOTNULL =&gt; 1} ,
</span><span class="cx">             token     =&gt; {TYPE =&gt; 'varchar(16)', NOTNULL =&gt; 1,
</span><span class="cx">                           PRIMARYKEY =&gt; 1},
</span><del>-            tokentype =&gt; {TYPE =&gt; 'varchar(8)', NOTNULL =&gt; 1} ,
</del><ins>+            tokentype =&gt; {TYPE =&gt; 'varchar(16)', NOTNULL =&gt; 1} ,
</ins><span class="cx">             eventdata =&gt; {TYPE =&gt; 'TINYTEXT'},
</span><span class="cx">         ],
</span><span class="cx">         INDEXES =&gt; [
</span><span class="lines">@@ -1307,7 +1395,7 @@
</span><span class="cx">             description       =&gt; {TYPE =&gt; 'MEDIUMTEXT', NOTNULL =&gt; 1},
</span><span class="cx">             isactive          =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                                   DEFAULT =&gt; 1},
</span><del>-            defaultmilestone  =&gt; {TYPE =&gt; 'varchar(20)',
</del><ins>+            defaultmilestone  =&gt; {TYPE =&gt; 'varchar(64)',
</ins><span class="cx">                                   NOTNULL =&gt; 1, DEFAULT =&gt; &quot;'---'&quot;},
</span><span class="cx">             allows_unconfirmed =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                                    DEFAULT =&gt; 'TRUE'},
</span><span class="lines">@@ -1320,7 +1408,7 @@
</span><span class="cx"> 
</span><span class="cx">     components =&gt; {
</span><span class="cx">         FIELDS =&gt; [
</span><del>-            id               =&gt; {TYPE =&gt; 'SMALLSERIAL', NOTNULL =&gt; 1,
</del><ins>+            id               =&gt; {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1,
</ins><span class="cx">                                  PRIMARYKEY =&gt; 1},
</span><span class="cx">             name             =&gt; {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1},
</span><span class="cx">             product_id       =&gt; {TYPE =&gt; 'INT2', NOTNULL =&gt; 1,
</span><span class="lines">@@ -1476,7 +1564,7 @@
</span><span class="cx">                          REFERENCES =&gt; {TABLE  =&gt; 'profiles', 
</span><span class="cx">                                         COLUMN =&gt; 'userid',
</span><span class="cx">                                         DELETE =&gt; 'SET NULL'}},
</span><del>-            quip     =&gt; {TYPE =&gt; 'MEDIUMTEXT', NOTNULL =&gt; 1},
</del><ins>+            quip     =&gt; {TYPE =&gt; 'varchar(512)', NOTNULL =&gt; 1},
</ins><span class="cx">             approved =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
</span><span class="cx">                          DEFAULT =&gt; 'TRUE'},
</span><span class="cx">         ],
</span><span class="lines">@@ -1541,6 +1629,16 @@
</span><span class="cx">         ],
</span><span class="cx">      },
</span><span class="cx"> 
</span><ins>+    # BUGMAIL
+    # -------
+
+    mail_staging =&gt; {
+        FIELDS =&gt; [
+            id      =&gt; {TYPE =&gt; 'INTSERIAL', PRIMARYKEY =&gt; 1, NOTNULL =&gt; 1},
+            message =&gt; {TYPE =&gt; 'LONGBLOB', NOTNULL =&gt; 1},
+        ],
+    },
+
</ins><span class="cx">     # THESCHWARTZ TABLES
</span><span class="cx">     # ------------------
</span><span class="cx">     # Note: In the standard TheSchwartz schema, most integers are unsigned,
</span><span class="lines">@@ -1638,6 +1736,46 @@
</span><span class="cx">         ],
</span><span class="cx">     },
</span><span class="cx"> 
</span><ins>+    bug_user_last_visit =&gt; {
+        FIELDS =&gt; [
+            id            =&gt; {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1,
+                              PRIMARYKEY =&gt; 1},
+            user_id       =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                              REFERENCES =&gt; {TABLE  =&gt; 'profiles',
+                                             COLUMN =&gt; 'userid',
+                                             DELETE =&gt; 'CASCADE'}},
+            bug_id        =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                              REFERENCES =&gt; {TABLE  =&gt; 'bugs',
+                                             COLUMN =&gt; 'bug_id',
+                                             DELETE =&gt; 'CASCADE'}},
+            last_visit_ts =&gt; {TYPE =&gt; 'DATETIME', NOTNULL =&gt; 1},
+        ],
+        INDEXES =&gt; [
+            bug_user_last_visit_idx =&gt; {FIELDS =&gt; ['user_id', 'bug_id'],
+                                        TYPE =&gt; 'UNIQUE'},
+            bug_user_last_visit_last_visit_ts_idx =&gt; ['last_visit_ts'],
+        ],
+    },
+
+    user_api_keys =&gt; {
+        FIELDS =&gt; [
+            id            =&gt; {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1,
+                              PRIMARYKEY =&gt; 1},
+            user_id       =&gt; {TYPE =&gt; 'INT3', NOTNULL =&gt; 1,
+                              REFERENCES =&gt; {TABLE  =&gt; 'profiles',
+                                             COLUMN =&gt; 'userid',
+                                             DELETE =&gt; 'CASCADE'}},
+            api_key       =&gt; {TYPE =&gt; 'VARCHAR(40)', NOTNULL =&gt; 1},
+            description   =&gt; {TYPE =&gt; 'VARCHAR(255)'},
+            revoked       =&gt; {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1,
+                              DEFAULT =&gt; 'FALSE'},
+            last_used     =&gt; {TYPE =&gt; 'DATETIME'},
+        ],
+        INDEXES =&gt; [
+            user_api_keys_api_key_idx =&gt; {FIELDS =&gt; ['api_key'], TYPE =&gt; 'UNIQUE'},
+            user_api_keys_user_id_idx =&gt; ['user_id'],
+        ],
+    },
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Foreign Keys are added in Bugzilla::DB::bz_add_field_tables
</span><span class="lines">@@ -3003,3 +3141,19 @@
</span><span class="cx"> L&lt;http://www.bugzilla.org/docs/developer.html#sql-schema&gt;
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item get_table_indexes_abstract
+
+=item get_create_database_sql
+
+=item get_add_fks_sql
+
+=item get_fk_ddl
+
+=item get_drop_fk_sql
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBSqlitepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB/Sqlite.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB/Sqlite.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB/Sqlite.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-use strict;
</del><span class="cx"> package Bugzilla::DB::Sqlite;
</span><del>-use base qw(Bugzilla::DB);
</del><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::DB);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Install::Util qw(install_string);
</span><span class="lines">@@ -142,6 +132,7 @@
</span><span class="cx">     # so that's what we use, and I don't know of any way in SQLite to
</span><span class="cx">     # alias the SQL &quot;substr&quot; function to be called &quot;SUBSTRING&quot;.
</span><span class="cx">     $self-&gt;sqlite_create_function('substring', 3, \&amp;CORE::substr);
</span><ins>+    $self-&gt;sqlite_create_function('char_length', 1, sub { length($_[0]) });
</ins><span class="cx">     $self-&gt;sqlite_create_function('mod', 2, \&amp;_sqlite_mod);
</span><span class="cx">     $self-&gt;sqlite_create_function('now', 0, \&amp;_sqlite_now);
</span><span class="cx">     $self-&gt;sqlite_create_function('localtimestamp', 1, \&amp;_sqlite_now);
</span><span class="lines">@@ -309,3 +300,39 @@
</span><span class="cx"> and should never be used directly.
</span><span class="cx"> 
</span><span class="cx"> For interface details see L&lt;Bugzilla::DB&gt; and L&lt;DBI&gt;.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item sql_date_format
+
+=item bz_explain
+
+=item sql_position
+
+=item sql_iposition
+
+=item sql_group_by
+
+=item sql_not_regexp
+
+=item sql_limit
+
+=item sql_date_math
+
+=item sql_to_days
+
+=item sql_from_days
+
+=item bz_table_list_real
+
+=item sql_regexp
+
+=item sql_group_concat
+
+=item sql_istring
+
+=item bz_setup_database
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaDBpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/DB.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/DB.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/DB.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,47 +1,30 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Tomas Kopal &lt;Tomas.Kopal@altap.cz&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::DB;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use DBI;
</span><span class="cx"> 
</span><span class="cx"> # Inherit the DB class from DBI::db.
</span><del>-use base qw(DBI::db);
</del><ins>+use parent -norequire, qw(DBI::db);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::Mailer;
</ins><span class="cx"> use Bugzilla::Install::Requirements;
</span><del>-use Bugzilla::Install::Util qw(vers_cmp install_string);
</del><ins>+use Bugzilla::Install::Util qw(install_string);
</ins><span class="cx"> use Bugzilla::Install::Localconfig;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::DB::Schema;
</span><ins>+use Bugzilla::Version;
</ins><span class="cx"> 
</span><span class="cx"> use List::Util qw(max);
</span><span class="cx"> use Storable qw(dclone);
</span><span class="lines">@@ -256,7 +239,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!$conn_success) {
</span><span class="cx">         $dbh = _get_no_db_connection();
</span><del>-        print &quot;Creating database $db_name...\n&quot;;
</del><ins>+        say &quot;Creating database $db_name...&quot;;
</ins><span class="cx"> 
</span><span class="cx">         # Try to create the DB, and if we fail print a friendly error.
</span><span class="cx">         my $success  = eval {
</span><span class="lines">@@ -380,6 +363,31 @@
</span><span class="cx">     return &quot;POSITION($fragment IN $text)&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub sql_like {
+    my ($self, $fragment, $column) = @_;
+
+    my $quoted = $self-&gt;quote($fragment);
+
+    return $self-&gt;sql_position($quoted, $column) . &quot; &gt; 0&quot;;
+}
+
+sub sql_ilike {
+    my ($self, $fragment, $column) = @_;
+
+    my $quoted = $self-&gt;quote($fragment);
+
+    return $self-&gt;sql_iposition($quoted, $column) . &quot; &gt; 0&quot;;
+}
+
+sub sql_not_ilike {
+    my ($self, $fragment, $column) = @_;
+
+    my $quoted = $self-&gt;quote($fragment);
+
+    return $self-&gt;sql_iposition($quoted, $column) . &quot; = 0&quot;;
+}
+
+
</ins><span class="cx"> sub sql_group_by {
</span><span class="cx">     my ($self, $needed_columns, $optional_columns) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -494,7 +502,7 @@
</span><span class="cx">     my @desired_tables = $self-&gt;_bz_schema-&gt;get_table_list();
</span><span class="cx">     my $bugs_exists = $self-&gt;bz_table_info('bugs');
</span><span class="cx">     if (!$bugs_exists) {
</span><del>-        print install_string('db_table_setup'), &quot;\n&quot;;
</del><ins>+        say install_string('db_table_setup');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     foreach my $table_name (@desired_tables) {
</span><span class="lines">@@ -531,7 +539,7 @@
</span><span class="cx">     my $activity_fk = $self-&gt;bz_fk_info('profiles_activity', 'userid');
</span><span class="cx">     my $any_fks = $activity_fk &amp;&amp; $activity_fk-&gt;{created};
</span><span class="cx">     if (!$any_fks) {
</span><del>-        print get_text('install_fk_setup'), &quot;\n&quot;;
</del><ins>+        say get_text('install_fk_setup');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my @tables = $self-&gt;bz_table_list();
</span><span class="lines">@@ -598,8 +606,11 @@
</span><span class="cx">     my $current_def = $self-&gt;bz_column_info($table, $name);
</span><span class="cx"> 
</span><span class="cx">     if (!$current_def) {
</span><ins>+        # REFERENCES need to happen later and not be created right away
+        my $trimmed_def = dclone($new_def);
+        delete $trimmed_def-&gt;{REFERENCES};
</ins><span class="cx">         my @statements = $self-&gt;_bz_real_schema-&gt;get_add_column_ddl(
</span><del>-            $table, $name, $new_def, 
</del><ins>+            $table, $name, $trimmed_def,
</ins><span class="cx">             defined $init_value ? $self-&gt;quote($init_value) : undef);
</span><span class="cx">         print get_text('install_column_add',
</span><span class="cx">                        { column =&gt; $name, table =&gt; $table }) . &quot;\n&quot;
</span><span class="lines">@@ -613,7 +624,7 @@
</span><span class="cx">         # column exists there and has a REFERENCES item.
</span><span class="cx">         # bz_setup_foreign_keys will then add this FK at the end of
</span><span class="cx">         # Install::DB.
</span><del>-        my $col_abstract = 
</del><ins>+        my $col_abstract =
</ins><span class="cx">             $self-&gt;_bz_schema-&gt;get_column_abstract($table, $name);
</span><span class="cx">         if (exists $col_abstract-&gt;{REFERENCES}) {
</span><span class="cx">             my $new_fk = dclone($col_abstract-&gt;{REFERENCES});
</span><span class="lines">@@ -620,7 +631,7 @@
</span><span class="cx">             $new_fk-&gt;{created} = 0;
</span><span class="cx">             $new_def-&gt;{REFERENCES} = $new_fk;
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         $self-&gt;_bz_real_schema-&gt;set_column($table, $name, $new_def);
</span><span class="cx">         $self-&gt;_bz_store_real_schema;
</span><span class="cx">     }
</span><span class="lines">@@ -722,12 +733,12 @@
</span><span class="cx">         $table, $name, $new_def,
</span><span class="cx">         defined $set_nulls_to ? $self-&gt;quote($set_nulls_to) : undef);
</span><span class="cx">     my $new_ddl = $self-&gt;_bz_schema-&gt;get_type_ddl($new_def);
</span><del>-    print &quot;Updating column $name in table $table ...\n&quot;;
</del><ins>+    say &quot;Updating column $name in table $table ...&quot;;
</ins><span class="cx">     if (defined $current_def) {
</span><span class="cx">         my $old_ddl = $self-&gt;_bz_schema-&gt;get_type_ddl($current_def);
</span><del>-        print &quot;Old: $old_ddl\n&quot;;
</del><ins>+        say &quot;Old: $old_ddl&quot;;
</ins><span class="cx">     }
</span><del>-    print &quot;New: $new_ddl\n&quot;;
</del><ins>+    say &quot;New: $new_ddl&quot;;
</ins><span class="cx">     $self-&gt;do($_) foreach (@statements);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -821,7 +832,7 @@
</span><span class="cx">     if (Bugzilla-&gt;usage_mode == USAGE_MODE_CMDLINE
</span><span class="cx">         and !$options-&gt;{silently})
</span><span class="cx">     {
</span><del>-        print install_string('db_table_new', { table =&gt; $name }), &quot;\n&quot;;
</del><ins>+        say install_string('db_table_new', { table =&gt; $name });
</ins><span class="cx">     }
</span><span class="cx">     $self-&gt;do($_) foreach (@statements);
</span><span class="cx"> }
</span><span class="lines">@@ -1228,12 +1239,13 @@
</span><span class="cx"> 
</span><span class="cx"> sub bz_commit_transaction {
</span><span class="cx">     my ($self) = @_;
</span><del>-    
</del><ins>+
</ins><span class="cx">     if ($self-&gt;{private_bz_transaction_count} &gt; 1) {
</span><span class="cx">         $self-&gt;{private_bz_transaction_count}--;
</span><span class="cx">     } elsif ($self-&gt;bz_in_transaction) {
</span><span class="cx">         $self-&gt;commit();
</span><span class="cx">         $self-&gt;{private_bz_transaction_count} = 0;
</span><ins>+        Bugzilla::Mailer-&gt;send_staged_mail();
</ins><span class="cx">     } else {
</span><span class="cx">        ThrowCodeError('not_in_transaction');
</span><span class="cx">     }
</span><span class="lines">@@ -1269,11 +1281,9 @@
</span><span class="cx">                        ShowErrorStatement =&gt; 1,
</span><span class="cx">                        HandleError =&gt; \&amp;_handle_error,
</span><span class="cx">                        TaintIn =&gt; 1,
</span><del>-                       FetchHashKeyName =&gt; 'NAME',  
-                       # Note: NAME_lc causes crash on ActiveState Perl
-                       # 5.8.4 (see Bug 253696)
-                       # XXX - This will likely cause problems in DB
-                       # back ends that twiddle column case (Oracle?)
</del><ins>+                       # See https://rt.perl.org/rt3/Public/Bug/Display.html?id=30933
+                       # for the reason to use NAME instead of NAME_lc (bug 253696).
+                       FetchHashKeyName =&gt; 'NAME',
</ins><span class="cx">                      };
</span><span class="cx"> 
</span><span class="cx">     if ($override_attrs) {
</span><span class="lines">@@ -1342,7 +1352,7 @@
</span><span class="cx">             $self-&gt;_bz_add_table_raw('bz_schema');
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        print install_string('db_schema_init'), &quot;\n&quot;;
</del><ins>+        say install_string('db_schema_init');
</ins><span class="cx">         my $sth = $self-&gt;prepare(&quot;INSERT INTO bz_schema &quot;
</span><span class="cx">                                  .&quot; (schema_data, version) VALUES (?,?)&quot;);
</span><span class="cx">         $sth-&gt;bind_param(1, $store_me, $self-&gt;BLOB_TYPE);
</span><span class="lines">@@ -1383,14 +1393,19 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{private_real_schema} if exists $self-&gt;{private_real_schema};
</span><span class="cx"> 
</span><del>-    my ($data, $version) = $self-&gt;selectrow_array(
-        &quot;SELECT schema_data, version FROM bz_schema&quot;);
</del><ins>+    my $bz_schema;
+    unless ($bz_schema = Bugzilla-&gt;memcached-&gt;get({ key =&gt; 'bz_schema' })) {
+        $bz_schema = $self-&gt;selectrow_arrayref(
+            &quot;SELECT schema_data, version FROM bz_schema&quot;
+        );
+        Bugzilla-&gt;memcached-&gt;set({ key =&gt; 'bz_schema', value =&gt; $bz_schema });
+    }
</ins><span class="cx"> 
</span><span class="cx">     (die &quot;_bz_real_schema tried to read the bz_schema table but it's empty!&quot;)
</span><del>-        if !$data;
</del><ins>+        if !$bz_schema;
</ins><span class="cx"> 
</span><del>-    $self-&gt;{private_real_schema} = 
-        $self-&gt;_bz_schema-&gt;deserialize_abstract($data, $version);
</del><ins>+    $self-&gt;{private_real_schema} =
+        $self-&gt;_bz_schema-&gt;deserialize_abstract($bz_schema-&gt;[0], $bz_schema-&gt;[1]);
</ins><span class="cx"> 
</span><span class="cx">     return $self-&gt;{private_real_schema};
</span><span class="cx"> }
</span><span class="lines">@@ -1432,6 +1447,8 @@
</span><span class="cx">     $sth-&gt;bind_param(1, $store_me, $self-&gt;BLOB_TYPE);
</span><span class="cx">     $sth-&gt;bind_param(2, $schema_version);
</span><span class="cx">     $sth-&gt;execute();
</span><ins>+
+    Bugzilla-&gt;memcached-&gt;clear({ key =&gt; 'bz_schema' });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # For bz_populate_enum_tables
</span><span class="lines">@@ -1518,7 +1535,7 @@
</span><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><del>-Bugzilla::DB - Database access routines, using L&lt;DBI&gt;
</del><ins>+Bugzilla::DB - Database access routines, using L&lt;DBI|https://metacpan.org/pod/DBI&gt;
</ins><span class="cx"> 
</span><span class="cx"> =head1 SYNOPSIS
</span><span class="cx"> 
</span><span class="lines">@@ -1779,7 +1796,7 @@
</span><span class="cx"> then call C&lt;db_new()&gt; method of its super class to create a new
</span><span class="cx"> class instance. See L&lt;db_new&gt; description in this module. As per
</span><span class="cx"> DBI documentation, all class variables must be prefixed with
</span><del>-&quot;private_&quot;. See L&lt;DBI&gt;.
</del><ins>+&quot;private_&quot;. See L&lt;DBI|https://metacpan.org/pod/DBI&gt;.
</ins><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="lines">@@ -2022,6 +2039,73 @@
</span><span class="cx"> 
</span><span class="cx"> Just like L&lt;/sql_position&gt;, but case-insensitive.
</span><span class="cx"> 
</span><ins>+=item C&lt;sql_like&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Outputs SQL to search for an instance of a string (fragment)
+in a table column (column).
+
+Note that the fragment must not be quoted. L&lt;/sql_like&gt; will
+quote the fragment itself.
+
+This is a case sensitive search.
+
+Note: This does not necessarily generate an ANSI LIKE statement, but
+could be overridden to do so in a database subclass if required.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;$fragment&gt; - the string fragment that we are searching for (scalar)
+
+=item C&lt;$column&gt; - the column to search
+
+=back
+
+=item B&lt;Returns&gt;
+
+Formatted SQL to return results from columns that contain the fragment.
+
+=back
+
+=item C&lt;sql_ilike&gt;
+
+Just like L&lt;/sql_like&gt;, but case-insensitive.
+
+=item C&lt;sql_not_ilike&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Outputs SQL to search for columns (column) that I&lt;do not&gt; contain
+instances of the string (fragment).
+
+Note that the fragment must not be quoted. L&lt;/sql_not_ilike&gt; will
+quote the fragment itself.
+
+This is a case insensitive search.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;$fragment&gt; - the string fragment that we are searching for (scalar)
+
+=item C&lt;$column&gt; - the column to search
+
+=back
+
+=item B&lt;Returns&gt;
+
+Formated sql to return results from columns that do not contain the fragment
+
+=back
+
</ins><span class="cx"> =item C&lt;sql_group_by&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2250,7 +2334,8 @@
</span><span class="cx"> Returns the last serial number, usually from a previous INSERT.
</span><span class="cx"> 
</span><span class="cx"> Must be executed directly following the relevant INSERT.
</span><del>-This base implementation uses L&lt;DBI/last_insert_id&gt;. If the
</del><ins>+This base implementation uses DBI's
+L&lt;last_insert_id|https://metacpan.org/pod/DBI#last_insert_id&gt;. If the
</ins><span class="cx"> DBD supports it, it is the preffered way to obtain the last
</span><span class="cx"> serial index. If it is not supported, the DB-specific code
</span><span class="cx"> needs to override this function.
</span><span class="lines">@@ -2700,6 +2785,66 @@
</span><span class="cx"> 
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><del>-L&lt;DBI&gt;
</del><ins>+L&lt;DBI|https://metacpan.org/pod/DBI&gt;
</ins><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla::Constants/DB_MODULE&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item bz_add_fks
+
+=item bz_add_fk
+
+=item bz_drop_index_raw
+
+=item bz_table_info
+
+=item bz_add_index_raw
+
+=item bz_get_related_fks
+
+=item quote
+
+=item bz_drop_fk
+
+=item bz_drop_field_tables
+
+=item bz_drop_related_fks
+
+=item bz_table_columns
+
+=item bz_drop_foreign_keys
+
+=item bz_alter_column_raw
+
+=item bz_table_list_real
+
+=item bz_fk_info
+
+=item bz_setup_database
+
+=item bz_setup_foreign_keys
+
+=item bz_table_indexes
+
+=item bz_check_regexp
+
+=item bz_enum_initial_values
+
+=item bz_alter_fk
+
+=item bz_set_next_serial_value
+
+=item bz_table_list
+
+=item bz_table_columns_real
+
+=item bz_check_server_version
+
+=item bz_server_version
+
+=item bz_add_field_tables
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaErrorpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Error.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Error.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Error.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,23 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Error;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Exporter);
+
</ins><span class="cx"> @Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><del>-use Bugzilla::Util;
</del><ins>+use Bugzilla::Hook;
</ins><span class="cx"> 
</span><span class="cx"> use Carp;
</span><span class="cx"> use Data::Dumper;
</span><span class="lines">@@ -62,12 +49,13 @@
</span><span class="cx">     my $datadir = bz_locations()-&gt;{'datadir'};
</span><span class="cx">     # If a writable $datadir/errorlog exists, log error details there.
</span><span class="cx">     if (-w &quot;$datadir/errorlog&quot;) {
</span><ins>+        require Bugzilla::Util;
</ins><span class="cx">         require Data::Dumper;
</span><span class="cx">         my $mesg = &quot;&quot;;
</span><span class="cx">         for (1..75) { $mesg .= &quot;-&quot;; };
</span><span class="cx">         $mesg .= &quot;\n[$$] &quot; . time2str(&quot;%D %H:%M:%S &quot;, time());
</span><span class="cx">         $mesg .= &quot;$name $error &quot;;
</span><del>-        $mesg .= remote_ip();
</del><ins>+        $mesg .= Bugzilla::Util::remote_ip();
</ins><span class="cx">         $mesg .= Bugzilla-&gt;user-&gt;login;
</span><span class="cx">         $mesg .= (' actually ' . Bugzilla-&gt;sudoer-&gt;login) if Bugzilla-&gt;sudoer;
</span><span class="cx">         $mesg .= &quot;\n&quot;;
</span><span class="lines">@@ -86,7 +74,7 @@
</span><span class="cx">             $val = &quot;*****&quot; if $val =~ /password|http_pass/i;
</span><span class="cx">             $mesg .= &quot;[$$] &quot; . Data::Dumper-&gt;Dump([$val],[&quot;env($var)&quot;]);
</span><span class="cx">         }
</span><del>-        open(ERRORLOGFID, &quot;&gt;&gt;$datadir/errorlog&quot;);
</del><ins>+        open(ERRORLOGFID, &quot;&gt;&gt;&quot;, &quot;$datadir/errorlog&quot;);
</ins><span class="cx">         print ERRORLOGFID &quot;$mesg\n&quot;;
</span><span class="cx">         close ERRORLOGFID;
</span><span class="cx">     }
</span><span class="lines">@@ -103,13 +91,14 @@
</span><span class="cx"> 
</span><span class="cx">     # Let's call the hook first, so that extensions can override
</span><span class="cx">     # or extend the default behavior, or add their own error codes.
</span><del>-    require Bugzilla::Hook;
</del><span class="cx">     Bugzilla::Hook::process('error_catch', { error =&gt; $error, vars =&gt; $vars,
</span><span class="cx">                                              message =&gt; \$message });
</span><span class="cx"> 
</span><span class="cx">     if (Bugzilla-&gt;error_mode == ERROR_MODE_WEBPAGE) {
</span><del>-        print Bugzilla-&gt;cgi-&gt;header();
</del><ins>+        my $cgi = Bugzilla-&gt;cgi;
+        $cgi-&gt;close_standby_message('text/html', 'inline', 'error', 'html');
</ins><span class="cx">         print $message;
</span><ins>+        print $cgi-&gt;multipart_final() if $cgi-&gt;{_multipart_in_progress};
</ins><span class="cx">     }
</span><span class="cx">     elsif (Bugzilla-&gt;error_mode == ERROR_MODE_TEST) {
</span><span class="cx">         die Dumper($vars);
</span><span class="lines">@@ -118,7 +107,8 @@
</span><span class="cx">         die(&quot;$message\n&quot;);
</span><span class="cx">     }
</span><span class="cx">     elsif (Bugzilla-&gt;error_mode == ERROR_MODE_DIE_SOAP_FAULT
</span><del>-           || Bugzilla-&gt;error_mode == ERROR_MODE_JSON_RPC)
</del><ins>+           || Bugzilla-&gt;error_mode == ERROR_MODE_JSON_RPC
+           || Bugzilla-&gt;error_mode == ERROR_MODE_REST)
</ins><span class="cx">     {
</span><span class="cx">         # Clone the hash so we aren't modifying the constant.
</span><span class="cx">         my %error_map = %{ WS_ERROR_CODE() };
</span><span class="lines">@@ -135,13 +125,20 @@
</span><span class="cx">         }
</span><span class="cx">         else {
</span><span class="cx">             my $server = Bugzilla-&gt;_json_server;
</span><ins>+
+            my $status_code = 0;
+            if (Bugzilla-&gt;error_mode == ERROR_MODE_REST) {
+                my %status_code_map = %{ REST_STATUS_CODE_MAP() };
+                $status_code = $status_code_map{$code} || $status_code_map{'_default'};
+            }
</ins><span class="cx">             # Technically JSON-RPC isn't allowed to have error numbers
</span><span class="cx">             # higher than 999, but we do this to avoid conflicts with
</span><span class="cx">             # the internal JSON::RPC error codes.
</span><del>-            $server-&gt;raise_error(code    =&gt; 100000 + $code,
-                                 message =&gt; $message,
-                                 id      =&gt; $server-&gt;{_bz_request_id},
-                                 version =&gt; $server-&gt;version);
</del><ins>+            $server-&gt;raise_error(code        =&gt; 100000 + $code,
+                                 status_code =&gt; $status_code,
+                                 message     =&gt; $message,
+                                 id          =&gt; $server-&gt;{_bz_request_id},
+                                 version     =&gt; $server-&gt;version);
</ins><span class="cx">             # Most JSON-RPC Throw*Error calls happen within an eval inside
</span><span class="cx">             # of JSON::RPC. So, in that circumstance, instead of exiting,
</span><span class="cx">             # we die with no message. JSON::RPC checks raise_error before
</span><span class="lines">@@ -191,27 +188,23 @@
</span><span class="cx">     # Try a template first; but if this one fails too, fall back
</span><span class="cx">     # on plain old print statements.
</span><span class="cx">     if (!$template-&gt;process(&quot;global/code-error.html.tmpl&quot;, $vars)) {
</span><ins>+        require Bugzilla::Util;
+        import Bugzilla::Util qw(html_quote);
</ins><span class="cx">         my $maintainer = Bugzilla-&gt;params-&gt;{'maintainer'};
</span><span class="cx">         my $error = html_quote($vars-&gt;{'template_error_msg'});
</span><span class="cx">         my $error2 = html_quote($template-&gt;error());
</span><ins>+        my $url = html_quote(Bugzilla-&gt;cgi-&gt;self_url);
+
</ins><span class="cx">         print &lt;&lt;END;
</span><del>-        &lt;tt&gt;
</del><span class="cx">           &lt;p&gt;
</span><span class="cx">             Bugzilla has suffered an internal error. Please save this page and 
</span><span class="cx">             send it to $maintainer with details of what you were doing at the 
</span><span class="cx">             time this message appeared.
</span><span class="cx">           &lt;/p&gt;
</span><del>-          &lt;script type=&quot;text/javascript&quot;&gt; &lt;!--
-          document.write(&quot;&lt;p&gt;URL: &quot; + 
-                          document.location.href.replace(/&amp;/g,&quot;&amp;amp;&quot;)
-                                                .replace(/&lt;/g,&quot;&amp;lt;&quot;)
-                                                .replace(/&gt;/g,&quot;&amp;gt;&quot;) + &quot;&lt;/p&gt;&quot;);
-          // --&gt;
-          &lt;/script&gt;
</del><ins>+          &lt;p&gt;URL: $url&lt;/p&gt;
</ins><span class="cx">           &lt;p&gt;Template-&gt;process() failed twice.&lt;br&gt;
</span><span class="cx">           First error: $error&lt;br&gt;
</span><span class="cx">           Second error: $error2&lt;/p&gt;
</span><del>-        &lt;/tt&gt;
</del><span class="cx"> END
</span><span class="cx">     }
</span><span class="cx">     exit;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaExtensionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Extension.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Extension.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developers are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -252,7 +241,7 @@
</span><span class="cx"> 
</span><span class="cx">  package Bugzilla::Extension::Foo
</span><span class="cx">  use strict;
</span><del>- use base qw(Bugzilla::Extension);
</del><ins>+ use parent qw(Bugzilla::Extension);
</ins><span class="cx"> 
</span><span class="cx">  our $VERSION = '0.02';
</span><span class="cx">  use constant NAME =&gt; 'Foo';
</span><span class="lines">@@ -662,6 +651,21 @@
</span><span class="cx"> extension was called F&lt;Foo&gt;, your file would go into 
</span><span class="cx"> F&lt;extensions/Foo/web/style.css&gt;.
</span><span class="cx"> 
</span><ins>+=head2 Documenting Extensions
+
+Documentation goes in F&lt;extensions/Foo/docs/en/rst/&gt;, if it's in English, or
+change &quot;en&quot; to something else if it's not. The user documentation index file
+must be called index-user.rst; the admin documentation must be called
+index-admin.rst. These will end up in the User Guide and the Administration
+Guide respectively. Both documentation types are optional. You can use various
+Sphinx constructs such as :toctree: or :include: to include further reST files
+if you need more than one page of docs.
+
+When documenting extensions to the Bugzilla API, if your extension provides
+them, the index file would be F&lt;extensions/Foo/docs/en/rst/api/v1/index.rst&gt;.
+When and if your API has more than one version, increment the version number.
+These docs will get included in the WebService API Reference.
+
</ins><span class="cx"> =head2 Disabling Your Extension
</span><span class="cx"> 
</span><span class="cx"> If you want your extension to be totally ignored by Bugzilla (it will
</span><span class="lines">@@ -821,3 +825,13 @@
</span><span class="cx"> 
</span><span class="cx"> Calls L&lt;/load&gt; for every enabled extension installed into Bugzilla,
</span><span class="cx"> and returns an arrayref of all the package names that were loaded.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item modify_inc
+
+=item my_inc
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaFieldChoicepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Field/Choice.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Field/Choice.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Field/Choice.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is NASA.
-# Portions created by NASA are Copyright (C) 2006 San Jose State
-# University Foundation. All Rights Reserved.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Greg Hendricks &lt;ghendricks@novell.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Field::Choice;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Field::Choice;
</del><ins>+use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Config qw(SetParam write_params);
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -37,6 +25,8 @@
</span><span class="cx"> # Initialization #
</span><span class="cx"> ##################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_COLUMNS =&gt; qw(
</span><span class="cx">     id
</span><span class="cx">     value
</span><span class="lines">@@ -90,8 +80,10 @@
</span><span class="cx">     my $field_obj = blessed $field ? $field : Bugzilla::Field-&gt;check($field);
</span><span class="cx">     my $field_name = $field_obj-&gt;name;
</span><span class="cx"> 
</span><del>-    if ($class-&gt;CLASS_MAP-&gt;{$field_name}) {
-        return $class-&gt;CLASS_MAP-&gt;{$field_name};
</del><ins>+    if (my $package = $class-&gt;CLASS_MAP-&gt;{$field_name}) {
+        # Callers expect the module to be already loaded.
+        eval &quot;require $package&quot;;
+        return $package;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # For generic classes, we use a lowercase class name, so as
</span><span class="lines">@@ -106,7 +98,7 @@
</span><span class="cx">     if (!defined *{&quot;${package}::DB_TABLE&quot;}) {
</span><span class="cx">         eval &lt;&lt;EOC;
</span><span class="cx">             package $package;
</span><del>-            use base qw(Bugzilla::Field::Choice);
</del><ins>+            use parent qw(Bugzilla::Field::Choice);
</ins><span class="cx">             use constant DB_TABLE =&gt; '$field_name';
</span><span class="cx"> EOC
</span><span class="cx">     }
</span><span class="lines">@@ -268,7 +260,7 @@
</span><span class="cx">     return 0 if !$value;
</span><span class="cx">     # Store for the error message in case detaint_natural clears it.
</span><span class="cx">     my $orig_value = $value;
</span><del>-    detaint_natural($value)
</del><ins>+    (detaint_natural($value) &amp;&amp; $value &lt;= MAX_SMALLINT)
</ins><span class="cx">         || ThrowUserError('fieldvalue_sortkey_invalid',
</span><span class="cx">                           { sortkey =&gt; $orig_value,
</span><span class="cx">                             field   =&gt; $invocant-&gt;field });
</span><span class="lines">@@ -345,3 +337,23 @@
</span><span class="cx"> 
</span><span class="cx"> This class implements mutators for all of the settable accessors in
</span><span class="cx"> L&lt;Bugzilla::Field::ChoiceInterface&gt;.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item create
+
+=item remove_from_db
+
+=item set_is_active
+
+=item set_sortkey
+
+=item set_name
+
+=item update
+
+=item set_visibility_value
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaFieldChoiceInterfacepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Field/ChoiceInterface.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Field/ChoiceInterface.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Field/ChoiceInterface.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is NASA.
-# Portions created by NASA are Copyright (C) 2006 San Jose State
-# University Foundation. All Rights Reserved.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Greg Hendricks &lt;ghendricks@novell.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Field::ChoiceInterface;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -283,3 +272,13 @@
</span><span class="cx"> Returns C&lt;0&gt; otherwise.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item FIELD_NAME
+
+=item controlled_values_array
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaFieldpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Field.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Field.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Field.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Greg Hendricks &lt;ghendricks@novell.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -47,7 +35,7 @@
</span><span class="cx">   # Instantiate a Field object for an existing field.
</span><span class="cx">   my $field = new Bugzilla::Field({name =&gt; 'qacontact_accessible'});
</span><span class="cx">   if ($field-&gt;obsolete) {
</span><del>-      print $field-&gt;description . &quot; is obsolete\n&quot;;
</del><ins>+      say $field-&gt;description . &quot; is obsolete&quot;;
</ins><span class="cx">   }
</span><span class="cx"> 
</span><span class="cx">   # Validation Routines
</span><span class="lines">@@ -69,9 +57,11 @@
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::Field;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Exporter Bugzilla::Object);
</del><ins>+use parent qw(Exporter Bugzilla::Object);
</ins><span class="cx"> @Bugzilla::Field::EXPORT = qw(check_field get_field_id get_legal_field_values);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -85,6 +75,8 @@
</span><span class="cx"> ####    Initialization     ####
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_TABLE   =&gt; 'fielddefs';
</span><span class="cx"> use constant LIST_ORDER =&gt; 'sortkey, name';
</span><span class="cx"> 
</span><span class="lines">@@ -92,6 +84,7 @@
</span><span class="cx">     id
</span><span class="cx">     name
</span><span class="cx">     description
</span><ins>+    long_desc
</ins><span class="cx">     type
</span><span class="cx">     custom
</span><span class="cx">     mailhead
</span><span class="lines">@@ -109,6 +102,7 @@
</span><span class="cx"> use constant VALIDATORS =&gt; {
</span><span class="cx">     custom       =&gt; \&amp;_check_custom,
</span><span class="cx">     description  =&gt; \&amp;_check_description,
</span><ins>+    long_desc    =&gt; \&amp;_check_long_desc,
</ins><span class="cx">     enter_bug    =&gt; \&amp;_check_enter_bug,
</span><span class="cx">     buglist      =&gt; \&amp;Bugzilla::Object::check_boolean,
</span><span class="cx">     mailhead     =&gt; \&amp;_check_mailhead,
</span><span class="lines">@@ -135,6 +129,7 @@
</span><span class="cx"> 
</span><span class="cx"> use constant UPDATE_COLUMNS =&gt; qw(
</span><span class="cx">     description
</span><ins>+    long_desc
</ins><span class="cx">     mailhead
</span><span class="cx">     sortkey
</span><span class="cx">     obsolete
</span><span class="lines">@@ -159,7 +154,9 @@
</span><span class="cx">     FIELD_TYPE_TEXTAREA,      { TYPE =&gt; 'MEDIUMTEXT', 
</span><span class="cx">                                 NOTNULL =&gt; 1, DEFAULT =&gt; &quot;''&quot;},
</span><span class="cx">     FIELD_TYPE_DATETIME,      { TYPE =&gt; 'DATETIME'   },
</span><ins>+    FIELD_TYPE_DATE,          { TYPE =&gt; 'DATE'       },
</ins><span class="cx">     FIELD_TYPE_BUG_ID,        { TYPE =&gt; 'INT3'       },
</span><ins>+    FIELD_TYPE_INTEGER,       { TYPE =&gt; 'INT4',  NOTNULL =&gt; 1, DEFAULT =&gt; 0 },
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Field definitions for the fields that ship with Bugzilla.
</span><span class="lines">@@ -205,11 +202,17 @@
</span><span class="cx">      buglist =&gt; 1},
</span><span class="cx">     {name =&gt; 'qa_contact',   desc =&gt; 'QAContact',  in_new_bugmail =&gt; 1,
</span><span class="cx">      buglist =&gt; 1},
</span><ins>+    {name =&gt; 'assigned_to_realname',  desc =&gt; 'AssignedToName',
+     in_new_bugmail =&gt; 0, buglist =&gt; 1},
+    {name =&gt; 'reporter_realname',     desc =&gt; 'ReportedByName',
+     in_new_bugmail =&gt; 0, buglist =&gt; 1},
+    {name =&gt; 'qa_contact_realname',   desc =&gt; 'QAContactName',
+     in_new_bugmail =&gt; 0, buglist =&gt; 1},
</ins><span class="cx">     {name =&gt; 'cc',           desc =&gt; 'CC',         in_new_bugmail =&gt; 1},
</span><span class="cx">     {name =&gt; 'dependson',    desc =&gt; 'Depends on', in_new_bugmail =&gt; 1,
</span><del>-     is_numeric =&gt; 1},
</del><ins>+     is_numeric =&gt; 1, buglist =&gt; 1},
</ins><span class="cx">     {name =&gt; 'blocked',      desc =&gt; 'Blocks',     in_new_bugmail =&gt; 1,
</span><del>-     is_numeric =&gt; 1},
</del><ins>+     is_numeric =&gt; 1, buglist =&gt; 1},
</ins><span class="cx"> 
</span><span class="cx">     {name =&gt; 'attachments.description', desc =&gt; 'Attachment description'},
</span><span class="cx">     {name =&gt; 'attachments.filename',    desc =&gt; 'Attachment filename'},
</span><span class="lines">@@ -223,7 +226,7 @@
</span><span class="cx">     {name =&gt; 'attachments.submitter',   desc =&gt; 'Attachment creator'},
</span><span class="cx"> 
</span><span class="cx">     {name =&gt; 'target_milestone',      desc =&gt; 'Target Milestone',
</span><del>-     buglist =&gt; 1},
</del><ins>+     in_new_bugmail =&gt; 1, buglist =&gt; 1},
</ins><span class="cx">     {name =&gt; 'creation_ts',           desc =&gt; 'Creation date',
</span><span class="cx">      buglist =&gt; 1},
</span><span class="cx">     {name =&gt; 'delta_ts',              desc =&gt; 'Last changed date',
</span><span class="lines">@@ -260,7 +263,11 @@
</span><span class="cx">     {name =&gt; &quot;owner_idle_time&quot;,       desc =&gt; &quot;Time Since Assignee Touched&quot;},
</span><span class="cx">     {name =&gt; 'see_also',              desc =&gt; &quot;See Also&quot;,
</span><span class="cx">      type =&gt; FIELD_TYPE_BUG_URLS},
</span><del>-    {name =&gt; 'tag',                   desc =&gt; 'Tags'},
</del><ins>+    {name =&gt; 'tag',                   desc =&gt; 'Personal Tags', buglist =&gt; 1,
+     type =&gt; FIELD_TYPE_KEYWORDS},
+    {name =&gt; 'last_visit_ts',         desc =&gt; 'Last Visit', buglist =&gt; 1,
+     type =&gt; FIELD_TYPE_DATETIME},
+    {name =&gt; 'comment_tag',           desc =&gt; 'Comment Tag'},
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> ################
</span><span class="lines">@@ -290,6 +297,15 @@
</span><span class="cx">     return $desc;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _check_long_desc {
+    my ($invocant, $long_desc) = @_;
+    $long_desc = clean_text($long_desc || '');
+    if (length($long_desc) &gt; MAX_FIELD_LONG_DESC_LENGTH) {
+        ThrowUserError('field_long_desc_too_long');
+    }
+    return $long_desc;
+}
+
</ins><span class="cx"> sub _check_enter_bug { return $_[1] ? 1 : 0; }
</span><span class="cx"> 
</span><span class="cx"> sub _check_is_numeric {
</span><span class="lines">@@ -347,9 +363,7 @@
</span><span class="cx"> sub _check_type {
</span><span class="cx">     my ($invocant, $type, undef, $params) = @_;
</span><span class="cx">     my $saved_type = $type;
</span><del>-    # The constant here should be updated every time a new,
-    # higher field type is added.
-    (detaint_natural($type) &amp;&amp; $type &lt;= FIELD_TYPE_KEYWORDS)
</del><ins>+    (detaint_natural($type) &amp;&amp; $type &lt; FIELD_TYPE_HIGHEST_PLUS_ONE)
</ins><span class="cx">       || ThrowCodeError('invalid_customfield_type', { type =&gt; $saved_type });
</span><span class="cx"> 
</span><span class="cx">     my $custom = blessed($invocant) ? $invocant-&gt;custom : $params-&gt;{custom};
</span><span class="lines">@@ -452,6 +466,18 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><ins>+=item C&lt;long_desc&gt;
+
+A string providing detailed info about the field;
+
+=back
+
+=cut
+
+sub long_desc { return $_[0]-&gt;{long_desc} }
+
+=over
+
</ins><span class="cx"> =item C&lt;type&gt;
</span><span class="cx"> 
</span><span class="cx"> an integer specifying the kind of field this is; values correspond to
</span><span class="lines">@@ -835,6 +861,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;set_description&gt;
</span><span class="cx"> 
</span><ins>+=item C&lt;set_long_desc&gt;
+
</ins><span class="cx"> =item C&lt;set_enter_bug&gt;
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;set_obsolete&gt;
</span><span class="lines">@@ -861,6 +889,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub set_description    { $_[0]-&gt;set('description', $_[1]); }
</span><ins>+sub set_long_desc      { $_[0]-&gt;set('long_desc',   $_[1]); }
</ins><span class="cx"> sub set_enter_bug      { $_[0]-&gt;set('enter_bug',   $_[1]); }
</span><span class="cx"> sub set_is_numeric     { $_[0]-&gt;set('is_numeric',  $_[1]); }
</span><span class="cx"> sub set_obsolete       { $_[0]-&gt;set('obsolete',    $_[1]); }
</span><span class="lines">@@ -935,7 +964,10 @@
</span><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         $bugs_query = &quot;SELECT COUNT(*) FROM bugs WHERE $name IS NOT NULL&quot;;
</span><del>-        if ($self-&gt;type != FIELD_TYPE_BUG_ID &amp;&amp; $self-&gt;type != FIELD_TYPE_DATETIME) {
</del><ins>+        if ($self-&gt;type != FIELD_TYPE_BUG_ID
+            &amp;&amp; $self-&gt;type != FIELD_TYPE_DATE
+            &amp;&amp; $self-&gt;type != FIELD_TYPE_DATETIME)
+        {
</ins><span class="cx">             $bugs_query .= &quot; AND $name != ''&quot;;
</span><span class="cx">         }
</span><span class="cx">         # Ignore the default single select value
</span><span class="lines">@@ -950,7 +982,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Once we reach here, we should be OK to delete.
</span><del>-    $dbh-&gt;do('DELETE FROM fielddefs WHERE id = ?', undef, $self-&gt;id);
</del><ins>+    $self-&gt;SUPER::remove_from_db();
</ins><span class="cx"> 
</span><span class="cx">     my $type = $self-&gt;type;
</span><span class="cx"> 
</span><span class="lines">@@ -983,6 +1015,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;description&gt; B&lt;Required&gt; - The field label to display in the UI.
</span><span class="cx"> 
</span><ins>+=item C&lt;long_desc&gt; - A longer description of the field.
+
</ins><span class="cx"> =item C&lt;mailhead&gt; - boolean - Whether this field appears at the
</span><span class="cx"> top of the bugmail for a newly-filed bug. Defaults to 0.
</span><span class="cx"> 
</span><span class="lines">@@ -1031,6 +1065,7 @@
</span><span class="cx">     $field-&gt;_update_visibility_values();
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx"> 
</span><span class="cx">     if ($field-&gt;custom) {
</span><span class="cx">         my $name = $field-&gt;name;
</span><span class="lines">@@ -1053,6 +1088,9 @@
</span><span class="cx">         # Restore the original obsolete state of the custom field.
</span><span class="cx">         $dbh-&gt;do('UPDATE fielddefs SET obsolete = 0 WHERE id = ?', undef, $field-&gt;id)
</span><span class="cx">           unless $is_obsolete;
</span><ins>+
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'fielddefs', id =&gt; $field-&gt;id });
+        Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return $field;
</span><span class="lines">@@ -1066,6 +1104,7 @@
</span><span class="cx">         $dbh-&gt;do(&quot;UPDATE &quot; . $self-&gt;name . &quot; SET visibility_value_id = NULL&quot;);
</span><span class="cx">     }
</span><span class="cx">     $self-&gt;_update_visibility_values();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1183,8 +1222,8 @@
</span><span class="cx">                               undef, $field_description);
</span><span class="cx"> 
</span><span class="cx">     if ($old_field_id &amp;&amp; ($old_field_name ne $new_field_name)) {
</span><del>-        print &quot;SQL fragment found in the 'fielddefs' table...\n&quot;;
-        print &quot;Old field name: &quot; . $old_field_name . &quot;\n&quot;;
</del><ins>+        say &quot;SQL fragment found in the 'fielddefs' table...&quot;;
+        say &quot;Old field name: $old_field_name&quot;;
</ins><span class="cx">         # We have to fix saved searches first. Queries have been escaped
</span><span class="cx">         # before being saved. We have to do the same here to find them.
</span><span class="cx">         $old_field_name = url_quote($old_field_name);
</span><span class="lines">@@ -1221,8 +1260,8 @@
</span><span class="cx">             $sth_UpdateSeries-&gt;execute($query, $series_id);
</span><span class="cx">         }
</span><span class="cx">         # Now that saved searches have been fixed, we can fix the field name.
</span><del>-        print &quot;Fixing the 'fielddefs' table...\n&quot;;
-        print &quot;New field name: &quot; . $new_field_name . &quot;\n&quot;;
</del><ins>+        say &quot;Fixing the 'fielddefs' table...&quot;;
+        say &quot;New field name: $new_field_name&quot;;
</ins><span class="cx">         $dbh-&gt;do('UPDATE fielddefs SET name = ? WHERE id = ?',
</span><span class="cx">                   undef, ($new_field_name, $old_field_id));
</span><span class="cx">     }
</span><span class="lines">@@ -1303,7 +1342,7 @@
</span><span class="cx"> Description: Returns the ID of the specified field name and throws
</span><span class="cx">              an error if this field does not exist.
</span><span class="cx"> 
</span><del>-Params:      $name - a field name
</del><ins>+Params:      $fieldname - a field name
</ins><span class="cx"> 
</span><span class="cx"> Returns:     the corresponding field ID or an error if the field name
</span><span class="cx">              does not exist.
</span><span class="lines">@@ -1313,17 +1352,24 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> sub get_field_id {
</span><del>-    my ($name) = @_;
-    my $dbh = Bugzilla-&gt;dbh;
</del><ins>+    my $field = Bugzilla-&gt;fields({ by_name =&gt; 1 })-&gt;{$_[0]}
+      or ThrowCodeError('invalid_field_name', {field =&gt; $_[0]});
</ins><span class="cx"> 
</span><del>-    trick_taint($name);
-    my $id = $dbh-&gt;selectrow_array('SELECT id FROM fielddefs
-                                    WHERE name = ?', undef, $name);
-
-    ThrowCodeError('invalid_field_name', {field =&gt; $name}) unless $id;
-    return $id
</del><ins>+    return $field-&gt;id;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item match
+
+=item set_is_numeric
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaFlagpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Flag.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Flag.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Flag.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Flag;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Flag;
-
</del><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="cx"> Bugzilla::Flag - A module to deal with Bugzilla flag values.
</span><span class="lines">@@ -65,7 +51,7 @@
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object Exporter);
</del><ins>+use parent qw(Bugzilla::Object Exporter);
</ins><span class="cx"> @Bugzilla::Flag::EXPORT = qw(SKIP_REQUESTEE_ON_ERROR);
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -81,15 +67,21 @@
</span><span class="cx"> 
</span><span class="cx"> use constant SKIP_REQUESTEE_ON_ERROR =&gt; 1;
</span><span class="cx"> 
</span><del>-use constant DB_COLUMNS =&gt; qw(
-    id
-    type_id
-    bug_id
-    attach_id
-    requestee_id
-    setter_id
-    status
-);
</del><ins>+sub DB_COLUMNS {
+    my $dbh = Bugzilla-&gt;dbh;
+    return qw(
+        id
+        type_id
+        bug_id
+        attach_id
+        requestee_id
+        setter_id
+        status), 
+        $dbh-&gt;sql_date_format('creation_date', '%Y.%m.%d %H:%i:%s') .
+                              ' AS creation_date', 
+        $dbh-&gt;sql_date_format('modification_date', '%Y.%m.%d %H:%i:%s') .
+                              ' AS modification_date';
+}
</ins><span class="cx"> 
</span><span class="cx"> use constant UPDATE_COLUMNS =&gt; qw(
</span><span class="cx">     requestee_id
</span><span class="lines">@@ -134,6 +126,14 @@
</span><span class="cx"> 
</span><span class="cx"> Returns the status '+', '-', '?' of the flag.
</span><span class="cx"> 
</span><ins>+=item C&lt;creation_date&gt;
+
+Returns the timestamp when the flag was created.
+
+=item C&lt;modification_date&gt;
+
+Returns the timestamp when the flag was last modified.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><span class="lines">@@ -146,6 +146,8 @@
</span><span class="cx"> sub status       { return $_[0]-&gt;{'status'};       }
</span><span class="cx"> sub setter_id    { return $_[0]-&gt;{'setter_id'};    }
</span><span class="cx"> sub requestee_id { return $_[0]-&gt;{'requestee_id'}; }
</span><ins>+sub creation_date     { return $_[0]-&gt;{'creation_date'};     }
+sub modification_date { return $_[0]-&gt;{'modification_date'}; }
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####       Methods         ####
</span><span class="lines">@@ -180,15 +182,13 @@
</span><span class="cx"> sub type {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><del>-    $self-&gt;{'type'} ||= new Bugzilla::FlagType($self-&gt;{'type_id'});
-    return $self-&gt;{'type'};
</del><ins>+    return $self-&gt;{'type'} ||= new Bugzilla::FlagType($self-&gt;{'type_id'});
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub setter {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><del>-    $self-&gt;{'setter'} ||= new Bugzilla::User($self-&gt;{'setter_id'});
-    return $self-&gt;{'setter'};
</del><ins>+    return $self-&gt;{'setter'} ||= new Bugzilla::User({ id =&gt; $self-&gt;{'setter_id'}, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub requestee {
</span><span class="lines">@@ -195,7 +195,7 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><span class="cx">     if (!defined $self-&gt;{'requestee'} &amp;&amp; $self-&gt;{'requestee_id'}) {
</span><del>-        $self-&gt;{'requestee'} = new Bugzilla::User($self-&gt;{'requestee_id'});
</del><ins>+        $self-&gt;{'requestee'} = new Bugzilla::User({ id =&gt; $self-&gt;{'requestee_id'}, cache =&gt; 1 });
</ins><span class="cx">     }
</span><span class="cx">     return $self-&gt;{'requestee'};
</span><span class="cx"> }
</span><span class="lines">@@ -205,8 +205,8 @@
</span><span class="cx">     return undef unless $self-&gt;attach_id;
</span><span class="cx"> 
</span><span class="cx">     require Bugzilla::Attachment;
</span><del>-    $self-&gt;{'attachment'} ||= new Bugzilla::Attachment($self-&gt;attach_id);
-    return $self-&gt;{'attachment'};
</del><ins>+    return $self-&gt;{'attachment'}
+      ||= new Bugzilla::Attachment({ id =&gt; $self-&gt;attach_id, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub bug {
</span><span class="lines">@@ -213,8 +213,7 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><span class="cx">     require Bugzilla::Bug;
</span><del>-    $self-&gt;{'bug'} ||= new Bugzilla::Bug($self-&gt;bug_id);
-    return $self-&gt;{'bug'};
</del><ins>+    return $self-&gt;{'bug'} ||= new Bugzilla::Bug({ id =&gt; $self-&gt;bug_id, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ################################
</span><span class="lines">@@ -284,7 +283,7 @@
</span><span class="cx"> sub set_flag {
</span><span class="cx">     my ($class, $obj, $params) = @_;
</span><span class="cx"> 
</span><del>-    my ($bug, $attachment);
</del><ins>+    my ($bug, $attachment, $obj_flag, $requestee_changed);
</ins><span class="cx">     if (blessed($obj) &amp;&amp; $obj-&gt;isa('Bugzilla::Attachment')) {
</span><span class="cx">         $attachment = $obj;
</span><span class="cx">         $bug = $attachment-&gt;bug;
</span><span class="lines">@@ -296,6 +295,12 @@
</span><span class="cx">         ThrowCodeError('flag_unexpected_object', { 'caller' =&gt; ref $obj });
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Make sure the user can change flags
+    my $privs;
+    $bug-&gt;check_can_change_field('flagtypes.name', 0, 1, \$privs)
+        || ThrowUserError('illegal_change',
+                          { field =&gt; 'flagtypes.name', privs =&gt; $privs });
+
</ins><span class="cx">     # Update (or delete) an existing flag.
</span><span class="cx">     if ($params-&gt;{id}) {
</span><span class="cx">         my $flag = $class-&gt;check({ id =&gt; $params-&gt;{id} });
</span><span class="lines">@@ -322,13 +327,14 @@
</span><span class="cx">             ($obj_flagtype) = grep { $_-&gt;id == $flag-&gt;type_id } @{$obj-&gt;flag_types};
</span><span class="cx">             push(@{$obj_flagtype-&gt;{flags}}, $flag);
</span><span class="cx">         }
</span><del>-        my ($obj_flag) = grep { $_-&gt;id == $flag-&gt;id } @{$obj_flagtype-&gt;{flags}};
</del><ins>+        ($obj_flag) = grep { $_-&gt;id == $flag-&gt;id } @{$obj_flagtype-&gt;{flags}};
</ins><span class="cx">         # If the flag has the correct type but cannot be found above, this means
</span><span class="cx">         # the flag is going to be removed (e.g. because this is a pending request
</span><span class="cx">         # and the attachment is being marked as obsolete).
</span><span class="cx">         return unless $obj_flag;
</span><span class="cx"> 
</span><del>-        $class-&gt;_validate($obj_flag, $obj_flagtype, $params, $bug, $attachment);
</del><ins>+        ($obj_flag, $requestee_changed) =
+            $class-&gt;_validate($obj_flag, $obj_flagtype, $params, $bug, $attachment);
</ins><span class="cx">     }
</span><span class="cx">     # Create a new flag.
</span><span class="cx">     elsif ($params-&gt;{type_id}) {
</span><span class="lines">@@ -360,12 +366,21 @@
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $class-&gt;_validate(undef, $obj_flagtype, $params, $bug, $attachment);
</del><ins>+        ($obj_flag, $requestee_changed) =
+            $class-&gt;_validate(undef, $obj_flagtype, $params, $bug, $attachment);
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         ThrowCodeError('param_required', { function =&gt; $class . '-&gt;set_flag',
</span><span class="cx">                                            param    =&gt; 'id/type_id' });
</span><span class="cx">     }
</span><ins>+
+    if ($obj_flag
+        &amp;&amp; $requestee_changed
+        &amp;&amp; $obj_flag-&gt;requestee_id
+        &amp;&amp; $obj_flag-&gt;requestee-&gt;setting('requestee_cc') eq 'on')
+    {
+        $bug-&gt;add_cc($obj_flag-&gt;requestee);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _validate {
</span><span class="lines">@@ -383,14 +398,14 @@
</span><span class="cx">     my $old_requestee_id = $obj_flag-&gt;requestee_id;
</span><span class="cx"> 
</span><span class="cx">     $obj_flag-&gt;_set_status($params-&gt;{status});
</span><del>-    $obj_flag-&gt;_set_requestee($params-&gt;{requestee}, $attachment, $params-&gt;{skip_roe});
</del><ins>+    $obj_flag-&gt;_set_requestee($params-&gt;{requestee}, $bug, $attachment, $params-&gt;{skip_roe});
</ins><span class="cx"> 
</span><ins>+    # The requestee ID can be undefined.
+    my $requestee_changed = ($obj_flag-&gt;requestee_id || 0) != ($old_requestee_id || 0);
+
</ins><span class="cx">     # The setter field MUST NOT be updated if neither the status
</span><span class="cx">     # nor the requestee fields changed.
</span><del>-    if (($obj_flag-&gt;status ne $old_status)
-        # The requestee ID can be undefined.
-        || (($obj_flag-&gt;requestee_id || 0) != ($old_requestee_id || 0)))
-    {
</del><ins>+    if (($obj_flag-&gt;status ne $old_status) || $requestee_changed) {
</ins><span class="cx">         $obj_flag-&gt;_set_setter($params-&gt;{setter});
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -397,11 +412,13 @@
</span><span class="cx">     # If the flag is deleted, remove it from the list.
</span><span class="cx">     if ($obj_flag-&gt;status eq 'X') {
</span><span class="cx">         @{$flag_type-&gt;{flags}} = grep { $_-&gt;id != $obj_flag-&gt;id } @{$flag_type-&gt;{flags}};
</span><ins>+        return;
</ins><span class="cx">     }
</span><span class="cx">     # Add the newly created flag to the list.
</span><span class="cx">     elsif (!$obj_flag-&gt;id) {
</span><span class="cx">         push(@{$flag_type-&gt;{flags}}, $obj_flag);
</span><span class="cx">     }
</span><ins>+    return wantarray ? ($obj_flag, $requestee_changed) : $obj_flag;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> =pod
</span><span class="lines">@@ -418,10 +435,14 @@
</span><span class="cx"> 
</span><span class="cx"> sub create {
</span><span class="cx">     my ($class, $flag, $timestamp) = @_;
</span><del>-    $timestamp ||= Bugzilla-&gt;dbh-&gt;selectrow_array('SELECT NOW()');
</del><ins>+    $timestamp ||= Bugzilla-&gt;dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</ins><span class="cx"> 
</span><span class="cx">     my $params = {};
</span><span class="cx">     my @columns = grep { $_ ne 'id' } $class-&gt;_get_db_columns;
</span><ins>+
+    # Some columns use date formatting so use alias instead
+    @columns = map { /\s+AS\s+(.*)$/ ? $1 : $_ } @columns;
+
</ins><span class="cx">     $params-&gt;{$_} = $flag-&gt;{$_} foreach @columns;
</span><span class="cx"> 
</span><span class="cx">     $params-&gt;{creation_date} = $params-&gt;{modification_date} = $timestamp;
</span><span class="lines">@@ -433,7 +454,7 @@
</span><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    my $timestamp = shift || $dbh-&gt;selectrow_array('SELECT NOW()');
</del><ins>+    my $timestamp = shift || $dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</ins><span class="cx"> 
</span><span class="cx">     my $changes = $self-&gt;SUPER::update(@_);
</span><span class="cx"> 
</span><span class="lines">@@ -440,6 +461,9 @@
</span><span class="cx">     if (scalar(keys %$changes)) {
</span><span class="cx">         $dbh-&gt;do('UPDATE flags SET modification_date = ? WHERE id = ?',
</span><span class="cx">                  undef, ($timestamp, $self-&gt;id));
</span><ins>+        $self-&gt;{'modification_date'} =
+          format_time($timestamp, '%Y.%m.%d %T', Bugzilla-&gt;local_timezone);
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'flags', id =&gt; $self-&gt;id });
</ins><span class="cx">     }
</span><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="lines">@@ -586,6 +610,7 @@
</span><span class="cx">         if ($is_retargetted) {
</span><span class="cx">             $dbh-&gt;do('UPDATE flags SET type_id = ? WHERE id = ?',
</span><span class="cx">                      undef, ($flag-&gt;type_id, $flag-&gt;id));
</span><ins>+            Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'flags', id =&gt; $flag-&gt;id });
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><span class="cx">             # Track deleted attachment flags.
</span><span class="lines">@@ -602,10 +627,10 @@
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><span class="cx"> sub _set_requestee {
</span><del>-    my ($self, $requestee, $attachment, $skip_requestee_on_error) = @_;
</del><ins>+    my ($self, $requestee, $bug, $attachment, $skip_requestee_on_error) = @_;
</ins><span class="cx"> 
</span><span class="cx">     $self-&gt;{requestee} =
</span><del>-      $self-&gt;_check_requestee($requestee, $attachment, $skip_requestee_on_error);
</del><ins>+      $self-&gt;_check_requestee($requestee, $bug, $attachment, $skip_requestee_on_error);
</ins><span class="cx"> 
</span><span class="cx">     $self-&gt;{requestee_id} =
</span><span class="cx">       $self-&gt;{requestee} ? $self-&gt;{requestee}-&gt;id : undef;
</span><span class="lines">@@ -627,7 +652,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _check_requestee {
</span><del>-    my ($self, $requestee, $attachment, $skip_requestee_on_error) = @_;
</del><ins>+    my ($self, $requestee, $bug, $attachment, $skip_requestee_on_error) = @_;
</ins><span class="cx"> 
</span><span class="cx">     # If the flag status is not &quot;?&quot;, then no requestee can be defined.
</span><span class="cx">     return undef if ($self-&gt;status ne '?');
</span><span class="lines">@@ -646,16 +671,29 @@
</span><span class="cx">         # Make sure the user didn't specify a requestee unless the flag
</span><span class="cx">         # is specifically requestable. For existing flags, if the requestee
</span><span class="cx">         # was set before the flag became specifically unrequestable, the
</span><del>-        # user can either remove him or leave him alone.
-        ThrowCodeError('flag_requestee_disabled', { type =&gt; $self-&gt;type })
</del><ins>+        # user can either remove them or leave them alone.
+        ThrowUserError('flag_type_requestee_disabled', { type =&gt; $self-&gt;type })
</ins><span class="cx">           if !$self-&gt;type-&gt;is_requesteeble;
</span><span class="cx"> 
</span><ins>+        # You can't ask a disabled account, as they don't have the ability to
+        # set the flag.
+        ThrowUserError('flag_requestee_disabled', { requestee =&gt; $requestee })
+          if !$requestee-&gt;is_enabled;
+
</ins><span class="cx">         # Make sure the requestee can see the bug.
</span><span class="cx">         # Note that can_see_bug() will query the DB, so if the bug
</span><span class="cx">         # is being added/removed from some groups and these changes
</span><span class="cx">         # haven't been committed to the DB yet, they won't be taken
</span><del>-        # into account here. In this case, old restrictions matters.
-        if (!$requestee-&gt;can_see_bug($self-&gt;bug_id)) {
</del><ins>+        # into account here. In this case, old group restrictions matter.
+        # However, if the user has just been changed to the assignee,
+        # qa_contact, or added to the cc list of the bug and the bug
+        # is cclist_accessible, the requestee is allowed.
+        if (!$requestee-&gt;can_see_bug($self-&gt;bug_id)
+            &amp;&amp; (!$bug-&gt;cclist_accessible
+                || !grep($_-&gt;id == $requestee-&gt;id, @{ $bug-&gt;cc_users })
+            &amp;&amp; $requestee-&gt;id != $bug-&gt;assigned_to-&gt;id
+            &amp;&amp; (!$bug-&gt;qa_contact || $requestee-&gt;id != $bug-&gt;qa_contact-&gt;id)))
+        {
</ins><span class="cx">             if ($skip_requestee_on_error) {
</span><span class="cx">                 undef $requestee;
</span><span class="cx">             }
</span><span class="lines">@@ -701,7 +739,7 @@
</span><span class="cx">     # By default, the currently logged in user is the setter.
</span><span class="cx">     $setter ||= Bugzilla-&gt;user;
</span><span class="cx">     (blessed($setter) &amp;&amp; $setter-&gt;isa('Bugzilla::User') &amp;&amp; $setter-&gt;id)
</span><del>-      || ThrowCodeError('invalid_user');
</del><ins>+      || ThrowUserError('invalid_user');
</ins><span class="cx"> 
</span><span class="cx">     # set_status() has already been called. So this refers
</span><span class="cx">     # to the new flag status.
</span><span class="lines">@@ -789,7 +827,7 @@
</span><span class="cx">     # Extract a list of existing flag IDs.
</span><span class="cx">     my @flag_ids = map(/^flag-(\d+)$/ ? $1 : (), $cgi-&gt;param());
</span><span class="cx"> 
</span><del>-    return () if (!scalar(@flagtype_ids) &amp;&amp; !scalar(@flag_ids));
</del><ins>+    return ([], []) unless (scalar(@flagtype_ids) || scalar(@flag_ids));
</ins><span class="cx"> 
</span><span class="cx">     my (@new_flags, @flags);
</span><span class="cx">     foreach my $flag_id (@flag_ids) {
</span><span class="lines">@@ -895,6 +933,117 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><ins>+=item C&lt;multi_extract_flags_from_cgi($bug, $hr_vars)&gt;
+
+Checks whether or not there are new flags to create and returns an
+array of hashes. This array is then passed to Flag::create(). This differs
+from the previous sub-routine as it is called for changing multiple bugs
+
+=back
+
+=cut
+
+sub multi_extract_flags_from_cgi {
+    my ($class, $bug, $vars, $skip) = @_;
+    my $cgi = Bugzilla-&gt;cgi;
+
+    my $match_status = Bugzilla::User::match_field({
+        '^requestee(_type)?-(\d+)$' =&gt; { 'type' =&gt; 'multi' },
+    }, undef, $skip);
+
+    $vars-&gt;{'match_field'} = 'requestee';
+    if ($match_status == USER_MATCH_FAILED) {
+        $vars-&gt;{'message'} = 'user_match_failed';
+    }
+    elsif ($match_status == USER_MATCH_MULTIPLE) {
+        $vars-&gt;{'message'} = 'user_match_multiple';
+    }
+
+    # Extract a list of flag type IDs from field names.
+    my @flagtype_ids = map(/^flag_type-(\d+)$/ ? $1 : (), $cgi-&gt;param());
+
+    my (@new_flags, @flags);
+
+    # Get a list of active flag types available for this product/component.
+    my $flag_types = Bugzilla::FlagType::match(
+        { 'product_id'   =&gt; $bug-&gt;{'product_id'},
+          'component_id' =&gt; $bug-&gt;{'component_id'},
+          'is_active'    =&gt; 1 });
+
+    foreach my $flagtype_id (@flagtype_ids) {
+        # Checks if there are unexpected flags for the product/component.
+        if (!scalar(grep { $_-&gt;id == $flagtype_id } @$flag_types)) {
+            $vars-&gt;{'message'} = 'unexpected_flag_types';
+            last;
+        }
+    }
+
+    foreach my $flag_type (@$flag_types) {
+        my $type_id = $flag_type-&gt;id;
+
+        # Bug flags are only valid for bugs
+        next unless ($flag_type-&gt;target_type eq 'bug');
+
+        # We are only interested in flags the user tries to create.
+        next unless scalar(grep { $_ == $type_id } @flagtype_ids);
+
+        # Get the flags of this type already set for this bug.
+        my $current_flags = $class-&gt;match(
+            { 'type_id'     =&gt; $type_id,
+              'target_type' =&gt; 'bug',
+              'bug_id'      =&gt; $bug-&gt;bug_id });
+
+        # We will update existing flags (instead of creating new ones)
+        # if the flag exists and the user has not chosen the 'always add'
+        # option
+        my $update = scalar(@$current_flags) &amp;&amp; ! $cgi-&gt;param(&quot;flags_add-$type_id&quot;);
+
+        my $status = $cgi-&gt;param(&quot;flag_type-$type_id&quot;);
+        trick_taint($status);
+
+        my @logins = $cgi-&gt;param(&quot;requestee_type-$type_id&quot;);
+        if ($status eq &quot;?&quot; &amp;&amp; scalar(@logins)) {
+            foreach my $login (@logins) {
+                if ($update) {
+                foreach my $current_flag (@$current_flags) {
+                    push (@flags, { id        =&gt; $current_flag-&gt;id,
+                                    status    =&gt; $status,
+                                    requestee =&gt; $login,
+                                    skip_roe  =&gt; $skip });
+                    }
+                }
+                else {
+                    push (@new_flags, { type_id   =&gt; $type_id,
+                                        status    =&gt; $status,
+                                        requestee =&gt; $login,
+                                        skip_roe  =&gt; $skip });
+                }
+
+                last unless $flag_type-&gt;is_multiplicable;
+            }
+        }
+        else {
+            if ($update) {
+                foreach my $current_flag (@$current_flags) {
+                    push (@flags, { id      =&gt; $current_flag-&gt;id,
+                                    status  =&gt; $status });
+                }
+            }
+            else {
+                push (@new_flags, { type_id =&gt; $type_id,
+                                    status  =&gt; $status });
+            }
+        }
+    }
+
+    # Return the list of flags to update and/or to create.
+    return (\@flags, \@new_flags);
+}
+
+=pod
+
+=over
+
</ins><span class="cx"> =item C&lt;notify($flag, $old_flag, $object, $timestamp)&gt;
</span><span class="cx"> 
</span><span class="cx"> Sends an email notification about a flag being created, fulfilled
</span><span class="lines">@@ -1007,7 +1156,7 @@
</span><span class="cx"> 
</span><span class="cx">         my $template = Bugzilla-&gt;template_inner($lang);
</span><span class="cx">         my $message;
</span><del>-        $template-&gt;process(&quot;request/email.txt.tmpl&quot;, $vars, \$message)
</del><ins>+        $template-&gt;process(&quot;email/flagmail.txt.tmpl&quot;, $vars, \$message)
</ins><span class="cx">           || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><span class="cx">         MessageToMTA($message);
</span><span class="lines">@@ -1054,29 +1203,30 @@
</span><span class="cx">     return $flag_types;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-=head1 SEE ALSO
</del><ins>+1;
</ins><span class="cx"> 
</span><ins>+=head1 B&lt;Methods in need of POD&gt;
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item B&lt;Bugzilla::FlagType&gt;
</del><ins>+=item update_activity
</ins><span class="cx"> 
</span><del>-=back
</del><ins>+=item setter_id
</ins><span class="cx"> 
</span><ins>+=item bug
</ins><span class="cx"> 
</span><del>-=head1 CONTRIBUTORS
</del><ins>+=item requestee_id
</ins><span class="cx"> 
</span><del>-=over
</del><ins>+=item DB_COLUMNS
</ins><span class="cx"> 
</span><del>-=item Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+=item set_flag
</ins><span class="cx"> 
</span><del>-=item Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
</del><ins>+=item type_id
</ins><span class="cx"> 
</span><del>-=item Kevin Benton &lt;kevin.benton@amd.com&gt;
</del><ins>+=item snapshot
</ins><span class="cx"> 
</span><del>-=item Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+=item update_flags
</ins><span class="cx"> 
</span><ins>+=item update
+
</ins><span class="cx"> =back
</span><del>-
-=cut
-
-1;
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaFlagTypepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/FlagType.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/FlagType.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/FlagType.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::FlagType;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::FlagType;
-
</del><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="cx"> Bugzilla::FlagType - A module to deal with Bugzilla flag types.
</span><span class="lines">@@ -53,8 +40,11 @@
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+use Email::Address;
+use List::MoreUtils qw(uniq);
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Object);
+
</ins><span class="cx"> ###############################
</span><span class="cx"> ####    Initialization     ####
</span><span class="cx"> ###############################
</span><span class="lines">@@ -197,8 +187,16 @@
</span><span class="cx">     # Silently remove requestees from flags which are no longer
</span><span class="cx">     # specifically requestable.
</span><span class="cx">     if (!$self-&gt;is_requesteeble) {
</span><del>-        $dbh-&gt;do('UPDATE flags SET requestee_id = NULL WHERE type_id = ?',
-                  undef, $self-&gt;id);
</del><ins>+        my $ids = $dbh-&gt;selectcol_arrayref(
+            'SELECT id FROM flags WHERE type_id = ? AND requestee_id IS NOT NULL',
+             undef, $self-&gt;id);
+
+        if (@$ids) {
+            $dbh-&gt;do('UPDATE flags SET requestee_id = NULL WHERE ' . $dbh-&gt;sql_in('id', $ids));
+            foreach my $id (@$ids) {
+                Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'flags', id =&gt; $id });
+            }
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="lines">@@ -302,15 +300,11 @@
</span><span class="cx">       || ThrowUserError('flag_type_cc_list_invalid', { cc_list =&gt; $cc_list });
</span><span class="cx"> 
</span><span class="cx">     my @addresses = split(/[,\s]+/, $cc_list);
</span><del>-    # We do not call Util::validate_email_syntax because these
-    # addresses do not require to match 'emailregexp' and do not
-    # depend on 'emailsuffix'. So we limit ourselves to a simple
-    # sanity check:
-    # - match the syntax of a fully qualified email address;
-    # - do not contain any illegal character.
</del><ins>+    my $addr_spec = $Email::Address::addr_spec;
+    # We do not call check_email_syntax() because these addresses do not
+    # require to match 'emailregexp' and do not depend on 'emailsuffix'.
</ins><span class="cx">     foreach my $address (@addresses) {
</span><del>-        ($address =~ /^[\w\.\+\-=]+@[\w\.\-]+\.[\w\-]+$/
-           &amp;&amp; $address !~ /[\\\(\)&lt;&gt;&amp;,;:&quot;\[\] \t\r\n\P{ASCII}]/)
</del><ins>+        ($address !~ /\P{ASCII}/ &amp;&amp; $address =~ /^$addr_spec$/)
</ins><span class="cx">           || ThrowUserError('illegal_email_address',
</span><span class="cx">                             {addr =&gt; $address, default =&gt; 1});
</span><span class="cx">     }
</span><span class="lines">@@ -386,8 +380,6 @@
</span><span class="cx">                 if (!$products{$prod_id}) {
</span><span class="cx">                     $params-&gt;{id} = $prod_id;
</span><span class="cx">                     $products{$prod_id} = Bugzilla::Product-&gt;check($params);
</span><del>-                    $user-&gt;in_group('editcomponents', $prod_id)
-                      || ThrowUserError('product_access_denied', $params);
</del><span class="cx">                 }
</span><span class="cx">                 $prod_name = $products{$prod_id}-&gt;name;
</span><span class="cx"> 
</span><span class="lines">@@ -413,6 +405,22 @@
</span><span class="cx">             $clusions{&quot;$prod_name:$comp_name&quot;} = &quot;$prod_id:$comp_id&quot;;
</span><span class="cx">             $clusions_as_hash{$prod_id}-&gt;{$comp_id} = 1;
</span><span class="cx">         }
</span><ins>+
+        # Check the user has the editcomponent permission on products that are changing
+        if (! $user-&gt;in_group('editcomponents')) {
+            my $current_clusions = $self-&gt;$category;
+            my ($removed, $added)
+                = diff_arrays([ values %$current_clusions ], [ values %clusions ]);
+            my @changed_product_ids
+                = uniq map { substr($_, 0, index($_, ':')) } @$removed, @$added;
+            foreach my $product_id (@changed_product_ids) {
+                $user-&gt;in_group('editcomponents', $product_id)
+                    || ThrowUserError('product_access_denied',
+                                      { name =&gt; $products{$product_id}-&gt;name });
+            }
+        }
+
+        # Set the changes
</ins><span class="cx">         $self-&gt;{$category} = \%clusions;
</span><span class="cx">         $self-&gt;{&quot;${category}_as_hash&quot;} = \%clusions_as_hash;
</span><span class="cx">         $self-&gt;{&quot;_update_$category&quot;} = 1;
</span><span class="lines">@@ -637,23 +645,11 @@
</span><span class="cx"> # Private Functions
</span><span class="cx"> ######################################################################
</span><span class="cx"> 
</span><del>-=begin private
</del><ins>+# Converts a hash of criteria into a list of SQL criteria.
+# $criteria is a reference to the criteria (field =&gt; value), 
+# $tables is a reference to an array of tables being accessed 
+# by the query.
</ins><span class="cx"> 
</span><del>-=head1 PRIVATE FUNCTIONS
-
-=over
-
-=item C&lt;sqlify_criteria($criteria, $tables)&gt;
-
-Converts a hash of criteria into a list of SQL criteria.
-$criteria is a reference to the criteria (field =&gt; value), 
-$tables is a reference to an array of tables being accessed 
-by the query.
-
-=back
-
-=cut
-
</del><span class="cx"> sub sqlify_criteria {
</span><span class="cx">     my ($criteria, $tables) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -664,9 +660,19 @@
</span><span class="cx">     my @criteria = (&quot;1=1&quot;);
</span><span class="cx"> 
</span><span class="cx">     if ($criteria-&gt;{name}) {
</span><del>-        my $name = $dbh-&gt;quote($criteria-&gt;{name});
-        trick_taint($name); # Detaint data as we have quoted it.
-        push(@criteria, &quot;flagtypes.name = $name&quot;);
</del><ins>+        if (ref($criteria-&gt;{name}) eq 'ARRAY') {
+            my @names = map { $dbh-&gt;quote($_) } @{$criteria-&gt;{name}};
+            # Detaint data as we have quoted it.
+            foreach my $name (@names) {
+                trick_taint($name);
+            }
+            push @criteria, $dbh-&gt;sql_in('flagtypes.name', \@names);
+        }
+        else {
+            my $name = $dbh-&gt;quote($criteria-&gt;{name});
+            trick_taint($name); # Detaint data as we have quoted it.
+            push(@criteria, &quot;flagtypes.name = $name&quot;);
+        }
</ins><span class="cx">     }
</span><span class="cx">     if ($criteria-&gt;{target_type}) {
</span><span class="cx">         # The target type is stored in the database as a one-character string
</span><span class="lines">@@ -731,26 +737,42 @@
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="cx"> 
</span><del>-=end private
</del><ins>+=head1 B&lt;Methods in need of POD&gt;
</ins><span class="cx"> 
</span><del>-=head1 SEE ALSO
-
</del><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item B&lt;Bugzilla::Flags&gt;
</del><ins>+=item exclusions_as_hash
</ins><span class="cx"> 
</span><del>-=back
</del><ins>+=item request_group_id
</ins><span class="cx"> 
</span><del>-=head1 CONTRIBUTORS
</del><ins>+=item set_is_active
</ins><span class="cx"> 
</span><del>-=over
</del><ins>+=item set_is_multiplicable
</ins><span class="cx"> 
</span><del>-=item Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+=item inclusions_as_hash
</ins><span class="cx"> 
</span><del>-=item Kevin Benton &lt;kevin.benton@amd.com&gt;
</del><ins>+=item set_sortkey
</ins><span class="cx"> 
</span><del>-=item Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+=item grant_group_id
</ins><span class="cx"> 
</span><ins>+=item set_cc_list
+
+=item set_request_group
+
+=item set_name
+
+=item set_is_specifically_requestable
+
+=item set_grant_group
+
+=item create
+
+=item set_clusions
+
+=item set_description
+
+=item set_is_requestable
+
+=item update
+
</ins><span class="cx"> =back
</span><del>-
-=cut
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaGrouppm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Group.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Group.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Group.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Group;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Group;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -37,6 +22,8 @@
</span><span class="cx"> ##### Module Initialization ###
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_COLUMNS =&gt; qw(
</span><span class="cx">     groups.id
</span><span class="cx">     groups.name
</span><span class="lines">@@ -69,8 +56,10 @@
</span><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> # Parameters that are lists of groups.
</span><del>-use constant GROUP_PARAMS =&gt; qw(chartgroup insidergroup timetrackinggroup
-                                querysharegroup);
</del><ins>+use constant GROUP_PARAMS =&gt; qw(
+    chartgroup comment_taggers_group debug_group insidergroup
+    querysharegroup timetrackinggroup
+);
</ins><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="cx"> ####      Accessors      ######
</span><span class="lines">@@ -109,7 +98,8 @@
</span><span class="cx"> sub _get_members {
</span><span class="cx">     my ($self, $grant_type) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    my $grant_clause = $grant_type ? &quot;AND grant_type = $grant_type&quot; : &quot;&quot;;
</del><ins>+    my $grant_clause = defined($grant_type) ? &quot;AND grant_type = $grant_type&quot;
+                                            : &quot;&quot;;
</ins><span class="cx">     my $user_ids = $dbh-&gt;selectcol_arrayref(
</span><span class="cx">         &quot;SELECT DISTINCT user_id
</span><span class="cx">            FROM user_group_map
</span><span class="lines">@@ -230,6 +220,7 @@
</span><span class="cx">     Bugzilla::Hook::process('group_end_of_update', 
</span><span class="cx">                             { group =&gt; $self, changes =&gt; $changes });
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -392,6 +383,7 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     my $silently = delete $params-&gt;{silently};
</span><ins>+    my $use_in_all_products = delete $params-&gt;{use_in_all_products};
</ins><span class="cx">     if (Bugzilla-&gt;usage_mode == USAGE_MODE_CMDLINE and !$silently) {
</span><span class="cx">         print get_text('install_group_create', { name =&gt; $params-&gt;{name} }),
</span><span class="cx">               &quot;\n&quot;;
</span><span class="lines">@@ -415,6 +407,14 @@
</span><span class="cx">         $sth-&gt;execute($admin-&gt;id, $group-&gt;id, GROUP_VISIBLE);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Permit all existing products to use the new group if requested.
+    if ($use_in_all_products) {
+        $dbh-&gt;do('INSERT INTO group_control_map
+                  (group_id, product_id, membercontrol, othercontrol)
+                  SELECT ?, products.id, ?, ? FROM products',
+                  undef, ($group-&gt;id, CONTROLMAPSHOWN, CONTROLMAPNA));
+    }
+
</ins><span class="cx">     $group-&gt;_rederive_regexp() if $group-&gt;user_regexp;
</span><span class="cx"> 
</span><span class="cx">     Bugzilla::Hook::process('group_end_of_create', { group =&gt; $group });
</span><span class="lines">@@ -533,8 +533,11 @@
</span><span class="cx"> 
</span><span class="cx"> Note that in addition to what L&lt;Bugzilla::Object/create($params)&gt;
</span><span class="cx"> normally does, this function also makes the new group be inherited
</span><del>-by the C&lt;admin&gt; group. That is, the C&lt;admin&gt; group will automatically
-be a member of this group.
</del><ins>+by the C&lt;admin&gt; group and optionally inserts access controls for
+this group into all existing products. That is, the C&lt;admin&gt; group
+will automatically be a member of this group and bugs for all
+products may optionally be restricted to this group by group
+members.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;ValidateGroupName($name, @users)&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -664,3 +667,47 @@
</span><span class="cx"> of groups returned.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item icon_url
+
+=item set_name
+
+=item bugs
+
+=item granted_by_direct
+
+=item set_user_regexp
+
+=item flag_types
+
+=item products
+
+=item set_icon_url
+
+=item set_description
+
+=item set_is_active
+
+=item user_regexp
+
+=item members_direct
+
+=item is_bug_group
+
+=item grant_direct
+
+=item description
+
+=item is_active
+
+=item remove_from_db
+
+=item is_active_bug_group
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaHookpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Hook.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Hook.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Hook.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Hook;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> sub process {
</span><span class="cx">     my ($name, $args) = @_;
</span><span class="lines">@@ -434,6 +422,54 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 bug_start_of_update
+
+This happens near the beginning of L&lt;Bugzilla::Bug/update&gt;, after L&lt;Bugzilla::Object/update&gt;
+is called, but before all other special changes are made to the database. Once use case is
+this allows for adding your own entries to the C&lt;changes&gt; hash which gets added to the
+bugs_activity table later keeping you from having to do it yourself. Also this is also helpful
+if your extension needs to add CC members, flags, keywords, groups, etc. This generally
+occurs inside a database transaction.
+
+Params:
+
+=over
+
+=item C&lt;bug&gt; 
+
+The changed bug object, with all fields set to their updated values.
+
+=item C&lt;old_bug&gt;
+
+A bug object pulled from the database before the fields were set to
+their updated values (so it has the old values available for each field).
+
+=item C&lt;timestamp&gt; 
+
+The timestamp used for all updates in this transaction, as a SQL date
+string.
+
+=item C&lt;changes&gt; 
+
+The hash of changed fields. C&lt;&lt; $changes-&gt;{field} = [old, new] &gt;&gt;
+
+=back
+
+=head2 bug_url_sub_classes
+
+Allows you to add more L&lt;Bugzilla::BugUrl&gt; sub-classes.
+
+See the C&lt;MoreBugUrl&gt; extension to see how things work.
+
+Params:
+
+=over
+
+=item C&lt;sub_classes&gt; - An arrayref of strings which represent L&lt;Bugzilla::BugUrl&gt;
+sub-classes.
+
+=back
+
</ins><span class="cx"> =head2 buglist_columns
</span><span class="cx"> 
</span><span class="cx"> This happens in L&lt;Bugzilla::Search/COLUMNS&gt;, which determines legal bug
</span><span class="lines">@@ -552,7 +588,7 @@
</span><span class="cx"> are described by the various C&lt;REL_&gt; constants in L&lt;Bugzilla::Constants&gt;.
</span><span class="cx"> 
</span><span class="cx"> Here's an example of adding userid C&lt;123&gt; to the recipient list
</span><del>-as though he were on the CC list:
</del><ins>+as though they were on the CC list:
</ins><span class="cx"> 
</span><span class="cx">  $recipients-&gt;{123}-&gt;{+REL_CC} = 1
</span><span class="cx"> 
</span><span class="lines">@@ -606,6 +642,33 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+=head2 cgi_headers
+
+This allows you to modify the HTTP headers sent out on every Bugzilla
+response.
+
+Params:
+
+=over
+
+=item C&lt;headers&gt;
+
+A hashref, where the keys are header names and the values are header
+values. Keys need to be lower-case, and begin with a &quot;-&quot;. If you use
+the &quot;_&quot; character it will be converted to &quot;-&quot;, and the library will
+also fix the casing to Camel-Case.
+
+You can delete (some) headers that Bugzilla adds by deleting entries
+from the hash.
+
+=item C&lt;cgi&gt;
+
+The CGI object, which may tell you useful things about the response on
+which to base a decision of whether or not to add a header.
+
+=back
+
+
</ins><span class="cx"> =head2 config_add_panels
</span><span class="cx"> 
</span><span class="cx"> If you want to add new panels to the Parameters administrative interface,
</span><span class="lines">@@ -970,9 +1033,6 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;email&gt; - The C&lt;Email::MIME&gt; object that's about to be sent.
</span><span class="cx"> 
</span><del>-=item C&lt;mailer_args&gt; - An arrayref that's passed as C&lt;mailer_args&gt; to
-L&lt;Email::Send/new&gt;.
-
</del><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head2 object_before_create
</span><span class="lines">@@ -1289,7 +1349,23 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 path_info_whitelist
</ins><span class="cx"> 
</span><ins>+By default, Bugzilla removes the Path-Info information from URLs before
+passing data to CGI scripts. If this information is needed for your
+customizations, you can enumerate the pages you want to whitelist here.
+
+Params:
+
+=over
+
+=item C&lt;whitelist&gt;
+
+An array of script names that will not have their Path-Info automatically
+removed.
+
+=back
+
</ins><span class="cx"> =head2 post_bug_after_creation
</span><span class="cx"> 
</span><span class="cx"> B&lt;DEPRECATED&gt; (Use L&lt;/bug_end_of_create&gt; instead.)
</span><span class="lines">@@ -1450,6 +1526,24 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 user_check_account_creation
+
+This hook permits you to do extra checks before the creation of a new user
+account. This hook is called after email address validation has been done.
+Note that this hook can also access the IP address of the requester thanks
+to the C&lt;remote_ip()&gt; subroutine exported by C&lt;Bugzilla::Util&gt;.
+
+Params:
+
+=over
+
+=item C&lt;login&gt;
+
+The login of the new account. This is usually an email address, unless the
+C&lt;emailsuffix&gt; parameter is not empty.
+
+=back
+
</ins><span class="cx"> =head2 user_preferences
</span><span class="cx"> 
</span><span class="cx"> This hook allows you to add additional panels to the User Preferences page,
</span><span class="lines">@@ -1545,6 +1639,109 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 webservice_fix_credentials
+
+This hook allows for altering the credential parameters provided by the client
+before authentication actually occurs. For example, this can be used to allow mapping
+of custom parameters to the standard Bugzilla_login and Bugzilla_password parameters.
+
+Params:
+
+=over
+
+=item C&lt;params&gt;
+
+A hash ref containing the parameters passed into the webservice after
+they have been obtained from the URL or body of the request.
+
+=back
+
+=head2 webservice_rest_request
+
+This hook allows for altering any of the parameters provided by the client
+after authentication has occured. You are able to change things like renaming
+of keys, removing values, or adding additional information.
+
+Params:
+
+=over
+
+=item C&lt;params&gt;
+
+A hash ref containing the parameters passed into the webservice after
+they have been obtained from the URL or body of the request.
+
+=item C&lt;rpc&gt;
+
+The current JSONRPC, XMLRPC, or REST object.
+
+=back
+
+=head2 webservice_rest_resources
+
+This hook allows for altering of the REST resources data allowing you to
+add additional paths to perform additional operations or to override the
+resources already provided by the webservice modules.
+
+Params:
+
+=over
+
+=item C&lt;resources&gt;
+
+A hash returned from each module loaded that is used to determine
+which code handler to use based on a regex match of the CGI path.
+
+=item C&lt;rpc&gt;
+
+The current JSONRPC, XMLRPC, or REST object.
+
+=back
+
+=head2 webservice_rest_response
+
+This hook allows for altering the result data or response object
+that is being returned by the current REST webservice call.
+
+Params:
+
+=over
+
+=item C&lt;response&gt;
+
+The HTTP response object generated by JSON-RPC library. You can use this
+to add headers, etc.
+
+=item C&lt;result&gt;
+
+A reference to a hash that contains the result data.
+
+=item C&lt;rpc&gt;
+
+The current JSONRPC, XMLRPC, or REST object.
+
+=back
+
+=head2 webservice_status_code_map
+
+This hook allows an extension to change the status codes returned by
+specific webservice errors. The valid internal error codes that Bugzilla
+generates, and the status codes they map to by default, are defined in the
+C&lt;WS_ERROR_CODE&gt; constant in C&lt;Bugzilla::WebService::Constants&gt;. When
+remapping an error, you may wish to use an existing status code constant.
+Such constants are also in C&lt;Bugzilla::WebService::Constants&gt; and start
+with C&lt;STATUS_*&gt; such as C&lt;STATUS_BAD_REQUEST&gt;.
+
+Params:
+
+=over
+
+=item C&lt;status_code_map&gt;
+
+A hash reference containing the current status code mapping.
+
+=back
+
</ins><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla::Extension&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallCPANpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/CPAN.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/CPAN.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/CPAN.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved are Copyright (C) 2007
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::CPAN;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
+
+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT = qw(
</span><span class="cx">     BZ_LIB
</span><span class="cx"> 
</span><span class="lines">@@ -37,7 +28,6 @@
</span><span class="cx"> use CPAN;
</span><span class="cx"> use Cwd qw(abs_path);
</span><span class="cx"> use File::Path qw(rmtree);
</span><del>-use List::Util qw(shuffle);
</del><span class="cx"> 
</span><span class="cx"> # These are required for install-module.pl to be able to install
</span><span class="cx"> # all modules properly.
</span><span class="lines">@@ -99,12 +89,7 @@
</span><span class="cx">     unzip =&gt; bin_loc('unzip'),
</span><span class="cx">     wget =&gt; bin_loc('wget'),
</span><span class="cx"> 
</span><del>-    urllist =&gt; [shuffle qw(
-        http://cpan.pair.com/
-        http://mirror.hiwaay.net/CPAN/
-        ftp://ftp.dc.aleron.net/pub/CPAN/
-        http://mirrors.kernel.org/cpan/
-        http://mirrors2.kernel.org/cpan/)],
</del><ins>+    urllist =&gt; ['http://www.cpan.org/'],
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> sub check_cpan_requirements {
</span><span class="lines">@@ -180,20 +165,9 @@
</span><span class="cx">     if (!$module) {
</span><span class="cx">         die install_string('no_such_module', { module =&gt; $name }) . &quot;\n&quot;;
</span><span class="cx">     }
</span><del>-    my $version = $module-&gt;cpan_version;
-    my $module_name = $name;
</del><span class="cx"> 
</span><del>-    if ($name eq 'LWP::UserAgent' &amp;&amp; $^V lt v5.8.8) {
-        # LWP 6.x requires Perl 5.8.8 or newer.
-        # As PAUSE only indexes the very last version of each module,
-        # we have to specify the path to the tarball ourselves.
-        $name = 'GAAS/libwww-perl-5.837.tar.gz';
-        # This tarball contains LWP::UserAgent 5.835.
-        $version = '5.835';
-    }
-
</del><span class="cx">     print install_string('install_module', 
</span><del>-              { module =&gt; $module_name, version =&gt; $version }) . &quot;\n&quot;;
</del><ins>+              { module =&gt; $name, version =&gt; $module-&gt;cpan_version }) . &quot;\n&quot;;
</ins><span class="cx"> 
</span><span class="cx">     if ($test) {
</span><span class="cx">         CPAN::Shell-&gt;force('install', $name);
</span><span class="lines">@@ -222,8 +196,8 @@
</span><span class="cx">     # Calling a senseless autoload that does nothing makes us
</span><span class="cx">     # automatically load any existing configuration.
</span><span class="cx">     # We want to avoid the &quot;invalid command&quot; message.
</span><del>-    open(my $saveout, &quot;&gt;&amp;STDOUT&quot;);
-    open(STDOUT, '&gt;/dev/null');
</del><ins>+    open(my $saveout, &quot;&gt;&amp;&quot;, &quot;STDOUT&quot;);
+    open(STDOUT, '&gt;', '/dev/null');
</ins><span class="cx">     eval { CPAN-&gt;ignore_this_error_message_from_bugzilla; };
</span><span class="cx">     undef $@;
</span><span class="cx">     close(STDOUT);
</span><span class="lines">@@ -355,3 +329,11 @@
</span><span class="cx"> STDOUT and STDERR.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item check_cpan_requirements
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallDBpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/DB.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/DB.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/DB.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Noel Cragg &lt;noel@red-bean.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::DB;
</span><span class="cx"> 
</span><span class="lines">@@ -20,7 +10,9 @@
</span><span class="cx"> # NOTE: This package may &quot;use&quot; any modules that it likes,
</span><span class="cx"> # localconfig is available, and params are up to date. 
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Hook;
</span><span class="lines">@@ -33,6 +25,7 @@
</span><span class="cx"> 
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> use Date::Format;
</span><ins>+use Digest;
</ins><span class="cx"> use IO::File;
</span><span class="cx"> use List::MoreUtils qw(uniq);
</span><span class="cx"> use URI;
</span><span class="lines">@@ -124,7 +117,11 @@
</span><span class="cx">         {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1, DEFAULT =&gt; 'FALSE'});
</span><span class="cx">     $dbh-&gt;do('UPDATE fielddefs SET is_numeric = 1 WHERE type = '
</span><span class="cx">              . FIELD_TYPE_BUG_ID);
</span><del>-             
</del><ins>+
+    # 2012-04-12 aliustek@gmail.com - Bug 728138
+    $dbh-&gt;bz_add_column('fielddefs', 'long_desc',
+                        {TYPE =&gt; 'varchar(255)', NOTNULL =&gt; 1, DEFAULT =&gt; &quot;''&quot;}, '');
+
</ins><span class="cx">     Bugzilla::Hook::process('install_update_db_fielddefs');
</span><span class="cx"> 
</span><span class="cx">     # Remember, this is not the function for adding general table changes.
</span><span class="lines">@@ -190,15 +187,6 @@
</span><span class="cx"> 
</span><span class="cx">     _populate_milestones_table();
</span><span class="cx"> 
</span><del>-    # 2000-03-22 Changed the default value for target_milestone to be &quot;---&quot;
-    # (which is still not quite correct, but much better than what it was
-    # doing), and made the size of the value field in the milestones table match
-    # the size of the target_milestone field in the bugs table.
-    $dbh-&gt;bz_alter_column('bugs', 'target_milestone',
-        {TYPE =&gt; 'varchar(20)', NOTNULL =&gt; 1, DEFAULT =&gt; &quot;'---'&quot;});
-    $dbh-&gt;bz_alter_column('milestones', 'value',
-                          {TYPE =&gt; 'varchar(20)', NOTNULL =&gt; 1});
-
</del><span class="cx">     _add_products_defaultmilestone();
</span><span class="cx"> 
</span><span class="cx">     # 2000-03-24 Added unique indexes into the cc and keyword tables.  This
</span><span class="lines">@@ -285,10 +273,6 @@
</span><span class="cx">     $dbh-&gt;bz_add_column('attachments', 'isprivate',
</span><span class="cx">                         {TYPE =&gt; 'BOOLEAN', NOTNULL =&gt; 1, DEFAULT =&gt; 'FALSE'});
</span><span class="cx"> 
</span><del>-    $dbh-&gt;bz_add_column(&quot;bugs&quot;, &quot;alias&quot;, {TYPE =&gt; &quot;varchar(20)&quot;});
-    $dbh-&gt;bz_add_index('bugs', 'bugs_alias_idx',
-                       {TYPE =&gt; 'UNIQUE', FIELDS =&gt; [qw(alias)]});
-
</del><span class="cx">     _move_quips_into_db();
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_drop_column(&quot;namedqueries&quot;, &quot;watchfordiffs&quot;);
</span><span class="lines">@@ -398,7 +382,7 @@
</span><span class="cx">               &quot;WHERE initialqacontact = 0&quot;);
</span><span class="cx"> 
</span><span class="cx">     _migrate_email_prefs_to_new_table();
</span><del>-    _initialize_dependency_tree_changes_email_pref();
</del><ins>+    _initialize_new_email_prefs();
</ins><span class="cx">     _change_all_mysql_booleans_to_tinyint();
</span><span class="cx"> 
</span><span class="cx">     # make classification_id field type be consistent with DB:Schema
</span><span class="lines">@@ -455,7 +439,7 @@
</span><span class="cx">     
</span><span class="cx">     # 2005-12-07 altlst@sonic.net -- Bug 225221
</span><span class="cx">     $dbh-&gt;bz_add_column('longdescs', 'comment_id',
</span><del>-        {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
</del><ins>+        {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
</ins><span class="cx"> 
</span><span class="cx">     _stop_storing_inactive_flags();
</span><span class="cx">     _change_short_desc_from_mediumtext_to_varchar();
</span><span class="lines">@@ -607,7 +591,7 @@
</span><span class="cx">     _fix_series_creator_fk();
</span><span class="cx"> 
</span><span class="cx">     # 2009-11-14 dkl@redhat.com - Bug 310450
</span><del>-    $dbh-&gt;bz_add_column('bugs_activity', 'comment_id', {TYPE =&gt; 'INT3'});
</del><ins>+    $dbh-&gt;bz_add_column('bugs_activity', 'comment_id', {TYPE =&gt; 'INT4'});
</ins><span class="cx"> 
</span><span class="cx">     # 2010-04-07 LpSolit@gmail.com - Bug 69621
</span><span class="cx">     $dbh-&gt;bz_drop_column('bugs', 'keywords');
</span><span class="lines">@@ -657,8 +641,15 @@
</span><span class="cx">     # 2011-06-15 dkl@mozilla.com - Bug 658929
</span><span class="cx">     _migrate_disabledtext_boolean();
</span><span class="cx"> 
</span><ins>+    # 2011-11-01 glob@mozilla.com - Bug 240437
+    $dbh-&gt;bz_add_column('profiles', 'last_seen_date', {TYPE =&gt; 'DATETIME'});
+
</ins><span class="cx">     # 2011-10-11 miketosh - Bug 690173
</span><span class="cx">     _on_delete_set_null_for_audit_log_userid();
</span><ins>+    
+    # 2011-11-23 gerv@gerv.net - Bug 705058 - make filenames longer
+    $dbh-&gt;bz_alter_column('attachments', 'filename', 
+                                    { TYPE =&gt; 'varchar(255)', NOTNULL =&gt; 1 });
</ins><span class="cx"> 
</span><span class="cx">     # 2011-11-28 dkl@mozilla.com - Bug 685611
</span><span class="cx">     _fix_notnull_defaults();
</span><span class="lines">@@ -669,6 +660,78 @@
</span><span class="cx">         $dbh-&gt;bz_add_index('profile_search', 'profile_search_user_id_idx', [qw(user_id)]);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # 2012-03-23 LpSolit@gmail.com - Bug 448551
+    $dbh-&gt;bz_alter_column('bugs', 'target_milestone',
+                          {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1, DEFAULT =&gt; &quot;'---'&quot;});
+
+    $dbh-&gt;bz_alter_column('milestones', 'value', {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1});
+
+    $dbh-&gt;bz_alter_column('products', 'defaultmilestone',
+                          {TYPE =&gt; 'varchar(64)', NOTNULL =&gt; 1, DEFAULT =&gt; &quot;'---'&quot;});
+
+    # 2012-04-15 Frank@Frank-Becker.de - Bug 740536
+    $dbh-&gt;bz_add_index('audit_log', 'audit_log_class_idx', ['class', 'at_time']);
+
+    # 2012-06-06 dkl@mozilla.com - Bug 762288
+    $dbh-&gt;bz_alter_column('bugs_activity', 'removed', 
+                          { TYPE =&gt; 'varchar(255)' });
+    $dbh-&gt;bz_add_index('bugs_activity', 'bugs_activity_removed_idx', ['removed']);
+
+    # 2012-06-13 dkl@mozilla.com - Bug 764457
+    $dbh-&gt;bz_add_column('bugs_activity', 'id', 
+                        {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
+
+    # 2012-06-13 dkl@mozilla.com - Bug 764466
+    $dbh-&gt;bz_add_column('profiles_activity', 'id', 
+                        {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
+
+    # 2012-07-24 dkl@mozilla.com - Bug 776972
+    $dbh-&gt;bz_alter_column('bugs_activity', 'id', 
+                          {TYPE =&gt; 'INTSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
+
+
+    # 2012-07-24 dkl@mozilla.com - Bug 776982
+    _fix_longdescs_primary_key();
+
+    # 2012-08-02 dkl@mozilla.com - Bug 756953
+    _fix_dependencies_dupes();
+
+    # 2012-08-01 koosha.khajeh@gmail.com - Bug 187753
+    _shorten_long_quips();
+
+    # 2012-12-29 reed@reedloden.com - Bug 785283
+    _add_password_salt_separator();
+
+    # 2013-01-02 LpSolit@gmail.com - Bug 824361
+    _fix_longdescs_indexes();
+
+    # 2013-02-04 dkl@mozilla.com - Bug 824346
+    _fix_flagclusions_indexes();
+
+    # 2013-08-26 sgreen@redhat.com - Bug 903895
+    _fix_components_primary_key();
+
+    # 2014-06-09 dylan@mozilla.com - Bug 1022923
+    $dbh-&gt;bz_add_index('bug_user_last_visit',
+                       'bug_user_last_visit_last_visit_ts_idx',
+                       ['last_visit_ts']);
+
+    # 2014-07-14 sgreen@redhat.com - Bug 726696
+    $dbh-&gt;bz_alter_column('tokens', 'tokentype',
+                          {TYPE =&gt; 'varchar(16)', NOTNULL =&gt; 1});
+
+    # 2014-07-27 LpSolit@gmail.com - Bug 1044561
+    _fix_user_api_keys_indexes();
+
+    # 2014-08-11 sgreen@redhat.com - Bug 1012506
+     _update_alias();
+
+    # 2014-11-10 dkl@mozilla.com - Bug 1093928
+    $dbh-&gt;bz_drop_column('longdescs', 'is_markdown');
+
+    # 2015-12-16 LpSolit@gmail.com - Bug 1232578
+    _sanitize_audit_log_table();
+
</ins><span class="cx">     ################################################################
</span><span class="cx">     # New --TABLE-- changes should go *** A B O V E *** this point #
</span><span class="cx">     ################################################################
</span><span class="lines">@@ -826,8 +889,8 @@
</span><span class="cx"> 
</span><span class="cx">                         if (!$who) {
</span><span class="cx">                             # This username doesn't exist.  Maybe someone
</span><del>-                            # renamed him or something.  Invent a new profile
-                            # entry disabled, just to represent him.
</del><ins>+                            # renamed them or something.  Invent a new profile
+                            # entry disabled, just to represent them.
</ins><span class="cx">                             $dbh-&gt;do(&quot;INSERT INTO profiles (login_name, 
</span><span class="cx">                                       cryptpassword, disabledtext) 
</span><span class="cx">                                       VALUES (?,?,?)&quot;, undef, $name, '*',
</span><span class="lines">@@ -1387,9 +1450,9 @@
</span><span class="cx">         print &quot;Updating the database to use component IDs.\n&quot;;
</span><span class="cx"> 
</span><span class="cx">         $dbh-&gt;bz_add_column(&quot;components&quot;, &quot;id&quot;,
</span><del>-            {TYPE =&gt; 'SMALLSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
</del><ins>+            {TYPE =&gt; 'MEDIUMSERIAL', NOTNULL =&gt; 1, PRIMARYKEY =&gt; 1});
</ins><span class="cx">         $dbh-&gt;bz_add_column(&quot;bugs&quot;, &quot;component_id&quot;,
</span><del>-                            {TYPE =&gt; 'INT2', NOTNULL =&gt; 1}, 0);
</del><ins>+                            {TYPE =&gt; 'INT3', NOTNULL =&gt; 1}, 0);
</ins><span class="cx"> 
</span><span class="cx">         my %components;
</span><span class="cx">         $sth = $dbh-&gt;prepare(&quot;SELECT id, value, product_id FROM components&quot;);
</span><span class="lines">@@ -2214,7 +2277,7 @@
</span><span class="cx">     # shouldn't be there for security.  Buggy browsers include them,
</span><span class="cx">     # and attachment.cgi now takes them out, but old ones need converting.
</span><span class="cx">     my $ref = $dbh-&gt;bz_column_info(&quot;attachments&quot;, &quot;filename&quot;);
</span><del>-    if ($ref-&gt;{TYPE} ne 'varchar(100)') {
</del><ins>+    if ($ref-&gt;{TYPE} ne 'varchar(100)' &amp;&amp; $ref-&gt;{TYPE} ne 'varchar(255)') {
</ins><span class="cx">         print &quot;Removing paths from filenames in attachments table...&quot;;
</span><span class="cx"> 
</span><span class="cx">         my $sth = $dbh-&gt;prepare(&quot;SELECT attach_id, filename FROM attachments &quot; .
</span><span class="lines">@@ -2396,13 +2459,16 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub _initialize_dependency_tree_changes_email_pref {
</del><ins>+sub _initialize_new_email_prefs {
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     # Check for any &quot;new&quot; email settings that wouldn't have been ported over
</span><span class="cx">     # during the block above.  Since these settings would have otherwise
</span><span class="cx">     # fallen under EVT_OTHER, we'll just clone those settings.  That way if
</span><span class="cx">     # folks have already disabled all of that mail, there won't be any change.
</span><del>-    my %events = (&quot;Dependency Tree Changes&quot; =&gt; EVT_DEPEND_BLOCK);
</del><ins>+    my %events = (
+        &quot;Dependency Tree Changes&quot; =&gt; EVT_DEPEND_BLOCK,
+        &quot;Product/Component Changes&quot; =&gt; EVT_COMPONENT,
+    );
</ins><span class="cx"> 
</span><span class="cx">     foreach my $desc (keys %events) {
</span><span class="cx">         my $event = $events{$desc};
</span><span class="lines">@@ -2497,7 +2563,7 @@
</span><span class="cx">                  undef, &quot;Other&quot;, &quot;other&quot;);
</span><span class="cx">         if (Bugzilla-&gt;params-&gt;{'defaultopsys'} eq 'other') {
</span><span class="cx">             # We can't actually fix the param here, because WriteParams() will
</span><del>-            # make $datadir/params unwriteable to the webservergroup.
</del><ins>+            # make $datadir/params.json unwriteable to the webservergroup.
</ins><span class="cx">             # It's too much of an ugly hack to copy the permission-fixing code
</span><span class="cx">             # down to here. (It would create more potential future bugs than
</span><span class="cx">             # it would solve problems.)
</span><span class="lines">@@ -3133,8 +3199,6 @@
</span><span class="cx">         { TYPE =&gt; 'TINYTEXT', NOTNULL =&gt; 1 });
</span><span class="cx">     $dbh-&gt;bz_alter_column('groups', 'description',
</span><span class="cx">         { TYPE =&gt; 'MEDIUMTEXT', NOTNULL =&gt; 1 });
</span><del>-    $dbh-&gt;bz_alter_column('quips', 'quip',
-        { TYPE =&gt; 'MEDIUMTEXT', NOTNULL =&gt; 1 });
</del><span class="cx">     $dbh-&gt;bz_alter_column('namedqueries', 'query',
</span><span class="cx">         { TYPE =&gt; 'LONGTEXT', NOTNULL =&gt; 1 });
</span><span class="cx"> 
</span><span class="lines">@@ -3682,6 +3746,201 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _fix_longdescs_primary_key {
+    my $dbh = Bugzilla-&gt;dbh;
+    if ($dbh-&gt;bz_column_info('longdescs', 'comment_id')-&gt;{TYPE} ne 'INTSERIAL') {
+        $dbh-&gt;bz_drop_related_fks('longdescs', 'comment_id');
+        $dbh-&gt;bz_alter_column('bugs_activity', 'comment_id', {TYPE =&gt; 'INT4'});
+        $dbh-&gt;bz_alter_column('longdescs', 'comment_id',
+                              {TYPE =&gt; 'INTSERIAL',  NOTNULL =&gt; 1,  PRIMARYKEY =&gt; 1});
+    }
+}
+
+sub _fix_longdescs_indexes {
+    my $dbh = Bugzilla-&gt;dbh;
+    my $bug_id_idx = $dbh-&gt;bz_index_info('longdescs', 'longdescs_bug_id_idx');
+    if ($bug_id_idx &amp;&amp; scalar @{$bug_id_idx-&gt;{'FIELDS'}} &lt; 2) {
+        $dbh-&gt;bz_drop_index('longdescs', 'longdescs_bug_id_idx');
+        $dbh-&gt;bz_add_index('longdescs', 'longdescs_bug_id_idx', [qw(bug_id work_time)]);
+    }
+}
+
+sub _fix_dependencies_dupes {
+    my $dbh = Bugzilla-&gt;dbh;
+    my $blocked_idx = $dbh-&gt;bz_index_info('dependencies', 'dependencies_blocked_idx');
+    if ($blocked_idx &amp;&amp; scalar @{$blocked_idx-&gt;{'FIELDS'}} &lt; 2) {
+        # Remove duplicated entries
+        my $dupes = $dbh-&gt;selectall_arrayref(&quot;
+            SELECT blocked, dependson, COUNT(*) AS count
+              FROM dependencies &quot; .
+            $dbh-&gt;sql_group_by('blocked, dependson') . &quot;
+            HAVING COUNT(*) &gt; 1&quot;,
+            { Slice =&gt; {} });
+        print &quot;Removing duplicated entries from the 'dependencies' table...\n&quot; if @$dupes;
+        foreach my $dupe (@$dupes) {
+            $dbh-&gt;do(&quot;DELETE FROM dependencies
+                      WHERE blocked = ? AND dependson = ?&quot;,
+                     undef, $dupe-&gt;{blocked}, $dupe-&gt;{dependson});
+            $dbh-&gt;do(&quot;INSERT INTO dependencies (blocked, dependson) VALUES (?, ?)&quot;,
+                     undef, $dupe-&gt;{blocked}, $dupe-&gt;{dependson});
+        }
+        $dbh-&gt;bz_drop_index('dependencies', 'dependencies_blocked_idx');
+        $dbh-&gt;bz_add_index('dependencies', 'dependencies_blocked_idx',
+                           { FIELDS =&gt; [qw(blocked dependson)], TYPE =&gt; 'UNIQUE' });
+    }   
+}
+
+sub _shorten_long_quips {
+    my $dbh = Bugzilla-&gt;dbh;
+    my $quips = $dbh-&gt;selectall_arrayref(&quot;SELECT quipid, quip FROM quips
+                                          WHERE CHAR_LENGTH(quip) &gt; 512&quot;);
+
+    if (@$quips) {
+        print &quot;Shortening quips longer than 512 characters:&quot;;
+
+        my $query = $dbh-&gt;prepare(&quot;UPDATE quips SET quip = ? WHERE quipid = ?&quot;);
+
+        foreach my $quip (@$quips) {
+            my ($quipid, $quip_str) = @$quip;
+            $quip_str = substr($quip_str, 0, 509) . &quot;...&quot;;
+            print &quot; $quipid&quot;;
+            $query-&gt;execute($quip_str, $quipid);
+        }
+        print &quot;\n&quot;;
+    }
+    $dbh-&gt;bz_alter_column('quips', 'quip', { TYPE =&gt; 'varchar(512)', NOTNULL =&gt; 1});
+}
+
+sub _add_password_salt_separator {
+    my $dbh = Bugzilla-&gt;dbh;
+
+    $dbh-&gt;bz_start_transaction();
+
+    my $profiles = $dbh-&gt;selectall_arrayref(&quot;SELECT userid, cryptpassword FROM profiles WHERE (&quot;
+        . $dbh-&gt;sql_regexp(&quot;cryptpassword&quot;, &quot;'^[^,]+{'&quot;) . &quot;)&quot;);
+
+    if (@$profiles) {
+        say &quot;Adding salt separator to password hashes...&quot;;
+
+        my $query = $dbh-&gt;prepare(&quot;UPDATE profiles SET cryptpassword = ? WHERE userid = ?&quot;);
+        my %algo_sizes;
+
+        foreach my $profile (@$profiles) {
+            my ($userid, $hash) = @$profile;
+            my ($algorithm) = $hash =~ /{([^}]+)}$/;
+
+            $algo_sizes{$algorithm} ||= length(Digest-&gt;new($algorithm)-&gt;b64digest);
+
+            # Calculate the salt length by taking the stored hash and
+            # subtracting the combined lengths of the hash size, the
+            # algorithm name, and 2 for the {} surrounding the name.
+            my $not_salt_len = $algo_sizes{$algorithm} + length($algorithm) + 2;
+            my $salt_len = length($hash) - $not_salt_len;
+
+            substr($hash, $salt_len, 0, ',');
+            $query-&gt;execute($hash, $userid);
+        }
+    }
+    $dbh-&gt;bz_commit_transaction();
+}
+
+sub _fix_flagclusions_indexes {
+    my $dbh = Bugzilla-&gt;dbh;
+    foreach my $table ('flaginclusions', 'flagexclusions') {
+        my $index = $table . '_type_id_idx';
+        my $idx_info = $dbh-&gt;bz_index_info($table, $index);
+        if ($idx_info &amp;&amp; $idx_info-&gt;{'TYPE'} ne 'UNIQUE') {
+            # Remove duplicated entries
+            my $dupes = $dbh-&gt;selectall_arrayref(&quot;
+                SELECT type_id, product_id, component_id, COUNT(*) AS count
+                  FROM $table &quot; .
+                $dbh-&gt;sql_group_by('type_id, product_id, component_id') . &quot;
+                HAVING COUNT(*) &gt; 1&quot;,
+                { Slice =&gt; {} });
+            say &quot;Removing duplicated entries from the '$table' table...&quot; if @$dupes;
+            foreach my $dupe (@$dupes) {
+                $dbh-&gt;do(&quot;DELETE FROM $table 
+                          WHERE type_id = ? AND product_id = ? AND component_id = ?&quot;,
+                         undef, $dupe-&gt;{type_id}, $dupe-&gt;{product_id}, $dupe-&gt;{component_id});
+                $dbh-&gt;do(&quot;INSERT INTO $table (type_id, product_id, component_id) VALUES (?, ?, ?)&quot;,
+                         undef, $dupe-&gt;{type_id}, $dupe-&gt;{product_id}, $dupe-&gt;{component_id});
+            }
+            $dbh-&gt;bz_drop_index($table, $index);
+            $dbh-&gt;bz_add_index($table, $index,
+                { FIELDS =&gt; [qw(type_id product_id component_id)],
+                  TYPE   =&gt; 'UNIQUE' });
+        }
+    }
+}
+
+sub _fix_components_primary_key {
+    my $dbh = Bugzilla-&gt;dbh;
+    if ($dbh-&gt;bz_column_info('components', 'id')-&gt;{TYPE} ne 'MEDIUMSERIAL') {
+        $dbh-&gt;bz_drop_related_fks('components', 'id');
+        $dbh-&gt;bz_alter_column(&quot;components&quot;, &quot;id&quot;,
+                              {TYPE =&gt; 'MEDIUMSERIAL',  NOTNULL =&gt; 1,  PRIMARYKEY =&gt; 1});
+        $dbh-&gt;bz_alter_column(&quot;flaginclusions&quot;, &quot;component_id&quot;,
+                              {TYPE =&gt; 'INT3'});
+        $dbh-&gt;bz_alter_column(&quot;flagexclusions&quot;, &quot;component_id&quot;,
+                              {TYPE =&gt; 'INT3'});
+        $dbh-&gt;bz_alter_column(&quot;bugs&quot;, &quot;component_id&quot;,
+                              {TYPE =&gt; 'INT3', NOTNULL =&gt; 1});
+        $dbh-&gt;bz_alter_column(&quot;component_cc&quot;, &quot;component_id&quot;,
+                              {TYPE =&gt; 'INT3', NOTNULL =&gt; 1});
+    }
+}
+
+sub _fix_user_api_keys_indexes {
+    my $dbh = Bugzilla-&gt;dbh;
+
+    if ($dbh-&gt;bz_index_info('user_api_keys', 'user_api_keys_key')) {
+        $dbh-&gt;bz_drop_index('user_api_keys', 'user_api_keys_key');
+        $dbh-&gt;bz_add_index('user_api_keys', 'user_api_keys_api_key_idx',
+                           { FIELDS =&gt; ['api_key'], TYPE =&gt; 'UNIQUE' });
+    }
+    if ($dbh-&gt;bz_index_info('user_api_keys', 'user_api_keys_user_id')) {
+        $dbh-&gt;bz_drop_index('user_api_keys', 'user_api_keys_user_id');
+        $dbh-&gt;bz_add_index('user_api_keys', 'user_api_keys_user_id_idx', ['user_id']);
+    }
+}
+
+sub _update_alias {
+    my $dbh = Bugzilla-&gt;dbh;
+    return unless $dbh-&gt;bz_column_info('bugs', 'alias');
+
+    # We need to move the aliases from the bugs table to the bugs_aliases table
+    $dbh-&gt;do(q{
+        INSERT INTO bugs_aliases (bug_id, alias)
+        SELECT bug_id, alias FROM bugs WHERE alias IS NOT NULL
+    });
+
+    $dbh-&gt;bz_drop_column('bugs', 'alias');
+}
+
+sub _sanitize_audit_log_table {
+    my $dbh = Bugzilla-&gt;dbh;
+
+    # Replace hashed passwords by a generic comment.
+    my $class = 'Bugzilla::User';
+    my $field = 'cryptpassword';
+
+    my $hashed_passwd =
+      $dbh-&gt;selectcol_arrayref('SELECT added FROM audit_log WHERE class = ? AND field = ?
+                                AND ' . $dbh-&gt;sql_not_ilike('hashed_with_', 'added'),
+                                undef, ($class, $field));
+    if (@$hashed_passwd) {
+        say &quot;Sanitizing hashed passwords stored in the 'audit_log' table...&quot;;
+        my $sth = $dbh-&gt;prepare('UPDATE audit_log SET added = ?
+                                 WHERE class = ? AND field = ? AND added = ?');
+
+        foreach my $passwd (@$hashed_passwd) {
+            my (undef, $sanitized_passwd) =
+              Bugzilla::Object::_sanitize_audit_log($class, $field, [undef, $passwd]);
+            $sth-&gt;execute($sanitized_passwd, $class, $field, $passwd);
+        }
+    }
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallFilesystempm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/Filesystem.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/Filesystem.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/Filesystem.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Bill Barry &lt;after.fallout@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::Filesystem;
</span><span class="cx"> 
</span><span class="lines">@@ -25,7 +15,9 @@
</span><span class="cx"> # * Files do not have the correct permissions.
</span><span class="cx"> # * The database does not exist.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -38,10 +30,12 @@
</span><span class="cx"> use File::Path;
</span><span class="cx"> use File::Basename;
</span><span class="cx"> use File::Copy qw(move);
</span><ins>+use File::Spec;
+use File::Slurp;
</ins><span class="cx"> use IO::File;
</span><span class="cx"> use POSIX ();
</span><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT = qw(
</span><span class="cx">     update_filesystem
</span><span class="cx">     create_htaccess
</span><span class="lines">@@ -53,7 +47,17 @@
</span><span class="cx"> use constant HT_DEFAULT_DENY =&gt; &lt;&lt;EOT;
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins><span class="cx"> EOT
</span><span class="cx"> 
</span><span class="cx"> ###############
</span><span class="lines">@@ -125,6 +129,7 @@
</span><span class="cx">     my $localconfig   = bz_locations()-&gt;{'localconfig'};
</span><span class="cx">     my $template_cache = bz_locations()-&gt;{'template_cache'};
</span><span class="cx">     my $graphsdir     = bz_locations()-&gt;{'graphsdir'};
</span><ins>+    my $assetsdir     = bz_locations()-&gt;{'assetsdir'};
</ins><span class="cx"> 
</span><span class="cx">     # We want to set the permissions the same for all localconfig files
</span><span class="cx">     # across all PROJECTs, so we do something special with $localconfig,
</span><span class="lines">@@ -160,6 +165,7 @@
</span><span class="cx">         'jobqueue.pl'     =&gt; { perms =&gt; OWNER_EXECUTE },
</span><span class="cx">         'migrate.pl'      =&gt; { perms =&gt; OWNER_EXECUTE },
</span><span class="cx">         'install-module.pl' =&gt; { perms =&gt; OWNER_EXECUTE },
</span><ins>+        'clean-bug-user-last-visit.pl' =&gt; { perms =&gt; WS_EXECUTE },
</ins><span class="cx"> 
</span><span class="cx">         'Bugzilla.pm'   =&gt; { perms =&gt; CGI_READ },
</span><span class="cx">         &quot;$localconfig*&quot; =&gt; { perms =&gt; CGI_READ },
</span><span class="lines">@@ -167,16 +173,21 @@
</span><span class="cx">         'mod_perl.pl'   =&gt; { perms =&gt; WS_SERVE },
</span><span class="cx">         'robots.txt'    =&gt; { perms =&gt; WS_SERVE },
</span><span class="cx">         '.htaccess'     =&gt; { perms =&gt; WS_SERVE },
</span><del>-        '*.js'          =&gt; { perms =&gt; WS_SERVE }, # WEBKIT_CHANGES
</del><span class="cx"> 
</span><ins>+        'code-review.js'               =&gt; { perms =&gt; WS_SERVE },    # WEBKIT_CHANGES
+        'code-review-test.html'        =&gt; { perms =&gt; WS_SERVE },    # WEBKIT_CHANGES
+        'committers-autocomplete.js'   =&gt; { perms =&gt; WS_SERVE },    # WEBKIT_CHANGES
+        'contrib/recode-overrides.txt' =&gt; { perms =&gt; OWNER_WRITE }, # WEBKIT_CHANGES
+
</ins><span class="cx">         'contrib/README'       =&gt; { perms =&gt; OWNER_WRITE },
</span><span class="cx">         'contrib/*/README'     =&gt; { perms =&gt; OWNER_WRITE },
</span><ins>+        'contrib/Bugzilla.pm'  =&gt; { perms =&gt; OWNER_WRITE },
</ins><span class="cx">         'docs/bugzilla.ent'    =&gt; { perms =&gt; OWNER_WRITE },
</span><span class="cx">         'docs/makedocs.pl'     =&gt; { perms =&gt; OWNER_EXECUTE },
</span><span class="cx">         'docs/style.css'       =&gt; { perms =&gt; WS_SERVE },
</span><span class="cx">         'docs/*/rel_notes.txt' =&gt; { perms =&gt; WS_SERVE },
</span><span class="cx">         'docs/*/README.docs'   =&gt; { perms =&gt; OWNER_WRITE },
</span><del>-        &quot;$datadir/params&quot;      =&gt; { perms =&gt; CGI_WRITE },
</del><ins>+        &quot;$datadir/params.json&quot; =&gt; { perms =&gt; CGI_WRITE },
</ins><span class="cx">         &quot;$datadir/old-params.txt&quot;  =&gt; { perms =&gt; OWNER_WRITE },
</span><span class="cx">         &quot;$extensionsdir/create.pl&quot; =&gt; { perms =&gt; OWNER_EXECUTE },
</span><span class="cx">         &quot;$extensionsdir/*/*.pl&quot;    =&gt; { perms =&gt; WS_EXECUTE },
</span><span class="lines">@@ -206,6 +217,8 @@
</span><span class="cx">                                   dirs =&gt; DIR_CGI_WRITE | DIR_ALSO_WS_SERVE },
</span><span class="cx">          &quot;$datadir/db&quot;      =&gt; { files =&gt; CGI_WRITE,
</span><span class="cx">                                   dirs =&gt; DIR_CGI_WRITE },
</span><ins>+         $assetsdir         =&gt; { files =&gt; WS_SERVE,
+                                  dirs =&gt; DIR_CGI_OVERWRITE | DIR_ALSO_WS_SERVE },
</ins><span class="cx"> 
</span><span class="cx">          # Readable directories
</span><span class="cx">          &quot;$datadir/mining&quot;     =&gt; { files =&gt; CGI_READ,
</span><span class="lines">@@ -265,7 +278,8 @@
</span><span class="cx">     # The name of each directory that we should actually *create*,
</span><span class="cx">     # pointing at its default permissions.
</span><span class="cx">     my %create_dirs = (
</span><del>-        # This is DIR_ALSO_WS_SERVE because it contains $webdotdir.
</del><ins>+        # This is DIR_ALSO_WS_SERVE because it contains $webdotdir and
+        # $assetsdir.
</ins><span class="cx">         $datadir                =&gt; DIR_CGI_OVERWRITE | DIR_ALSO_WS_SERVE,
</span><span class="cx">         # Directories that are read-only for cgi scripts
</span><span class="cx">         &quot;$datadir/mining&quot;       =&gt; DIR_CGI_READ,
</span><span class="lines">@@ -276,6 +290,7 @@
</span><span class="cx">         $attachdir              =&gt; DIR_CGI_WRITE,
</span><span class="cx">         $graphsdir              =&gt; DIR_CGI_WRITE | DIR_ALSO_WS_SERVE,
</span><span class="cx">         $webdotdir              =&gt; DIR_CGI_WRITE | DIR_ALSO_WS_SERVE,
</span><ins>+        $assetsdir              =&gt; DIR_CGI_WRITE | DIR_ALSO_WS_SERVE,
</ins><span class="cx">         # Directories that contain content served directly by the web server.
</span><span class="cx">         &quot;$skinsdir/custom&quot;      =&gt; DIR_WS_SERVE,
</span><span class="cx">         &quot;$skinsdir/contrib&quot;     =&gt; DIR_WS_SERVE,
</span><span class="lines">@@ -339,11 +354,31 @@
</span><span class="cx">         &quot;$graphsdir/.htaccess&quot; =&gt; { perms =&gt; WS_SERVE, contents =&gt; &lt;&lt;EOT
</span><span class="cx"> # Allow access to .png and .gif files.
</span><span class="cx"> &lt;FilesMatch (\\.gif|\\.png)\$&gt;
</span><del>-  Allow from all
</del><ins>+  &lt;IfModule mod_version.c&gt;
+    &lt;IfVersion &lt; 2.4&gt;
+      Allow from all
+    &lt;/IfVersion&gt;
+    &lt;IfVersion &gt;= 2.4&gt;
+      Require all granted
+    &lt;/IfVersion&gt;
+  &lt;/IfModule&gt;
+  &lt;IfModule !mod_version.c&gt;
+    Allow from all
+  &lt;/IfModule&gt;
</ins><span class="cx"> &lt;/FilesMatch&gt;
</span><span class="cx"> 
</span><span class="cx"> # And no directory listings, either.
</span><del>-Deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins><span class="cx"> EOT
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="lines">@@ -352,19 +387,83 @@
</span><span class="cx"> # if research.att.com ever changes their IP, or if you use a different
</span><span class="cx"> # webdot server, you'll need to edit this
</span><span class="cx"> &lt;FilesMatch \\.dot\$&gt;
</span><del>-  Allow from 192.20.225.0/24
-  Deny from all
</del><ins>+  &lt;IfModule mod_version.c&gt;
+    &lt;IfVersion &lt; 2.4&gt;
+      Allow from 192.20.225.0/24
+      Deny from all
+    &lt;/IfVersion&gt;
+    &lt;IfVersion &gt;= 2.4&gt;
+      Require ip 192.20.225.0/24
+      Require all denied
+    &lt;/IfVersion&gt;
+  &lt;/IfModule&gt;
+  &lt;IfModule !mod_version.c&gt;
+    Allow from 192.20.225.0/24
+    Deny from all
+  &lt;/IfModule&gt;
</ins><span class="cx"> &lt;/FilesMatch&gt;
</span><span class="cx"> 
</span><del>-# Allow access to .png files created by a local copy of 'dot'
-&lt;FilesMatch \\.png\$&gt;
-  Allow from all
</del><ins>+ # Allow access to .png files created by a local copy of 'dot'
+ &lt;FilesMatch \\.png\$&gt;
+  &lt;IfModule mod_version.c&gt;
+    &lt;IfVersion &lt; 2.4&gt;
+      Allow from all
+    &lt;/IfVersion&gt;
+    &lt;IfVersion &gt;= 2.4&gt;
+      Require all granted
+    &lt;/IfVersion&gt;
+  &lt;/IfModule&gt;
+  &lt;IfModule !mod_version.c&gt;
+    Allow from all
+  &lt;/IfModule&gt;
</ins><span class="cx"> &lt;/FilesMatch&gt;
</span><span class="cx"> 
</span><span class="cx"> # And no directory listings, either.
</span><del>-Deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins><span class="cx"> EOT
</span><span class="cx">         },
</span><ins>+
+        &quot;$assetsdir/.htaccess&quot; =&gt; { perms =&gt; WS_SERVE, contents =&gt; &lt;&lt;EOT
+# Allow access to .css files
+&lt;FilesMatch \\.(css|js)\$&gt;
+  &lt;IfModule mod_version.c&gt;
+    &lt;IfVersion &lt; 2.4&gt;
+      Allow from all
+    &lt;/IfVersion&gt;
+    &lt;IfVersion &gt;= 2.4&gt;
+      Require all granted
+    &lt;/IfVersion&gt;
+  &lt;/IfModule&gt;
+  &lt;IfModule !mod_version.c&gt;
+     Allow from all
+  &lt;/IfModule&gt;
+&lt;/FilesMatch&gt;
+
+# And no directory listings, either.
+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
+EOT
+        },
+
</ins><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     Bugzilla::Hook::process('install_filesystem', {
</span><span class="lines">@@ -399,6 +498,7 @@
</span><span class="cx"> 
</span><span class="cx">     my $datadir = bz_locations-&gt;{'datadir'};
</span><span class="cx">     my $graphsdir = bz_locations-&gt;{'graphsdir'};
</span><ins>+    my $assetsdir = bz_locations-&gt;{'assetsdir'};
</ins><span class="cx">     # If the graphs/ directory doesn't exist, we're upgrading from
</span><span class="cx">     # a version old enough that we need to update the $datadir/mining 
</span><span class="cx">     # format.
</span><span class="lines">@@ -406,6 +506,13 @@
</span><span class="cx">         _update_old_charts($datadir);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # If there is a file named '-All-' in $datadir/mining, then we're still
+    # having mining files named by product name, and we need to convert them to
+    # files named by product ID.
+    if (-e File::Spec-&gt;catfile($datadir, 'mining', '-All-')) {
+        _update_old_mining_filenames(File::Spec-&gt;catdir($datadir, 'mining'));
+    }
+
</ins><span class="cx">     # By sorting the dirs, we assure that shorter-named directories
</span><span class="cx">     # (meaning parent directories) are always created before their
</span><span class="cx">     # child directories.
</span><span class="lines">@@ -432,6 +539,13 @@
</span><span class="cx">         _rename_file($oldparamsfile, &quot;$datadir/$oldparamsfile&quot;);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Remove old assets htaccess file to force recreation with correct values.
+    if (-e &quot;$assetsdir/.htaccess&quot;) {
+        if (read_file(&quot;$assetsdir/.htaccess&quot;) =~ /&lt;FilesMatch \\\.css\$&gt;/) {
+            unlink(&quot;$assetsdir/.htaccess&quot;);
+        }
+    }
+
</ins><span class="cx">     _create_files(%files);
</span><span class="cx">     if ($params-&gt;{index_html}) {
</span><span class="cx">         _create_files(%{$fs-&gt;{index_html}});
</span><span class="lines">@@ -475,6 +589,7 @@
</span><span class="cx"> 
</span><span class="cx">     _remove_empty_css_files();
</span><span class="cx">     _convert_single_file_skins();
</span><ins>+    _remove_dynamic_assets();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _remove_empty_css_files {
</span><span class="lines">@@ -519,6 +634,27 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# delete all automatically generated css/js files to force recreation at the
+# next request.
+sub _remove_dynamic_assets {
+    my @files = (
+        glob(bz_locations()-&gt;{assetsdir} . '/*.css'),
+        glob(bz_locations()-&gt;{assetsdir} . '/*.js'),
+    );
+    foreach my $file (@files) {
+        unlink($file);
+    }
+
+    # remove old skins/assets directory
+    my $old_path = bz_locations()-&gt;{skinsdir} . '/assets';
+    if (-d $old_path) {
+        foreach my $file (glob(&quot;$old_path/*.css&quot;)) {
+            unlink($file);
+        }
+        rmdir($old_path);
+    }
+}
+
</ins><span class="cx"> sub create_htaccess {
</span><span class="cx">     _create_files(%{FILESYSTEM()-&gt;{htaccess}});
</span><span class="cx"> 
</span><span class="lines">@@ -584,7 +720,7 @@
</span><span class="cx">                  ($in_file =~ /\.orig$/i));
</span><span class="cx"> 
</span><span class="cx">         rename(&quot;$in_file&quot;, &quot;$in_file.orig&quot;) or next;
</span><del>-        open(IN, &quot;$in_file.orig&quot;) or next;
</del><ins>+        open(IN, &quot;&lt;&quot;, &quot;$in_file.orig&quot;) or next;
</ins><span class="cx">         open(OUT, '&gt;', $in_file) or next;
</span><span class="cx"> 
</span><span class="cx">         # Fields in the header
</span><span class="lines">@@ -647,6 +783,59 @@
</span><span class="cx">     } 
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# The old naming scheme has product names as mining file names; we rename them
+# to product IDs.
+sub _update_old_mining_filenames {
+    my ($miningdir) = @_;
+    my @conversion_errors;
+
+    require Bugzilla::Product;
+
+    # We use a dummy product instance with ID 0, representing all products
+    my $product_all = {id =&gt; 0, name =&gt; '-All-'};
+    bless($product_all, 'Bugzilla::Product');
+
+    print &quot;Updating old charting data file names...&quot;;
+    my @products = Bugzilla::Product-&gt;get_all();
+    push(@products, $product_all);
+    foreach my $product (@products) {
+        if (-e File::Spec-&gt;catfile($miningdir, $product-&gt;id)) {
+            push(@conversion_errors,
+                 { product =&gt; $product,
+                   message =&gt; 'A file named &quot;' . $product-&gt;id .
+                              '&quot; already exists.' });
+        }
+    }
+
+    if (! @conversion_errors) {
+        # Renaming mining files should work now without a hitch.
+        foreach my $product (@products) {
+            if (! rename(File::Spec-&gt;catfile($miningdir, $product-&gt;name),
+                         File::Spec-&gt;catfile($miningdir, $product-&gt;id))) {
+                push(@conversion_errors,
+                     { product =&gt; $product,
+                       message =&gt; $! });
+            }
+        }
+    }
+
+    # Error reporting
+    if (! @conversion_errors) {
+        print &quot; done.\n&quot;;
+    }
+    else {
+        print &quot; FAILED:\n&quot;;
+        foreach my $error (@conversion_errors) {
+            printf &quot;Cannot rename charting data file for product %d (%s): %s\n&quot;,
+                   $error-&gt;{product}-&gt;id, $error-&gt;{product}-&gt;name,
+                   $error-&gt;{message};
+        }
+        print &quot;You need to empty the \&quot;$miningdir\&quot; directory, then run\n&quot;,
+              &quot;   collectstats.pl --regenerate\n&quot;,
+              &quot;in order to clean this up.\n&quot;;
+    }
+}
+
</ins><span class="cx"> sub fix_dir_permissions {
</span><span class="cx">     my ($dir) = @_;
</span><span class="cx">     return if ON_WINDOWS;
</span><span class="lines">@@ -878,3 +1067,29 @@
</span><span class="cx"> If it fails to set the permissions, a warning will be printed to STDERR.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item CGI_WRITE
+
+=item DIR_WS_SERVE
+
+=item DIR_ALSO_WS_SERVE
+
+=item WS_SERVE
+
+=item FILESYSTEM
+
+=item WS_EXECUTE
+
+=item CGI_READ
+
+=item DIR_CGI_READ
+
+=item DIR_CGI_WRITE
+
+=item DIR_CGI_OVERWRITE
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallLocalconfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/Localconfig.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/Localconfig.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/Localconfig.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006
-# Everything Solved. All Rights Reserved.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::Localconfig;
</span><span class="cx"> 
</span><span class="lines">@@ -28,7 +15,9 @@
</span><span class="cx"> # * Files do not have the correct permissions
</span><span class="cx"> # * The database is not up to date
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Util qw(bin_loc install_string);
</span><span class="lines">@@ -36,11 +25,10 @@
</span><span class="cx"> 
</span><span class="cx"> use Data::Dumper;
</span><span class="cx"> use File::Basename qw(dirname);
</span><del>-use IO::File;
</del><span class="cx"> use Safe;
</span><span class="cx"> use Term::ANSIColor;
</span><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> 
</span><span class="cx"> our @EXPORT_OK = qw(
</span><span class="cx">     read_localconfig
</span><span class="lines">@@ -93,14 +81,26 @@
</span><span class="cx">         default =&gt; 1,
</span><span class="cx">     },
</span><span class="cx">     {
</span><ins>+        name    =&gt; 'db_mysql_ssl_ca_file',
+        default =&gt; '',
+    },
+    {
+        name    =&gt; 'db_mysql_ssl_ca_path',
+        default =&gt; '',
+    },
+    {
+        name    =&gt; 'db_mysql_ssl_client_cert',
+        default =&gt; '',
+    },
+    {
+        name    =&gt; 'db_mysql_ssl_client_key',
+        default =&gt; '',
+    },
+    {
</ins><span class="cx">         name    =&gt; 'index_html',
</span><span class="cx">         default =&gt; 0,
</span><span class="cx">     },
</span><span class="cx">     {
</span><del>-        name    =&gt; 'cvsbin',
-        default =&gt; sub { bin_loc('cvs') },
-    },
-    {
</del><span class="cx">         name    =&gt; 'interdiffbin',
</span><span class="cx">         default =&gt; sub { bin_loc('interdiff') },
</span><span class="cx">     },
</span><span class="lines">@@ -219,14 +219,20 @@
</span><span class="cx">         # a 256-character string for site_wide_secret.
</span><span class="cx">         $value = undef if ($name eq 'site_wide_secret' and defined $value
</span><span class="cx">                            and length($value) == 256);
</span><del>-        
</del><ins>+
</ins><span class="cx">         if (!defined $value) {
</span><del>-            push(@new_vars, $name);
</del><span class="cx">             $var-&gt;{default} = &amp;{$var-&gt;{default}} if ref($var-&gt;{default}) eq 'CODE';
</span><span class="cx">             if (exists $answer-&gt;{$name}) {
</span><span class="cx">                 $localconfig-&gt;{$name} = $answer-&gt;{$name};
</span><span class="cx">             }
</span><span class="cx">             else {
</span><ins>+                # If the user did not supply an answers file, then they get
+                # notified about every variable that gets added. If there was
+                # an answer file, then we don't notify about site_wide_secret
+                # because we assume the intent was to auto-generate it anyway.
+                if (!scalar(keys %$answer) || $name ne 'site_wide_secret') {
+                    push(@new_vars, $name);
+                }
</ins><span class="cx">                 $localconfig-&gt;{$name} = $var-&gt;{default};
</span><span class="cx">             }
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallRequirementspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/Requirements.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/Requirements.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/Requirements.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::Requirements;
</span><span class="cx"> 
</span><span class="lines">@@ -23,24 +13,17 @@
</span><span class="cx"> # Subroutines may &quot;require&quot; and &quot;import&quot; from modules, but they
</span><span class="cx"> # MUST NOT &quot;use.&quot;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use version;
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><del>-use Bugzilla::Install::Util qw(vers_cmp install_string bin_loc 
</del><ins>+use Bugzilla::Install::Util qw(install_string bin_loc
</ins><span class="cx">                                extension_requirement_packages);
</span><span class="cx"> use List::Util qw(max);
</span><del>-use Safe;
</del><span class="cx"> use Term::ANSIColor;
</span><span class="cx"> 
</span><del>-# Return::Value 1.666002 pollutes the error log with warnings about this
-# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
-# in have_vers() to disable these warnings.
-BEGIN {
-    $Return::Value::NO_CLUCK = 1;
-}
-
-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT = qw(
</span><span class="cx">     REQUIRED_MODULES
</span><span class="cx">     OPTIONAL_MODULES
</span><span class="lines">@@ -66,6 +49,8 @@
</span><span class="cx">     mod_headers =&gt; 'headers_module',
</span><span class="cx">     mod_env     =&gt; 'env_module',
</span><span class="cx">     mod_expires =&gt; 'expires_module',
</span><ins>+    mod_rewrite =&gt; 'rewrite_module',
+    mod_version =&gt; 'version_module'
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # These are all of the binaries that we could possibly use that can
</span><span class="lines">@@ -97,7 +82,6 @@
</span><span class="cx"> # are 'blacklisted'--that is, even if the version is high enough, Bugzilla
</span><span class="cx"> # will refuse to say that it's OK to run with that version.
</span><span class="cx"> sub REQUIRED_MODULES {
</span><del>-    my $perl_ver = sprintf('%vd', $^V);
</del><span class="cx">     my @modules = (
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'CGI.pm',
</span><span class="lines">@@ -111,43 +95,42 @@
</span><span class="cx">         module  =&gt; 'Digest::SHA',
</span><span class="cx">         version =&gt; 0
</span><span class="cx">     },
</span><ins>+    # 0.23 fixes incorrect handling of 1/2 &amp; 3/4 timezones.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'TimeDate',
</span><span class="cx">         module  =&gt; 'Date::Format',
</span><del>-        version =&gt; '2.21'
</del><ins>+        version =&gt; '2.23'
</ins><span class="cx">     },
</span><del>-    # 0.28 fixed some important bugs in DateTime.
</del><ins>+    # 0.75 fixes a warning thrown with Perl 5.17 and newer.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'DateTime',
</span><span class="cx">         module  =&gt; 'DateTime',
</span><del>-        version =&gt; '0.28'
</del><ins>+        version =&gt; '0.75'
</ins><span class="cx">     },
</span><del>-    # 0.79 is required to work on Windows Vista and Windows Server 2008.
-    # As correctly detecting the flavor of Windows is not easy,
-    # we require this version for all Windows installations.
-    # 0.71 fixes a major bug affecting all platforms.
</del><ins>+    # 1.64 fixes a taint issue preventing the local timezone from
+    # being determined on some systems.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'DateTime-TimeZone',
</span><span class="cx">         module  =&gt; 'DateTime::TimeZone',
</span><del>-        version =&gt; ON_WINDOWS ? '0.79' : '0.71'
</del><ins>+        version =&gt; '1.64'
</ins><span class="cx">     },
</span><ins>+    # 1.54 is required for Perl 5.10+. It also makes DBD::Oracle happy.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'DBI',
</span><span class="cx">         module  =&gt; 'DBI',
</span><del>-        version =&gt; (vers_cmp($perl_ver, '5.13.3') &gt; -1) ? '1.614' : '1.41'
</del><ins>+        version =&gt; ($^V &gt;= v5.13.3) ? '1.614' : '1.54'
</ins><span class="cx">     },
</span><del>-    # 2.22 fixes various problems related to UTF8 strings in hash keys,
-    # as well as line endings on Windows.
</del><ins>+    # 2.24 contains several useful text virtual methods.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'Template-Toolkit',
</span><span class="cx">         module  =&gt; 'Template',
</span><del>-        version =&gt; '2.22'
</del><ins>+        version =&gt; '2.24'
</ins><span class="cx">     },
</span><ins>+    # 1.300011 has a debug mode for SMTP and automatically pass -i to sendmail.
</ins><span class="cx">     {
</span><del>-        package =&gt; 'Email-Send',
-        module  =&gt; 'Email::Send',
-        version =&gt; ON_WINDOWS ? '2.16' : '2.00',
-        blacklist =&gt; ['^2\.196$']
</del><ins>+        package =&gt; 'Email-Sender',
+        module  =&gt; 'Email::Sender',
+        version =&gt; '1.300011',
</ins><span class="cx">     },
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'Email-MIME',
</span><span class="lines">@@ -158,14 +141,14 @@
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'URI',
</span><span class="cx">         module  =&gt; 'URI',
</span><del>-        # This version properly handles a semicolon as the delimiter
-        # in a URL query string.
-        version =&gt; '1.37',
</del><ins>+        # Follows RFC 3986 to escape characters in URI::Escape.
+        version =&gt; '1.55',
</ins><span class="cx">     },
</span><ins>+    # 0.32 fixes several memory leaks in the XS version of some functions.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'List-MoreUtils',
</span><span class="cx">         module  =&gt; 'List::MoreUtils',
</span><del>-        version =&gt; 0.22,
</del><ins>+        version =&gt; 0.32,
</ins><span class="cx">     },
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'Math-Random-ISAAC',
</span><span class="lines">@@ -172,10 +155,22 @@
</span><span class="cx">         module  =&gt; 'Math::Random::ISAAC',
</span><span class="cx">         version =&gt; '1.0.1',
</span><span class="cx">     },
</span><ins>+    {
+        package =&gt; 'File-Slurp',
+        module  =&gt; 'File::Slurp',
+        version =&gt; '9999.13',
+    },
+    {
+        package =&gt; 'JSON-XS',
+        module  =&gt; 'JSON::XS',
+        # 2.0 is the first version that will work with JSON::RPC.
+        version =&gt; '2.01',
+    },
</ins><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     if (ON_WINDOWS) {
</span><del>-        push(@modules, {
</del><ins>+        push(@modules,
+        {
</ins><span class="cx">             package =&gt; 'Win32',
</span><span class="cx">             module  =&gt; 'Win32',
</span><span class="cx">             # 0.35 fixes a memory leak in GetOSVersion, which we use.
</span><span class="lines">@@ -186,7 +181,14 @@
</span><span class="cx">             module  =&gt; 'Win32::API',
</span><span class="cx">             # 0.55 fixes a bug with char* that might affect Bugzilla::RNG.
</span><span class="cx">             version =&gt; '0.55',
</span><del>-        });
</del><ins>+        },
+        {
+            package =&gt; 'DateTime-TimeZone-Local-Win32',
+            module  =&gt; 'DateTime::TimeZone::Local::Win32',
+            # We require DateTime::TimeZone 1.64, so this version must match.
+            version =&gt; '1.64',
+        }
+        );
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $extra_modules = _get_extension_requirements('REQUIRED_MODULES');
</span><span class="lines">@@ -195,7 +197,6 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> sub OPTIONAL_MODULES {
</span><del>-    my $perl_ver = sprintf('%vd', $^V);
</del><span class="cx">     my @modules = (
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'GD',
</span><span class="lines">@@ -206,10 +207,9 @@
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'Chart',
</span><span class="cx">         module  =&gt; 'Chart::Lines',
</span><del>-        # Versions below 2.1 cannot be detected accurately.
-        # There is no 2.1.0 release (it was 2.1), but .0 is required to fix
</del><ins>+        # Versions below 2.4.1 cannot be compared accurately, see
</ins><span class="cx">         # https://rt.cpan.org/Public/Bug/Display.html?id=28218.
</span><del>-        version =&gt; '2.1.0',
</del><ins>+        version =&gt; '2.4.1',
</ins><span class="cx">         feature =&gt; [qw(new_charts old_charts)],
</span><span class="cx">     },
</span><span class="cx">     {
</span><span class="lines">@@ -271,11 +271,19 @@
</span><span class="cx">         feature =&gt; ['smtp_auth'],
</span><span class="cx">     },
</span><span class="cx">     {
</span><ins>+        package =&gt; 'Net-SMTP-SSL',
+        module  =&gt; 'Net::SMTP::SSL',
+        version =&gt; 1.01,
+        feature =&gt; ['smtp_ssl'],
+    },
+    {
</ins><span class="cx">         package =&gt; 'RadiusPerl',
</span><span class="cx">         module  =&gt; 'Authen::Radius',
</span><span class="cx">         version =&gt; 0,
</span><span class="cx">         feature =&gt; ['auth_radius'],
</span><span class="cx">     },
</span><ins>+    # XXX - Once we require XMLRPC::Lite 0.717 or higher, we can
+    # remove SOAP::Lite from the list.
</ins><span class="cx">     {
</span><span class="cx">         package =&gt; 'SOAP-Lite',
</span><span class="cx">         module  =&gt; 'SOAP::Lite',
</span><span class="lines">@@ -282,32 +290,36 @@
</span><span class="cx">         # Fixes various bugs, including 542931 and 552353 + stops
</span><span class="cx">         # throwing warnings with Perl 5.12.
</span><span class="cx">         version =&gt; '0.712',
</span><ins>+        # SOAP::Transport::HTTP 1.12 is bogus.
+        blacklist =&gt; ['^1\.12$'],
</ins><span class="cx">         feature =&gt; ['xmlrpc'],
</span><span class="cx">     },
</span><ins>+    # Since SOAP::Lite 1.0, XMLRPC::Lite is no longer included
+    # and so it must be checked separately.
</ins><span class="cx">     {
</span><ins>+        package =&gt; 'XMLRPC-Lite',
+        module  =&gt; 'XMLRPC::Lite',
+        version =&gt; '0.712',
+        feature =&gt; ['xmlrpc'],
+    },
+    {
</ins><span class="cx">         package =&gt; 'JSON-RPC',
</span><span class="cx">         module  =&gt; 'JSON::RPC',
</span><span class="cx">         version =&gt; 0,
</span><del>-        feature =&gt; ['jsonrpc'],
</del><ins>+        feature =&gt; ['jsonrpc', 'rest'],
</ins><span class="cx">     },
</span><span class="cx">     {
</span><del>-        package =&gt; 'JSON-XS',
-        module  =&gt; 'JSON::XS',
-        # 2.0 is the first version that will work with JSON::RPC.
-        version =&gt; '2.0',
-        feature =&gt; ['jsonrpc_faster'],
-    },
-    {
</del><span class="cx">         package =&gt; 'Test-Taint',
</span><span class="cx">         module  =&gt; 'Test::Taint',
</span><del>-        version =&gt; 0,
-        feature =&gt; ['jsonrpc', 'xmlrpc'],
</del><ins>+        # 1.06 no longer throws warnings with Perl 5.10+.
+        version =&gt; 1.06,
+        feature =&gt; ['jsonrpc', 'xmlrpc', 'rest'],
</ins><span class="cx">     },
</span><span class="cx">     {
</span><span class="cx">         # We need the 'utf8_mode' method of HTML::Parser, for HTML::Scrubber.
</span><span class="cx">         package =&gt; 'HTML-Parser',
</span><span class="cx">         module  =&gt; 'HTML::Parser',
</span><del>-        version =&gt; (vers_cmp($perl_ver, '5.13.3') &gt; -1) ? '3.67' : '3.40',
</del><ins>+        version =&gt; ($^V &gt;= v5.13.3) ? '3.67' : '3.40',
</ins><span class="cx">         feature =&gt; ['html_desc'],
</span><span class="cx">     },
</span><span class="cx">     {
</span><span class="lines">@@ -332,15 +344,16 @@
</span><span class="cx"> 
</span><span class="cx">     # Inbound Email
</span><span class="cx">     {
</span><del>-        package =&gt; 'Email-MIME-Attachment-Stripper',
-        module  =&gt; 'Email::MIME::Attachment::Stripper',
</del><ins>+        package =&gt; 'Email-Reply',
+        module  =&gt; 'Email::Reply',
</ins><span class="cx">         version =&gt; 0,
</span><span class="cx">         feature =&gt; ['inbound_email'],
</span><span class="cx">     },
</span><span class="cx">     {
</span><del>-        package =&gt; 'Email-Reply',
-        module  =&gt; 'Email::Reply',
-        version =&gt; 0,
</del><ins>+        package =&gt; 'HTML-FormatText-WithLinks',
+        module  =&gt; 'HTML::FormatText::WithLinks',
+        # We need 0.13 to set the &quot;bold&quot; marker to &quot;*&quot;.
+        version =&gt; '0.13',
</ins><span class="cx">         feature =&gt; ['inbound_email'],
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -348,7 +361,8 @@
</span><span class="cx">     {
</span><span class="cx">         package =&gt; 'TheSchwartz',
</span><span class="cx">         module  =&gt; 'TheSchwartz',
</span><del>-        version =&gt; 0,
</del><ins>+        # 1.07 supports the prioritization of jobs.
+        version =&gt; 1.07,
</ins><span class="cx">         feature =&gt; ['jobqueue'],
</span><span class="cx">     },
</span><span class="cx">     {
</span><span class="lines">@@ -372,6 +386,42 @@
</span><span class="cx">         version =&gt; '0.96',
</span><span class="cx">         feature =&gt; ['mod_perl'],
</span><span class="cx">     },
</span><ins>+
+    # typesniffer
+    {
+        package =&gt; 'File-MimeInfo',
+        module  =&gt; 'File::MimeInfo::Magic',
+        version =&gt; '0',
+        feature =&gt; ['typesniffer'],
+    },
+    {
+        package =&gt; 'IO-stringy',
+        module  =&gt; 'IO::Scalar',
+        version =&gt; '0',
+        feature =&gt; ['typesniffer'],
+    },
+
+    # memcached
+    {
+        package =&gt; 'Cache-Memcached',
+        module  =&gt; 'Cache::Memcached',
+        version =&gt; '0',
+        feature =&gt; ['memcached'],
+    },
+
+    # Documentation
+    {
+        package =&gt; 'File-Copy-Recursive',
+        module  =&gt; 'File::Copy::Recursive',
+        version =&gt; 0,
+        feature =&gt; ['documentation'],
+    },
+    {
+        package =&gt; 'File-Which',
+        module  =&gt; 'File::Which',
+        version =&gt; 0,
+        feature =&gt; ['documentation'],
+    },
</ins><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     my $extra_modules = _get_extension_requirements('OPTIONAL_MODULES');
</span><span class="lines">@@ -385,14 +435,18 @@
</span><span class="cx">     jsonrpc       =&gt; ['Bugzilla/WebService/Server/JSONRPC.pm', 'jsonrpc.cgi'],
</span><span class="cx">     xmlrpc        =&gt; ['Bugzilla/WebService/Server/XMLRPC.pm', 'xmlrpc.cgi',
</span><span class="cx">                       'Bugzilla/WebService.pm', 'Bugzilla/WebService/*.pm'],
</span><ins>+    rest          =&gt; ['Bugzilla/WebService/Server/REST.pm', 'rest.cgi',
+                      'Bugzilla/WebService/Server/REST/Resources/*.pm'],
</ins><span class="cx">     moving        =&gt; ['importxml.pl'],
</span><span class="cx">     auth_ldap     =&gt; ['Bugzilla/Auth/Verify/LDAP.pm'],
</span><span class="cx">     auth_radius   =&gt; ['Bugzilla/Auth/Verify/RADIUS.pm'],
</span><ins>+    documentation =&gt; ['docs/makedocs.pl'],
</ins><span class="cx">     inbound_email =&gt; ['email_in.pl'],
</span><span class="cx">     jobqueue      =&gt; ['Bugzilla/Job/*', 'Bugzilla/JobQueue.pm',
</span><span class="cx">                       'Bugzilla/JobQueue/*', 'jobqueue.pl'],
</span><span class="cx">     patch_viewer  =&gt; ['Bugzilla/Attachment/PatchReader.pm'],
</span><span class="cx">     updates       =&gt; ['Bugzilla/Update.pm'],
</span><ins>+    memcached     =&gt; ['Bugzilla/Memcache.pm'],
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> # This implements the REQUIRED_MODULES and OPTIONAL_MODULES stuff
</span><span class="lines">@@ -475,7 +529,7 @@
</span><span class="cx">         return [];
</span><span class="cx">     }
</span><span class="cx">     my @missing;
</span><del>-    foreach my $module (keys %$modules) {
</del><ins>+    foreach my $module (sort keys %$modules) {
</ins><span class="cx">         my $ok = _check_apache_module($module, $modules-&gt;{$module}, 
</span><span class="cx">                                       $cmd_info, $output);
</span><span class="cx">         push(@missing, $module) if !$ok;
</span><span class="lines">@@ -909,3 +963,11 @@
</span><span class="cx"> that must be enabled in order to compile that file.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item print_module_instructions
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallUtilpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install/Util.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install/Util.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install/Util.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install::Util;
</span><span class="cx"> 
</span><span class="lines">@@ -24,21 +11,21 @@
</span><span class="cx"> # module may require *only* Bugzilla::Constants and built-in
</span><span class="cx"> # perl modules.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span><span class="cx"> use Encode;
</span><del>-use ExtUtils::MM ();
</del><span class="cx"> use File::Basename;
</span><span class="cx"> use File::Spec;
</span><span class="cx"> use POSIX qw(setlocale LC_CTYPE);
</span><del>-use Safe;
</del><span class="cx"> use Scalar::Util qw(tainted);
</span><span class="cx"> use Term::ANSIColor qw(colored);
</span><span class="cx"> use PerlIO;
</span><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT_OK = qw(
</span><span class="cx">     bin_loc
</span><span class="cx">     get_version_and_os
</span><span class="lines">@@ -52,12 +39,14 @@
</span><span class="cx">     include_languages
</span><span class="cx">     success
</span><span class="cx">     template_include_path
</span><del>-    vers_cmp
</del><span class="cx">     init_console
</span><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> sub bin_loc {
</span><span class="cx">     my ($bin, $path) = @_;
</span><ins>+    # This module is not needed most of the time and is a bit slow,
+    # so we only load it when calling bin_loc().
+    require ExtUtils::MM;
</ins><span class="cx"> 
</span><span class="cx">     # If the binary is a full path...
</span><span class="cx">     if ($bin =~ m{[/\\]}) {
</span><span class="lines">@@ -382,7 +371,10 @@
</span><span class="cx"> 
</span><span class="cx">     # Basically, the way this works is that we have a list of languages
</span><span class="cx">     # that we *want*, and a list of languages that Bugzilla actually
</span><del>-    # supports.
</del><ins>+    # supports. If there is only one language installed, we take it.
+    my $supported = supported_languages();
+    return @$supported if @$supported == 1;
+
</ins><span class="cx">     my $wanted;
</span><span class="cx">     if ($params-&gt;{language}) {
</span><span class="cx">         # We can pass several languages at once as an arrayref
</span><span class="lines">@@ -393,7 +385,6 @@
</span><span class="cx">     else {
</span><span class="cx">         $wanted = _wanted_languages();
</span><span class="cx">     }
</span><del>-    my $supported = supported_languages();
</del><span class="cx">     my $actual    = _wanted_to_actual_languages($wanted, $supported);
</span><span class="cx">     return @$actual;
</span><span class="cx"> }
</span><span class="lines">@@ -485,49 +476,6 @@
</span><span class="cx">     return \@include_path;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# This is taken straight from Sort::Versions 1.5, which is not included
-# with perl by default.
-sub vers_cmp {
-    my ($a, $b) = @_;
-
-    # Remove leading zeroes - Bug 344661
-    $a =~ s/^0*(\d.+)/$1/;
-    $b =~ s/^0*(\d.+)/$1/;
-
-    my @A = ($a =~ /([-.]|\d+|[^-.\d]+)/g);
-    my @B = ($b =~ /([-.]|\d+|[^-.\d]+)/g);
-
-    my ($A, $B);
-    while (@A and @B) {
-        $A = shift @A;
-        $B = shift @B;
-        if ($A eq '-' and $B eq '-') {
-            next;
-        } elsif ( $A eq '-' ) {
-            return -1;
-        } elsif ( $B eq '-') {
-            return 1;
-        } elsif ($A eq '.' and $B eq '.') {
-            next;
-        } elsif ( $A eq '.' ) {
-            return -1;
-        } elsif ( $B eq '.' ) {
-            return 1;
-        } elsif ($A =~ /^\d+$/ and $B =~ /^\d+$/) {
-            if ($A =~ /^0/ || $B =~ /^0/) {
-                return $A cmp $B if $A cmp $B;
-            } else {
-                return $A &lt;=&gt; $B if $A &lt;=&gt; $B;
-            }
-        } else {
-            $A = uc $A;
-            $B = uc $B;
-            return $A cmp $B if $A cmp $B;
-        }
-    }
-    @A &lt;=&gt; @B;
-}
-
</del><span class="cx"> sub no_checksetup_from_cgi {
</span><span class="cx">     print &quot;Content-Type: text/html; charset=UTF-8\r\n\r\n&quot;;
</span><span class="cx">     print install_string('no_checksetup_from_cgi');
</span><span class="lines">@@ -541,11 +489,20 @@
</span><span class="cx"> # Used by install_string
</span><span class="cx"> sub _get_string_from_file {
</span><span class="cx">     my ($string_id, $file) = @_;
</span><del>-    
</del><ins>+    # If we already loaded the file, then use its copy from the cache.
+    if (my $strings = _cache()-&gt;{strings_from_file}-&gt;{$file}) {
+        return $strings-&gt;{$string_id};
+    }
+
+    # This module is only needed by checksetup.pl,
+    # so only load it when needed.
+    require Safe;
+
</ins><span class="cx">     return undef if !-e $file;
</span><span class="cx">     my $safe = new Safe;
</span><span class="cx">     $safe-&gt;rdo($file);
</span><span class="cx">     my %strings = %{$safe-&gt;varglob('strings')};
</span><ins>+    _cache()-&gt;{strings_from_file}-&gt;{$file} = \%strings;
</ins><span class="cx">     return $strings{$string_id};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -894,26 +851,36 @@
</span><span class="cx"> are compiled with the browser's I&lt;Accept-Language&gt; and the languages 
</span><span class="cx"> of installed templates.
</span><span class="cx"> 
</span><del>-=item C&lt;vers_cmp&gt;
</del><ins>+=back
</ins><span class="cx"> 
</span><ins>+=head1 B&lt;Methods in need of POD&gt;
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item B&lt;Description&gt;
</del><ins>+=item supported_languages
</ins><span class="cx"> 
</span><del>-This is a comparison function, like you would use in C&lt;sort&gt;, except that
-it compares two version numbers. So, for example, 2.10 would be greater
-than 2.2.
</del><ins>+=item extension_template_directory
</ins><span class="cx"> 
</span><del>-It's based on versioncmp from L&lt;Sort::Versions&gt;, with some Bugzilla-specific
-fixes.
</del><ins>+=item extension_code_files
</ins><span class="cx"> 
</span><del>-=item B&lt;Params&gt;: C&lt;$a&gt; and C&lt;$b&gt; - The versions you want to compare.
</del><ins>+=item extension_web_directory
</ins><span class="cx"> 
</span><del>-=item B&lt;Returns&gt;
</del><ins>+=item trick_taint
</ins><span class="cx"> 
</span><del>-C&lt;-1&gt; if C&lt;$a&gt; is less than C&lt;$b&gt;, C&lt;0&gt; if they are equal, or C&lt;1&gt; if C&lt;$a&gt;
-is greater than C&lt;$b&gt;.
</del><ins>+=item success
</ins><span class="cx"> 
</span><del>-=back
</del><ins>+=item trim
</ins><span class="cx"> 
</span><ins>+=item extension_package_directory
+
+=item set_output_encoding
+
+=item extension_requirement_packages
+
+=item prevent_windows_dialog_boxes
+
+=item sortQvalue
+
+=item no_checksetup_from_cgi
+
</ins><span class="cx"> =back
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaInstallpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Install.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Install.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Install.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Install;
</span><span class="cx"> 
</span><span class="lines">@@ -24,7 +15,9 @@
</span><span class="cx"> # make those assumptions, then it should go into one of the
</span><span class="cx"> # packages under the Bugzilla::Install namespace.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Component;
</span><span class="cx"> use Bugzilla::Config qw(:admin);
</span><span class="lines">@@ -70,8 +63,6 @@
</span><span class="cx">     csv_colsepchar     =&gt; { options =&gt; [',',';'], default =&gt; ',' },
</span><span class="cx">     # 2005-10-26 wurblzap@gmail.com -- Bug 291459
</span><span class="cx">     zoom_textareas     =&gt; { options =&gt; [&quot;on&quot;, &quot;off&quot;], default =&gt; &quot;on&quot; },
</span><del>-    # 2005-10-21 LpSolit@gmail.com -- Bug 313020
-    per_bug_queries    =&gt; { options =&gt; ['on', 'off'], default =&gt; 'off' },
</del><span class="cx">     # 2006-05-01 olav@bkor.dhs.org -- Bug 7710
</span><span class="cx">     state_addselfcc    =&gt; { options =&gt; ['always', 'never',  'cc_unless_role'],
</span><span class="cx">                             default =&gt; 'cc_unless_role' },
</span><span class="lines">@@ -93,6 +84,12 @@
</span><span class="cx">     # 2011-06-21 glob@mozilla.com -- Bug 589128
</span><span class="cx">     email_format       =&gt; { options =&gt; ['html', 'text_only'],
</span><span class="cx">                             default =&gt; 'html' },
</span><ins>+    # 2011-10-11 glob@mozilla.com -- Bug 301656
+    requestee_cc       =&gt; { options =&gt; ['on', 'off'], default =&gt; 'on' },
+    # 2012-04-30 glob@mozilla.com -- Bug 663747
+    bugmail_new_prefix =&gt; { options =&gt; ['on', 'off'], default =&gt; 'on' },
+    # 2013-07-26 joshi_sunil@in.com -- Bug 669535
+    possible_duplicates =&gt; { options =&gt; ['on', 'off'], default =&gt; 'on' },
</ins><span class="cx">     }
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -188,7 +185,7 @@
</span><span class="cx">     my $any_settings = $dbh-&gt;selectrow_array(
</span><span class="cx">         'SELECT 1 FROM setting ' . $dbh-&gt;sql_limit(1));
</span><span class="cx">     if (!$any_settings) {
</span><del>-        print get_text('install_setting_setup'), &quot;\n&quot;;
</del><ins>+        say get_text('install_setting_setup');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my %settings = %{SETTINGS()};
</span><span class="lines">@@ -199,6 +196,9 @@
</span><span class="cx">                     $settings{$setting}-&gt;{subclass}, undef,
</span><span class="cx">                     !$any_settings);
</span><span class="cx">     }
</span><ins>+
+    # Delete the obsolete 'per_bug_queries' user preference. Bug 616191.
+    $dbh-&gt;do('DELETE FROM setting WHERE name = ?', undef, 'per_bug_queries');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub update_system_groups {
</span><span class="lines">@@ -210,7 +210,7 @@
</span><span class="cx">     # adding groups.
</span><span class="cx">     my $editbugs_exists = new Bugzilla::Group({ name =&gt; 'editbugs' });
</span><span class="cx">     if (!$editbugs_exists) {
</span><del>-        print get_text('install_groups_setup'), &quot;\n&quot;;
</del><ins>+        say get_text('install_groups_setup');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Create most of the system groups
</span><span class="lines">@@ -281,7 +281,7 @@
</span><span class="cx">     my $has_workflow = $dbh-&gt;selectrow_array('SELECT 1 FROM status_workflow');
</span><span class="cx">     return if $has_workflow;
</span><span class="cx"> 
</span><del>-    print get_text('install_workflow_init'), &quot;\n&quot;;
</del><ins>+    say get_text('install_workflow_init');
</ins><span class="cx"> 
</span><span class="cx">     my %status_ids = @{ $dbh-&gt;selectcol_arrayref(
</span><span class="cx">         'SELECT value, id FROM bug_status', {Columns=&gt;[1,2]}) };
</span><span class="lines">@@ -316,7 +316,7 @@
</span><span class="cx">     my $full_name = $answer{'ADMIN_REALNAME'};
</span><span class="cx"> 
</span><span class="cx">     if (!$login || !$password || !$full_name) {
</span><del>-        print &quot;\n&quot; . get_text('install_admin_setup') . &quot;\n\n&quot;;
</del><ins>+        say &quot;\n&quot; . get_text('install_admin_setup') . &quot;\n&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     while (!$login) {
</span><span class="lines">@@ -323,9 +323,9 @@
</span><span class="cx">         print get_text('install_admin_get_email') . ' ';
</span><span class="cx">         $login = &lt;STDIN&gt;;
</span><span class="cx">         chomp $login;
</span><del>-        eval { Bugzilla::User-&gt;check_login_name_for_creation($login); };
</del><ins>+        eval { Bugzilla::User-&gt;check_login_name($login); };
</ins><span class="cx">         if ($@) {
</span><del>-            print $@ . &quot;\n&quot;;
</del><ins>+            say $@;
</ins><span class="cx">             undef $login;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -382,8 +382,14 @@
</span><span class="cx">         write_params();
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Make sure the new admin isn't disabled
+    if ($user-&gt;disabledtext) {
+        $user-&gt;set_disabledtext('');
+        $user-&gt;update();
+    }
+
</ins><span class="cx">     if (Bugzilla-&gt;usage_mode == USAGE_MODE_CMDLINE) {
</span><del>-        print &quot;\n&quot;, get_text('install_admin_created', { user =&gt; $user }), &quot;\n&quot;;
</del><ins>+        say &quot;\n&quot;, get_text('install_admin_created', { user =&gt; $user });
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -408,7 +414,7 @@
</span><span class="cx">         chomp $pass2;
</span><span class="cx">         eval { validate_password($password, $pass2); };
</span><span class="cx">         if ($@) {
</span><del>-            print &quot;\n$@\n&quot;;
</del><ins>+            say &quot;\n$@&quot;;
</ins><span class="cx">             undef $password;
</span><span class="cx">         }
</span><span class="cx">         system(&quot;stty&quot;,&quot;echo&quot;) unless ON_WINDOWS;
</span><span class="lines">@@ -430,7 +436,7 @@
</span><span class="cx">     my $password = _prompt_for_password($prompt);
</span><span class="cx">     $user-&gt;set_password($password);
</span><span class="cx">     $user-&gt;update();
</span><del>-    print &quot;\n&quot;, get_text('install_reset_password_done'), &quot;\n&quot;;
</del><ins>+    say &quot;\n&quot;, get_text('install_reset_password_done');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="lines">@@ -490,3 +496,19 @@
</span><span class="cx"> Returns:     nothing
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item update_system_groups
+
+=item reset_password
+
+=item make_admin
+
+=item create_admin
+
+=item init_workflow
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaJobBugMailpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Job/BugMail.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Job/BugMail.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Job/BugMail.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Job::BugMail;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::BugMail;
+BEGIN { eval &quot;use parent qw(Bugzilla::Job::Mailer)&quot;; }
+
+sub work {
+    my ($class, $job) = @_;
+    my $success = eval {
+        Bugzilla::BugMail::dequeue($job-&gt;arg-&gt;{vars});
+        1;
+    };
+    if (!$success) {
+        $job-&gt;failed($@);
+        undef $@;
+    }
+    else {
+        $job-&gt;completed;
+    }
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaJobMailerpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Job/Mailer.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Job/Mailer.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Job/Mailer.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Mozilla Corporation.
-# Portions created by the Initial Developer are Copyright (C) 2008
-# Mozilla Corporation. All Rights Reserved.
-#
-# Contributor(s): 
-#   Mark Smith &lt;mark@mozilla.com&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Job::Mailer;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::Mailer;
</span><del>-BEGIN { eval &quot;use base qw(TheSchwartz::Worker)&quot;; }
</del><ins>+BEGIN { eval &quot;use parent qw(TheSchwartz::Worker)&quot;; }
</ins><span class="cx"> 
</span><span class="cx"> # The longest we expect a job to possibly take, in seconds.
</span><span class="cx"> use constant grab_for =&gt; 300;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaJobQueueRunnerpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue/Runner.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue/Runner.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue/Runner.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Mozilla Corporation.
-# Portions created by the Initial Developer are Copyright (C) 2008
-# Mozilla Corporation. All Rights Reserved.
-#
-# Contributor(s): 
-#   Mark Smith &lt;mark@mozilla.com&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # XXX In order to support Windows, we have to make gd_redirect_output
</span><span class="cx"> # use Log4Perl or something instead of calling &quot;logger&quot;. We probably
</span><span class="lines">@@ -26,7 +11,10 @@
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::JobQueue::Runner;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Cwd qw(abs_path);
</span><span class="cx"> use File::Basename;
</span><span class="cx"> use File::Copy;
</span><span class="lines">@@ -35,7 +23,7 @@
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::JobQueue;
</span><span class="cx"> use Bugzilla::Util qw(get_text);
</span><del>-BEGIN { eval &quot;use base qw(Daemon::Generic)&quot;; }
</del><ins>+BEGIN { eval &quot;use parent qw(Daemon::Generic)&quot;; }
</ins><span class="cx"> 
</span><span class="cx"> our $VERSION = BUGZILLA_VERSION;
</span><span class="cx"> 
</span><span class="lines">@@ -51,6 +39,7 @@
</span><span class="cx"> sub gd_preconfig {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><ins>+    $self-&gt;{_run_command} = 'subprocess_worker';
</ins><span class="cx">     my $pidfile = $self-&gt;{gd_args}{pidfile};
</span><span class="cx">     if (!$pidfile) {
</span><span class="cx">         $pidfile = bz_locations()-&gt;{datadir} . '/' . $self-&gt;{gd_progname} 
</span><span class="lines">@@ -149,6 +138,7 @@
</span><span class="cx">             print $config_fh &lt;&lt;END;
</span><span class="cx"> #!/bin/sh
</span><span class="cx"> BUGZILLA=&quot;$directory&quot;
</span><ins>+# This user must have write access to Bugzilla's data/ directory.
</ins><span class="cx"> USER=$owner
</span><span class="cx"> END
</span><span class="cx">             close($config_fh);
</span><span class="lines">@@ -196,21 +186,25 @@
</span><span class="cx">     $SIG{TERM} = sub { $self-&gt;gd_quit_event(); }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub gd_quit_event {
+    Bugzilla-&gt;job_queue-&gt;kill_worker();
+    exit(1);
+}
+
</ins><span class="cx"> sub gd_other_cmd {
</span><del>-    my ($self) = shift;
-    if ($ARGV[0] eq &quot;once&quot;) {
-        $self-&gt;_do_work(&quot;work_once&quot;);
-
-        exit(0);
</del><ins>+    my ($self, $do, $locked) = @_;
+    if ($do eq &quot;once&quot;) {
+        $self-&gt;{_run_command} = 'work_once';
+    } elsif ($do eq &quot;onepass&quot;) {
+        $self-&gt;{_run_command} = 'work_until_done';
+    } else {
+        $self-&gt;SUPER::gd_other_cmd($do, $locked);
</ins><span class="cx">     }
</span><del>-    
-    $self-&gt;SUPER::gd_other_cmd();
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub gd_run {
</span><span class="cx">     my $self = shift;
</span><del>-
-    $self-&gt;_do_work(&quot;work&quot;);
</del><ins>+    $self-&gt;_do_work($self-&gt;{_run_command});
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _do_work {
</span><span class="lines">@@ -218,11 +212,11 @@
</span><span class="cx"> 
</span><span class="cx">     my $jq = Bugzilla-&gt;job_queue();
</span><span class="cx">     $jq-&gt;set_verbose($self-&gt;{debug});
</span><ins>+    $jq-&gt;set_pidfile($self-&gt;{gd_pidfile});
</ins><span class="cx">     foreach my $module (values %{ Bugzilla::JobQueue-&gt;job_map() }) {
</span><span class="cx">         eval &quot;use $module&quot;;
</span><span class="cx">         $jq-&gt;can_do($module);
</span><span class="cx">     }
</span><del>-
</del><span class="cx">     $jq-&gt;$fn;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -244,3 +238,33 @@
</span><span class="cx"> 
</span><span class="cx"> This is a subclass of L&lt;Daemon::Generic&gt; that is used by L&lt;jobqueue&gt;
</span><span class="cx"> to run the Bugzilla job queue.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item gd_check
+
+=item gd_run
+
+=item gd_can_install
+
+=item gd_quit_event
+
+=item gd_other_cmd
+
+=item gd_more_opt
+
+=item gd_postconfig
+
+=item gd_usage
+
+=item gd_getopt
+
+=item gd_preconfig
+
+=item gd_can_uninstall
+
+=item gd_setup_signals
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaJobQueuepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/JobQueue.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,38 +1,29 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Mozilla Corporation.
-# Portions created by the Initial Developer are Copyright (C) 2008
-# Mozilla Corporation. All Rights Reserved.
-#
-# Contributor(s): 
-#   Mark Smith &lt;mark@mozilla.com&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::JobQueue;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Install::Util qw(install_string);
</span><ins>+use File::Basename;
+use File::Slurp;
</ins><span class="cx"> use base qw(TheSchwartz);
</span><ins>+use fields qw(_worker_pidfile);
</ins><span class="cx"> 
</span><span class="cx"> # This maps job names for Bugzilla::JobQueue to the appropriate modules.
</span><span class="cx"> # If you add new types of jobs, you should add a mapping here.
</span><span class="cx"> use constant JOB_MAP =&gt; {
</span><span class="cx">     send_mail =&gt; 'Bugzilla::Job::Mailer',
</span><ins>+    bug_mail  =&gt; 'Bugzilla::Job::BugMail',
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Without a driver cache TheSchwartz opens a new database connection
</span><span class="lines">@@ -40,6 +31,10 @@
</span><span class="cx"> # across requests.
</span><span class="cx"> use constant DRIVER_CACHE_TIME =&gt; 300; # 5 minutes
</span><span class="cx"> 
</span><ins>+# To avoid memory leak/fragmentation, a worker process won't process more than
+# MAX_MESSAGES messages.
+use constant MAX_MESSAGES =&gt; 1000;
+
</ins><span class="cx"> sub job_map {
</span><span class="cx">     if (!defined(Bugzilla-&gt;request_cache-&gt;{job_map})) {
</span><span class="cx">         my $job_map = JOB_MAP;
</span><span class="lines">@@ -54,7 +49,7 @@
</span><span class="cx">     my $class = shift;
</span><span class="cx"> 
</span><span class="cx">     if (!Bugzilla-&gt;feature('jobqueue')) {
</span><del>-        ThrowCodeError('feature_disabled', { feature =&gt; 'jobqueue' });
</del><ins>+        ThrowUserError('feature_disabled', { feature =&gt; 'jobqueue' });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $lc = Bugzilla-&gt;localconfig;
</span><span class="lines">@@ -68,6 +63,7 @@
</span><span class="cx">             prefix =&gt; 'ts_',
</span><span class="cx">         }],
</span><span class="cx">         driver_cache_expiration =&gt; DRIVER_CACHE_TIME,
</span><ins>+        prioritize =&gt; 1,
</ins><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     return $self;
</span><span class="lines">@@ -85,12 +81,19 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my $job = shift;
</span><span class="cx"> 
</span><del>-    my $mapped_job = Bugzilla::JobQueue-&gt;job_map()-&gt;{$job};
-    ThrowCodeError('jobqueue_no_job_mapping', { job =&gt; $job })
-        if !$mapped_job;
-    unshift(@_, $mapped_job);
</del><ins>+    if (!ref($job)) {
+        my $mapped_job = Bugzilla::JobQueue-&gt;job_map()-&gt;{$job};
+        ThrowCodeError('jobqueue_no_job_mapping', { job =&gt; $job })
+            if !$mapped_job;
</ins><span class="cx"> 
</span><del>-    my $retval = $self-&gt;SUPER::insert(@_);
</del><ins>+        $job = new TheSchwartz::Job(
+            funcname =&gt; $mapped_job,
+            arg      =&gt; $_[0],
+            priority =&gt; $_[1] || 5
+        );
+    }
+    
+    my $retval = $self-&gt;SUPER::insert($job);
</ins><span class="cx">     # XXX Need to get an error message here if insert fails, but
</span><span class="cx">     # I don't see any way to do that in TheSchwartz.
</span><span class="cx">     ThrowCodeError('jobqueue_insert_failed', { job =&gt; $job, errmsg =&gt; $@ })
</span><span class="lines">@@ -99,6 +102,74 @@
</span><span class="cx">     return $retval;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# To avoid memory leaks/fragmentation which tends to happen for long running
+# perl processes; check for jobs, and spawn a new process to empty the queue.
+sub subprocess_worker {
+    my $self = shift;
+
+    my $command = &quot;$0 -d -p '&quot; . $self-&gt;{_worker_pidfile} . &quot;' onepass&quot;;
+
+    while (1) {
+        my $time = (time);
+        my @jobs = $self-&gt;list_jobs({
+            funcname      =&gt; $self-&gt;{all_abilities},
+            run_after     =&gt; $time,
+            grabbed_until =&gt; $time,
+            limit         =&gt; 1,
+        });
+        if (@jobs) {
+            $self-&gt;debug(&quot;Spawning queue worker process&quot;);
+            # Run the worker as a daemon
+            system $command;
+            # And poll the PID to detect when the working has finished.
+            # We do this instead of system() to allow for the INT signal to
+            # interrup us and trigger kill_worker().
+            my $pid = read_file($self-&gt;{_worker_pidfile}, err_mode =&gt; 'quiet');
+            if ($pid) {
+                sleep(3) while(kill(0, $pid));
+            }
+            $self-&gt;debug(&quot;Queue worker process completed&quot;);
+        } else {
+            $self-&gt;debug(&quot;No jobs found&quot;);
+        }
+        sleep(5);
+    }
+}
+
+sub kill_worker {
+    my $self = Bugzilla-&gt;job_queue();
+    if ($self-&gt;{_worker_pidfile} &amp;&amp; -e $self-&gt;{_worker_pidfile}) {
+        my $worker_pid = read_file($self-&gt;{_worker_pidfile});
+        if ($worker_pid &amp;&amp; kill(0, $worker_pid)) {
+            $self-&gt;debug(&quot;Stopping worker process&quot;);
+            system &quot;$0 -f -p '&quot; . $self-&gt;{_worker_pidfile} . &quot;' stop&quot;;
+        }
+    }
+}
+
+sub set_pidfile {
+    my ($self, $pidfile) = @_;
+    $self-&gt;{_worker_pidfile} = bz_locations-&gt;{'datadir'} .
+                               '/worker-' . basename($pidfile);
+}
+
+# Clear the request cache at the start of each run.
+sub work_once {
+    my $self = shift;
+    Bugzilla-&gt;clear_request_cache();
+    return $self-&gt;SUPER::work_once(@_);
+}
+
+# Never process more than MAX_MESSAGES in one batch, to avoid memory
+# leak/fragmentation issues.
+sub work_until_done {
+    my $self = shift;
+    my $count = 0;
+    while ($count++ &lt; MAX_MESSAGES) {
+        $self-&gt;work_once or last;
+    }
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -124,3 +195,19 @@
</span><span class="cx"> See the synopsis above for an easy to follow example on how to insert a
</span><span class="cx"> job into the queue.  Give it a name and some arguments and the job will
</span><span class="cx"> be sent away to be done later.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item insert
+
+=item bz_databases
+
+=item job_map
+
+=item set_pidfile
+
+=item kill_worker
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaKeywordpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Keyword.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Keyword.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Keyword.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Keyword;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Keyword;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><span class="lines">@@ -27,6 +20,8 @@
</span><span class="cx"> ####    Initialization     ####
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_COLUMNS =&gt; qw(
</span><span class="cx">    keyworddefs.id
</span><span class="cx">    keyworddefs.name
</span><span class="lines">@@ -113,7 +108,7 @@
</span><span class="cx"> 
</span><span class="cx">     # We only want to validate the non-existence of the name if
</span><span class="cx">     # we're creating a new Keyword or actually renaming the keyword.
</span><del>-    if (!ref($self) || $self-&gt;name ne $name) {
</del><ins>+    if (!ref($self) || lc($self-&gt;name) ne lc($name)) {
</ins><span class="cx">         my $keyword = new Bugzilla::Keyword({ name =&gt; $name });
</span><span class="cx">         ThrowUserError(&quot;keyword_already_exists&quot;, { name =&gt; $name }) if $keyword;
</span><span class="cx">     }
</span><span class="lines">@@ -174,3 +169,17 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_description
+
+=item bug_count
+
+=item set_name
+
+=item description
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMIMEpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/MIME.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/MIME.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/MIME.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,121 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::MIME;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Email::MIME);
+
+sub new {
+    my ($class, $msg) = @_;
+    state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
+
+    # Template-Toolkit trims trailing newlines, which is problematic when
+    # parsing headers.
+    $msg =~ s/\n*$/\n/;
+
+    # Because the encoding headers are not present in our email templates, we
+    # need to treat them as binary UTF-8 when parsing.
+    my ($in_header, $has_type, $has_encoding, $has_body) = (1);
+    foreach my $line (split(/\n/, $msg)) {
+        if ($line eq '') {
+            $in_header = 0;
+            next;
+        }
+        if (!$in_header) {
+            $has_body = 1;
+            last;
+        }
+        $has_type = 1 if $line =~ /^Content-Type:/i;
+        $has_encoding = 1 if $line =~ /^Content-Transfer-Encoding:/i;
+    }
+    if ($has_body) {
+        if (!$has_type &amp;&amp; $use_utf8) {
+            $msg = qq#Content-Type: text/plain; charset=&quot;UTF-8&quot;\n# . $msg;
+        }
+        if (!$has_encoding) {
+            $msg = qq#Content-Transfer-Encoding: binary\n# . $msg;
+        }
+    }
+    if ($use_utf8 &amp;&amp; utf8::is_utf8($msg)) {
+        utf8::encode($msg);
+    }
+
+    # RFC 2822 requires us to have CRLF for our line endings and
+    # Email::MIME doesn't do this for us. We use \015 (CR) and \012 (LF)
+    # directly because Perl translates &quot;\n&quot; depending on what platform
+    # you're running on. See http://perldoc.perl.org/perlport.html#Newlines
+    $msg =~ s/(?:\015+)?\012/\015\012/msg;
+
+    return $class-&gt;SUPER::new($msg);
+}
+
+sub as_string {
+    my $self = shift;
+    state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
+
+    # We add this header to uniquely identify all email that we
+    # send as coming from this Bugzilla installation.
+    #
+    # We don't use correct_urlbase, because we want this URL to
+    # *always* be the same for this Bugzilla, in every email,
+    # even if the admin changes the &quot;ssl_redirect&quot; parameter some day.
+    $self-&gt;header_set('X-Bugzilla-URL', Bugzilla-&gt;params-&gt;{'urlbase'});
+
+    # We add this header to mark the mail as &quot;auto-generated&quot; and
+    # thus to hopefully avoid auto replies.
+    $self-&gt;header_set('Auto-Submitted', 'auto-generated');
+
+    # MIME-Version must be set otherwise some mailsystems ignore the charset
+    $self-&gt;header_set('MIME-Version', '1.0') if !$self-&gt;header('MIME-Version');
+
+    # Encode the headers correctly.
+    foreach my $header ($self-&gt;header_names) {
+        my @values = $self-&gt;header($header);
+        map { utf8::decode($_) if defined($_) &amp;&amp; !utf8::is_utf8($_) } @values;
+
+        $self-&gt;header_str_set($header, @values);
+    }
+
+    # Ensure the character-set and encoding is set correctly on single part
+    # emails.  Multipart emails should have these already set when the parts
+    # are assembled.
+    if (scalar($self-&gt;parts) == 1) {
+        $self-&gt;charset_set('UTF-8') if $use_utf8;
+        $self-&gt;encoding_set('quoted-printable');
+    }
+
+    # Ensure we always return the encoded string
+    my $value = $self-&gt;SUPER::as_string();
+    if ($use_utf8 &amp;&amp; utf8::is_utf8($value)) {
+        utf8::encode($value);
+    }
+
+    return $value;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::MIME - Wrapper around Email::MIME for unifying MIME related
+workarounds.
+
+=head1 SYNOPSIS
+
+  use Bugzilla::MIME;
+  my $email = Bugzilla::MIME-&gt;new($message);
+
+=head1 DESCRIPTION
+
+Bugzilla::MIME subclasses Email::MIME and performs various fixes when parsing
+and generating email.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMailerpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Mailer.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Mailer.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Mailer.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,60 +1,92 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;,
-#                 Bryce Nesbitt &lt;bryce-mozilla@nextbus.com&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Alan Raetz &lt;al_raetz@yahoo.com&gt;
-#                 Jacob Steenhagen &lt;jake@actex.net&gt;
-#                 Matthew Tuck &lt;matty@chariot.net.au&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Mailer;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Exporter);
-@Bugzilla::Mailer::EXPORT = qw(MessageToMTA build_thread_marker);
</del><ins>+use parent qw(Exporter);
+@Bugzilla::Mailer::EXPORT = qw(MessageToMTA build_thread_marker generate_email);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Hook;
</span><ins>+use Bugzilla::MIME;
</ins><span class="cx"> use Bugzilla::Util;
</span><ins>+use Bugzilla::User;
</ins><span class="cx"> 
</span><span class="cx"> use Date::Format qw(time2str);
</span><span class="cx"> 
</span><del>-use Encode qw(encode);
-use Encode::MIME::Header;
-use Email::Address;
-use Email::MIME;
-# Return::Value 1.666002 pollutes the error log with warnings about this
-# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
-# to disable these warnings.
-BEGIN {
-    $Return::Value::NO_CLUCK = 1;
</del><ins>+use Email::Sender::Simple qw(sendmail);
+use Email::Sender::Transport::SMTP::Persistent;
+use Bugzilla::Sender::Transport::Sendmail;
+
+sub generate_email {
+    my ($vars, $templates) = @_;
+    my ($lang, $email_format, $msg_text, $msg_html, $msg_header);
+    state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
+
+    if ($vars-&gt;{to_user}) {
+        $lang = $vars-&gt;{to_user}-&gt;setting('lang');
+        $email_format = $vars-&gt;{to_user}-&gt;setting('email_format');
+    } else {
+        # If there are users in the CC list who don't have an account,
+        # use the default language for email notifications.
+        $lang = Bugzilla::User-&gt;new()-&gt;setting('lang');
+        # However we cannot fall back to the default email_format, since
+        # it may be HTML, and many of the includes used in the HTML
+        # template require a valid user object. Instead we fall back to
+        # the plaintext template.
+        $email_format = 'text_only';
+    }
+
+    my $template = Bugzilla-&gt;template_inner($lang);
+
+    $template-&gt;process($templates-&gt;{header}, $vars, \$msg_header)
+        || ThrowTemplateError($template-&gt;error());
+    $template-&gt;process($templates-&gt;{text}, $vars, \$msg_text)
+        || ThrowTemplateError($template-&gt;error());
+
+    my @parts = (
+        Bugzilla::MIME-&gt;create(
+            attributes =&gt; {
+                content_type =&gt; 'text/plain',
+                charset      =&gt; $use_utf8 ? 'UTF-8' : 'iso-8859-1',
+                encoding     =&gt; 'quoted-printable',
+            },
+            body_str =&gt; $msg_text,
+        )
+    );
+    if ($templates-&gt;{html} &amp;&amp; $email_format eq 'html') {
+        $template-&gt;process($templates-&gt;{html}, $vars, \$msg_html)
+            || ThrowTemplateError($template-&gt;error());
+        push @parts, Bugzilla::MIME-&gt;create(
+            attributes =&gt; {
+                content_type =&gt; 'text/html',
+                charset      =&gt; $use_utf8 ? 'UTF-8' : 'iso-8859-1',
+                encoding     =&gt; 'quoted-printable',
+            },
+            body_str =&gt; $msg_html,
+        );
+    }
+
+    my $email = Bugzilla::MIME-&gt;new($msg_header);
+    if (scalar(@parts) == 1) {
+        $email-&gt;content_type_set($parts[0]-&gt;content_type);
+    } else {
+        $email-&gt;content_type_set('multipart/alternative');
+        # Some mail clients need same encoding for each part, even empty ones.
+        $email-&gt;charset_set('UTF-8') if $use_utf8;
+    }
+    $email-&gt;parts_set(\@parts);
+    return $email;
</ins><span class="cx"> }
</span><del>-use Email::Send;
</del><span class="cx"> 
</span><span class="cx"> sub MessageToMTA {
</span><span class="cx">     my ($msg, $send_now) = (@_);
</span><span class="lines">@@ -61,97 +93,43 @@
</span><span class="cx">     my $method = Bugzilla-&gt;params-&gt;{'mail_delivery_method'};
</span><span class="cx">     return if $method eq 'None';
</span><span class="cx"> 
</span><del>-    if (Bugzilla-&gt;params-&gt;{'use_mailer_queue'} and !$send_now) {
</del><ins>+    if (Bugzilla-&gt;params-&gt;{'use_mailer_queue'}
+        &amp;&amp; ! $send_now
+        &amp;&amp; ! Bugzilla-&gt;dbh-&gt;bz_in_transaction()
+    ) {
</ins><span class="cx">         Bugzilla-&gt;job_queue-&gt;insert('send_mail', { msg =&gt; $msg });
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    my $email;
-    if (ref $msg) {
-        $email = $msg;
-    }
-    else {
-        # RFC 2822 requires us to have CRLF for our line endings and
-        # Email::MIME doesn't do this for us. We use \015 (CR) and \012 (LF)
-        # directly because Perl translates &quot;\n&quot; depending on what platform
-        # you're running on. See http://perldoc.perl.org/perlport.html#Newlines
-        # We check for multiple CRs because of this Template-Toolkit bug:
-        # https://rt.cpan.org/Ticket/Display.html?id=43345
-        $msg =~ s/(?:\015+)?\012/\015\012/msg;
-        $email = new Email::MIME($msg);
-    }
</del><ins>+    my $dbh = Bugzilla-&gt;dbh;
</ins><span class="cx"> 
</span><del>-    # We add this header to uniquely identify all email that we
-    # send as coming from this Bugzilla installation.
-    #
-    # We don't use correct_urlbase, because we want this URL to
-    # *always* be the same for this Bugzilla, in every email,
-    # even if the admin changes the &quot;ssl_redirect&quot; parameter some day.
-    $email-&gt;header_set('X-Bugzilla-URL', Bugzilla-&gt;params-&gt;{'urlbase'});
-    
-    # We add this header to mark the mail as &quot;auto-generated&quot; and
-    # thus to hopefully avoid auto replies.
-    $email-&gt;header_set('Auto-Submitted', 'auto-generated');
</del><ins>+    my $email = ref($msg) ? $msg : Bugzilla::MIME-&gt;new($msg);
</ins><span class="cx"> 
</span><del>-    $email-&gt;walk_parts(sub {
-        my ($part) = @_;
-        return if $part-&gt;parts &gt; 1; # Top-level
-        my $content_type = $part-&gt;content_type || '';
-        $content_type =~ /charset=['&quot;](.+)['&quot;]/;
-        # If no charset is defined or is the default us-ascii,
-        # then we encode the email to UTF-8 if Bugzilla has utf8 enabled.
-        # XXX - This is a hack to workaround bug 723944.
-        if (!$1 || $1 eq 'us-ascii') {
-            my $body = $part-&gt;body;
-            if (Bugzilla-&gt;params-&gt;{'utf8'}) {
-                $part-&gt;charset_set('UTF-8');
-                # encoding_set works only with bytes, not with utf8 strings.
-                my $raw = $part-&gt;body_raw;
-                if (utf8::is_utf8($raw)) {
-                    utf8::encode($raw);
-                    $part-&gt;body_set($raw);
-                }
-            }
-            $part-&gt;encoding_set('quoted-printable') if !is_7bit_clean($body);
-        }
-    });
</del><ins>+    # If we're called from within a transaction, we don't want to send the
+    # email immediately, in case the transaction is rolled back. Instead we
+    # insert it into the mail_staging table, and bz_commit_transaction calls
+    # send_staged_mail() after the transaction is committed.
+    if (! $send_now &amp;&amp; $dbh-&gt;bz_in_transaction()) {
+        # The e-mail string may contain tainted values.
+        my $string = $email-&gt;as_string;
+        trick_taint($string);
</ins><span class="cx"> 
</span><del>-    # MIME-Version must be set otherwise some mailsystems ignore the charset
-    $email-&gt;header_set('MIME-Version', '1.0') if !$email-&gt;header('MIME-Version');
-
-    # Encode the headers correctly in quoted-printable
-    foreach my $header ($email-&gt;header_names) {
-        my @values = $email-&gt;header($header);
-        # We don't recode headers that happen multiple times.
-        next if scalar(@values) &gt; 1;
-        if (my $value = $values[0]) {
-            if (Bugzilla-&gt;params-&gt;{'utf8'} &amp;&amp; !utf8::is_utf8($value)) {
-                utf8::decode($value);
-            }
-
-            # avoid excessive line wrapping done by Encode.
-            local $Encode::Encoding{'MIME-Q'}-&gt;{'bpl'} = 998;
-
-            my $encoded = encode('MIME-Q', $value);
-            $email-&gt;header_set($header, $encoded);
-        }
</del><ins>+        my $sth = $dbh-&gt;prepare(&quot;INSERT INTO mail_staging (message) VALUES (?)&quot;);
+        $sth-&gt;bind_param(1, $string, $dbh-&gt;BLOB_TYPE);
+        $sth-&gt;execute;
+        return;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $from = $email-&gt;header('From');
</span><span class="cx"> 
</span><del>-    my ($hostname, @args);
</del><ins>+    my $hostname;
+    my $transport;
</ins><span class="cx">     if ($method eq &quot;Sendmail&quot;) {
</span><span class="cx">         if (ON_WINDOWS) {
</span><del>-            $Email::Send::Sendmail::SENDMAIL = SENDMAIL_EXE;
</del><ins>+            $transport = Bugzilla::Sender::Transport::Sendmail-&gt;new({ sendmail =&gt; SENDMAIL_EXE });
</ins><span class="cx">         }
</span><del>-        push @args, &quot;-i&quot;;
-        # We want to make sure that we pass *only* an email address.
-        if ($from) {
-            my ($email_obj) = Email::Address-&gt;parse($from);
-            if ($email_obj) {
-                my $from_email = $email_obj-&gt;address;
-                push(@args, &quot;-f$from_email&quot;) if $from_email;
-            }
</del><ins>+        else {
+            $transport = Bugzilla::Sender::Transport::Sendmail-&gt;new();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     else {
</span><span class="lines">@@ -159,7 +137,7 @@
</span><span class="cx">         # address, but other mailers won't.
</span><span class="cx">         my $urlbase = Bugzilla-&gt;params-&gt;{'urlbase'};
</span><span class="cx">         $urlbase =~ m|//([^:/]+)[:/]?|;
</span><del>-        $hostname = $1;
</del><ins>+        $hostname = $1 || 'localhost';
</ins><span class="cx">         $from .= &quot;\@$hostname&quot; if $from !~ /@/;
</span><span class="cx">         $email-&gt;header_set('From', $from);
</span><span class="cx">         
</span><span class="lines">@@ -170,16 +148,22 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if ($method eq &quot;SMTP&quot;) {
</span><del>-        push @args, Host  =&gt; Bugzilla-&gt;params-&gt;{&quot;smtpserver&quot;},
-                    username =&gt; Bugzilla-&gt;params-&gt;{&quot;smtp_username&quot;},
-                    password =&gt; Bugzilla-&gt;params-&gt;{&quot;smtp_password&quot;},
-                    Hello =&gt; $hostname, 
-                    Debug =&gt; Bugzilla-&gt;params-&gt;{'smtp_debug'};
</del><ins>+        my ($host, $port) = split(/:/, Bugzilla-&gt;params-&gt;{'smtpserver'}, 2);
+        $transport = Bugzilla-&gt;request_cache-&gt;{smtp} //=
+          Email::Sender::Transport::SMTP::Persistent-&gt;new({
+            host  =&gt; $host,
+            defined($port) ? (port =&gt; $port) : (),
+            sasl_username =&gt; Bugzilla-&gt;params-&gt;{'smtp_username'},
+            sasl_password =&gt; Bugzilla-&gt;params-&gt;{'smtp_password'},
+            helo =&gt; $hostname,
+            ssl =&gt; Bugzilla-&gt;params-&gt;{'smtp_ssl'},
+            debug =&gt; Bugzilla-&gt;params-&gt;{'smtp_debug'} });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Bugzilla::Hook::process('mailer_before_send', 
-                            { email =&gt; $email, mailer_args =&gt; \@args });
</del><ins>+    Bugzilla::Hook::process('mailer_before_send', { email =&gt; $email });
</ins><span class="cx"> 
</span><ins>+    return if $email-&gt;header('to') eq '';
+
</ins><span class="cx">     if ($method eq &quot;Test&quot;) {
</span><span class="cx">         my $filename = bz_locations()-&gt;{'datadir'} . '/mailer.testfile';
</span><span class="cx">         open TESTFILE, '&gt;&gt;', $filename;
</span><span class="lines">@@ -188,13 +172,12 @@
</span><span class="cx">         close TESTFILE;
</span><span class="cx">     }
</span><span class="cx">     else {
</span><del>-        # This is useful for both Sendmail and Qmail, so we put it out here.
</del><ins>+        # This is useful for Sendmail, so we put it out here.
</ins><span class="cx">         local $ENV{PATH} = SENDMAIL_PATH;
</span><del>-        my $mailer = Email::Send-&gt;new({ mailer =&gt; $method, 
-                                        mailer_args =&gt; \@args });
-        my $retval = $mailer-&gt;send($email);
-        ThrowCodeError('mail_send_error', { msg =&gt; $retval, mail =&gt; $email })
-            if !$retval;
</del><ins>+        eval { sendmail($email, { transport =&gt; $transport }) };
+        if ($@) {
+            ThrowCodeError('mail_send_error', { msg =&gt; $@-&gt;message, mail =&gt; $email });
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -227,4 +210,51 @@
</span><span class="cx">     return $threadingmarker;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub send_staged_mail {
+    my $dbh = Bugzilla-&gt;dbh;
+
+    my $emails = $dbh-&gt;selectall_arrayref('SELECT id, message FROM mail_staging');
+    my $sth = $dbh-&gt;prepare('DELETE FROM mail_staging WHERE id = ?');
+
+    foreach my $email (@$emails) {
+        my ($id, $message) = @$email;
+        MessageToMTA($message);
+        $sth-&gt;execute($id);
+    }
+}
+
</ins><span class="cx"> 1;
</span><ins>+
+__END__
+
+=head1 NAME
+
+Bugzilla::Mailer - Provides methods for sending email
+
+=head1 METHODS
+
+=over
+
+=item C&lt;generate_email&gt;
+
+Generates a multi-part email message, using the supplied list of templates.
+
+=item C&lt;MessageToMTA&gt;
+
+Sends the passed message to the mail transfer agent.
+
+The actual behaviour depends on a number of factors: if called from within a
+database transaction, the message will be staged and sent when the transaction
+is committed.  If email queueing is enabled, the message will be sent to
+TheSchwartz job queue where it will be processed by the jobqueue daemon, else
+the message is sent immediately.
+
+=item C&lt;build_thread_marker&gt;
+
+Builds header suitable for use as a threading marker in email notifications.
+
+=item C&lt;send_staged_mail&gt;
+
+Sends all staged messages -- called after a database transaction is committed.
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMemcachedpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Memcached.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Memcached.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Memcached.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,483 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Memcached;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::Error;
+use Bugzilla::Util qw(trick_taint);
+use Scalar::Util qw(blessed);
+use URI::Escape;
+
+# memcached keys have a maximum length of 250 bytes
+use constant MAX_KEY_LENGTH =&gt; 250;
+
+sub _new {
+    my $invocant = shift;
+    my $class = ref($invocant) || $invocant;
+    my $self = {};
+
+    # always return an object to simplify calling code when memcached is
+    # disabled.
+    if (Bugzilla-&gt;feature('memcached')
+        &amp;&amp; Bugzilla-&gt;params-&gt;{memcached_servers})
+    {
+        require Cache::Memcached;
+        $self-&gt;{namespace} = Bugzilla-&gt;params-&gt;{memcached_namespace} || '';
+        $self-&gt;{memcached} =
+            Cache::Memcached-&gt;new({
+                servers   =&gt; [ split(/[, ]+/, Bugzilla-&gt;params-&gt;{memcached_servers}) ],
+                namespace =&gt; $self-&gt;{namespace},
+            });
+    }
+    return bless($self, $class);
+}
+
+sub enabled {
+    return $_[0]-&gt;{memcached} ? 1 : 0;
+}
+
+sub set {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+
+    # { key =&gt; $key, value =&gt; $value }
+    if (exists $args-&gt;{key}) {
+        $self-&gt;_set($args-&gt;{key}, $args-&gt;{value});
+    }
+
+    # { table =&gt; $table, id =&gt; $id, name =&gt; $name, data =&gt; $data }
+    elsif (exists $args-&gt;{table} &amp;&amp; exists $args-&gt;{id} &amp;&amp; exists $args-&gt;{name}) {
+        # For caching of Bugzilla::Object, we have to be able to clear the
+        # cached values when given either the object's id or name.
+        my ($table, $id, $name, $data) = @$args{qw(table id name data)};
+        $self-&gt;_set(&quot;$table.id.$id&quot;, $data);
+        if (defined $name) {
+            $self-&gt;_set(&quot;$table.name_id.$name&quot;, $id);
+            $self-&gt;_set(&quot;$table.id_name.$id&quot;, $name);
+        }
+    }
+
+    else {
+        ThrowCodeError('params_required', { function =&gt; &quot;Bugzilla::Memcached::set&quot;,
+                                            params   =&gt; [ 'key', 'table' ] });
+    }
+}
+
+sub get {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+
+    # { key =&gt; $key }
+    if (exists $args-&gt;{key}) {
+        return $self-&gt;_get($args-&gt;{key});
+    }
+
+    # { table =&gt; $table, id =&gt; $id }
+    elsif (exists $args-&gt;{table} &amp;&amp; exists $args-&gt;{id}) {
+        my ($table, $id) = @$args{qw(table id)};
+        return $self-&gt;_get(&quot;$table.id.$id&quot;);
+    }
+
+    # { table =&gt; $table, name =&gt; $name }
+    elsif (exists $args-&gt;{table} &amp;&amp; exists $args-&gt;{name}) {
+        my ($table, $name) = @$args{qw(table name)};
+        return unless my $id = $self-&gt;_get(&quot;$table.name_id.$name&quot;);
+        return $self-&gt;_get(&quot;$table.id.$id&quot;);
+    }
+
+    else {
+        ThrowCodeError('params_required', { function =&gt; &quot;Bugzilla::Memcached::get&quot;,
+                                            params   =&gt; [ 'key', 'table' ] });
+    }
+}
+
+sub set_config {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+
+    if (exists $args-&gt;{key}) {
+        return $self-&gt;_set($self-&gt;_config_prefix . '.' . $args-&gt;{key}, $args-&gt;{data});
+    }
+    else {
+        ThrowCodeError('params_required', { function =&gt; &quot;Bugzilla::Memcached::set_config&quot;,
+                                            params   =&gt; [ 'key' ] });
+    }
+}
+
+sub get_config {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+
+    if (exists $args-&gt;{key}) {
+        return $self-&gt;_get($self-&gt;_config_prefix . '.' . $args-&gt;{key});
+    }
+    else {
+        ThrowCodeError('params_required', { function =&gt; &quot;Bugzilla::Memcached::get_config&quot;,
+                                            params   =&gt; [ 'key' ] });
+    }
+}
+
+sub clear {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+
+    # { key =&gt; $key }
+    if (exists $args-&gt;{key}) {
+        $self-&gt;_delete($args-&gt;{key});
+    }
+
+    # { table =&gt; $table, id =&gt; $id }
+    elsif (exists $args-&gt;{table} &amp;&amp; exists $args-&gt;{id}) {
+        my ($table, $id) = @$args{qw(table id)};
+        my $name = $self-&gt;_get(&quot;$table.id_name.$id&quot;);
+        $self-&gt;_delete(&quot;$table.id.$id&quot;);
+        $self-&gt;_delete(&quot;$table.name_id.$name&quot;) if defined $name;
+        $self-&gt;_delete(&quot;$table.id_name.$id&quot;);
+    }
+
+    # { table =&gt; $table, name =&gt; $name }
+    elsif (exists $args-&gt;{table} &amp;&amp; exists $args-&gt;{name}) {
+        my ($table, $name) = @$args{qw(table name)};
+        return unless my $id = $self-&gt;_get(&quot;$table.name_id.$name&quot;);
+        $self-&gt;_delete(&quot;$table.id.$id&quot;);
+        $self-&gt;_delete(&quot;$table.name_id.$name&quot;);
+        $self-&gt;_delete(&quot;$table.id_name.$id&quot;);
+    }
+
+    else {
+        ThrowCodeError('params_required', { function =&gt; &quot;Bugzilla::Memcached::clear&quot;,
+                                            params   =&gt; [ 'key', 'table' ] });
+    }
+}
+
+sub clear_all {
+    my ($self) = @_;
+    return unless $self-&gt;{memcached};
+    $self-&gt;_inc_prefix(&quot;global&quot;);
+}
+
+sub clear_config {
+    my ($self, $args) = @_;
+    return unless $self-&gt;{memcached};
+    if ($args &amp;&amp; exists $args-&gt;{key}) {
+        $self-&gt;_delete($self-&gt;_config_prefix . '.' . $args-&gt;{key});
+    }
+    else {
+        $self-&gt;_inc_prefix(&quot;config&quot;);
+    }
+}
+
+# in order to clear all our keys, we add a prefix to all our keys.  when we
+# need to &quot;clear&quot; all current keys, we increment the prefix.
+sub _prefix {
+    my ($self, $name) = @_;
+    # we don't want to change prefixes in the middle of a request
+    my $request_cache = Bugzilla-&gt;request_cache;
+    my $request_cache_key = &quot;memcached_prefix_$name&quot;;
+    if (!$request_cache-&gt;{$request_cache_key}) {
+        my $memcached = $self-&gt;{memcached};
+        my $prefix = $memcached-&gt;get($name);
+        if (!$prefix) {
+            $prefix = time();
+            if (!$memcached-&gt;add($name, $prefix)) {
+                # if this failed, either another process set the prefix, or
+                # memcached is down.  assume we lost the race, and get the new
+                # value.  if that fails, memcached is down so use a dummy
+                # prefix for this request.
+                $prefix = $memcached-&gt;get($name) || 0;
+            }
+        }
+        $request_cache-&gt;{$request_cache_key} = $prefix;
+    }
+    return $request_cache-&gt;{$request_cache_key};
+}
+
+sub _inc_prefix {
+    my ($self, $name) = @_;
+    my $memcached = $self-&gt;{memcached};
+    if (!$memcached-&gt;incr($name, 1)) {
+        $memcached-&gt;add($name, time());
+    }
+    delete Bugzilla-&gt;request_cache-&gt;{&quot;memcached_prefix_$name&quot;};
+}
+
+sub _global_prefix {
+    return $_[0]-&gt;_prefix(&quot;global&quot;);
+}
+
+sub _config_prefix {
+    return $_[0]-&gt;_prefix(&quot;config&quot;);
+}
+
+sub _encode_key {
+    my ($self, $key) = @_;
+    $key = $self-&gt;_global_prefix . '.' . uri_escape_utf8($key);
+    return length($self-&gt;{namespace} . $key) &gt; MAX_KEY_LENGTH
+        ? undef
+        : $key;
+}
+
+sub _set {
+    my ($self, $key, $value) = @_;
+    if (blessed($value)) {
+        # we don't support blessed objects
+        ThrowCodeError('param_invalid', { function =&gt; &quot;Bugzilla::Memcached::set&quot;,
+                                          param    =&gt; &quot;value&quot; });
+    }
+
+    $key = $self-&gt;_encode_key($key)
+        or return;
+    return $self-&gt;{memcached}-&gt;set($key, $value);
+}
+
+sub _get {
+    my ($self, $key) = @_;
+
+    $key = $self-&gt;_encode_key($key)
+        or return;
+    my $value = $self-&gt;{memcached}-&gt;get($key);
+    return unless defined $value;
+
+    # detaint returned values
+    # hashes and arrays are detainted just one level deep
+    if (ref($value) eq 'HASH') {
+        _detaint_hashref($value);
+    }
+    elsif (ref($value) eq 'ARRAY') {
+        foreach my $value (@$value) {
+            next unless defined $value;
+            # arrays of hashes and arrays are common
+            if (ref($value) eq 'HASH') {
+                _detaint_hashref($value);
+            }
+            elsif (ref($value) eq 'ARRAY') {
+                _detaint_arrayref($value);
+            }
+            elsif (!ref($value)) {
+                trick_taint($value);
+            }
+        }
+    }
+    elsif (!ref($value)) {
+        trick_taint($value);
+    }
+    return $value;
+}
+
+sub _detaint_hashref {
+    my ($hashref) = @_;
+    foreach my $value (values %$hashref) {
+        if (defined($value) &amp;&amp; !ref($value)) {
+            trick_taint($value);
+        }
+    }
+}
+
+sub _detaint_arrayref {
+    my ($arrayref) = @_;
+    foreach my $value (@$arrayref) {
+        if (defined($value) &amp;&amp; !ref($value)) {
+            trick_taint($value);
+        }
+    }
+}
+
+sub _delete {
+    my ($self, $key) = @_;
+    $key = $self-&gt;_encode_key($key)
+        or return;
+    return $self-&gt;{memcached}-&gt;delete($key);
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Memcached - Interface between Bugzilla and Memcached.
+
+=head1 SYNOPSIS
+
+ use Bugzilla;
+
+ my $memcached = Bugzilla-&gt;memcached;
+
+ # grab data from the cache. there is no need to check if memcached is
+ # available or enabled.
+ my $data = $memcached-&gt;get({ key =&gt; 'data_key' });
+ if (!defined $data) {
+     # not in cache, generate the data and populate the cache for next time
+     $data = some_long_process();
+     $memcached-&gt;set({ key =&gt; 'data_key', value =&gt; $data });
+ }
+ # do something with $data
+
+ # updating the profiles table directly shouldn't be attempted unless you know
+ # what you're doing. if you do update a table directly, you need to clear that
+ # object from memcached.
+ $dbh-&gt;do(&quot;UPDATE profiles SET request_count=10 WHERE login_name=?&quot;, undef, $login);
+ $memcached-&gt;clear({ table =&gt; 'profiles', name =&gt; $login });
+
+=head1 DESCRIPTION
+
+If Memcached is installed and configured, Bugzilla can use it to cache data
+across requests and between webheads. Unlike the request and process caches,
+only scalars, hashrefs, and arrayrefs can be stored in Memcached.
+
+Memcached integration is only required for large installations of Bugzilla --
+if you have multiple webheads then configuring Memcache is recommended.
+
+L&lt;Bugzilla::Memcached&gt; provides an interface to a Memcached server/servers, with
+the ability to get, set, or clear entries from the cache.
+
+The stored value must be an unblessed hashref, unblessed array ref, or a
+scalar.  Currently nested data structures are supported but require manual
+de-tainting after reading from Memcached (flat data structures are automatically
+de-tainted).
+
+All values are stored in the Memcached systems using the prefix configured with
+the C&lt;memcached_namespace&gt; parameter, as well as an additional prefix managed
+by this class to allow all values to be cleared when C&lt;checksetup.pl&gt; is
+executed.
+
+Do not create an instance of this object directly, instead use
+L&lt;Bugzilla-E&lt;gt&gt;memcached()|Bugzilla/memcached&gt;.
+
+=head1 METHODS
+
+=over
+
+=item C&lt;enabled&gt;
+
+Returns true if Memcached support is available and enabled.
+
+=back
+
+=head2 Setting
+
+Adds a value to Memcached.
+
+=over
+
+=item C&lt;set({ key =E&lt;gt&gt; $key, value =E&lt;gt&gt; $value })&gt;
+
+Adds the C&lt;value&gt; using the specific C&lt;key&gt;.
+
+=item C&lt;set({ table =E&lt;gt&gt; $table, id =E&lt;gt&gt; $id, name =E&lt;gt&gt; $name, data =E&lt;gt&gt; $data })&gt;
+
+Adds the C&lt;data&gt; using a keys generated from the C&lt;table&gt;, C&lt;id&gt;, and C&lt;name&gt;.
+All three parameters must be provided, however C&lt;name&gt; can be provided but set
+to C&lt;undef&gt;.
+
+This is a convenience method which allows cached data to be later retrieved by
+specifying the C&lt;table&gt; and either the C&lt;id&gt; or C&lt;name&gt;.
+
+=item C&lt;set_config({ key =E&lt;gt&gt; $key, data =E&lt;gt&gt; $data })&gt;
+
+Adds the C&lt;data&gt; using the C&lt;key&gt; while identifying the data as part of
+Bugzilla's configuration (such as fields, products, components, groups, etc).
+Values set with C&lt;set_config&gt; are automatically cleared when changes are made
+to Bugzilla's configuration.
+
+=back
+
+=head2 Getting
+
+Retrieves a value from Memcached.  Returns C&lt;undef&gt; if no matching values were
+found in the cache.
+
+=over
+
+=item C&lt;get({ key =E&lt;gt&gt; $key })&gt;
+
+Return C&lt;value&gt; with the specified C&lt;key&gt;.
+
+=item C&lt;get({ table =E&lt;gt&gt; $table, id =E&lt;gt&gt; $id })&gt;
+
+Return C&lt;value&gt; with the specified C&lt;table&gt; and C&lt;id&gt;.
+
+=item C&lt;get({ table =E&lt;gt&gt; $table, name =E&lt;gt&gt; $name })&gt;
+
+Return C&lt;value&gt; with the specified C&lt;table&gt; and C&lt;name&gt;.
+
+=item C&lt;get_config({ key =E&lt;gt&gt; $key })&gt;
+
+Return C&lt;value&gt; with the specified C&lt;key&gt; from the configuration cache.  See
+C&lt;set_config&gt; for more information.
+
+=back
+
+=head2 Clearing
+
+Removes the matching value from Memcached.
+
+=over
+
+=item C&lt;clear({ key =E&lt;gt&gt; $key })&gt;
+
+Removes C&lt;value&gt; with the specified C&lt;key&gt;.
+
+=item C&lt;clear({ table =E&lt;gt&gt; $table, id =E&lt;gt&gt; $id })&gt;
+
+Removes C&lt;value&gt; with the specified C&lt;table&gt; and C&lt;id&gt;, as well as the
+corresponding C&lt;table&gt; and C&lt;name&gt; entry.
+
+=item C&lt;clear({ table =E&lt;gt&gt; $table, name =E&lt;gt&gt; $name })&gt;
+
+Removes C&lt;value&gt; with the specified C&lt;table&gt; and C&lt;name&gt;, as well as the
+corresponding C&lt;table&gt; and C&lt;id&gt; entry.
+
+=item C&lt;clear_config({ key =E&lt;gt&gt; $key })&gt;
+
+Remove C&lt;value&gt; with the specified C&lt;key&gt; from the configuration cache.  See
+C&lt;set_config&gt; for more information.
+
+=item C&lt;clear_config&gt;
+
+Removes all configuration related values from the cache.  See C&lt;set_config&gt; for
+more information.
+
+=item C&lt;clear_all&gt;
+
+Removes all values from the cache.
+
+=back
+
+=head1 Bugzilla::Object CACHE
+
+The main driver for Memcached integration is to allow L&lt;Bugzilla::Object&gt; based
+objects to be automatically cached in Memcache. This is enabled on a
+per-package basis by setting the C&lt;USE_MEMCACHED&gt; constant to any true value.
+
+The current implementation is an opt-in (USE_MEMCACHED is false by default),
+however this will change to opt-out once further testing has been completed
+(USE_MEMCACHED will be true by default).
+
+=head1 DIRECT DATABASE UPDATES
+
+If an object is cached and the database is updated directly (instead of via
+C&lt;$object-E&lt;gt&gt;update()&gt;), then it's possible for the data in the cache to be
+out of sync with the database.
+
+As an example let's consider an extension which adds a timestamp field
+C&lt;last_activitiy_ts&gt; to the profiles table and user object which contains the
+user's last activity.  If the extension were to call C&lt;$user-E&lt;gt&gt;update()&gt;,
+then an audit entry would be created for each change to the C&lt;last_activity_ts&gt;
+field, which is undesirable.
+
+To remedy this, the extension updates the table directly.  It's critical with
+Memcached that it then clears the cache:
+
+ $dbh-&gt;do(&quot;UPDATE profiles SET last_activity_ts=? WHERE userid=?&quot;,
+          undef, $timestamp, $user_id);
+ Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'profiles', id =&gt; $user_id });
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMigrateGnatspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Migrate/Gnats.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Migrate/Gnats.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Migrate/Gnats.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is The Bugzilla Migration Tool.
-#
-# The Initial Developer of the Original Code is Lambda Research
-# Corporation. Portions created by the Initial Developer are Copyright
-# (C) 2009 the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Migrate::Gnats;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Migrate);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Migrate);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Util qw(indicate_progress);
</span><span class="cx"> use Bugzilla::Util qw(format_time trim generate_random_password);
</span><span class="lines">@@ -710,3 +700,23 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item user_map
+
+=item user_to_email
+
+=item add_user
+
+=item translate_value
+
+=item before_insert
+
+=item translate_bug
+
+=item CONFIG_VARS
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMigratepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Migrate.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Migrate.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Migrate.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is The Bugzilla Migration Tool.
-#
-# The Initial Developer of the Original Code is Lambda Research
-# Corporation. Portions created by the Initial Developer are Copyright
-# (C) 2009 the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Migrate;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Attachment;
</span><span class="cx"> use Bugzilla::Bug qw(LogActivityEntry);
</span><span class="lines">@@ -165,6 +154,7 @@
</span><span class="cx">     }    
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><ins>+    $self-&gt;before_read();
</ins><span class="cx">     # Read Other Database
</span><span class="cx">     my $users    = $self-&gt;users;
</span><span class="cx">     my $products = $self-&gt;products;
</span><span class="lines">@@ -261,7 +251,7 @@
</span><span class="cx"> sub users {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     if (!exists $self-&gt;{users}) {
</span><del>-        print get_text('migrate_reading_users'), &quot;\n&quot;;
</del><ins>+        say get_text('migrate_reading_users');
</ins><span class="cx">         $self-&gt;{users} = $self-&gt;_read_users();
</span><span class="cx">     }
</span><span class="cx">     return $self-&gt;{users};
</span><span class="lines">@@ -270,7 +260,7 @@
</span><span class="cx"> sub products {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     if (!exists $self-&gt;{products}) {
</span><del>-        print get_text('migrate_reading_products'), &quot;\n&quot;;
</del><ins>+        say get_text('migrate_reading_products');
</ins><span class="cx">         $self-&gt;{products} = $self-&gt;_read_products();
</span><span class="cx">     }
</span><span class="cx">     return $self-&gt;{products};
</span><span class="lines">@@ -279,7 +269,7 @@
</span><span class="cx"> sub bugs {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     if (!exists $self-&gt;{bugs}) {
</span><del>-        print get_text('migrate_reading_bugs'), &quot;\n&quot;;
</del><ins>+        say get_text('migrate_reading_bugs');
</ins><span class="cx">         $self-&gt;{bugs} = $self-&gt;_read_bugs();
</span><span class="cx">     }
</span><span class="cx">     return $self-&gt;{bugs};
</span><span class="lines">@@ -341,7 +331,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub translate_all_bugs {
</span><span class="cx">     my ($self, $bugs) = @_;
</span><del>-    print get_text('migrate_translating_bugs'), &quot;\n&quot;;
</del><ins>+    say get_text('migrate_translating_bugs');
</ins><span class="cx">     # We modify the array in place so that $self-&gt;bugs will return the
</span><span class="cx">     # modified bugs, in case $self-&gt;before_insert wants them.
</span><span class="cx">     my $num_bugs = scalar(@$bugs);
</span><span class="lines">@@ -459,8 +449,11 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $field_obj = $self-&gt;bug_fields-&gt;{$field};
</span><del>-    if ($field eq 'creation_ts' or $field eq 'delta_ts'
-        or ($field_obj and $field_obj-&gt;type == FIELD_TYPE_DATETIME))
</del><ins>+    if ($field eq 'creation_ts'
+        or $field eq 'delta_ts'
+        or ($field_obj and
+             ($field_obj-&gt;type == FIELD_TYPE_DATETIME
+              or $field_obj-&gt;type == FIELD_TYPE_DATE)))
</ins><span class="cx">     {
</span><span class="cx">         $value = trim($value);
</span><span class="cx">         return undef if !$value;
</span><span class="lines">@@ -553,6 +546,7 @@
</span><span class="cx"> sub after_insert  {}
</span><span class="cx"> sub before_insert {}
</span><span class="cx"> sub after_read    {}
</span><ins>+sub before_read   {}
</ins><span class="cx"> 
</span><span class="cx"> #############
</span><span class="cx"> # Inserters #
</span><span class="lines">@@ -609,7 +603,7 @@
</span><span class="cx">         if (!$self-&gt;dry_run) {
</span><span class="cx">             $created = Bugzilla::Field-&gt;create($created);
</span><span class="cx">         }
</span><del>-        print get_text('migrate_field_created', { field =&gt; $created }), &quot;\n&quot;;
</del><ins>+        say get_text('migrate_field_created', { field =&gt; $created });
</ins><span class="cx">     }
</span><span class="cx">     delete $self-&gt;{bug_fields};
</span><span class="cx"> }
</span><span class="lines">@@ -681,7 +675,7 @@
</span><span class="cx"> sub insert_bugs {
</span><span class="cx">     my ($self, $bugs) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    print get_text('migrate_creating_bugs'), &quot;\n&quot;;
</del><ins>+    say get_text('migrate_creating_bugs');
</ins><span class="cx"> 
</span><span class="cx">     my $init_statuses = Bugzilla::Status-&gt;can_change_to();
</span><span class="cx">     my %allowed_statuses = map { lc($_-&gt;name) =&gt; 1 } @$init_statuses;
</span><span class="lines">@@ -763,7 +757,7 @@
</span><span class="cx">         # File the bug as the reporter.
</span><span class="cx">         my $super_user = Bugzilla-&gt;user;
</span><span class="cx">         my $reporter = Bugzilla::User-&gt;check($bug-&gt;{reporter});
</span><del>-        # Allow the user to file a bug in any product, no matter his current
</del><ins>+        # Allow the user to file a bug in any product, no matter their current
</ins><span class="cx">         # permissions.
</span><span class="cx">         $reporter-&gt;{groups} = $super_user-&gt;groups;
</span><span class="cx">         Bugzilla-&gt;set_user($reporter);
</span><span class="lines">@@ -827,7 +821,7 @@
</span><span class="cx">         $self-&gt;_do_table_insert('longdescs', \%copy);
</span><span class="cx">         $self-&gt;debug(&quot;  Inserted comment from &quot; . $who-&gt;login, 2);
</span><span class="cx">     }
</span><del>-    $bug-&gt;_sync_fulltext();
</del><ins>+    $bug-&gt;_sync_fulltext( update_comments =&gt; 1 );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _insert_history {
</span><span class="lines">@@ -1156,6 +1150,11 @@
</span><span class="cx"> translating bugs, then they should be listed here. See L&lt;/translate_bug&gt; for
</span><span class="cx"> more detail.
</span><span class="cx"> 
</span><ins>+=head2 before_read
+
+This is called before any data is read from the &quot;other bug-tracker&quot;.
+The default implementation does nothing.
+
</ins><span class="cx"> =head2 after_read
</span><span class="cx"> 
</span><span class="cx"> This is run after all data is read from the other bug-tracker, but
</span><span class="lines">@@ -1172,3 +1171,49 @@
</span><span class="cx"> 
</span><span class="cx"> This is run after all data is inserted into Bugzilla. The default
</span><span class="cx"> implementation does nothing.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item do_migration
+
+=item verbose
+
+=item bug_fields
+
+=item insert_users
+
+=item users
+
+=item check_requirements
+
+=item bugs
+
+=item map_value
+
+=item insert_products
+
+=item products
+
+=item translate_all_bugs
+
+=item config_file_name
+
+=item dry_run
+
+=item name
+
+=item create_custom_fields
+
+=item reset_serial_values
+
+=item read_config
+
+=item write_config
+
+=item insert_bugs
+
+=item create_legal_values
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaMilestonepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Milestone.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Milestone.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Milestone.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Milestone;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Milestone;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -75,7 +66,7 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     my $product;
</span><del>-    if (ref $param) {
</del><ins>+    if (ref $param and !defined $param-&gt;{id}) {
</ins><span class="cx">         $product = $param-&gt;{product};
</span><span class="cx">         my $name = $param-&gt;{name};
</span><span class="cx">         if (!defined $product) {
</span><span class="lines">@@ -108,10 +99,12 @@
</span><span class="cx"> 
</span><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><ins>+    my $dbh = Bugzilla-&gt;dbh;
+
+    $dbh-&gt;bz_start_transaction();
</ins><span class="cx">     my $changes = $self-&gt;SUPER::update(@_);
</span><span class="cx"> 
</span><span class="cx">     if (exists $changes-&gt;{value}) {
</span><del>-        my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx">         # The milestone value is stored in the bugs table instead of its ID.
</span><span class="cx">         $dbh-&gt;do('UPDATE bugs SET target_milestone = ?
</span><span class="cx">                   WHERE target_milestone = ? AND product_id = ?',
</span><span class="lines">@@ -121,7 +114,11 @@
</span><span class="cx">         $dbh-&gt;do('UPDATE products SET defaultmilestone = ?
</span><span class="cx">                   WHERE id = ? AND defaultmilestone = ?',
</span><span class="cx">                  undef, ($self-&gt;name, $self-&gt;product_id, $changes-&gt;{value}-&gt;[0]));
</span><ins>+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'products', id =&gt; $self-&gt;product_id });
</ins><span class="cx">     }
</span><ins>+    $dbh-&gt;bz_commit_transaction();
+    Bugzilla-&gt;memcached-&gt;clear_config();
+
</ins><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -129,6 +126,8 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><ins>+    $dbh-&gt;bz_start_transaction();
+
</ins><span class="cx">     # The default milestone cannot be deleted.
</span><span class="cx">     if ($self-&gt;name eq $self-&gt;product-&gt;default_milestone) {
</span><span class="cx">         ThrowUserError('milestone_is_default', { milestone =&gt; $self });
</span><span class="lines">@@ -157,8 +156,9 @@
</span><span class="cx">                              Bugzilla-&gt;user-&gt;id, $timestamp);
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    $self-&gt;SUPER::remove_from_db();
</ins><span class="cx"> 
</span><del>-    $dbh-&gt;do('DELETE FROM milestones WHERE id = ?', undef, $self-&gt;id);
</del><ins>+    $dbh-&gt;bz_commit_transaction();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ################################
</span><span class="lines">@@ -252,7 +252,9 @@
</span><span class="cx"> 
</span><span class="cx">     use Bugzilla::Milestone;
</span><span class="cx"> 
</span><del>-    my $milestone = new Bugzilla::Milestone({ name =&gt; $name, product =&gt; $product });
</del><ins>+    my $milestone = new Bugzilla::Milestone({ name =&gt; $name, product =&gt; $product_obj });
+    my $milestone = Bugzilla::Milestone-&gt;check({ name =&gt; $name, product =&gt; $product_obj });
+    my $milestone = Bugzilla::Milestone-&gt;check({ id =&gt; $id });
</ins><span class="cx"> 
</span><span class="cx">     my $name       = $milestone-&gt;name;
</span><span class="cx">     my $product_id = $milestone-&gt;product_id;
</span><span class="lines">@@ -276,7 +278,7 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;new({name =&gt; $name, product =&gt; $product})&gt;
</del><ins>+=item C&lt;&lt; new({name =&gt; $name, product =&gt; $product}) &gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">  Description: The constructor is used to load an existing milestone
</span><span class="cx">               by passing a product object and a milestone name.
</span><span class="lines">@@ -366,7 +368,7 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;create({value =&gt; $value, product =&gt; $product, sortkey =&gt; $sortkey})&gt;
</del><ins>+=item C&lt;&lt; create({value =&gt; $value, product =&gt; $product, sortkey =&gt; $sortkey}) &gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">  Description: Create a new milestone for the given product.
</span><span class="cx"> 
</span><span class="lines">@@ -378,3 +380,13 @@
</span><span class="cx">  Returns:     A Bugzilla::Milestone object.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_is_active
+
+=item is_active
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaObjectpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Object.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Object.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Object.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006 
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Object;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Object;
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Hook;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -47,6 +35,15 @@
</span><span class="cx"> use constant AUDIT_UPDATES =&gt; 1;
</span><span class="cx"> use constant AUDIT_REMOVES =&gt; 1;
</span><span class="cx"> 
</span><ins>+# When USE_MEMCACHED is true, the class is suitable for serialisation to
+# Memcached.  See documentation in Bugzilla::Memcached for more information.
+use constant USE_MEMCACHED =&gt; 1;
+
+# When IS_CONFIG is true, the class is used to track seldom changed
+# configuration objects.  This includes, but is not limited to, fields, field
+# values, keywords, products, classifications, priorities, severities, etc.
+use constant IS_CONFIG =&gt; 0;
+
</ins><span class="cx"> # This allows the JSON-RPC interface to return Bugzilla::Object instances
</span><span class="cx"> # as though they were hashes. In the future, this may be modified to return
</span><span class="cx"> # less information.
</span><span class="lines">@@ -59,17 +56,52 @@
</span><span class="cx"> sub new {
</span><span class="cx">     my $invocant = shift;
</span><span class="cx">     my $class    = ref($invocant) || $invocant;
</span><del>-    my $object   = $class-&gt;_init(@_);
-    bless($object, $class) if $object;
</del><ins>+    my $param    = shift;
+
+    my $object = $class-&gt;_object_cache_get($param);
+    return $object if $object;
+
+    my ($data, $set_memcached);
+    if (Bugzilla-&gt;memcached-&gt;enabled
+        &amp;&amp; $class-&gt;USE_MEMCACHED
+        &amp;&amp; ref($param) eq 'HASH' &amp;&amp; $param-&gt;{cache})
+    {
+        if (defined $param-&gt;{id}) {
+            $data = Bugzilla-&gt;memcached-&gt;get({
+                table =&gt; $class-&gt;DB_TABLE,
+                id    =&gt; $param-&gt;{id},
+            });
+        }
+        elsif (defined $param-&gt;{name}) {
+            $data = Bugzilla-&gt;memcached-&gt;get({
+                table =&gt; $class-&gt;DB_TABLE,
+                name  =&gt; $param-&gt;{name},
+            });
+        }
+        $set_memcached = $data ? 0 : 1;
+    }
+    $data ||= $class-&gt;_load_from_db($param);
+
+    if ($data &amp;&amp; $set_memcached) {
+        Bugzilla-&gt;memcached-&gt;set({
+            table =&gt; $class-&gt;DB_TABLE,
+            id    =&gt; $data-&gt;{$class-&gt;ID_FIELD},
+            name  =&gt; $data-&gt;{$class-&gt;NAME_FIELD},
+            data  =&gt; $data,
+        });
+    }
+
+    $object = $class-&gt;new_from_hash($data);
+    $class-&gt;_object_cache_set($param, $object);
+
</ins><span class="cx">     return $object;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> # Note: Because this uses sql_istrcmp, if you make a new object use
</span><span class="cx"> # Bugzilla::Object, make sure that you modify bz_setup_database
</span><span class="cx"> # in Bugzilla::DB::Pg appropriately, to add the right LOWER
</span><span class="cx"> # index. You can see examples already there.
</span><del>-sub _init {
</del><ins>+sub _load_from_db {
</ins><span class="cx">     my $class = shift;
</span><span class="cx">     my ($param) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -82,19 +114,19 @@
</span><span class="cx">     if (ref $param eq 'HASH') {
</span><span class="cx">         $id = $param-&gt;{id};
</span><span class="cx">     }
</span><del>-    my $object;
</del><span class="cx"> 
</span><ins>+    my $object_data;
</ins><span class="cx">     if (defined $id) {
</span><span class="cx">         # We special-case if somebody specifies an ID, so that we can
</span><span class="cx">         # validate it as numeric.
</span><span class="cx">         detaint_natural($id)
</span><span class="cx">           || ThrowCodeError('param_must_be_numeric',
</span><del>-                            {function =&gt; $class . '::_init'});
</del><ins>+                            {function =&gt; $class . '::_load_from_db'});
</ins><span class="cx"> 
</span><span class="cx">         # Too large integers make PostgreSQL crash.
</span><span class="cx">         return if $id &gt; MAX_INT_32;
</span><span class="cx"> 
</span><del>-        $object = $dbh-&gt;selectrow_hashref(qq{
</del><ins>+        $object_data = $dbh-&gt;selectrow_hashref(qq{
</ins><span class="cx">             SELECT $columns FROM $table
</span><span class="cx">              WHERE $id_field = ?}, undef, $id);
</span><span class="cx">     } else {
</span><span class="lines">@@ -121,13 +153,112 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         map { trick_taint($_) } @values;
</span><del>-        $object = $dbh-&gt;selectrow_hashref(
</del><ins>+        $object_data = $dbh-&gt;selectrow_hashref(
</ins><span class="cx">             &quot;SELECT $columns FROM $table WHERE $condition&quot;, undef, @values);
</span><span class="cx">     }
</span><ins>+    return $object_data;
+}
</ins><span class="cx"> 
</span><del>-    return $object;
</del><ins>+sub new_from_list {
+    my $invocant = shift;
+    my $class = ref($invocant) || $invocant;
+    my ($id_list) = @_;
+    my $id_field = $class-&gt;ID_FIELD;
+
+    my @detainted_ids;
+    foreach my $id (@$id_list) {
+        detaint_natural($id) ||
+            ThrowCodeError('param_must_be_numeric',
+                          {function =&gt; $class . '::new_from_list'});
+        # Too large integers make PostgreSQL crash.
+        next if $id &gt; MAX_INT_32;
+        push(@detainted_ids, $id);
+    }
+
+    # We don't do $invocant-&gt;match because some classes have
+    # their own implementation of match which is not compatible
+    # with this one. However, match() still needs to have the right $invocant
+    # in order to do $class-&gt;DB_TABLE and so on.
+    return match($invocant, { $id_field =&gt; \@detainted_ids });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub new_from_hash {
+    my $invocant = shift;
+    my $class = ref($invocant) || $invocant;
+    my $object_data = shift || return;
+    $class-&gt;_serialisation_keys($object_data);
+    bless($object_data, $class);
+    $object_data-&gt;initialize();
+    return $object_data;
+}
+
+sub initialize {
+    # abstract
+}
+
+# Provides a mechanism for objects to be cached in the request_cache
+
+sub object_cache_get {
+    my ($class, $id) = @_;
+    return $class-&gt;_object_cache_get(
+        { id =&gt; $id, cache =&gt; 1},
+        $class
+    );
+}
+
+sub object_cache_set {
+    my $self = shift;
+    return $self-&gt;_object_cache_set(
+        { id =&gt; $self-&gt;id, cache =&gt; 1 },
+        $self
+    );
+}
+
+sub _object_cache_get {
+    my $class = shift;
+    my ($param) = @_;
+    my $cache_key = $class-&gt;object_cache_key($param)
+      || return;
+    return Bugzilla-&gt;request_cache-&gt;{$cache_key};
+}
+
+sub _object_cache_set {
+    my $class = shift;
+    my ($param, $object) = @_;
+    my $cache_key = $class-&gt;object_cache_key($param)
+      || return;
+    Bugzilla-&gt;request_cache-&gt;{$cache_key} = $object;
+}
+
+sub _object_cache_remove {
+    my $class = shift;
+    my ($param) = @_;
+    $param-&gt;{cache} = 1;
+    my $cache_key = $class-&gt;object_cache_key($param)
+      || return;
+    delete Bugzilla-&gt;request_cache-&gt;{$cache_key};
+}
+
+sub object_cache_key {
+    my $class = shift;
+    my ($param) = @_;
+    if (ref($param) &amp;&amp; $param-&gt;{cache} &amp;&amp; ($param-&gt;{id} || $param-&gt;{name})) {
+        $class = blessed($class) if blessed($class);
+        return $class  . ',' . ($param-&gt;{id} || $param-&gt;{name});
+    } else {
+        return;
+    }
+}
+
+# To support serialisation, we need to capture the keys in an object's default
+# hashref.
+sub _serialisation_keys {
+    my ($class, $object) = @_;
+    my $cache = Bugzilla-&gt;request_cache-&gt;{serialisation_keys} ||= {};
+    $cache-&gt;{$class} = [ keys %$object ] if $object &amp;&amp; !exists $cache-&gt;{$class};
+    return @{ $cache-&gt;{$class} };
+}
+
</ins><span class="cx"> sub check {
</span><span class="cx">     my ($invocant, $param) = @_;
</span><span class="cx">     my $class = ref($invocant) || $invocant;
</span><span class="lines">@@ -161,28 +292,6 @@
</span><span class="cx">     return $obj;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub new_from_list {
-    my $invocant = shift;
-    my $class = ref($invocant) || $invocant;
-    my ($id_list) = @_;
-    my $id_field = $class-&gt;ID_FIELD;
-
-    my @detainted_ids;
-    foreach my $id (@$id_list) {
-        detaint_natural($id) ||
-            ThrowCodeError('param_must_be_numeric',
-                          {function =&gt; $class . '::new_from_list'});
-        # Too large integers make PostgreSQL crash.
-        next if $id &gt; MAX_INT_32;
-        push(@detainted_ids, $id);
-    }
-    # We don't do $invocant-&gt;match because some classes have
-    # their own implementation of match which is not compatible
-    # with this one. However, match() still needs to have the right $invocant
-    # in order to do $class-&gt;DB_TABLE and so on.
-    return match($invocant, { $id_field =&gt; \@detainted_ids });
-}
-
</del><span class="cx"> # Note: Future extensions to this could be:
</span><span class="cx"> #  * Add a MATCH_JOIN constant so that we can join against
</span><span class="cx"> #    certain other tables for the WHERE criteria.
</span><span class="lines">@@ -228,9 +337,12 @@
</span><span class="cx">             }            
</span><span class="cx">             next;
</span><span class="cx">         }
</span><del>-        
-        $class-&gt;_check_field($field, 'match');
</del><span class="cx"> 
</span><ins>+        # It's always safe to use the field defined by classes as being
+        # their ID field. In particular, this means that new_from_list()
+        # is exempted from this check.
+        $class-&gt;_check_field($field, 'match') unless $field eq $class-&gt;ID_FIELD;
+
</ins><span class="cx">         if (ref $value eq 'ARRAY') {
</span><span class="cx">             # IN () is invalid SQL, and if we have an empty list
</span><span class="cx">             # to match against, we're just returning an empty
</span><span class="lines">@@ -263,23 +375,46 @@
</span><span class="cx">     my $cols  = join(',', $class-&gt;_get_db_columns);
</span><span class="cx">     my $order = $class-&gt;LIST_ORDER;
</span><span class="cx"> 
</span><del>-    my $sql = &quot;SELECT $cols FROM $table&quot;;
-    if (defined $where) {
-        $sql .= &quot; WHERE $where &quot;;
</del><ins>+    # Unconditional requests for configuration data are cacheable.
+    my ($objects, $set_memcached, $memcached_key);
+    if (!defined $where
+        &amp;&amp; Bugzilla-&gt;memcached-&gt;enabled
+        &amp;&amp; $class-&gt;IS_CONFIG)
+    {
+        $memcached_key = &quot;$class:get_all&quot;;
+        $objects = Bugzilla-&gt;memcached-&gt;get_config({ key =&gt; $memcached_key });
+        $set_memcached = $objects ? 0 : 1;
</ins><span class="cx">     }
</span><del>-    $sql .= &quot; ORDER BY $order&quot;;
-    
-    $sql .= &quot; $postamble&quot; if $postamble;
-        
-    my $dbh = Bugzilla-&gt;dbh;
-    # Sometimes the values are tainted, but we don't want to untaint them
-    # for the caller. So we copy the array. It's safe to untaint because
-    # they're only used in placeholders here.
-    my @untainted = @{ $values || [] };
-    trick_taint($_) foreach @untainted;
-    my $objects = $dbh-&gt;selectall_arrayref($sql, {Slice=&gt;{}}, @untainted);
-    bless ($_, $class) foreach @$objects;
-    return $objects
</del><ins>+
+    if (!$objects) {
+        my $sql = &quot;SELECT $cols FROM $table&quot;;
+        if (defined $where) {
+            $sql .= &quot; WHERE $where &quot;;
+        }
+        $sql .= &quot; ORDER BY $order&quot;;
+        $sql .= &quot; $postamble&quot; if $postamble;
+
+        my $dbh = Bugzilla-&gt;dbh;
+        # Sometimes the values are tainted, but we don't want to untaint them
+        # for the caller. So we copy the array. It's safe to untaint because
+        # they're only used in placeholders here.
+        my @untainted = @{ $values || [] };
+        trick_taint($_) foreach @untainted;
+        $objects = $dbh-&gt;selectall_arrayref($sql, {Slice=&gt;{}}, @untainted);
+        $class-&gt;_serialisation_keys($objects-&gt;[0]) if @$objects;
+    }
+
+    if ($objects &amp;&amp; $set_memcached) {
+        Bugzilla-&gt;memcached-&gt;set_config({
+            key  =&gt; $memcached_key,
+            data =&gt; $objects
+        });
+    }
+
+    foreach my $object (@$objects) {
+        $object = $class-&gt;new_from_hash($object);
+    }
+    return $objects;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -332,6 +467,7 @@
</span><span class="cx">     my %field_values = %$params;
</span><span class="cx"> 
</span><span class="cx">     my @sorted_names = $self-&gt;_sort_by_dep(keys %field_values);
</span><ins>+
</ins><span class="cx">     foreach my $key (@sorted_names) {
</span><span class="cx">         # It's possible for one set_ method to delete a key from $params
</span><span class="cx">         # for another set method, so if that's happened, we don't call the
</span><span class="lines">@@ -338,6 +474,10 @@
</span><span class="cx">         # other set method.
</span><span class="cx">         next if !exists $field_values{$key};
</span><span class="cx">         my $method = &quot;set_$key&quot;;
</span><ins>+        if (!$self-&gt;can($method)) {
+            my $class = ref($self) || $self;
+            ThrowCodeError(&quot;unknown_method&quot;, { method =&gt; &quot;${class}::${method}&quot; });
+        }
</ins><span class="cx">         $self-&gt;$method($field_values{$key}, \%field_values);
</span><span class="cx">     }
</span><span class="cx">     Bugzilla::Hook::process('object_end_of_set_all', 
</span><span class="lines">@@ -398,6 +538,13 @@
</span><span class="cx">     $self-&gt;audit_log(\%changes) if $self-&gt;AUDIT_UPDATES;
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    if ($self-&gt;USE_MEMCACHED &amp;&amp; @values) {
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; $table, id =&gt; $self-&gt;id });
+        Bugzilla-&gt;memcached-&gt;clear_config()
+            if $self-&gt;IS_CONFIG;
+    }
+    $self-&gt;_object_cache_remove({ id =&gt; $self-&gt;id });
+    $self-&gt;_object_cache_remove({ name =&gt; $self-&gt;name }) if $self-&gt;name;
</ins><span class="cx"> 
</span><span class="cx">     if (wantarray) {
</span><span class="cx">         return (\%changes, $old_self);
</span><span class="lines">@@ -416,6 +563,13 @@
</span><span class="cx">     $self-&gt;audit_log(AUDIT_REMOVE) if $self-&gt;AUDIT_REMOVES;
</span><span class="cx">     $dbh-&gt;do(&quot;DELETE FROM $table WHERE $id_field = ?&quot;, undef, $self-&gt;id);
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    if ($self-&gt;USE_MEMCACHED) {
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; $table, id =&gt; $self-&gt;id });
+        Bugzilla-&gt;memcached-&gt;clear_config()
+            if $self-&gt;IS_CONFIG;
+    }
+    $self-&gt;_object_cache_remove({ id =&gt; $self-&gt;id });
+    $self-&gt;_object_cache_remove({ name =&gt; $self-&gt;name }) if $self-&gt;name;
</ins><span class="cx">     undef $self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -445,11 +599,36 @@
</span><span class="cx">     foreach my $field (keys %$changes) {
</span><span class="cx">         # Skip private changes.
</span><span class="cx">         next if $field =~ /^_/;
</span><del>-        my ($from, $to) = @{ $changes-&gt;{$field} };
</del><ins>+        my ($from, $to) = $self-&gt;_sanitize_audit_log($field, $changes-&gt;{$field});
</ins><span class="cx">         $sth-&gt;execute($user_id, $class, $self-&gt;id, $field, $from, $to);
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _sanitize_audit_log {
+    my ($self, $field, $changes) = @_;
+    my $class = ref($self) || $self;
+
+    # Do not store hashed passwords. Only record the algorithm used to encode them.
+    if ($class eq 'Bugzilla::User' &amp;&amp; $field eq 'cryptpassword') {
+        foreach my $passwd (@$changes) {
+            next unless $passwd;
+            my $algorithm = 'unknown_algorithm';
+            if ($passwd =~ /{([^}]+)}$/) {
+                $algorithm = $1;
+            }
+            $passwd = &quot;hashed_with_$algorithm&quot;;
+        }
+    }
+    return @$changes;
+}
+
+sub flatten_to_hash {
+    my $self = shift;
+    my $class = blessed($self);
+    my %hash = map { $_ =&gt; $self-&gt;{$_} } $class-&gt;_serialisation_keys;
+    return \%hash;
+}
+
</ins><span class="cx"> ###############################
</span><span class="cx"> ####      Subroutines    ######
</span><span class="cx"> ###############################
</span><span class="lines">@@ -473,6 +652,13 @@
</span><span class="cx">     my $object = $class-&gt;insert_create_data($field_values);
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><ins>+    if (Bugzilla-&gt;memcached-&gt;enabled
+        &amp;&amp; $class-&gt;USE_MEMCACHED
+        &amp;&amp; $class-&gt;IS_CONFIG)
+    {
+        Bugzilla-&gt;memcached-&gt;clear_config();
+    }
+
</ins><span class="cx">     return $object;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -568,7 +754,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub get_all {
</span><span class="cx">     my $class = shift;
</span><del>-    return @{$class-&gt;_do_list_select()};
</del><ins>+    return @{ $class-&gt;_do_list_select() };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -977,6 +1163,17 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item C&lt;initialize&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Abstract method to allow subclasses to perform initialization tasks after an
+object has been created.
+
+=back
+
</ins><span class="cx"> =item C&lt;check&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -1016,6 +1213,13 @@
</span><span class="cx"> 
</span><span class="cx">  Returns:     A reference to an array of objects.
</span><span class="cx"> 
</span><ins>+=item C&lt;new_from_hash($hashref)&gt;
+
+  Description: Create an object from the given hash.
+
+  Params:      $hashref - A reference to a hash which was created by
+                          flatten_to_hash.
+
</ins><span class="cx"> =item C&lt;match&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -1253,6 +1457,17 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 Simple Methods
+
+=over
+
+=item C&lt;flatten_to_hash&gt;
+
+Returns a hashref suitable for serialisation and re-inflation with C&lt;new_from_hash&gt;.
+
+=back
+
+
</ins><span class="cx"> =head2 Simple Validators
</span><span class="cx"> 
</span><span class="cx"> You can use these in your subclass L&lt;/VALIDATORS&gt; or L&lt;/UPDATE_VALIDATORS&gt;.
</span><span class="lines">@@ -1267,6 +1482,58 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 CACHE FUNCTIONS
+
+=over
+
+=item C&lt;object_cache_get&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Class function which returns an object from the object-cache for the provided
+C&lt;$id&gt;.
+
+=item B&lt;Params&gt;
+
+Takes an integer C&lt;$id&gt; of the object to retrieve.
+
+=item B&lt;Returns&gt;
+
+Returns the object from the cache if found, otherwise returns C&lt;undef&gt;.
+
+=item B&lt;Example&gt;
+
+my $bug_from_cache = Bugzilla::Bug-&gt;object_cache_get(35);
+
+=back
+
+=item C&lt;object_cache_set&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Object function which injects the object into the object-cache, using the
+object's C&lt;id&gt; as the key.
+
+=item B&lt;Params&gt;
+
+(none)
+
+=item B&lt;Returns&gt;
+
+(nothing)
+
+=item B&lt;Example&gt;
+
+$bug-&gt;object_cache_set();
+
+=back
+
+=back
+
</ins><span class="cx"> =head1 CLASS FUNCTIONS
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -1291,3 +1558,19 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item object_cache_key
+
+=item check_time
+
+=item id
+
+=item TO_JSON
+
+=item audit_log
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaProductpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Product.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Product.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Product.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Product;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -28,7 +22,6 @@
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Install::Requirements;
</span><del>-use Bugzilla::Mailer;
</del><span class="cx"> use Bugzilla::Series;
</span><span class="cx"> use Bugzilla::Hook;
</span><span class="cx"> use Bugzilla::FlagType;
</span><span class="lines">@@ -41,6 +34,8 @@
</span><span class="cx"> ####    Initialization     ####
</span><span class="cx"> ###############################
</span><span class="cx"> 
</span><ins>+use constant IS_CONFIG =&gt; 1;
+
</ins><span class="cx"> use constant DB_TABLE =&gt; 'products';
</span><span class="cx"> 
</span><span class="cx"> use constant DB_COLUMNS =&gt; qw(
</span><span class="lines">@@ -107,6 +102,7 @@
</span><span class="cx">     Bugzilla::Hook::process('product_end_of_create', { product =&gt; $product });
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx">     return $product;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -119,7 +115,8 @@
</span><span class="cx">     my @prod_ids = keys %prods;
</span><span class="cx">     return unless @prod_ids;
</span><span class="cx"> 
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><ins>+    # We cannot |use| it due to a dependency loop with Bugzilla::User.
+    require Bugzilla::Component;
</ins><span class="cx">     foreach my $field (qw(component version milestone)) {
</span><span class="cx">         my $classname = &quot;Bugzilla::&quot; . ucfirst($field);
</span><span class="cx">         my $objects = $classname-&gt;match({ product_id =&gt; \@prod_ids });
</span><span class="lines">@@ -262,6 +259,7 @@
</span><span class="cx">     # Changes have been committed.
</span><span class="cx">     delete $self-&gt;{check_group_controls};
</span><span class="cx">     Bugzilla-&gt;user-&gt;clear_product_cache();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx"> 
</span><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="lines">@@ -279,8 +277,8 @@
</span><span class="cx">         if (Bugzilla-&gt;params-&gt;{'allowbugdeletion'}) {
</span><span class="cx">             require Bugzilla::Bug;
</span><span class="cx">             foreach my $bug_id (@{$self-&gt;bug_ids}) {
</span><del>-                # Note that we allow the user to delete bugs he can't see,
-                # which is okay, because he's deleting the whole Product.
</del><ins>+                # Note that we allow the user to delete bugs they can't see,
+                # which is okay, because they're deleting the whole Product.
</ins><span class="cx">                 my $bug = new Bugzilla::Bug($bug_id);
</span><span class="cx">                 $bug-&gt;remove_from_db();
</span><span class="cx">             }
</span><span class="lines">@@ -317,9 +315,10 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    $dbh-&gt;do(&quot;DELETE FROM products WHERE id = ?&quot;, undef, $self-&gt;id);
</del><ins>+    $self-&gt;SUPER::remove_from_db();
</ins><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx"> 
</span><span class="cx">     # We have to delete these internal variables, else we get
</span><span class="cx">     # the old lists of products and classifications again.
</span><span class="lines">@@ -816,8 +815,8 @@
</span><span class="cx"> 
</span><span class="cx"> sub classification {
</span><span class="cx">     my $self = shift;
</span><del>-    $self-&gt;{'classification'} ||= 
-        new Bugzilla::Classification($self-&gt;classification_id);
</del><ins>+    $self-&gt;{'classification'} ||=
+        new Bugzilla::Classification({ id =&gt; $self-&gt;classification_id, cache =&gt; 1 });
</ins><span class="cx">     return $self-&gt;{'classification'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1031,7 +1030,7 @@
</span><span class="cx"> 
</span><span class="cx">  Params:      C&lt;$user&gt; - A Bugzilla::User object.
</span><span class="cx"> 
</span><del>- Returns      C&lt;1&gt; If this user's groups allow him C&lt;entry&gt; access to
</del><ins>+ Returns      C&lt;1&gt; If this user's groups allow them C&lt;entry&gt; access to
</ins><span class="cx">               this Product, C&lt;0&gt; otherwise.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;flag_types()&gt;
</span><span class="lines">@@ -1076,3 +1075,37 @@
</span><span class="cx"> L&lt;Bugzilla::Object&gt;
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item set_allows_unconfirmed
+
+=item allows_unconfirmed
+
+=item set_name
+
+=item set_default_milestone
+
+=item set_group_controls
+
+=item create
+
+=item set_description
+
+=item set_is_active
+
+=item classification_id
+
+=item description
+
+=item default_milestone
+
+=item remove_from_db
+
+=item is_active
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaRNGpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/RNG.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/RNG.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/RNG.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,19 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Google Inc.
-# Portions created by the Initial Developer are Copyright (C) 2011
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::RNG;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
+
+use parent qw(Exporter);
</ins><span class="cx"> use Bugzilla::Constants qw(ON_WINDOWS);
</span><span class="cx"> 
</span><del>-use IO::File;
</del><span class="cx"> use Math::Random::ISAAC;
</span><span class="cx"> use if ON_WINDOWS, 'Win32::API';
</span><span class="cx"> 
</span><span class="lines">@@ -156,14 +145,14 @@
</span><span class="cx"> sub _read_seed_from {
</span><span class="cx">     my ($from) = @_;
</span><span class="cx"> 
</span><del>-    my $fh = IO::File-&gt;new($from, &quot;r&quot;) or die &quot;$from: $!&quot;;
</del><ins>+    open(my $fh, '&lt;', $from) or die &quot;$from: $!&quot;;
</ins><span class="cx">     my $buffer;
</span><del>-    $fh-&gt;read($buffer, SEED_SIZE);
</del><ins>+    read($fh, $buffer, SEED_SIZE);
</ins><span class="cx">     if (length($buffer) &lt; SEED_SIZE) {
</span><span class="cx">         die &quot;Could not read enough seed bytes from $from, got only &quot; 
</span><span class="cx">             . length($buffer);
</span><span class="cx">     }
</span><del>-    $fh-&gt;close;
</del><ins>+    close $fh;
</ins><span class="cx">     return $buffer;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -231,3 +220,15 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item srand
+
+=item rand
+
+=item irand
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaReportpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Report.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Report.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Report.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,150 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Report;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Object);
+
+use Bugzilla::CGI;
+use Bugzilla::Constants;
+use Bugzilla::Error;
+use Bugzilla::Util;
+
+use constant DB_TABLE =&gt; 'reports';
+
+# Do not track reports saved by users.
+use constant AUDIT_CREATES =&gt; 0;
+use constant AUDIT_UPDATES =&gt; 0;
+use constant AUDIT_REMOVES =&gt; 0;
+
+use constant DB_COLUMNS =&gt; qw(
+    id
+    user_id
+    name
+    query
+);
+
+use constant UPDATE_COLUMNS =&gt; qw(
+    name
+    query
+);
+
+use constant VALIDATORS =&gt; {
+    name    =&gt; \&amp;_check_name,
+    query   =&gt; \&amp;_check_query,
+};
+
+##############
+# Validators #
+##############
+
+sub _check_name {
+    my ($invocant, $name) = @_;
+    $name = clean_text($name);
+    $name || ThrowUserError(&quot;report_name_missing&quot;);
+    $name !~ /[&lt;&gt;&amp;]/ || ThrowUserError(&quot;illegal_query_name&quot;);
+    if (length($name) &gt; MAX_LEN_QUERY_NAME) {
+        ThrowUserError(&quot;query_name_too_long&quot;);
+    }
+    return $name;
+}
+
+sub _check_query {
+    my ($invocant, $query) = @_;
+    $query || ThrowUserError(&quot;buglist_parameters_required&quot;);
+    my $cgi = new Bugzilla::CGI($query);
+    $cgi-&gt;clean_search_url;
+    return $cgi-&gt;query_string;
+}
+
+#############
+# Accessors #
+#############
+
+sub query { return $_[0]-&gt;{'query'}; }
+
+sub set_name { $_[0]-&gt;set('name', $_[1]); }
+sub set_query { $_[0]-&gt;set('query', $_[1]); }
+
+###########
+# Methods #
+###########
+
+sub create {
+    my $class = shift;
+    my $param = shift;
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+    $param-&gt;{'user_id'} = Bugzilla-&gt;user-&gt;id;
+
+    unshift @_, $param;
+    my $self = $class-&gt;SUPER::create(@_);
+}
+
+sub check {
+    my $class = shift;
+    my $report = $class-&gt;SUPER::check(@_);
+    my $user = Bugzilla-&gt;user;
+    if ( grep($_-&gt;id eq $report-&gt;id, @{$user-&gt;reports})) {
+        return $report;
+    } else {
+        ThrowUserError('report_access_denied');
+    }
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Report - Bugzilla report class.
+
+=head1 SYNOPSIS
+
+    use Bugzilla::Report;
+
+    my $report = new Bugzilla::Report(1);
+
+    my $report = Bugzilla::Report-&gt;check({id =&gt; $id});
+
+    my $name = $report-&gt;name;
+    my $query = $report-&gt;query;
+
+    my $report = Bugzilla::Report-&gt;create({ name =&gt; $name, query =&gt; $query });
+
+    $report-&gt;set_name($new_name);
+    $report-&gt;set_query($new_query);
+    $report-&gt;update();
+
+    $report-&gt;remove_from_db;
+
+=head1 DESCRIPTION
+
+Report.pm represents a Report object. It is an implementation
+of L&lt;Bugzilla::Object&gt;, and thus provides all methods that
+L&lt;Bugzilla::Object&gt; provides.
+
+=cut
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item create
+
+=item query
+
+=item set_query
+
+=item set_name
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchClausepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search/Clause.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/Clause.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/Clause.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is BugzillaSource, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2011 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Search::Clause;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Search::Condition qw(condition);
</span><span class="lines">@@ -42,6 +31,11 @@
</span><span class="cx">     return $self-&gt;{children};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub update_search_args {
+    my ($self, $search_args) = @_;
+    # abstract
+}
+
</ins><span class="cx"> sub joiner { return $_[0]-&gt;{joiner} }
</span><span class="cx"> 
</span><span class="cx"> sub has_translated_conditions {
</span><span class="lines">@@ -83,7 +77,7 @@
</span><span class="cx">     my ($self, $callback) = @_;
</span><span class="cx">     foreach my $child (@{ $self-&gt;children }) {
</span><span class="cx">         if ($child-&gt;isa('Bugzilla::Search::Condition')) {
</span><del>-            $callback-&gt;($child);
</del><ins>+            $callback-&gt;($self, $child);
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><span class="cx">             $child-&gt;walk_conditions($callback);
</span><span class="lines">@@ -140,3 +134,27 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item has_translated_conditions
+
+=item as_string
+
+=item add
+
+=item children
+
+=item negate
+
+=item update_search_args
+
+=item walk_conditions
+
+=item joiner
+
+=item as_params
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchClauseGrouppm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Search/ClauseGroup.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/ClauseGroup.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/ClauseGroup.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,111 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Search::ClauseGroup;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Search::Clause);
+
+use Bugzilla::Error;
+use Bugzilla::Search::Condition qw(condition);
+use Bugzilla::Util qw(trick_taint);
+use List::MoreUtils qw(uniq);
+
+use constant UNSUPPORTED_FIELDS =&gt; qw(
+    attach_data.thedata
+    classification
+    commenter
+    component
+    longdescs.count
+    product
+    owner_idle_time
+);
+
+sub new {
+    my ($class) = @_;
+    my $self = bless({ joiner =&gt; 'AND' }, $class);
+    # Add a join back to the bugs table which will be used to group conditions
+    # for this clause
+    my $condition = Bugzilla::Search::Condition-&gt;new({});
+    $condition-&gt;translated({
+        joins =&gt; [{
+            table =&gt; 'bugs',
+            as    =&gt; 'bugs_g0',
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+            extra =&gt; [],
+        }],
+        term =&gt; '1 = 1',
+    });
+    $self-&gt;SUPER::add($condition);
+    $self-&gt;{group_condition} = $condition;
+    return $self;
+}
+
+sub add {
+    my ($self, @args) = @_;
+    my $field = scalar(@args) == 3 ? $args[0] : $args[0]-&gt;{field};
+
+    # We don't support nesting of conditions under this clause
+    if (scalar(@args) == 1 &amp;&amp; !$args[0]-&gt;isa('Bugzilla::Search::Condition')) {
+        ThrowUserError('search_grouped_invalid_nesting');
+    }
+
+    # Ensure all conditions use the same field
+    if (!$self-&gt;{_field}) {
+        $self-&gt;{_field} = $field;
+    } elsif ($field ne $self-&gt;{_field}) {
+        ThrowUserError('search_grouped_field_mismatch');
+    }
+
+    # Unsupported fields
+    if (grep { $_ eq $field } UNSUPPORTED_FIELDS ) {
+        # XXX - Hack till bug 916882 is fixed.
+        my $operator = scalar(@args) == 3 ? $args[1] : $args[0]-&gt;{operator};
+        ThrowUserError('search_grouped_field_invalid', { field =&gt; $field })
+          unless (($field eq 'product' || $field eq 'component') &amp;&amp; $operator =~ /^changed/);
+    }
+
+    $self-&gt;SUPER::add(@args);
+}
+
+sub update_search_args {
+    my ($self, $search_args) = @_;
+
+    # No need to change things if there's only one child condition
+    return unless scalar(@{ $self-&gt;children }) &gt; 1;
+
+    # we want all the terms to use the same join table
+    if (!exists $self-&gt;{_first_chart_id}) {
+        $self-&gt;{_first_chart_id} = $search_args-&gt;{chart_id};
+    } else {
+        $search_args-&gt;{chart_id} = $self-&gt;{_first_chart_id};
+    }
+
+    my $suffix = '_g' . $self-&gt;{_first_chart_id};
+    $self-&gt;{group_condition}-&gt;{translated}-&gt;{joins}-&gt;[0]-&gt;{as} = &quot;bugs$suffix&quot;;
+
+    $search_args-&gt;{full_field} =~ s/^bugs\./bugs$suffix\./;
+
+    $search_args-&gt;{table_suffix} = $suffix;
+    $search_args-&gt;{bugs_table} = &quot;bugs$suffix&quot;;
+}
+
+1;
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item add
+
+=item update_search_args
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchConditionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search/Condition.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/Condition.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/Condition.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is BugzillaSource, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2011 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Search::Condition;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
+
+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT_OK = qw(condition);
</span><span class="cx"> 
</span><span class="cx"> sub new {
</span><span class="lines">@@ -87,3 +77,27 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item as_string
+
+=item fov
+
+=item value
+
+=item negate
+
+=item translated
+
+=item operator
+
+=item as_params
+
+=item condition
+
+=item field
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchQuicksearchpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search/Quicksearch.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/Quicksearch.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/Quicksearch.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): C. Begle
-#                 Jesse Ruderman
-#                 Andreas Franke &lt;afranke@mathweb.org&gt;
-#                 Stephen Lee &lt;slee@uk.bnsmc.com&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Search::Quicksearch;
</span><span class="cx"> 
</span><del>-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -34,7 +22,7 @@
</span><span class="cx"> use List::MoreUtils qw(firstidx);
</span><span class="cx"> use Text::ParseWords qw(parse_line);
</span><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> @Bugzilla::Search::Quicksearch::EXPORT = qw(quicksearch);
</span><span class="cx"> 
</span><span class="cx"> # Custom mappings for some fields.
</span><span class="lines">@@ -116,6 +104,17 @@
</span><span class="cx">     owner_idle_time =&gt; 'greaterthan',
</span><span class="cx"> };
</span><span class="cx"> 
</span><ins>+# Mappings for operators symbols to support operators other than &quot;substring&quot;
+use constant OPERATOR_SYMBOLS =&gt; {
+    ':'  =&gt; 'substring',
+    '='  =&gt; 'equals',
+    '!=' =&gt; 'notequals',
+    '&gt;=' =&gt; 'greaterthaneq',
+    '&lt;=' =&gt; 'lessthaneq',
+    '&gt;'  =&gt; 'greaterthan',
+    '&lt;'  =&gt; 'lessthan',
+};
+
</ins><span class="cx"> # We might want to put this into localconfig or somewhere
</span><span class="cx"> use constant PRODUCT_EXCEPTIONS =&gt; (
</span><span class="cx">     'row',   # [Browser]
</span><span class="lines">@@ -151,7 +150,7 @@
</span><span class="cx"> 
</span><span class="cx">         # Retain backslashes and quotes, to know which strings are quoted,
</span><span class="cx">         # and which ones are not.
</span><del>-        my @words = parse_line('\s+', 1, $searchstring);
</del><ins>+        my @words = _parse_line('\s+', 1, $searchstring);
</ins><span class="cx">         # If parse_line() returns no data, this means strings are badly quoted.
</span><span class="cx">         # Rather than trying to guess what the user wanted to do, we throw an error.
</span><span class="cx">         scalar(@words)
</span><span class="lines">@@ -207,8 +206,9 @@
</span><span class="cx"> 
</span><span class="cx">         # Loop over all main-level QuickSearch words.
</span><span class="cx">         foreach my $qsword (@qswords) {
</span><del>-            my @or_operand = parse_line('\|', 1, $qsword);
</del><ins>+            my @or_operand = _parse_line('\|', 1, $qsword);
</ins><span class="cx">             foreach my $term (@or_operand) {
</span><ins>+                next unless defined $term;
</ins><span class="cx">                 my $negate = substr($term, 0, 1) eq '-';
</span><span class="cx">                 if ($negate) {
</span><span class="cx">                     $term = substr($term, 1);
</span><span class="lines">@@ -221,7 +221,7 @@
</span><span class="cx">                 # Having ruled out the special cases, we may now split
</span><span class="cx">                 # by comma, which is another legal boolean OR indicator.
</span><span class="cx">                 # Remove quotes from quoted words, if any.
</span><del>-                @words = parse_line(',', 0, $term);
</del><ins>+                @words = _parse_line(',', 0, $term);
</ins><span class="cx">                 foreach my $word (@words) {
</span><span class="cx">                     if (!_special_field_syntax($word, $negate)) {
</span><span class="cx">                         _default_quicksearch_word($word, $negate);
</span><span class="lines">@@ -273,6 +273,29 @@
</span><span class="cx"> # Parts of quicksearch() #
</span><span class="cx"> ##########################
</span><span class="cx"> 
</span><ins>+sub _parse_line {
+    my ($delim, $keep, $line) = @_;
+    return () unless defined $line;
+
+    # parse_line always treats ' as a quote character, making it impossible
+    # to sanely search for contractions. As this behavour isn't
+    # configurable, we replace ' with a placeholder to hide it from the
+    # parser.
+
+    # only treat ' at the start or end of words as quotes
+    # it's easier to do this in reverse with regexes
+    $line =~ s/(^|\s|:)'/$1\001/g;
+    $line =~ s/'($|\s)/\001$1/g;
+    $line =~ s/\\?'/\000/g;
+    $line =~ tr/\001/'/;
+
+    my @words = parse_line($delim, $keep, $line);
+    foreach my $word (@words) {
+        $word =~ tr/\000/'/ if defined $word;
+    }
+    return @words;
+}
+
</ins><span class="cx"> sub _bug_numbers_only {
</span><span class="cx">     my $searchstring = shift;
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="lines">@@ -279,7 +302,7 @@
</span><span class="cx">     # Allow separation by comma or whitespace.
</span><span class="cx">     $searchstring =~ s/[,\s]+/,/g;
</span><span class="cx"> 
</span><del>-    if ($searchstring !~ /,/) {
</del><ins>+    if ($searchstring !~ /,/ &amp;&amp; !i_am_webservice()) {
</ins><span class="cx">         # Single bug number; shortcut to show_bug.cgi.
</span><span class="cx">         print $cgi-&gt;redirect(
</span><span class="cx">             -uri =&gt; correct_urlbase() . &quot;show_bug.cgi?id=$searchstring&quot;);
</span><span class="lines">@@ -298,9 +321,11 @@
</span><span class="cx">     if ($searchstring =~ /^([^,\s]+)$/) {
</span><span class="cx">         my $alias = $1;
</span><span class="cx">         # We use this direct SQL because we want quicksearch to be VERY fast.
</span><del>-        my $is_alias = Bugzilla-&gt;dbh-&gt;selectrow_array(
-            q{SELECT 1 FROM bugs WHERE alias = ?}, undef, $alias);
-        if ($is_alias) {
</del><ins>+        my $bug_id = Bugzilla-&gt;dbh-&gt;selectrow_array(
+            q{SELECT bug_id FROM bugs_aliases WHERE alias = ?}, undef, $alias);
+        # If the user cannot see the bug or if we are using a webservice,
+        # do not resolve its alias.
+        if ($bug_id &amp;&amp; Bugzilla-&gt;user-&gt;can_see_bug($bug_id) &amp;&amp; !i_am_webservice()) {
</ins><span class="cx">             $alias = url_quote($alias);
</span><span class="cx">             print Bugzilla-&gt;cgi-&gt;redirect(
</span><span class="cx">                 -uri =&gt; correct_urlbase() . &quot;show_bug.cgi?id=$alias&quot;);
</span><span class="lines">@@ -339,6 +364,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub _handle_special_first_chars {
</span><span class="cx">     my ($qsword, $negate) = @_;
</span><ins>+    return 0 if !defined $qsword || length($qsword) &lt;= 1;
</ins><span class="cx"> 
</span><span class="cx">     my $firstChar = substr($qsword, 0, 1);
</span><span class="cx">     my $baseWord = substr($qsword, 1);
</span><span class="lines">@@ -375,25 +401,17 @@
</span><span class="cx"> sub _handle_field_names {
</span><span class="cx">     my ($or_operand, $negate, $unknownFields, $ambiguous_fields) = @_;
</span><span class="cx"> 
</span><del>-    # Flag and requestee shortcut
-    if ($or_operand =~ /^(?:flag:)?([^\?]+\?)([^\?]*)$/) {
-        my ($flagtype, $requestee) = ($1, $2);
-        addChart('flagtypes.name', 'substring', $flagtype, $negate);
-        if ($requestee) {
-            # AND
-            $chart++;
-            $and = $or = 0;
-            addChart('requestees.login_name', 'substring', $requestee, $negate);
-        }
-        return 1;
-    }
-
</del><span class="cx">     # Generic field1,field2,field3:value1,value2 notation.
</span><span class="cx">     # We have to correctly ignore commas and colons in quotes.
</span><del>-    my @field_values = parse_line(':', 1, $or_operand);
-    if (scalar @field_values == 2) {
-        my @fields = parse_line(',', 1, $field_values[0]);
-        my @values = parse_line(',', 1, $field_values[1]);
</del><ins>+    # Longer operators must be tested first as we don't want single character
+    # operators such as &lt;, &gt; and = to be tested before &lt;=, &gt;= and !=.
+    my @operators = sort { length($b) &lt;=&gt; length($a) } keys %{ OPERATOR_SYMBOLS() };
+
+    foreach my $symbol (@operators) {
+        my @field_values = _parse_line($symbol, 1, $or_operand);
+        next unless scalar @field_values == 2;
+        my @fields = _parse_line(',', 1, $field_values[0]);
+        my @values = _parse_line(',', 1, $field_values[1]);
</ins><span class="cx">         foreach my $field (@fields) {
</span><span class="cx">             my $translated = _translate_field_name($field);
</span><span class="cx">             # Skip and record any unknown fields
</span><span class="lines">@@ -410,7 +428,9 @@
</span><span class="cx">                     $bug_status_set = 1;
</span><span class="cx">                 }
</span><span class="cx">                 foreach my $value (@values) {
</span><del>-                    my $operator = FIELD_OPERATOR-&gt;{$translated} || 'substring';
</del><ins>+                    my $operator = FIELD_OPERATOR-&gt;{$translated}
+                        || OPERATOR_SYMBOLS-&gt;{$symbol}
+                        || 'substring';
</ins><span class="cx">                     # If the string was quoted to protect some special
</span><span class="cx">                     # characters such as commas and colons, we need
</span><span class="cx">                     # to remove quotes.
</span><span class="lines">@@ -418,6 +438,11 @@
</span><span class="cx">                         $value = $2;
</span><span class="cx">                         $value =~ s/\\([&quot;'])/$1/g;
</span><span class="cx">                     }
</span><ins>+                    # If a requestee is set, we need to handle it separately.
+                    if ($translated eq 'flagtypes.name' &amp;&amp; $value =~ /^([^\?]+\?)([^\?]+)$/) {
+                        _handle_flags($1, $2, $negate);
+                        next;
+                    }
</ins><span class="cx">                     addChart($translated, $operator, $value, $negate);
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="lines">@@ -424,9 +449,37 @@
</span><span class="cx">         }
</span><span class="cx">         return 1;
</span><span class="cx">     }
</span><ins>+
+    # Do not look inside quoted strings.
+    return 0 if ($or_operand =~ /^([&quot;']).*\1$/);
+
+    # Flag and requestee shortcut.
+    if ($or_operand =~ /^([^\?]+\?)([^\?]*)$/) {
+        _handle_flags($1, $2, $negate);
+        return 1;
+    }
+
</ins><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _handle_flags {
+    my ($flag, $requestee, $negate) = @_;
+
+    addChart('flagtypes.name', 'substring', $flag, $negate);
+    if ($requestee) {
+        # FIXME - Every time a requestee is involved and you use OR somewhere
+        # in your quick search, the logic will be wrong because boolean charts
+        # are unable to run queries of the form (a AND b) OR c. In our case:
+        # (flag name is foo AND requestee is bar) OR (any other criteria).
+        # But this has never been possible, so this is not a regression. If one
+        # needs to run such queries, they must use the Custom Search section of
+        # the Advanced Search page.
+        $chart++;
+        $and = $or = 0;
+        addChart('requestees.login_name', 'substring', $requestee, $negate);
+    }
+}
+
</ins><span class="cx"> sub _translate_field_name {
</span><span class="cx">     my $field = shift;
</span><span class="cx">     $field = lc($field);
</span><span class="lines">@@ -625,3 +678,21 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item FIELD_MAP
+
+=item quicksearch
+
+=item negateComparisonType
+
+=item makeChart
+
+=item addChart
+
+=item matchPrefixes
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchRecentpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search/Recent.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/Recent.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/Recent.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Search::Recent;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Object);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="lines">@@ -53,6 +43,9 @@
</span><span class="cx"> 
</span><span class="cx"> use constant UPDATE_COLUMNS =&gt; qw(bug_list list_order);
</span><span class="cx"> 
</span><ins>+# There's no gain to caching these objects
+use constant USE_MEMCACHED =&gt; 0;
+
</ins><span class="cx"> ###################
</span><span class="cx"> # DB Manipulation #
</span><span class="cx"> ###################
</span><span class="lines">@@ -65,12 +58,13 @@
</span><span class="cx">     my $user_id = $search-&gt;user_id;
</span><span class="cx"> 
</span><span class="cx">     # Enforce there only being SAVE_NUM_SEARCHES per user.
</span><del>-    my $min_id = $dbh-&gt;selectrow_array(
-        'SELECT id FROM profile_search WHERE user_id = ? ORDER BY id DESC '
-        . $dbh-&gt;sql_limit(1, SAVE_NUM_SEARCHES), undef, $user_id);
-    if ($min_id) {
-        $dbh-&gt;do('DELETE FROM profile_search WHERE user_id = ? AND id &lt;= ?',
-                 undef, ($user_id, $min_id));
</del><ins>+    my @ids = @{ $dbh-&gt;selectcol_arrayref(
+        &quot;SELECT id FROM profile_search WHERE user_id = ? ORDER BY id&quot;,
+        undef, $user_id) };
+    if (scalar(@ids) &gt; SAVE_NUM_SEARCHES) {
+        splice(@ids, - SAVE_NUM_SEARCHES);
+        $dbh-&gt;do(
+            &quot;DELETE FROM profile_search WHERE id IN (&quot; . join(',', @ids) . &quot;)&quot;);
</ins><span class="cx">     }
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx">     return $search;
</span><span class="lines">@@ -170,3 +164,27 @@
</span><span class="cx"> This is an implementation of L&lt;Bugzilla::Object&gt;, and so has all the
</span><span class="cx"> same methods available as L&lt;Bugzilla::Object&gt;, in addition to what is
</span><span class="cx"> documented below.
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item create
+
+=item list_order
+
+=item check_quietly
+
+=item new_from_cookie
+
+=item create_placeholder
+
+=item bug_list
+
+=item set_bug_list
+
+=item user_id
+
+=item set_list_order
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchSavedpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search/Saved.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search/Saved.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search/Saved.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006 
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Search::Saved;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Search::Saved;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::CGI;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="lines">@@ -199,6 +188,7 @@
</span><span class="cx">         }
</span><span class="cx">         $dbh-&gt;do(&quot;UPDATE $table SET query = ? WHERE $id_field = ?&quot;,
</span><span class="cx">                  undef, $query, $id);
</span><ins>+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; $table, id =&gt; $id });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="lines">@@ -301,9 +291,8 @@
</span><span class="cx"> 
</span><span class="cx"> sub user {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return $self-&gt;{user} if defined $self-&gt;{user};
-    $self-&gt;{user} = new Bugzilla::User($self-&gt;{userid});
-    return $self-&gt;{user};
</del><ins>+    return $self-&gt;{user} ||=
+        Bugzilla::User-&gt;new({ id =&gt; $self-&gt;{userid}, cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ############
</span><span class="lines">@@ -398,3 +387,21 @@
</span><span class="cx"> using the saved search, i.e. have it displayed in their footer.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item create
+
+=item set_name
+
+=item set_url
+
+=item rename_field_value
+
+=item user
+
+=item used_in_whine
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSearchpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Search.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Search.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Search.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,44 +1,20 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Stephan Niemz &lt;st.n@gmx.net&gt;
-#                 Andreas Franke &lt;afranke@mathweb.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Michael Schindler &lt;michael@compressconsult.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Jesse Clark &lt;jjclark1982@gmail.com&gt;
-#                 Rémi Zara &lt;remi_zara@mac.com&gt;
-#                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Search;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Search;
-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> @Bugzilla::Search::EXPORT = qw(
</span><span class="cx">     IsValidQueryType
</span><span class="cx">     split_order_term
</span><del>-    translate_old_column
</del><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -48,6 +24,7 @@
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Search::Clause;
</span><ins>+use Bugzilla::Search::ClauseGroup;
</ins><span class="cx"> use Bugzilla::Search::Condition qw(condition);
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Keyword;
</span><span class="lines">@@ -56,9 +33,10 @@
</span><span class="cx"> use Date::Format;
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><del>-use List::MoreUtils qw(all part uniq);
-use POSIX qw(INT_MAX);
</del><ins>+use List::MoreUtils qw(all firstidx part uniq);
+use POSIX qw(INT_MAX floor);
</ins><span class="cx"> use Storable qw(dclone);
</span><ins>+use Time::HiRes qw(gettimeofday tv_interval);
</ins><span class="cx"> 
</span><span class="cx"> # Description Of Boolean Charts
</span><span class="cx"> # -----------------------------
</span><span class="lines">@@ -132,6 +110,7 @@
</span><span class="cx"> 
</span><span class="cx"> # When doing searches, NULL datetimes are treated as this date.
</span><span class="cx"> use constant EMPTY_DATETIME =&gt; '1970-01-01 00:00:00';
</span><ins>+use constant EMPTY_DATE     =&gt; '1970-01-01';
</ins><span class="cx"> 
</span><span class="cx"> # This is the regex for real numbers from Regexp::Common, modified to be
</span><span class="cx"> # more readable.
</span><span class="lines">@@ -182,6 +161,8 @@
</span><span class="cx">     changedfrom    =&gt; \&amp;_changedfrom_changedto,
</span><span class="cx">     changedto      =&gt; \&amp;_changedfrom_changedto,
</span><span class="cx">     changedby      =&gt; \&amp;_changedby,
</span><ins>+    isempty        =&gt; \&amp;_isempty,
+    isnotempty     =&gt; \&amp;_isnotempty,
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Some operators are really just standard SQL operators, and are
</span><span class="lines">@@ -208,6 +189,8 @@
</span><span class="cx">     lessthaneq     =&gt; 'greaterthan',
</span><span class="cx">     greaterthan    =&gt; 'lessthaneq',
</span><span class="cx">     greaterthaneq  =&gt; 'lessthan',
</span><ins>+    isempty        =&gt; 'isnotempty',
+    isnotempty     =&gt; 'isempty',
</ins><span class="cx">     # The following don't currently have reversals:
</span><span class="cx">     # casesubstring, anyexact, allwords, allwordssubstr
</span><span class="cx"> };
</span><span class="lines">@@ -223,6 +206,12 @@
</span><span class="cx">     notregexp
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+# These operators ignore the entered value
+use constant NO_VALUE_OPERATORS =&gt; qw(
+    isempty
+    isnotempty
+);
+
</ins><span class="cx"> use constant MULTI_SELECT_OVERRIDE =&gt; {
</span><span class="cx">     notequals      =&gt; \&amp;_multiselect_negative,
</span><span class="cx">     notregexp      =&gt; \&amp;_multiselect_negative,
</span><span class="lines">@@ -247,6 +236,9 @@
</span><span class="cx">     assigned_to =&gt; {
</span><span class="cx">         _non_changed =&gt; \&amp;_user_nonchanged,
</span><span class="cx">     },
</span><ins>+    assigned_to_realname =&gt; {
+        _non_changed =&gt; \&amp;_user_nonchanged,
+    },
</ins><span class="cx">     cc =&gt; {
</span><span class="cx">         _non_changed =&gt; \&amp;_user_nonchanged,
</span><span class="cx">     },
</span><span class="lines">@@ -256,6 +248,9 @@
</span><span class="cx">     reporter =&gt; {
</span><span class="cx">         _non_changed =&gt; \&amp;_user_nonchanged,
</span><span class="cx">     },
</span><ins>+    reporter_realname =&gt; {
+        _non_changed =&gt; \&amp;_user_nonchanged,
+    },
</ins><span class="cx">     'requestees.login_name' =&gt; {
</span><span class="cx">         _non_changed =&gt; \&amp;_user_nonchanged,
</span><span class="cx">     },
</span><span class="lines">@@ -265,9 +260,12 @@
</span><span class="cx">     qa_contact =&gt; {
</span><span class="cx">         _non_changed =&gt; \&amp;_user_nonchanged,
</span><span class="cx">     },
</span><del>-    
</del><ins>+    qa_contact_realname =&gt; {
+        _non_changed =&gt; \&amp;_user_nonchanged,
+    },
+
</ins><span class="cx">     # General Bug Fields
</span><del>-    alias        =&gt; { _non_changed =&gt; \&amp;_nullable },
</del><ins>+    alias        =&gt; { _non_changed =&gt; \&amp;_alias_nonchanged },
</ins><span class="cx">     'attach_data.thedata' =&gt; MULTI_SELECT_OVERRIDE,
</span><span class="cx">     # We check all attachment fields against this.
</span><span class="cx">     attachments  =&gt; MULTI_SELECT_OVERRIDE,
</span><span class="lines">@@ -319,7 +317,8 @@
</span><span class="cx">         _non_changed =&gt; \&amp;_product_nonchanged,
</span><span class="cx">     },
</span><span class="cx">     tag =&gt; MULTI_SELECT_OVERRIDE,
</span><del>-    
</del><ins>+    comment_tag =&gt; MULTI_SELECT_OVERRIDE,
+
</ins><span class="cx">     # Timetracking Fields
</span><span class="cx">     deadline =&gt; { _non_changed =&gt; \&amp;_deadline },
</span><span class="cx">     percentage_complete =&gt; {
</span><span class="lines">@@ -331,11 +330,16 @@
</span><span class="cx">         changedafter  =&gt; \&amp;_work_time_changedbefore_after,
</span><span class="cx">         _default      =&gt; \&amp;_work_time,
</span><span class="cx">     },
</span><ins>+    last_visit_ts =&gt; {
+        _non_changed =&gt; \&amp;_last_visit_ts,
+        _default     =&gt; \&amp;_last_visit_ts_invalid_operator,
+    },
</ins><span class="cx">     
</span><span class="cx">     # Custom Fields
</span><span class="cx">     FIELD_TYPE_FREETEXT, { _non_changed =&gt; \&amp;_nullable },
</span><span class="cx">     FIELD_TYPE_BUG_ID,   { _non_changed =&gt; \&amp;_nullable_int },
</span><span class="cx">     FIELD_TYPE_DATETIME, { _non_changed =&gt; \&amp;_nullable_datetime },
</span><ins>+    FIELD_TYPE_DATE,     { _non_changed =&gt; \&amp;_nullable_date },
</ins><span class="cx">     FIELD_TYPE_TEXTAREA, { _non_changed =&gt; \&amp;_nullable },
</span><span class="cx">     FIELD_TYPE_MULTI_SELECT, MULTI_SELECT_OVERRIDE,
</span><span class="cx">     FIELD_TYPE_BUG_URLS,     MULTI_SELECT_OVERRIDE,    
</span><span class="lines">@@ -343,18 +347,35 @@
</span><span class="cx"> 
</span><span class="cx"> # These are fields where special action is taken depending on the
</span><span class="cx"> # *value* passed in to the chart, sometimes.
</span><del>-use constant SPECIAL_PARSING =&gt; {
-    # Pronoun Fields (Ones that can accept %user%, etc.)
-    assigned_to =&gt; \&amp;_contact_pronoun,
-    cc          =&gt; \&amp;_cc_pronoun,
-    commenter   =&gt; \&amp;_commenter_pronoun,
-    qa_contact  =&gt; \&amp;_contact_pronoun,
-    reporter    =&gt; \&amp;_contact_pronoun,
-    
-    # Date Fields that accept the 1d, 1w, 1m, 1y, etc. format.
-    creation_ts =&gt; \&amp;_timestamp_translate,
-    deadline    =&gt; \&amp;_timestamp_translate,
-    delta_ts    =&gt; \&amp;_timestamp_translate,
</del><ins>+# This is a sub because custom fields are dynamic
+sub SPECIAL_PARSING {
+    my $map = {
+        # Pronoun Fields (Ones that can accept %user%, etc.)
+        assigned_to =&gt; \&amp;_contact_pronoun,
+        cc          =&gt; \&amp;_contact_pronoun,
+        commenter   =&gt; \&amp;_contact_pronoun,
+        qa_contact  =&gt; \&amp;_contact_pronoun,
+        reporter    =&gt; \&amp;_contact_pronoun,
+        'setters.login_name' =&gt; \&amp;_contact_pronoun,
+        'requestees.login_name' =&gt; \&amp;_contact_pronoun,
+
+        # Date Fields that accept the 1d, 1w, 1m, 1y, etc. format.
+        creation_ts =&gt; \&amp;_datetime_translate,
+        deadline    =&gt; \&amp;_date_translate,
+        delta_ts    =&gt; \&amp;_datetime_translate,
+
+        # last_visit field that accept both a 1d, 1w, 1m, 1y format and the
+        # %last_changed% pronoun.
+        last_visit_ts =&gt; \&amp;_last_visit_datetime,
+    };
+    foreach my $field (Bugzilla-&gt;active_custom_fields) {
+        if ($field-&gt;type == FIELD_TYPE_DATETIME) {
+            $map-&gt;{$field-&gt;name} = \&amp;_datetime_translate;
+        } elsif ($field-&gt;type == FIELD_TYPE_DATE) {
+            $map-&gt;{$field-&gt;name} = \&amp;_date_translate;
+        }
+    }
+    return $map;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Information about fields that represent &quot;users&quot;, used by _user_nonchanged.
</span><span class="lines">@@ -396,6 +417,7 @@
</span><span class="cx">     bugidtype =&gt; 'bug_id_type',
</span><span class="cx">     changedin =&gt; 'days_elapsed',
</span><span class="cx">     long_desc =&gt; 'longdesc',
</span><ins>+    tags      =&gt; 'tag',
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Some fields are not sorted on themselves, but on other fields.
</span><span class="lines">@@ -424,71 +446,107 @@
</span><span class="cx"> # certain columns in the buglist. For the most part, Search.pm uses
</span><span class="cx"> # DB::Schema to figure out what needs to be joined, but for some
</span><span class="cx"> # fields it needs a little help.
</span><del>-use constant COLUMN_JOINS =&gt; {
-    actual_time =&gt; {
-        table =&gt; '(SELECT bug_id, SUM(work_time) AS total'
-                 . ' FROM longdescs GROUP BY bug_id)',
-        join  =&gt; 'INNER',
-    },
-    assigned_to =&gt; {
-        from  =&gt; 'assigned_to',
-        to    =&gt; 'userid',
-        table =&gt; 'profiles',
-        join  =&gt; 'INNER',
-    },
-    reporter =&gt; {
-        from  =&gt; 'reporter',
-        to    =&gt; 'userid',
-        table =&gt; 'profiles',
-        join  =&gt; 'INNER',
-    },
-    qa_contact =&gt; {
-        from  =&gt; 'qa_contact',
-        to    =&gt; 'userid',
-        table =&gt; 'profiles',
-    },
-    component =&gt; {
-        from  =&gt; 'component_id',
-        to    =&gt; 'id',
-        table =&gt; 'components',
-        join  =&gt; 'INNER',
-    },
-    product =&gt; {
-        from  =&gt; 'product_id',
-        to    =&gt; 'id',
-        table =&gt; 'products',
-        join  =&gt; 'INNER',
-    },
-    classification =&gt; {
-        table =&gt; 'classifications',
-        from  =&gt; 'map_product.classification_id',
-        to    =&gt; 'id',
-        join  =&gt; 'INNER',
-    },
-    'flagtypes.name' =&gt; {
-        as    =&gt; 'map_flags',
-        table =&gt; 'flags',
-        extra =&gt; ['map_flags.attach_id IS NULL'],
-        then_to =&gt; {
-            as    =&gt; 'map_flagtypes',
-            table =&gt; 'flagtypes',
-            from  =&gt; 'map_flags.type_id',
</del><ins>+sub COLUMN_JOINS {
+    my $invocant = shift;
+    my $user = blessed($invocant) ? $invocant-&gt;_user : Bugzilla-&gt;user;
+
+    my $joins = {
+        actual_time =&gt; {
+            table =&gt; '(SELECT bug_id, SUM(work_time) AS total'
+                     . ' FROM longdescs GROUP BY bug_id)',
+            join  =&gt; 'INNER',
+        },
+        alias =&gt; {
+            table =&gt; 'bugs_aliases',
+            as =&gt; 'map_alias',
+        },
+        assigned_to =&gt; {
+            from  =&gt; 'assigned_to',
+            to    =&gt; 'userid',
+            table =&gt; 'profiles',
+            join  =&gt; 'INNER',
+        },
+        reporter =&gt; {
+            from  =&gt; 'reporter',
+            to    =&gt; 'userid',
+            table =&gt; 'profiles',
+            join  =&gt; 'INNER',
+        },
+        qa_contact =&gt; {
+            from  =&gt; 'qa_contact',
+            to    =&gt; 'userid',
+            table =&gt; 'profiles',
+        },
+        component =&gt; {
+            from  =&gt; 'component_id',
</ins><span class="cx">             to    =&gt; 'id',
</span><ins>+            table =&gt; 'components',
+            join  =&gt; 'INNER',
</ins><span class="cx">         },
</span><del>-    },
-    keywords =&gt; {
-        table =&gt; 'keywords',
-        then_to =&gt; {
-            as    =&gt; 'map_keyworddefs',
-            table =&gt; 'keyworddefs',
-            from  =&gt; 'map_keywords.keywordid',
</del><ins>+        product =&gt; {
+            from  =&gt; 'product_id',
</ins><span class="cx">             to    =&gt; 'id',
</span><ins>+            table =&gt; 'products',
+            join  =&gt; 'INNER',
</ins><span class="cx">         },
</span><del>-    },
-    'longdescs.count' =&gt; {
-        table =&gt; 'longdescs',
-        join  =&gt; 'INNER',
-    },
</del><ins>+        classification =&gt; {
+            table =&gt; 'classifications',
+            from  =&gt; 'map_product.classification_id',
+            to    =&gt; 'id',
+            join  =&gt; 'INNER',
+        },
+        'flagtypes.name' =&gt; {
+            as    =&gt; 'map_flags',
+            table =&gt; 'flags',
+            extra =&gt; ['map_flags.attach_id IS NULL'],
+            then_to =&gt; {
+                as    =&gt; 'map_flagtypes',
+                table =&gt; 'flagtypes',
+                from  =&gt; 'map_flags.type_id',
+                to    =&gt; 'id',
+            },
+        },
+        keywords =&gt; {
+            table =&gt; 'keywords',
+            then_to =&gt; {
+                as    =&gt; 'map_keyworddefs',
+                table =&gt; 'keyworddefs',
+                from  =&gt; 'map_keywords.keywordid',
+                to    =&gt; 'id',
+            },
+        },
+        blocked =&gt; {
+            table =&gt; 'dependencies',
+            to =&gt; 'dependson',
+        },
+        dependson =&gt; {
+            table =&gt; 'dependencies',
+            to =&gt; 'blocked',
+        },
+        'longdescs.count' =&gt; {
+            table =&gt; 'longdescs',
+            join  =&gt; 'INNER',
+        },
+        tag =&gt; {
+            as =&gt; 'map_bug_tag',
+            table =&gt; 'bug_tag',
+            then_to =&gt; {
+                as =&gt; 'map_tag',
+                table =&gt; 'tag',
+                extra =&gt; ['map_tag.user_id = ' . $user-&gt;id],
+                from =&gt; 'map_bug_tag.tag_id',
+                to =&gt; 'id',
+            },
+        },
+        last_visit_ts =&gt; {
+            as    =&gt; 'bug_user_last_visit',
+            table =&gt; 'bug_user_last_visit',
+            extra =&gt; ['bug_user_last_visit.user_id = ' . $user-&gt;id],
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        },
+    };
+    return $joins;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # This constant defines the columns that can be selected in a query 
</span><span class="lines">@@ -526,9 +584,6 @@
</span><span class="cx">     # of short_short_desc.)
</span><span class="cx">     my %columns = (
</span><span class="cx">         relevance            =&gt; { title =&gt; 'Relevance'  },
</span><del>-        assigned_to_realname =&gt; { title =&gt; 'Assignee'   },
-        reporter_realname    =&gt; { title =&gt; 'Reporter'   },
-        qa_contact_realname  =&gt; { title =&gt; 'QA Contact' },
</del><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     # Next we define columns that have special SQL instead of just something
</span><span class="lines">@@ -535,6 +590,7 @@
</span><span class="cx">     # like &quot;bugs.bug_id&quot;.
</span><span class="cx">     my $total_time = &quot;(map_actual_time.total + bugs.remaining_time)&quot;;
</span><span class="cx">     my %special_sql = (
</span><ins>+        alias       =&gt; $dbh-&gt;sql_group_concat('DISTINCT map_alias.alias'),
</ins><span class="cx">         deadline    =&gt; $dbh-&gt;sql_date_format('bugs.deadline', '%Y-%m-%d'),
</span><span class="cx">         actual_time =&gt; 'map_actual_time.total',
</span><span class="cx"> 
</span><span class="lines">@@ -549,18 +605,25 @@
</span><span class="cx">                 . &quot; END)&quot;,
</span><span class="cx"> 
</span><span class="cx">         'flagtypes.name' =&gt; $dbh-&gt;sql_group_concat('DISTINCT ' 
</span><del>-            . $dbh-&gt;sql_string_concat('map_flagtypes.name', 'map_flags.status')),
</del><ins>+            . $dbh-&gt;sql_string_concat('map_flagtypes.name', 'map_flags.status'),
+            undef, undef, 'map_flagtypes.sortkey, map_flagtypes.name'),
</ins><span class="cx"> 
</span><span class="cx">         'keywords' =&gt; $dbh-&gt;sql_group_concat('DISTINCT map_keyworddefs.name'),
</span><ins>+
+        blocked =&gt; $dbh-&gt;sql_group_concat('DISTINCT map_blocked.blocked'),
+        dependson =&gt; $dbh-&gt;sql_group_concat('DISTINCT map_dependson.dependson'),
</ins><span class="cx">         
</span><span class="cx">         'longdescs.count' =&gt; 'COUNT(DISTINCT map_longdescs_count.comment_id)',
</span><ins>+
+        tag =&gt; $dbh-&gt;sql_group_concat('DISTINCT map_tag.name'),
+        last_visit_ts =&gt; 'bug_user_last_visit.last_visit_ts',
</ins><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     # Backward-compatibility for old field names. Goes new_name =&gt; old_name.
</span><del>-    # These are here and not in translate_old_column because the rest of the
</del><ins>+    # These are here and not in _translate_old_column because the rest of the
</ins><span class="cx">     # code actually still uses the old names, while the fielddefs table uses
</span><del>-    # the new names (which is not the case for the fields handled by 
-    # translate_old_column).
</del><ins>+    # the new names (which is not the case for the fields handled by
+    # _translate_old_column).
</ins><span class="cx">     my %old_names = (
</span><span class="cx">         creation_ts =&gt; 'opendate',
</span><span class="cx">         delta_ts    =&gt; 'changeddate',
</span><span class="lines">@@ -579,7 +642,7 @@
</span><span class="cx">              $sql = $dbh-&gt;sql_string_until($sql, $dbh-&gt;quote('@'));
</span><span class="cx">         }
</span><span class="cx">         $special_sql{$col} = $sql;
</span><del>-        $columns{&quot;${col}_realname&quot;}-&gt;{name} = &quot;map_${col}.realname&quot;;
</del><ins>+        $special_sql{&quot;${col}_realname&quot;} = &quot;map_${col}.realname&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     foreach my $col (@id_fields) {
</span><span class="lines">@@ -624,13 +687,8 @@
</span><span class="cx">     # or simply don't work with the current reporting system.
</span><span class="cx">     my @no_report_columns = 
</span><span class="cx">         qw(bug_id alias short_short_desc opendate changeddate
</span><del>-           flagtypes.name keywords relevance);
</del><ins>+           flagtypes.name relevance);
</ins><span class="cx"> 
</span><del>-    # Multi-select fields are not currently supported.
-    my @multi_selects = @{Bugzilla-&gt;fields(
-        { obsolete =&gt; 0, type =&gt; FIELD_TYPE_MULTI_SELECT })};
-    push(@no_report_columns, map { $_-&gt;name } @multi_selects);
-
</del><span class="cx">     # If you're not a time-tracker, you can't use time-tracking
</span><span class="cx">     # columns.
</span><span class="cx">     if (!$user-&gt;is_timetracker) {
</span><span class="lines">@@ -647,11 +705,15 @@
</span><span class="cx"> # is here because it *always* goes into the GROUP BY as the first item,
</span><span class="cx"> # so it should be skipped when determining extra GROUP BY columns.
</span><span class="cx"> use constant GROUP_BY_SKIP =&gt; qw(
</span><ins>+    alias
+    blocked
</ins><span class="cx">     bug_id
</span><ins>+    dependson
</ins><span class="cx">     flagtypes.name
</span><span class="cx">     keywords
</span><span class="cx">     longdescs.count
</span><span class="cx">     percentage_complete
</span><ins>+    tag
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> ###############
</span><span class="lines">@@ -688,7 +750,70 @@
</span><span class="cx"> # Public Accessors #
</span><span class="cx"> ####################
</span><span class="cx"> 
</span><del>-sub sql {
</del><ins>+sub data {
+    my $self = shift;
+    return $self-&gt;{data} if $self-&gt;{data};
+    my $dbh = Bugzilla-&gt;dbh;
+
+    # If all fields belong to the 'bugs' table, there is no need to split
+    # the original query into two pieces. Else we override the 'fields'
+    # argument to first get bug IDs based on the search criteria defined
+    # by the caller, and the desired fields are collected in the 2nd query.
+    my @orig_fields = $self-&gt;_input_columns;
+    my $all_in_bugs_table = 1;
+    foreach my $field (@orig_fields) {
+        next if ($self-&gt;COLUMNS-&gt;{$field}-&gt;{name} // $field) =~ /^bugs\.\w+$/;
+        $self-&gt;{fields} = ['bug_id'];
+        $all_in_bugs_table = 0;
+        last;
+    }
+
+    my $start_time = [gettimeofday()];
+    my $sql = $self-&gt;_sql;
+    # Do we just want bug IDs to pass to the 2nd query or all the data immediately?
+    my $func = $all_in_bugs_table ? 'selectall_arrayref' : 'selectcol_arrayref';
+    my $bug_ids = $dbh-&gt;$func($sql);
+    my @extra_data = ({sql =&gt; $sql, time =&gt; tv_interval($start_time)});
+    # Restore the original 'fields' argument, just in case.
+    $self-&gt;{fields} = \@orig_fields unless $all_in_bugs_table;
+
+    # If there are no bugs found, or all fields are in the 'bugs' table,
+    # there is no need for another query.
+    if (!scalar @$bug_ids || $all_in_bugs_table) {
+        $self-&gt;{data} = $bug_ids;
+        return wantarray ? ($self-&gt;{data}, \@extra_data) : $self-&gt;{data};
+    }
+
+    # Make sure the bug_id will be returned. If not, append it to the list.
+    my $pos = firstidx { $_ eq 'bug_id' } @orig_fields;
+    if ($pos &lt; 0) {
+        push(@orig_fields, 'bug_id');
+        $pos = $#orig_fields;
+    }
+
+    # Now create a query with the buglist above as the single criteria
+    # and the fields that the caller wants. No need to redo security checks;
+    # the list has already been validated above.
+    my $search = $self-&gt;new('fields' =&gt; \@orig_fields,
+                            'params' =&gt; {bug_id =&gt; $bug_ids, bug_id_type =&gt; 'anyexact'},
+                            'sharer' =&gt; $self-&gt;_sharer_id,
+                            'user'   =&gt; $self-&gt;_user,
+                            'allow_unlimited'    =&gt; 1,
+                            '_no_security_check' =&gt; 1);
+
+    $start_time = [gettimeofday()];
+    $sql = $search-&gt;_sql;
+    my $unsorted_data = $dbh-&gt;selectall_arrayref($sql);
+    push(@extra_data, {sql =&gt; $sql, time =&gt; tv_interval($start_time)});
+    # Let's sort the data. We didn't do it in the query itself because
+    # we already know in which order to sort bugs thanks to the first query,
+    # and this avoids additional table joins in the SQL query.
+    my %data = map { $_-&gt;[$pos] =&gt; $_ } @$unsorted_data;
+    $self-&gt;{data} = [map { $data{$_} } @$bug_ids];
+    return wantarray ? ($self-&gt;{data}, \@extra_data) : $self-&gt;{data};
+}
+
+sub _sql {
</ins><span class="cx">     my ($self) = @_;
</span><span class="cx">     return $self-&gt;{sql} if $self-&gt;{sql};
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -730,7 +855,7 @@
</span><span class="cx">     # Make sure that the description has actually been generated if
</span><span class="cx">     # people are asking for the whole thing.
</span><span class="cx">     else {
</span><del>-        $self-&gt;sql;
</del><ins>+        $self-&gt;_sql;
</ins><span class="cx">     }
</span><span class="cx">     return $self-&gt;{'search_description'};
</span><span class="cx"> }
</span><span class="lines">@@ -737,7 +862,8 @@
</span><span class="cx"> 
</span><span class="cx"> sub boolean_charts_to_custom_search {
</span><span class="cx">     my ($self, $cgi_buffer) = @_;
</span><del>-    my @as_params = $self-&gt;_boolean_charts-&gt;as_params;
</del><ins>+    my $boolean_charts = $self-&gt;_boolean_charts;
+    my @as_params = $boolean_charts ? $boolean_charts-&gt;as_params : ();
</ins><span class="cx"> 
</span><span class="cx">     # We need to start our new ids after the last custom search &quot;f&quot; id.
</span><span class="cx">     # We can just pick the last id in the array because they are sorted
</span><span class="lines">@@ -754,6 +880,21 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub invalid_order_columns {
+   my ($self) = @_;
+   my @invalid_columns;
+   foreach my $order ($self-&gt;_input_order) {
+       next if defined $self-&gt;_validate_order_column($order);
+       push(@invalid_columns, $order);
+   }
+   return \@invalid_columns;
+}
+
+sub order {
+   my ($self) = @_;
+   return $self-&gt;_valid_order;
+}
+
</ins><span class="cx"> ######################
</span><span class="cx"> # Internal Accessors #
</span><span class="cx"> ######################
</span><span class="lines">@@ -819,7 +960,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     # Everything that's going to be in the ORDER BY must also be
</span><span class="cx">     # in the SELECT.
</span><del>-    push(@{ $self-&gt;{extra_columns} }, $self-&gt;_input_order_columns);
</del><ins>+    push(@{ $self-&gt;{extra_columns} }, $self-&gt;_valid_order_columns);
</ins><span class="cx">     return @{ $self-&gt;{extra_columns} };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -873,10 +1014,16 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my @sql_fields;
</span><span class="cx">     foreach my $column ($self-&gt;_display_columns) {
</span><del>-        my $alias = $column;
-        # Aliases cannot contain dots in them. We convert them to underscores.
-        $alias =~ s/\./_/g;
-        my $sql = $self-&gt;COLUMNS-&gt;{$column}-&gt;{name} . &quot; AS $alias&quot;;
</del><ins>+        my $sql = $self-&gt;COLUMNS-&gt;{$column}-&gt;{name} // '';
+        if ($sql) {
+            my $alias = $column;
+            # Aliases cannot contain dots in them. We convert them to underscores.
+            $alias =~ tr/./_/;
+            $sql .= &quot; AS $alias&quot;;
+        }
+        else {
+            $sql = $column;
+        }
</ins><span class="cx">         push(@sql_fields, $sql);
</span><span class="cx">     }
</span><span class="cx">     return @sql_fields;
</span><span class="lines">@@ -889,12 +1036,34 @@
</span><span class="cx"> # The &quot;order&quot; that was requested by the consumer, exactly as it was
</span><span class="cx"> # requested.
</span><span class="cx"> sub _input_order { @{ $_[0]-&gt;{'order'} || [] } }
</span><del>-# The input order with just the column names, and no ASC or DESC.
-sub _input_order_columns {
</del><ins>+# Requested order with invalid values removed and old names translated
+sub _valid_order {
</ins><span class="cx">     my ($self) = @_;
</span><del>-    return map { (split_order_term($_))[0] } $self-&gt;_input_order;
</del><ins>+    return map { ($self-&gt;_validate_order_column($_)) } $self-&gt;_input_order;
</ins><span class="cx"> }
</span><ins>+# The valid order with just the column names, and no ASC or DESC.
+sub _valid_order_columns {
+    my ($self) = @_;
+    return map { (split_order_term($_))[0] } $self-&gt;_valid_order;
+}
</ins><span class="cx"> 
</span><ins>+sub _validate_order_column {
+    my ($self, $order_item) = @_;
+
+    # Translate old column names
+    my ($field, $direction) = split_order_term($order_item);
+    $field = $self-&gt;_translate_old_column($field);
+
+    # Only accept valid columns
+    return if (!exists $self-&gt;COLUMNS-&gt;{$field});
+
+    # Relevance column can be used only with one or more fulltext searches
+    return if ($field eq 'relevance' &amp;&amp; !$self-&gt;COLUMNS-&gt;{$field}-&gt;{name});
+
+    $direction = &quot; $direction&quot; if $direction;
+    return &quot;$field$direction&quot;;
+}
+
</ins><span class="cx"> # A hashref that describes all the special stuff that has to be done
</span><span class="cx"> # for various fields if they go into the ORDER BY clause.
</span><span class="cx"> sub _special_order {
</span><span class="lines">@@ -924,7 +1093,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     if (!$self-&gt;{sql_order_by}) {
</span><span class="cx">         my @order_by = map { $self-&gt;_translate_order_by_column($_) }
</span><del>-                           $self-&gt;_input_order;
</del><ins>+                           $self-&gt;_valid_order;
</ins><span class="cx">         $self-&gt;{sql_order_by} = \@order_by;
</span><span class="cx">     }
</span><span class="cx">     return @{ $self-&gt;{sql_order_by} };
</span><span class="lines">@@ -1069,7 +1238,7 @@
</span><span class="cx">         my @column_join = $self-&gt;_column_join($field);
</span><span class="cx">         push(@joins, @column_join);
</span><span class="cx">     }
</span><del>-    foreach my $field ($self-&gt;_input_order_columns) {
</del><ins>+    foreach my $field ($self-&gt;_valid_order_columns) {
</ins><span class="cx">         my $join_info = $self-&gt;_special_order-&gt;{$field}-&gt;{join};
</span><span class="cx">         if ($join_info) {
</span><span class="cx">             # Don't let callers modify SPECIAL_ORDER.
</span><span class="lines">@@ -1088,6 +1257,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $user = $self-&gt;_user;
</span><span class="cx">     my @joins;
</span><ins>+    return () if $self-&gt;{_no_security_check};
</ins><span class="cx"> 
</span><span class="cx">     my $security_join = {
</span><span class="cx">         table =&gt; 'bug_group_map',
</span><span class="lines">@@ -1096,9 +1266,12 @@
</span><span class="cx">     push(@joins, $security_join);
</span><span class="cx"> 
</span><span class="cx">     if ($user-&gt;id) {
</span><del>-        $security_join-&gt;{extra} =
-            [&quot;NOT (&quot; . $user-&gt;groups_in_sql('security_map.group_id') . &quot;)&quot;];
-            
</del><ins>+        # See also _standard_joins for the other half of the below statement
+        if (!Bugzilla-&gt;params-&gt;{'or_groups'}) {
+            $security_join-&gt;{extra} =
+                [&quot;NOT (&quot; . $user-&gt;groups_in_sql('security_map.group_id') . &quot;)&quot;];
+        }
+
</ins><span class="cx">         my $security_cc_join = {
</span><span class="cx">             table =&gt; 'cc',
</span><span class="cx">             as    =&gt; 'security_cc',
</span><span class="lines">@@ -1126,8 +1299,8 @@
</span><span class="cx">     
</span><span class="cx">     die &quot;join with no table: &quot; . Dumper($join_info) if !$join_info-&gt;{table};
</span><span class="cx">     die &quot;join with no 'as': &quot; . Dumper($join_info) if !$join_info-&gt;{as};
</span><del>-        
-    my $from_table = &quot;bugs&quot;;
</del><ins>+
+    my $from_table = $join_info-&gt;{bugs_table} || &quot;bugs&quot;;
</ins><span class="cx">     my $from  = $join_info-&gt;{from} || &quot;bug_id&quot;;
</span><span class="cx">     if ($from =~ /^(\w+)\.(\w+)$/) {
</span><span class="cx">         ($from_table, $from) = ($1, $2);
</span><span class="lines">@@ -1164,6 +1337,7 @@
</span><span class="cx"> # group security.
</span><span class="cx"> sub _standard_where {
</span><span class="cx">     my ($self) = @_;
</span><ins>+    return ('1=1') if $self-&gt;{_no_security_check};
</ins><span class="cx">     # If replication lags badly between the shadow db and the main DB,
</span><span class="cx">     # it's possible for bugs to show up in searches before their group
</span><span class="cx">     # controls are properly set. To prevent this, when initially creating
</span><span class="lines">@@ -1171,10 +1345,17 @@
</span><span class="cx">     # until their group controls are set. So if a bug has a NULL creation_ts,
</span><span class="cx">     # it shouldn't show up in searches at all.
</span><span class="cx">     my @where = ('bugs.creation_ts IS NOT NULL');
</span><del>-    
-    my $security_term = 'security_map.group_id IS NULL';
</del><span class="cx"> 
</span><span class="cx">     my $user = $self-&gt;_user;
</span><ins>+    my $security_term = '';
+    # See also _standard_joins for the other half of the below statement
+    if (Bugzilla-&gt;params-&gt;{'or_groups'}) {
+        $security_term .= &quot; (security_map.group_id IS NULL OR security_map.group_id IN (&quot; . $user-&gt;groups_as_string . &quot;))&quot;;
+    }
+    else {
+        $security_term = 'security_map.group_id IS NULL';
+    }
+
</ins><span class="cx">     if ($user-&gt;id) {
</span><span class="cx">         my $userid = $user-&gt;id;
</span><span class="cx">         # This indentation makes the resulting SQL more readable.
</span><span class="lines">@@ -1219,13 +1400,13 @@
</span><span class="cx">     my @extra_group_by;
</span><span class="cx">     foreach my $column ($self-&gt;_select_columns) {
</span><span class="cx">         next if $self-&gt;_skip_group_by-&gt;{$column};
</span><del>-        my $sql = $self-&gt;COLUMNS-&gt;{$column}-&gt;{name};
</del><ins>+        my $sql = $self-&gt;COLUMNS-&gt;{$column}-&gt;{name} // $column;
</ins><span class="cx">         push(@extra_group_by, $sql);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # And all items from ORDER BY must be in the GROUP BY. The above loop 
</span><span class="cx">     # doesn't catch items that were put into the ORDER BY from SPECIAL_ORDER.
</span><del>-    foreach my $column ($self-&gt;_input_order_columns) {
</del><ins>+    foreach my $column ($self-&gt;_valid_order_columns) {
</ins><span class="cx">         my $special_order = $self-&gt;_special_order-&gt;{$column}-&gt;{order};
</span><span class="cx">         next if !$special_order;
</span><span class="cx">         push(@extra_group_by, @$special_order);
</span><span class="lines">@@ -1317,7 +1498,7 @@
</span><span class="cx">         }
</span><span class="cx">         $clause-&gt;add($field_name, $operator, $pass_value);
</span><span class="cx">     }
</span><del>-    return $clause;
</del><ins>+    return @{$clause-&gt;children} ? $clause : undef;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _special_parse_bug_status {
</span><span class="lines">@@ -1377,6 +1558,8 @@
</span><span class="cx"> 
</span><span class="cx">     @fields = map { $_ eq '[Bug creation]' ? 'creation_ts' : $_ } @fields;
</span><span class="cx"> 
</span><ins>+    return undef unless ($date_from ne '' || $date_to ne '' || $value_to ne '');
+
</ins><span class="cx">     my $clause = new Bugzilla::Search::Clause();
</span><span class="cx"> 
</span><span class="cx">     # It is always safe and useful to push delta_ts into the charts
</span><span class="lines">@@ -1398,53 +1581,29 @@
</span><span class="cx">         $clause-&gt;add('delta_ts', 'lessthaneq', $date_to);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Basically, we construct the chart like:
-    #
-    # (added_for_field1 = value OR added_for_field2 = value)
-    # AND (date_field1_changed &gt;= date_from OR date_field2_changed &gt;= date_from)
-    # AND (date_field1_changed &lt;= date_to OR date_field2_changed &lt;= date_to)
-    #
-    # Theoretically, all we *really* would need to do is look for the field id
-    # in the bugs_activity table, because we've already limited the search
-    # by delta_ts above, but there's no chart to do that, so we check the
-    # change date of the fields.
-    
-    if ($value_to ne '') {
-        my $value_clause = new Bugzilla::Search::Clause('OR');
-        foreach my $field (@fields) {
-            $value_clause-&gt;add($field, 'changedto', $value_to);
-        }
-        $clause-&gt;add($value_clause);
-    }
</del><ins>+    # chfieldto is supposed to be a relative date or a date of the form
+    # YYYY-MM-DD, i.e. without the time appended to it. We append the
+    # time ourselves so that the end date is correctly taken into account.
+    $date_to .= ' 23:59:59' if $date_to =~ /^\d{4}-\d{1,2}-\d{1,2}$/;
</ins><span class="cx"> 
</span><del>-    if ($date_from ne '') {
-        my $from_clause = new Bugzilla::Search::Clause('OR');
-        foreach my $field (@fields) {
-            $from_clause-&gt;add($field, 'changedafter', $date_from);
-        }
-        $clause-&gt;add($from_clause);
-    }
-    if ($date_to ne '') {
-        # chfieldto is supposed to be a relative date or a date of the form
-        # YYYY-MM-DD, i.e. without the time appended to it. We append the
-        # time ourselves so that the end date is correctly taken into account.
-        $date_to .= ' 23:59:59' if $date_to =~ /^\d{4}-\d{1,2}-\d{1,2}$/;
</del><ins>+    my $join_clause = new Bugzilla::Search::Clause('OR');
</ins><span class="cx"> 
</span><del>-        my $to_clause = new Bugzilla::Search::Clause('OR');
-        foreach my $field (@fields) {
-            $to_clause-&gt;add($field, 'changedbefore', $date_to);
-        }
-        $clause-&gt;add($to_clause);
</del><ins>+    foreach my $field (@fields) {
+        my $sub_clause = new Bugzilla::Search::ClauseGroup();
+        $sub_clause-&gt;add(condition($field, 'changedto', $value_to)) if $value_to ne '';
+        $sub_clause-&gt;add(condition($field, 'changedafter', $date_from)) if $date_from ne '';
+        $sub_clause-&gt;add(condition($field, 'changedbefore', $date_to)) if $date_to ne '';
+        $join_clause-&gt;add($sub_clause);
</ins><span class="cx">     }
</span><ins>+    $clause-&gt;add($join_clause);
</ins><span class="cx"> 
</span><del>-    return $clause;
</del><ins>+    return @{$clause-&gt;children} ? $clause : undef;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _special_parse_deadline {
</span><span class="cx">     my ($self) = @_;
</span><del>-    return if !$self-&gt;_user-&gt;is_timetracker;
</del><span class="cx">     my $params = $self-&gt;_params;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $clause = new Bugzilla::Search::Clause();
</span><span class="cx">     if (my $from = $params-&gt;{'deadlinefrom'}) {
</span><span class="cx">         $clause-&gt;add('deadline', 'greaterthaneq', $from);
</span><span class="lines">@@ -1452,8 +1611,8 @@
</span><span class="cx">     if (my $to = $params-&gt;{'deadlineto'}) {
</span><span class="cx">         $clause-&gt;add('deadline', 'lessthaneq', $to);
</span><span class="cx">     }
</span><del>-    
-    return $clause;
</del><ins>+
+    return @{$clause-&gt;children} ? $clause : undef;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _special_parse_email {
</span><span class="lines">@@ -1469,7 +1628,8 @@
</span><span class="cx">         my $email = trim($params-&gt;{&quot;email$id&quot;});
</span><span class="cx">         next if !$email;
</span><span class="cx">         my $type = $params-&gt;{&quot;emailtype$id&quot;} || 'anyexact';
</span><del>-        $type = &quot;anyexact&quot; if $type eq &quot;exact&quot;;
</del><ins>+        # for backward compatibility
+        $type = &quot;equals&quot; if $type eq &quot;exact&quot;;
</ins><span class="cx"> 
</span><span class="cx">         my $or_clause = new Bugzilla::Search::Clause('OR');
</span><span class="cx">         foreach my $field (qw(assigned_to reporter cc qa_contact)) {
</span><span class="lines">@@ -1483,8 +1643,8 @@
</span><span class="cx">         
</span><span class="cx">         $clause-&gt;add($or_clause);
</span><span class="cx">     }
</span><del>-    
-    return $clause;
</del><ins>+
+    return @{$clause-&gt;children} ? $clause : undef;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _special_parse_resolution {
</span><span class="lines">@@ -1525,7 +1685,7 @@
</span><span class="cx">     my $clause = $self-&gt;_charts;
</span><span class="cx">     my @joins;
</span><span class="cx">     $clause-&gt;walk_conditions(sub {
</span><del>-        my ($condition) = @_;
</del><ins>+        my ($clause, $condition) = @_;
</ins><span class="cx">         return if !$condition-&gt;translated;
</span><span class="cx">         push(@joins, @{ $condition-&gt;translated-&gt;{joins} });
</span><span class="cx">     });
</span><span class="lines">@@ -1545,7 +1705,7 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     
</span><span class="cx">     # First we get the &quot;special&quot; charts, representing all the normal
</span><del>-    # field son the search page. This may modify _params, so it needs to
</del><ins>+    # fields on the search page. This may modify _params, so it needs to
</ins><span class="cx">     # happen first.
</span><span class="cx">     my $clause = $self-&gt;_special_charts;
</span><span class="cx"> 
</span><span class="lines">@@ -1554,7 +1714,7 @@
</span><span class="cx">     
</span><span class="cx">     # And then process the modern &quot;custom search&quot; format.
</span><span class="cx">     $clause-&gt;add( $self-&gt;_custom_search );
</span><del>-   
</del><ins>+    
</ins><span class="cx">     return $clause;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1585,7 +1745,9 @@
</span><span class="cx">                 my $identifier = &quot;$chart_id-$and_id-$or_id&quot;;
</span><span class="cx">                 my $field = $params-&gt;{&quot;field$identifier&quot;};
</span><span class="cx">                 my $operator = $params-&gt;{&quot;type$identifier&quot;};
</span><del>-                my $value = $params-&gt;{&quot;value$identifier&quot;};                
</del><ins>+                my $value = $params-&gt;{&quot;value$identifier&quot;};
+                # no-value operators ignore the value, however a value needs to be set
+                $value = ' ' if $operator &amp;&amp; grep { $_ eq $operator } NO_VALUE_OPERATORS;
</ins><span class="cx">                 $or_clause-&gt;add($field, $operator, $value);
</span><span class="cx">             }
</span><span class="cx">             $and_clause-&gt;add($or_clause);
</span><span class="lines">@@ -1593,8 +1755,8 @@
</span><span class="cx">         }
</span><span class="cx">         $clause-&gt;add($and_clause);
</span><span class="cx">     }
</span><del>-    
-    return $clause;
</del><ins>+
+    return @{$clause-&gt;children} ? $clause : undef;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _custom_search {
</span><span class="lines">@@ -1601,13 +1763,22 @@
</span><span class="cx">     my ($self) = @_;
</span><span class="cx">     my $params = $self-&gt;_params;
</span><span class="cx"> 
</span><del>-    my $current_clause = new Bugzilla::Search::Clause($params-&gt;{j_top});
</del><ins>+    my @field_ids = $self-&gt;_field_ids;
+    return unless scalar @field_ids;
+
+    my $joiner = $params-&gt;{j_top} || '';
+    my $current_clause = $joiner eq 'AND_G'
+        ? new Bugzilla::Search::ClauseGroup()
+        : new Bugzilla::Search::Clause($joiner);
+
</ins><span class="cx">     my @clause_stack;
</span><del>-    foreach my $id ($self-&gt;_field_ids) {
</del><ins>+    foreach my $id (@field_ids) {
</ins><span class="cx">         my $field = $params-&gt;{&quot;f$id&quot;};
</span><span class="cx">         if ($field eq 'OP') {
</span><del>-            my $joiner = $params-&gt;{&quot;j$id&quot;};
-            my $new_clause = new Bugzilla::Search::Clause($joiner);
</del><ins>+            my $joiner = $params-&gt;{&quot;j$id&quot;} || '';
+            my $new_clause = $joiner eq 'AND_G'
+                ? new Bugzilla::Search::ClauseGroup()
+                : new Bugzilla::Search::Clause($joiner);
</ins><span class="cx">             $new_clause-&gt;negate($params-&gt;{&quot;n$id&quot;});
</span><span class="cx">             $current_clause-&gt;add($new_clause);
</span><span class="cx">             push(@clause_stack, $current_clause);
</span><span class="lines">@@ -1623,6 +1794,8 @@
</span><span class="cx">         
</span><span class="cx">         my $operator = $params-&gt;{&quot;o$id&quot;};
</span><span class="cx">         my $value = $params-&gt;{&quot;v$id&quot;};
</span><ins>+        # no-value operators ignore the value, however a value needs to be set
+        $value = ' ' if $operator &amp;&amp; grep { $_ eq $operator } NO_VALUE_OPERATORS;
</ins><span class="cx">         my $condition = condition($field, $operator, $value);
</span><span class="cx">         $condition-&gt;negate($params-&gt;{&quot;n$id&quot;});
</span><span class="cx">         $current_clause-&gt;add($condition);
</span><span class="lines">@@ -1646,28 +1819,36 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _handle_chart {
</span><del>-    my ($self, $chart_id, $condition) = @_;
</del><ins>+    my ($self, $chart_id, $clause, $condition) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $params = $self-&gt;_params;
</span><span class="cx">     my ($field, $operator, $value) = $condition-&gt;fov;
</span><del>-
</del><ins>+    return if (!defined $field or !defined $operator or !defined $value);
</ins><span class="cx">     $field = FIELD_MAP-&gt;{$field} || $field;
</span><span class="cx"> 
</span><del>-    return if (!defined $field or !defined $operator or !defined $value);
-    
-    my $string_value;
</del><ins>+    my ($string_value, $orig_value);
+    state $is_mysql = $dbh-&gt;isa('Bugzilla::DB::Mysql') ? 1 : 0;
+
</ins><span class="cx">     if (ref $value eq 'ARRAY') {
</span><span class="cx">         # Trim input and ignore blank values.
</span><span class="cx">         @$value = map { trim($_) } @$value;
</span><span class="cx">         @$value = grep { defined $_ and $_ ne '' } @$value;
</span><span class="cx">         return if !@$value;
</span><ins>+        $orig_value = join(',', @$value);
+        if ($field eq 'longdesc' &amp;&amp; $is_mysql) {
+            @$value = map { _convert_unicode_characters($_) } @$value;
+        }
</ins><span class="cx">         $string_value = join(',', @$value);
</span><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         return if $value eq '';
</span><ins>+        $orig_value = $value;
+        if ($field eq 'longdesc' &amp;&amp; $is_mysql) {
+            $value = _convert_unicode_characters($value);
+        }
</ins><span class="cx">         $string_value = $value;
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     $self-&gt;_chart_fields-&gt;{$field}
</span><span class="cx">         or ThrowCodeError(&quot;invalid_field_name&quot;, { field =&gt; $field });
</span><span class="cx">     trick_taint($field);
</span><span class="lines">@@ -1684,16 +1865,20 @@
</span><span class="cx">     # on multiple values, like anyexact.
</span><span class="cx">     
</span><span class="cx">     my %search_args = (
</span><del>-        chart_id   =&gt; $chart_id,
-        sequence   =&gt; $chart_id,
-        field      =&gt; $field,
-        full_field =&gt; $full_field,
-        operator   =&gt; $operator,
-        value      =&gt; $string_value,
-        all_values =&gt; $value,
-        joins      =&gt; [],
-        condition  =&gt; $condition,
</del><ins>+        chart_id     =&gt; $chart_id,
+        sequence     =&gt; $chart_id,
+        field        =&gt; $field,
+        full_field   =&gt; $full_field,
+        operator     =&gt; $operator,
+        value        =&gt; $string_value,
+        all_values   =&gt; $value,
+        joins        =&gt; [],
+        bugs_table   =&gt; 'bugs',
+        table_suffix =&gt; '',
+        condition    =&gt; $condition,
</ins><span class="cx">     );
</span><ins>+    $clause-&gt;update_search_args(\%search_args);
+
</ins><span class="cx">     $search_args{quoted} = $self-&gt;_quote_unless_numeric(\%search_args);
</span><span class="cx">     # This should add a &quot;term&quot; selement to %search_args.
</span><span class="cx">     $self-&gt;do_search_function(\%search_args);
</span><span class="lines">@@ -1707,12 +1892,29 @@
</span><span class="cx">     # do_search_function modified them.   
</span><span class="cx">     $self-&gt;search_description({
</span><span class="cx">         field =&gt; $field, type =&gt; $operator,
</span><del>-        value =&gt; $string_value, term =&gt; $search_args{term},
</del><ins>+        value =&gt; $orig_value, term =&gt; $search_args{term},
</ins><span class="cx">     });
</span><del>-    
</del><ins>+
+    foreach my $join (@{ $search_args{joins} }) {
+        $join-&gt;{bugs_table}   = $search_args{bugs_table};
+        $join-&gt;{table_suffix} = $search_args{table_suffix};
+    }
+
</ins><span class="cx">     $condition-&gt;translated(\%search_args);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# XXX - This is a hack for MySQL which doesn't understand Unicode characters
+# above U+FFFF, see Bugzilla::Comment::_check_thetext(). This hack can go away
+# once we require MySQL 5.5.3 and use utf8mb4.
+sub _convert_unicode_characters {
+    my $string = shift;
+
+    # Perl 5.13.8 and older complain about non-characters.
+    no warnings 'utf8';
+    $string =~ s/([\x{10000}-\x{10FFFF}])/&quot;\x{FDD0}[&quot; . uc(sprintf('U+%04x', ord($1))) . &quot;]\x{FDD1}&quot;/eg;
+    return $string;
+}
+
</ins><span class="cx"> ##################################
</span><span class="cx"> # do_search_function And Helpers #
</span><span class="cx"> ##################################
</span><span class="lines">@@ -1829,7 +2031,7 @@
</span><span class="cx"> 
</span><span class="cx">     return $cache-&gt;{column_joins} if defined $cache-&gt;{column_joins};
</span><span class="cx"> 
</span><del>-    my %column_joins = %{ COLUMN_JOINS() };
</del><ins>+    my %column_joins = %{ $self-&gt;COLUMN_JOINS() };
</ins><span class="cx">     Bugzilla::Hook::process('buglist_column_joins',
</span><span class="cx">                             { column_joins =&gt; \%column_joins });
</span><span class="cx"> 
</span><span class="lines">@@ -1856,16 +2058,30 @@
</span><span class="cx">     my $numeric_field = $self-&gt;_chart_fields-&gt;{$field}-&gt;is_numeric;
</span><span class="cx">     my $numeric_value = ($value =~ NUMBER_REGEX) ? 1 : 0;
</span><span class="cx">     my $is_numeric = $numeric_operator &amp;&amp; $numeric_field &amp;&amp; $numeric_value;
</span><ins>+
+    # These operators are really numeric operators with numeric fields.
+    $numeric_operator = grep { $_ eq $operator } keys %{ SIMPLE_OPERATORS() };
+
</ins><span class="cx">     if ($is_numeric) {
</span><span class="cx">         my $quoted = $value;
</span><span class="cx">         trick_taint($quoted);
</span><span class="cx">         return $quoted;
</span><span class="cx">     }
</span><ins>+    elsif ($numeric_field &amp;&amp; !$numeric_value &amp;&amp; $numeric_operator) {
+        ThrowUserError('number_not_numeric', { field =&gt; $field, num =&gt; $value });
+    }
</ins><span class="cx">     return Bugzilla-&gt;dbh-&gt;quote($value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub build_subselect {
</span><span class="cx">     my ($outer, $inner, $table, $cond, $negate) = @_;
</span><ins>+    if ($table =~ /\battach_data\b/) {
+        # It takes a long time to scan the whole attach_data table
+        # unconditionally, so we return the subselect and let the DB optimizer
+        # restrict the search based on other search criteria.
+        my $not = $negate ? &quot;NOT&quot; : &quot;&quot;;
+        return &quot;$outer $not IN (SELECT DISTINCT $inner FROM $table WHERE $cond)&quot;;
+    }
</ins><span class="cx">     # Execute subselects immediately to avoid dependent subqueries, which are
</span><span class="cx">     # large performance hits on MySql
</span><span class="cx">     my $q = &quot;SELECT DISTINCT $inner FROM $table WHERE $cond&quot;;
</span><span class="lines">@@ -1911,9 +2127,7 @@
</span><span class="cx">     # split each term on spaces and commas anyway.
</span><span class="cx">     my @words = split(/[\s,]+/, $args-&gt;{value});
</span><span class="cx">     @words = grep { defined $_ and $_ ne '' } @words;
</span><del>-    @words = map { $dbh-&gt;quote($_) } @words;
-    my @terms = map { $dbh-&gt;sql_iposition($_, $args-&gt;{full_field}) . &quot; &gt; 0&quot; }
-                    @words;
</del><ins>+    my @terms = map { $dbh-&gt;sql_ilike($_, $args-&gt;{full_field}) } @words;
</ins><span class="cx">     return @terms;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1951,16 +2165,15 @@
</span><span class="cx"> #####################################
</span><span class="cx"> 
</span><span class="cx"> sub _timestamp_translate {
</span><del>-    my ($self, $args) = @_;
</del><ins>+    my ($self, $ignore_time, $args) = @_;
</ins><span class="cx">     my $value = $args-&gt;{value};
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     return if $value !~ /^(?:[\+\-]?\d+[hdwmy]s?|now)$/i;
</span><span class="cx"> 
</span><del>-    # By default, the time is appended to the date, which we don't want
-    # for deadlines.
</del><span class="cx">     $value = SqlifyDate($value);
</span><del>-    if ($args-&gt;{field} eq 'deadline') {
</del><ins>+    # By default, the time is appended to the date, which we don't always want.
+    if ($ignore_time) {
</ins><span class="cx">         ($value) = split(/\s/, $value);
</span><span class="cx">     }
</span><span class="cx">     $args-&gt;{value} = $value;
</span><span class="lines">@@ -1967,6 +2180,29 @@
</span><span class="cx">     $args-&gt;{quoted} = $dbh-&gt;quote($value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _datetime_translate {
+    return shift-&gt;_timestamp_translate(0, @_);
+}
+
+sub _last_visit_datetime {
+    my ($self, $args) = @_;
+    my $value = $args-&gt;{value};
+
+    $self-&gt;_datetime_translate($args);
+    if ($value eq $args-&gt;{value}) {
+        # Failed to translate a datetime. let's try the pronoun expando.
+        if ($value eq '%last_changed%') {
+            $self-&gt;_add_extra_column('changeddate');
+            $args-&gt;{value} = $args-&gt;{quoted} = 'bugs.delta_ts';
+        }
+    }
+}
+
+
+sub _date_translate {
+    return shift-&gt;_timestamp_translate(1, @_);
+}
+
</ins><span class="cx"> sub SqlifyDate {
</span><span class="cx">     my ($str) = @_;
</span><span class="cx">     my $fmt = &quot;%Y-%m-%d %H:%M:%S&quot;;
</span><span class="lines">@@ -2005,7 +2241,8 @@
</span><span class="cx">         }
</span><span class="cx">         elsif ($unit eq 'm') {
</span><span class="cx">             $month -= $amount;
</span><del>-            while ($month&lt;0) { $year--; $month += 12; }
</del><ins>+            $year += floor($month/12);
+            $month %= 12;
</ins><span class="cx">             if ($startof) {
</span><span class="cx">                 return sprintf(&quot;%4d-%02d-01 00:00:00&quot;, $year+1900, $month+1);
</span><span class="cx">             }
</span><span class="lines">@@ -2053,7 +2290,8 @@
</span><span class="cx">     if ($noun eq &quot;%qacontact%&quot;) {
</span><span class="cx">         return &quot;COALESCE(bugs.qa_contact,0)&quot;;
</span><span class="cx">     }
</span><del>-    return 0;
</del><ins>+
+    ThrowUserError('illegal_pronoun', { pronoun =&gt; $noun });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _contact_pronoun {
</span><span class="lines">@@ -2073,11 +2311,11 @@
</span><span class="cx"> 
</span><span class="cx"> sub _contact_exact_group {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($value, $operator, $field, $chart_id, $joins) =
-        @$args{qw(value operator field chart_id joins)};
</del><ins>+    my ($value, $operator, $field, $chart_id, $joins, $sequence) =
+        @$args{qw(value operator field chart_id joins sequence)};
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $user = $self-&gt;_user;
</span><del>-    
</del><ins>+
</ins><span class="cx">     # We already know $value will match this regexp, else we wouldn't be here.
</span><span class="cx">     $value =~ /\%group\.([^%]+)%/;
</span><span class="cx">     my $group_name = $1;
</span><span class="lines">@@ -2091,11 +2329,28 @@
</span><span class="cx">     $group-&gt;check_members_are_visible();
</span><span class="cx"> 
</span><span class="cx">     my $group_ids = Bugzilla::Group-&gt;flatten_group_membership($group-&gt;id);
</span><ins>+
+    if ($field eq 'cc' &amp;&amp; $chart_id eq '') {
+        # This is for the email1, email2, email3 fields from query.cgi.
+        $chart_id = &quot;CC$$sequence&quot;;
+        $args-&gt;{sequence}++;
+    }
+
+    my $from = $field;
+    # These fields need an additional table.
+    if ($field =~ /^(commenter|cc)$/) {
+        my $join_table = $field;
+        $join_table = 'longdescs' if $field eq 'commenter';
+        my $join_table_alias = &quot;${field}_$chart_id&quot;;
+        push(@$joins, { table =&gt; $join_table, as =&gt; $join_table_alias });
+        $from = &quot;$join_table_alias.who&quot;;
+    }
+
</ins><span class="cx">     my $table = &quot;user_group_map_$chart_id&quot;;
</span><span class="cx">     my $join = {
</span><span class="cx">         table =&gt; 'user_group_map',
</span><span class="cx">         as    =&gt; $table,
</span><del>-        from  =&gt; $field,
</del><ins>+        from  =&gt; $from,
</ins><span class="cx">         to    =&gt; 'user_id',
</span><span class="cx">         extra =&gt; [$dbh-&gt;sql_in(&quot;$table.group_id&quot;, $group_ids),
</span><span class="cx">                   &quot;$table.isbless = 0&quot;],
</span><span class="lines">@@ -2109,76 +2364,15 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub _cc_pronoun {
-    my ($self, $args) = @_;
-    my ($full_field, $value) = @$args{qw(full_field value)};
-    my $user = $self-&gt;_user;
</del><ins>+sub _get_user_id {
+    my ($self, $value) = @_;
</ins><span class="cx"> 
</span><del>-    if ($value =~ /\%group/) {
-        return $self-&gt;_cc_exact_group($args);
</del><ins>+    if ($value =~ /^%\w+%$/) {
+        return pronoun($value, $self-&gt;_user);
</ins><span class="cx">     }
</span><del>-    elsif ($value =~ /^(%\w+%)$/) {
-        $args-&gt;{value} = pronoun($1, $user);
-        $args-&gt;{quoted} = $args-&gt;{value};
-        $args-&gt;{value_is_id} = 1;
-    }
</del><ins>+    return login_to_id($value, THROW_ERROR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub _cc_exact_group {
-    my ($self, $args) = @_;
-    my ($chart_id, $sequence, $joins, $operator, $value) =
-        @$args{qw(chart_id sequence joins operator value)};
-    my $user = $self-&gt;_user;
-    my $dbh = Bugzilla-&gt;dbh;
-    
-    $value =~ m/%group\.([^%]+)%/;
-    my $group = Bugzilla::Group-&gt;check({ name =&gt; $1, _error =&gt; 'invalid_group_name' });
-    $group-&gt;check_members_are_visible();
-    $user-&gt;in_group($group)
-      || ThrowUserError('invalid_group_name', {name =&gt; $group-&gt;name});
-
-    my $all_groups = Bugzilla::Group-&gt;flatten_group_membership($group-&gt;id);
-
-    # This is for the email1, email2, email3 fields from query.cgi.
-    if ($chart_id eq &quot;&quot;) {
-        $chart_id = &quot;CC$$sequence&quot;;
-        $args-&gt;{sequence}++;
-    }
-    
-    my $cc_table = &quot;cc_$chart_id&quot;;
-    push(@$joins, { table =&gt; 'cc', as =&gt; $cc_table });
-    my $group_table = &quot;user_group_map_$chart_id&quot;;
-    my $group_join = {
-        table =&gt; 'user_group_map',
-        as    =&gt; $group_table,
-        from  =&gt; &quot;$cc_table.who&quot;,
-        to    =&gt; 'user_id',
-        extra =&gt; [$dbh-&gt;sql_in(&quot;$group_table.group_id&quot;, $all_groups),
-                  &quot;$group_table.isbless = 0&quot;],
-    };
-    push(@$joins, $group_join);
-
-    if ($operator =~ /^not/) {
-        $args-&gt;{term} = &quot;$group_table.group_id IS NULL&quot;;
-    }
-    else {
-        $args-&gt;{term} = &quot;$group_table.group_id IS NOT NULL&quot;;
-    }
-}
-
-# XXX This should probably be merged with cc_pronoun.
-sub _commenter_pronoun {
-    my ($self, $args) = @_;
-    my $value = $args-&gt;{value};
-    my $user = $self-&gt;_user;
-
-    if ($value =~ /^(%\w+%)$/) {
-        $args-&gt;{value} = pronoun($1, $user);
-        $args-&gt;{quoted} = $args-&gt;{value};
-        $args-&gt;{value_is_id} = 1;
-    }
-}
-
</del><span class="cx"> #####################################################################
</span><span class="cx"> # Search Functions
</span><span class="cx"> #####################################################################
</span><span class="lines">@@ -2225,6 +2419,20 @@
</span><span class="cx">     if ($args-&gt;{value_is_id}) {
</span><span class="cx">         $null_alternate = 0;
</span><span class="cx">     }
</span><ins>+    elsif (substr($field, -9) eq '_realname') {
+        my $as = &quot;name_${field}_$chart_id&quot;;
+        # For fields with periods in their name.
+        $as =~ s/\./_/;
+        my $join = {
+            table =&gt; 'profiles',
+            as    =&gt; $as,
+            from  =&gt; substr($args-&gt;{full_field}, 0, -9),
+            to    =&gt; 'userid',
+            join  =&gt; (!$is_in_other_table and !$is_nullable) ? 'INNER' : undef,
+        };
+        push(@$joins, $join);
+        $args-&gt;{full_field} = &quot;$as.realname&quot;;
+    }
</ins><span class="cx">     else {
</span><span class="cx">         my $as = &quot;name_${field}_$chart_id&quot;;
</span><span class="cx">         # For fields with periods in their name.
</span><span class="lines">@@ -2239,7 +2447,7 @@
</span><span class="cx">         push(@$joins, $join);
</span><span class="cx">         $args-&gt;{full_field} = &quot;$as.login_name&quot;;
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     # We COALESCE fields that can be NULL, to make &quot;not&quot;-style operators
</span><span class="cx">     # continue to work properly. For example, &quot;qa_contact is not equal to bob&quot;
</span><span class="cx">     # should also show bugs where the qa_contact is NULL. With COALESCE,
</span><span class="lines">@@ -2259,7 +2467,7 @@
</span><span class="cx">         # For negative operators, the system we're using here
</span><span class="cx">         # only works properly if we reverse the operator and check IS NULL
</span><span class="cx">         # in the WHERE.
</span><del>-        my $is_negative = $operator =~ /^no/ ? 1 : 0;
</del><ins>+        my $is_negative = $operator =~ /^(?:no|isempty)/ ? 1 : 0;
</ins><span class="cx">         if ($is_negative) {
</span><span class="cx">             $args-&gt;{operator} = $self-&gt;_reverse_operator($operator);
</span><span class="cx">         }
</span><span class="lines">@@ -2306,11 +2514,17 @@
</span><span class="cx"> sub _long_desc_changedby {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my ($chart_id, $joins, $value) = @$args{qw(chart_id joins value)};
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $table = &quot;longdescs_$chart_id&quot;;
</span><span class="cx">     push(@$joins, { table =&gt; 'longdescs', as =&gt; $table });
</span><del>-    my $user_id = login_to_id($value, THROW_ERROR);
</del><ins>+    my $user_id = $self-&gt;_get_user_id($value);
</ins><span class="cx">     $args-&gt;{term} = &quot;$table.who = $user_id&quot;;
</span><ins>+
+    # If the user is not part of the insiders group, they cannot see
+    # private comments
+    if (!$self-&gt;_user-&gt;is_insider) {
+        $args-&gt;{term} .= &quot; AND $table.isprivate = 0&quot;;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _long_desc_changedbefore_after {
</span><span class="lines">@@ -2318,7 +2532,7 @@
</span><span class="cx">     my ($chart_id, $operator, $value, $joins) =
</span><span class="cx">         @$args{qw(chart_id operator value joins)};
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $sql_operator = ($operator =~ /before/) ? '&lt;=' : '&gt;=';
</span><span class="cx">     my $table = &quot;longdescs_$chart_id&quot;;
</span><span class="cx">     my $sql_date = $dbh-&gt;quote(SqlifyDate($value));
</span><span class="lines">@@ -2339,8 +2553,13 @@
</span><span class="cx"> 
</span><span class="cx"> sub _long_desc_nonchanged {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($chart_id, $operator, $value, $joins) =
-        @$args{qw(chart_id operator value joins)};
</del><ins>+    my ($chart_id, $operator, $value, $joins, $bugs_table) =
+        @$args{qw(chart_id operator value joins bugs_table)};
+
+    if ($operator =~ /^is(not)?empty$/) {
+        $args-&gt;{term} = $self-&gt;_multiselect_isempty($args, $operator eq 'isnotempty');
+        return;
+    }
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     my $table = &quot;longdescs_$chart_id&quot;;
</span><span class="lines">@@ -2354,6 +2573,7 @@
</span><span class="cx">         all_values =&gt; $value,
</span><span class="cx">         quoted     =&gt; $dbh-&gt;quote($value),
</span><span class="cx">         joins      =&gt; [],
</span><ins>+        bugs_table =&gt; $bugs_table,
</ins><span class="cx">     };
</span><span class="cx">     $self-&gt;_do_operator_function($join_args);
</span><span class="cx"> 
</span><span class="lines">@@ -2441,7 +2661,7 @@
</span><span class="cx">     
</span><span class="cx">     my $table = &quot;longdescs_$chart_id&quot;;
</span><span class="cx">     push(@$joins, { table =&gt; 'longdescs', as =&gt; $table });
</span><del>-    my $user_id = login_to_id($value, THROW_ERROR);
</del><ins>+    my $user_id = $self-&gt;_get_user_id($value);
</ins><span class="cx">     $args-&gt;{term} = &quot;$table.who = $user_id AND $table.work_time != 0&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2481,6 +2701,21 @@
</span><span class="cx">     $self-&gt;_add_extra_column('actual_time');
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _last_visit_ts {
+    my ($self, $args) = @_;
+
+    $args-&gt;{full_field} = $self-&gt;COLUMNS-&gt;{last_visit_ts}-&gt;{name};
+    $self-&gt;_add_extra_column('last_visit_ts');
+}
+
+sub _last_visit_ts_invalid_operator {
+    my ($self, $args) = @_;
+
+    ThrowUserError('search_field_operator_invalid',
+        { field    =&gt; $args-&gt;{field},
+          operator =&gt; $args-&gt;{operator} });
+}
+
</ins><span class="cx"> sub _days_elapsed {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -2510,6 +2745,15 @@
</span><span class="cx">         &quot;products.id&quot;, &quot;products&quot;, $term);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _alias_nonchanged {
+    my ($self, $args) = @_;
+
+    $args-&gt;{full_field} = &quot;bugs_aliases.alias&quot;;
+    $self-&gt;_do_operator_function($args);
+    $args-&gt;{term} = build_subselect(&quot;bugs.bug_id&quot;,
+        &quot;bugs_aliases.bug_id&quot;, &quot;bugs_aliases&quot;, $args-&gt;{term});
+}
+
</ins><span class="cx"> sub _classification_nonchanged {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $joins = $args-&gt;{joins};
</span><span class="lines">@@ -2544,6 +2788,13 @@
</span><span class="cx">     $args-&gt;{full_field} = &quot;COALESCE($field, $empty)&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _nullable_date {
+    my ($self, $args) = @_;
+    my $field = $args-&gt;{full_field};
+    my $empty = Bugzilla-&gt;dbh-&gt;quote(EMPTY_DATE);
+    $args-&gt;{full_field} = &quot;COALESCE($field, $empty)&quot;;
+}
+
</ins><span class="cx"> sub _deadline {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $field = $args-&gt;{full_field};
</span><span class="lines">@@ -2586,7 +2837,7 @@
</span><span class="cx">             &quot;$ld_table.who IS NULL AND $act_table.who IS NULL&quot;;
</span><span class="cx">     } else {
</span><span class="cx">          $args-&gt;{term} =
</span><del>-            &quot;$ld_table.who IS NOT NULL OR $act_table.who IS NOT NULL&quot;;
</del><ins>+            &quot;($ld_table.who IS NOT NULL OR $act_table.who IS NOT NULL)&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2630,8 +2881,14 @@
</span><span class="cx"> 
</span><span class="cx"> sub _flagtypes_nonchanged {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($chart_id, $operator, $value, $joins, $condition) =
-        @$args{qw(chart_id operator value joins condition)};
</del><ins>+    my ($chart_id, $operator, $value, $joins, $bugs_table, $condition) =
+        @$args{qw(chart_id operator value joins bugs_table condition)};
+
+    if ($operator =~ /^is(not)?empty$/) {
+        $args-&gt;{term} = $self-&gt;_multiselect_isempty($args, $operator eq 'isnotempty');
+        return;
+    }
+
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     # For 'not' operators, we need to negate the whole term.
</span><span class="lines">@@ -2654,6 +2911,7 @@
</span><span class="cx">         all_values =&gt; $value,
</span><span class="cx">         quoted     =&gt; $dbh-&gt;quote($value),
</span><span class="cx">         joins      =&gt; [],
</span><ins>+        bugs_table =&gt; &quot;bugs_$chart_id&quot;,
</ins><span class="cx">     };
</span><span class="cx">     $self-&gt;_do_operator_function($subselect_args);
</span><span class="cx">     my $subselect_term = $subselect_args-&gt;{term};
</span><span class="lines">@@ -2661,7 +2919,7 @@
</span><span class="cx">     # don't call build_subselect as this must run as a true sub-select
</span><span class="cx">     $args-&gt;{term} = &quot;EXISTS (
</span><span class="cx">         SELECT 1
</span><del>-          FROM bugs bugs_$chart_id
</del><ins>+          FROM $bugs_table bugs_$chart_id
</ins><span class="cx">           LEFT JOIN attachments AS attachments_$chart_id
</span><span class="cx">                     ON bugs_$chart_id.bug_id = attachments_$chart_id.bug_id
</span><span class="cx">           LEFT JOIN flags AS flags_$chart_id
</span><span class="lines">@@ -2670,7 +2928,7 @@
</span><span class="cx">                             OR flags_$chart_id.attach_id IS NULL)
</span><span class="cx">           LEFT JOIN flagtypes AS flagtypes_$chart_id
</span><span class="cx">                     ON flags_$chart_id.type_id = flagtypes_$chart_id.id
</span><del>-     WHERE bugs_$chart_id.bug_id = bugs.bug_id
</del><ins>+     WHERE bugs_$chart_id.bug_id = $bugs_table.bug_id
</ins><span class="cx">            AND $subselect_term
</span><span class="cx">     )&quot;;
</span><span class="cx"> }
</span><span class="lines">@@ -2735,10 +2993,12 @@
</span><span class="cx">         return &quot;attachments INNER JOIN attach_data &quot;
</span><span class="cx">                . &quot; ON attachments.attach_id = attach_data.id&quot;
</span><span class="cx">     }
</span><del>-    elsif ($field eq 'flagtypes.name') {
-        $args-&gt;{full_field} = $dbh-&gt;sql_string_concat(&quot;flagtypes.name&quot;,
-                                                      &quot;flags.status&quot;);
-        return &quot;flags INNER JOIN flagtypes ON flags.type_id = flagtypes.id&quot;;
</del><ins>+    elsif ($field eq 'comment_tag') {
+        $args-&gt;{_extra_where} = &quot; AND longdescs.isprivate = 0&quot;
+            if !$self-&gt;_user-&gt;is_insider;
+        $args-&gt;{full_field} = 'longdescs_tags.tag';
+        return &quot;longdescs INNER JOIN longdescs_tags&quot;.
+               &quot; ON longdescs.comment_id = longdescs_tags.comment_id&quot;;
</ins><span class="cx">     }
</span><span class="cx">     my $table = &quot;bug_$field&quot;;
</span><span class="cx">     $args-&gt;{full_field} = &quot;bug_$field.value&quot;;
</span><span class="lines">@@ -2747,14 +3007,138 @@
</span><span class="cx"> 
</span><span class="cx"> sub _multiselect_term {
</span><span class="cx">     my ($self, $args, $not) = @_;
</span><ins>+    my ($operator) = $args-&gt;{operator};
+    my $value = $args-&gt;{value} || '';
+    # 'empty' operators require special handling
+    return $self-&gt;_multiselect_isempty($args, $not)
+        if ($operator =~ /^is(not)?empty$/ || $value eq '---');
</ins><span class="cx">     my $table = $self-&gt;_multiselect_table($args);
</span><span class="cx">     $self-&gt;_do_operator_function($args);
</span><span class="cx">     my $term = $args-&gt;{term};
</span><span class="cx">     $term .= $args-&gt;{_extra_where} || '';
</span><span class="cx">     my $select = $args-&gt;{_select_field} || 'bug_id';
</span><del>-    return build_subselect(&quot;bugs.bug_id&quot;, $select, $table, $term, $not);
</del><ins>+    return build_subselect(&quot;$args-&gt;{bugs_table}.bug_id&quot;, $select, $table, $term, $not);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# We can't use the normal operator_functions to build isempty queries which
+# join to different tables.
+sub _multiselect_isempty {
+    my ($self, $args, $not) = @_;
+    my ($field, $operator, $joins, $chart_id) = @$args{qw(field operator joins chart_id)};
+    my $dbh = Bugzilla-&gt;dbh;
+    $operator = $self-&gt;_reverse_operator($operator) if $not;
+    $not = $operator eq 'isnotempty' ? 'NOT' : '';
+
+    if ($field eq 'keywords') {
+        push @$joins, {
+            table =&gt; 'keywords',
+            as    =&gt; &quot;keywords_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        };
+        return &quot;keywords_$chart_id.bug_id IS $not NULL&quot;;
+    }
+    elsif ($field eq 'bug_group') {
+        push @$joins, {
+            table =&gt; 'bug_group_map',
+            as    =&gt; &quot;bug_group_map_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        };
+        return &quot;bug_group_map_$chart_id.bug_id IS $not NULL&quot;;
+    }
+    elsif ($field eq 'flagtypes.name') {
+        push @$joins, {
+            table =&gt; 'flags',
+            as    =&gt; &quot;flags_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        };
+        return &quot;flags_$chart_id.bug_id IS $not NULL&quot;;
+    }
+    elsif ($field eq 'blocked' or $field eq 'dependson') {
+        my $to = $field eq 'blocked' ? 'dependson' : 'blocked';
+        push @$joins, {
+            table =&gt; 'dependencies',
+            as    =&gt; &quot;dependencies_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; $to,
+        };
+        return &quot;dependencies_$chart_id.$to IS $not NULL&quot;;
+    }
+    elsif ($field eq 'longdesc') {
+        my @extra = ( &quot;longdescs_$chart_id.type != &quot; . CMT_HAS_DUPE );
+        push @extra, &quot;longdescs_$chart_id.isprivate = 0&quot;
+            unless $self-&gt;_user-&gt;is_insider;
+        push @$joins, {
+            table =&gt; 'longdescs',
+            as    =&gt; &quot;longdescs_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+            extra =&gt; \@extra,
+        };
+        return $not
+            ? &quot;longdescs_$chart_id.thetext != ''&quot;
+            : &quot;longdescs_$chart_id.thetext = ''&quot;;
+    }
+    elsif ($field eq 'longdescs.isprivate') {
+        ThrowUserError('search_field_operator_invalid', { field  =&gt; $field,
+                                                          operator =&gt; $operator });
+    }
+    elsif ($field =~ /^attachments\.(.+)/) {
+        my $sub_field = $1;
+        if ($sub_field eq 'description' || $sub_field eq 'filename' || $sub_field eq 'mimetype') {
+            # can't be null/empty
+            return $not ? '1=1' : '1=2';
+        } else {
+            # all other fields which get here are boolean
+            ThrowUserError('search_field_operator_invalid', { field =&gt; $field,
+                                                              operator =&gt; $operator });
+        }
+    }
+    elsif ($field eq 'attach_data.thedata') {
+        push @$joins, {
+            table =&gt; 'attachments',
+            as    =&gt; &quot;attachments_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+            extra =&gt; [ $self-&gt;_user-&gt;is_insider ? '' : &quot;attachments_$chart_id.isprivate = 0&quot; ],
+        };
+        push @$joins, {
+            table =&gt; 'attach_data',
+            as    =&gt; &quot;attach_data_$chart_id&quot;,
+            from  =&gt; &quot;attachments_$chart_id.attach_id&quot;,
+            to    =&gt; 'id',
+        };
+        return &quot;attach_data_$chart_id.thedata IS $not NULL&quot;;
+    }
+    elsif ($field eq 'tag') {
+        push @$joins, {
+            table =&gt; 'bug_tag',
+            as    =&gt; &quot;bug_tag_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        };
+        push @$joins, {
+            table =&gt; 'tag',
+            as    =&gt; &quot;tag_$chart_id&quot;,
+            from  =&gt; &quot;bug_tag_$chart_id.tag_id&quot;,
+            to    =&gt; 'id',
+            extra =&gt; [ &quot;tag_$chart_id.user_id = &quot; . ($self-&gt;_sharer_id || $self-&gt;_user-&gt;id) ],
+        };
+        return &quot;tag_$chart_id.id IS $not NULL&quot;;
+    }
+    elsif ($self-&gt;_multi_select_fields-&gt;{$field}) {
+        push @$joins, {
+            table =&gt; &quot;bug_$field&quot;,
+            as =&gt; &quot;bug_${field}_$chart_id&quot;,
+            from  =&gt; 'bug_id',
+            to    =&gt; 'bug_id',
+        };
+        return &quot;bug_${field}_$chart_id.bug_id IS $not NULL&quot;;
+    }
+}
+
</ins><span class="cx"> ###############################
</span><span class="cx"> # Standard Operator Functions #
</span><span class="cx"> ###############################
</span><span class="lines">@@ -2769,28 +3153,26 @@
</span><span class="cx"> 
</span><span class="cx"> sub _casesubstring {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($full_field, $quoted) = @$args{qw(full_field quoted)};
</del><ins>+    my ($full_field, $value) = @$args{qw(full_field value)};
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    
-    $args-&gt;{term} = $dbh-&gt;sql_position($quoted, $full_field) . &quot; &gt; 0&quot;;
</del><ins>+
+    $args-&gt;{term} = $dbh-&gt;sql_like($value, $full_field);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _substring {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($full_field, $quoted) = @$args{qw(full_field quoted)};
</del><ins>+    my ($full_field, $value) = @$args{qw(full_field value)};
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    
-    # XXX This should probably be changed to just use LIKE
-    $args-&gt;{term} = $dbh-&gt;sql_iposition($quoted, $full_field) . &quot; &gt; 0&quot;;
</del><ins>+
+    $args-&gt;{term} = $dbh-&gt;sql_ilike($value, $full_field);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _notsubstring {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    my ($full_field, $quoted) = @$args{qw(full_field quoted)};
</del><ins>+    my ($full_field, $value) = @$args{qw(full_field value)};
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    
-    # XXX This should probably be changed to just use NOT LIKE
-    $args-&gt;{term} = $dbh-&gt;sql_iposition($quoted, $full_field) . &quot; = 0&quot;;
</del><ins>+
+    $args-&gt;{term} = $dbh-&gt;sql_not_ilike($value, $full_field);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _regexp {
</span><span class="lines">@@ -2829,7 +3211,7 @@
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx"> 
</span><span class="cx">     my @terms = $self-&gt;_substring_terms($args);
</span><del>-    $args-&gt;{term} = join(&quot;\n\tOR &quot;, @terms);
</del><ins>+    $args-&gt;{term} = @terms ? '(' . join(&quot;\n\tOR &quot;, @terms) . ')' : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _allwordssubstr {
</span><span class="lines">@@ -2836,7 +3218,7 @@
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx"> 
</span><span class="cx">     my @terms = $self-&gt;_substring_terms($args);
</span><del>-    $args-&gt;{term} = join(&quot;\n\tAND &quot;, @terms);
</del><ins>+    $args-&gt;{term} = @terms ? '(' . join(&quot;\n\tAND &quot;, @terms) . ')' : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _nowordssubstr {
</span><span class="lines">@@ -2848,19 +3230,19 @@
</span><span class="cx"> 
</span><span class="cx"> sub _anywords {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my @terms = $self-&gt;_word_terms($args);
</span><span class="cx">     # Because _word_terms uses AND, we need to parenthesize its terms
</span><span class="cx">     # if there are more than one.
</span><span class="cx">     @terms = map(&quot;($_)&quot;, @terms) if scalar(@terms) &gt; 1;
</span><del>-    $args-&gt;{term} = join(&quot;\n\tOR &quot;, @terms);
</del><ins>+    $args-&gt;{term} = @terms ? '(' . join(&quot;\n\tOR &quot;, @terms) . ')' : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _allwords {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my @terms = $self-&gt;_word_terms($args);
</span><del>-    $args-&gt;{term} = join(&quot;\n\tAND &quot;, @terms);
</del><ins>+    $args-&gt;{term} = @terms ? '(' . join(&quot;\n\tAND &quot;, @terms) . ')' : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _nowords {
</span><span class="lines">@@ -2936,7 +3318,7 @@
</span><span class="cx">         || ThrowCodeError(&quot;invalid_field_name&quot;, { field =&gt; $field });
</span><span class="cx">     my $field_id = $field_object-&gt;id;
</span><span class="cx">     my $table = &quot;act_${field_id}_$chart_id&quot;;
</span><del>-    my $user_id  = login_to_id($value, THROW_ERROR);
</del><ins>+    my $user_id  = $self-&gt;_get_user_id($value);
</ins><span class="cx">     my $join = {
</span><span class="cx">         table =&gt; 'bugs_activity',
</span><span class="cx">         as    =&gt; $table,
</span><span class="lines">@@ -2971,6 +3353,27 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _isempty {
+    my ($self, $args) = @_;
+    my $full_field = $args-&gt;{full_field};
+    $args-&gt;{term} = &quot;$full_field IS NULL OR $full_field = &quot; . $self-&gt;_empty_value($args-&gt;{field});
+}
+
+sub _isnotempty {
+    my ($self, $args) = @_;
+    my $full_field = $args-&gt;{full_field};
+    $args-&gt;{term} = &quot;$full_field IS NOT NULL AND $full_field != &quot; . $self-&gt;_empty_value($args-&gt;{field});
+}
+
+sub _empty_value {
+    my ($self, $field) = @_;
+    my $field_obj = $self-&gt;_chart_fields-&gt;{$field};
+    return &quot;0&quot; if $field_obj-&gt;type == FIELD_TYPE_BUG_ID;
+    return Bugzilla-&gt;dbh-&gt;quote(EMPTY_DATETIME) if $field_obj-&gt;type == FIELD_TYPE_DATETIME;
+    return Bugzilla-&gt;dbh-&gt;quote(EMPTY_DATE) if $field_obj-&gt;type == FIELD_TYPE_DATE;
+    return &quot;''&quot;;
+}
+
</ins><span class="cx"> ######################
</span><span class="cx"> # Public Subroutines #
</span><span class="cx"> ######################
</span><span class="lines">@@ -2995,8 +3398,8 @@
</span><span class="cx"> 
</span><span class="cx"> # Used to translate old SQL fragments from buglist.cgi's &quot;order&quot; argument
</span><span class="cx"> # into our modern field IDs.
</span><del>-sub translate_old_column {
-    my ($column) = @_;
</del><ins>+sub _translate_old_column {
+    my ($self, $column) = @_;
</ins><span class="cx">     # All old SQL fragments have a period in them somewhere.
</span><span class="cx">     return $column if $column !~ /\./;
</span><span class="cx"> 
</span><span class="lines">@@ -3010,9 +3413,9 @@
</span><span class="cx">     
</span><span class="cx">     # If it doesn't match the regexps above, check to see if the old 
</span><span class="cx">     # SQL fragment matches the SQL of an existing column
</span><del>-    foreach my $key (%{ COLUMNS() }) {
-        next unless exists COLUMNS-&gt;{$key}-&gt;{name};
-        return $key if COLUMNS-&gt;{$key}-&gt;{name} eq $column;
</del><ins>+    foreach my $key (%{ $self-&gt;COLUMNS }) {
+        next unless exists $self-&gt;COLUMNS-&gt;{$key}-&gt;{name};
+        return $key if $self-&gt;COLUMNS-&gt;{$key}-&gt;{name} eq $column;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return $column;
</span><span class="lines">@@ -3019,3 +3422,141 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+__END__
+
+=head1 NAME
+
+Bugzilla::Search - Provides methods to run queries against bugs.
+
+=head1 SYNOPSIS
+
+    use Bugzilla::Search;
+
+    my $search = new Bugzilla::Search({'fields' =&gt; \@fields,
+                                       'params' =&gt; \%search_criteria,
+                                       'sharer' =&gt; $sharer_id,
+                                       'user'   =&gt; $user_obj,
+                                       'allow_unlimited' =&gt; 1});
+
+    my $data = $search-&gt;data;
+    my ($data, $extra_data) = $search-&gt;data;
+
+=head1 DESCRIPTION
+
+Search.pm represents a search object. It's the single way to collect
+data about bugs in a secure way. The list of bugs matching criteria
+defined by the caller are filtered based on the user privileges.
+
+=head1 METHODS
+
+=head2 new
+
+=over
+
+=item B&lt;Description&gt;
+
+Create a Bugzilla::Search object.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;fields&gt;
+
+An arrayref representing the bug attributes for which data is desired.
+Legal attributes are listed in the fielddefs DB table. At least one field
+must be defined, typically the 'bug_id' field.
+
+=item C&lt;params&gt;
+
+A hashref representing search criteria. Each key =&gt; value pair represents
+a search criteria, where the key is the search field and the value is the
+value for this field. At least one search criteria must be defined if the
+'search_allow_no_criteria' parameter is turned off, else an error is thrown.
+
+=item C&lt;sharer&gt;
+
+When a saved search is shared by a user, this is their user ID.
+
+=item C&lt;user&gt;
+
+A L&lt;Bugzilla::User&gt; object representing the user to whom the data is addressed.
+All security checks are done based on this user object, so it's not safe
+to share results of the query with other users as not all users have the
+same privileges or have the same role for all bugs in the list. If this
+parameter is not defined, then the currently logged in user is taken into
+account. If no user is logged in, then only public bugs will be returned.
+
+=item C&lt;allow_unlimited&gt;
+
+If set to a true value, the number of bugs retrieved by the query is not
+limited.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A L&lt;Bugzilla::Search&gt; object.
+
+=back
+
+=head2 data
+
+=over
+
+=item B&lt;Description&gt;
+
+Returns bugs matching search criteria passed to C&lt;new()&gt;.
+
+=item B&lt;Params&gt;
+
+None
+
+=item B&lt;Returns&gt;
+
+In scalar context, this method returns a reference to a list of bugs.
+Each item of the list represents a bug, which is itself a reference to
+a list where each item represents a bug attribute, in the same order as
+specified in the C&lt;fields&gt; parameter of C&lt;new()&gt;.
+
+In list context, this methods also returns a reference to a list containing
+references to hashes. For each hash, two keys are defined: C&lt;sql&gt; contains
+the SQL query which has been executed, and C&lt;time&gt; contains the time spent
+to execute the SQL query, in seconds. There can be either a single hash, or
+two hashes if two SQL queries have been executed sequentially to get all the
+required data.
+
+=back
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item invalid_order_columns
+
+=item COLUMN_JOINS
+
+=item split_order_term
+
+=item SqlifyDate
+
+=item REPORT_COLUMNS
+
+=item pronoun
+
+=item COLUMNS
+
+=item order
+
+=item search_description
+
+=item IsValidQueryType
+
+=item build_subselect
+
+=item do_search_function
+
+=item boolean_charts_to_custom_search
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSenderTransportSendmailpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/Sender/Transport/Sendmail.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Sender/Transport/Sendmail.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Sender/Transport/Sendmail.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,95 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Sender::Transport::Sendmail;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Email::Sender::Transport::Sendmail);
+
+use Email::Sender::Failure;
+
+sub send_email {
+    my ($self, $email, $envelope) = @_;
+
+    my $pipe = $self-&gt;_sendmail_pipe($envelope);
+
+    my $string = $email-&gt;as_string;
+    $string =~ s/\x0D\x0A/\x0A/g unless $^O eq 'MSWin32';
+
+    print $pipe $string
+      or Email::Sender::Failure-&gt;throw(&quot;couldn't send message to sendmail: $!&quot;);
+
+    unless (close $pipe) {
+        Email::Sender::Failure-&gt;throw(&quot;error when closing pipe to sendmail: $!&quot;) if $!;
+        my ($error_message, $is_transient) = _map_exitcode($? &gt;&gt; 8);
+        if (Bugzilla-&gt;params-&gt;{'use_mailer_queue'}) {
+            # Return success for errors which are fatal so Bugzilla knows to
+            # remove them from the queue.
+            if ($is_transient) {
+                Email::Sender::Failure-&gt;throw(&quot;error when closing pipe to sendmail: $error_message&quot;);
+            } else {
+                warn &quot;error when closing pipe to sendmail: $error_message\n&quot;;
+                return $self-&gt;success;
+            }
+        } else {
+            Email::Sender::Failure-&gt;throw(&quot;error when closing pipe to sendmail: $error_message&quot;);
+        }
+    }
+    return $self-&gt;success;
+}
+
+sub _map_exitcode {
+    # Returns (error message, is_transient)
+    # from the sendmail source (sendmail/sysexits.h)
+    my $code = shift;
+    if ($code == 64) {
+        return (&quot;Command line usage error (EX_USAGE)&quot;, 1);
+    } elsif ($code == 65) {
+        return (&quot;Data format error (EX_DATAERR)&quot;, 1);
+    } elsif ($code == 66) {
+        return (&quot;Cannot open input (EX_NOINPUT)&quot;, 1);
+    } elsif ($code == 67) {
+        return (&quot;Addressee unknown (EX_NOUSER)&quot;, 0);
+    } elsif ($code == 68) {
+        return (&quot;Host name unknown (EX_NOHOST)&quot;, 0);
+    } elsif ($code == 69) {
+        return (&quot;Service unavailable (EX_UNAVAILABLE)&quot;, 1);
+    } elsif ($code == 70) {
+        return (&quot;Internal software error (EX_SOFTWARE)&quot;, 1);
+    } elsif ($code == 71) {
+        return (&quot;System error (EX_OSERR)&quot;, 1);
+    } elsif ($code == 72) {
+        return (&quot;Critical OS file missing (EX_OSFILE)&quot;, 1);
+    } elsif ($code == 73) {
+        return (&quot;Can't create output file (EX_CANTCREAT)&quot;, 1);
+    } elsif ($code == 74) {
+        return (&quot;Input/output error (EX_IOERR)&quot;, 1);
+    } elsif ($code == 75) {
+        return (&quot;Temp failure (EX_TEMPFAIL)&quot;, 1);
+    } elsif ($code == 76) {
+        return (&quot;Remote error in protocol (EX_PROTOCOL)&quot;, 1);
+    } elsif ($code == 77) {
+        return (&quot;Permission denied (EX_NOPERM)&quot;, 1);
+    } elsif ($code == 78) {
+        return (&quot;Configuration error (EX_CONFIG)&quot;, 1);
+    } else {
+        return (&quot;Unknown Error ($code)&quot;, 1);
+    }
+}
+
+1;
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item send_email
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaSeriespm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Series.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Series.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Series.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,10 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-use strict;
-
</del><span class="cx"> # This module implements a series - a set of data to be plotted on a chart.
</span><span class="cx"> #
</span><span class="cx"> # This Series is in the database if and only if self-&gt;{'series_id'} is defined. 
</span><span class="lines">@@ -31,6 +14,10 @@
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::Series;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> 
</span><span class="lines">@@ -284,3 +271,29 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item creator
+
+=item existsInDatabase
+
+=item name
+
+=item getCategoryID
+
+=item initFromParameters
+
+=item initFromCGI
+
+=item initFromDatabase
+
+=item remove_from_db
+
+=item writeToDatabase
+
+=item id
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaStatuspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Status.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Status.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Status.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,21 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (C) 2007
-# Frédéric Buclin. All Rights Reserved.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Status;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Status;
-
-use Bugzilla::Error;
</del><span class="cx"> # This subclasses Bugzilla::Field::Choice instead of implementing 
</span><span class="cx"> # ChoiceInterface, because a bug status literally is a special type
</span><span class="cx"> # of Field::Choice, not just an object that happens to have the same
</span><span class="cx"> # methods.
</span><del>-use base qw(Bugzilla::Field::Choice Exporter);
</del><ins>+use parent qw(Bugzilla::Field::Choice Exporter);
</ins><span class="cx"> @Bugzilla::Status::EXPORT = qw(
</span><span class="cx">     BUG_STATE_OPEN
</span><span class="cx">     SPECIAL_STATUS_WORKFLOW_ACTIONS
</span><span class="lines">@@ -36,6 +24,8 @@
</span><span class="cx">     closed_bug_statuses
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+use Bugzilla::Error;
+
</ins><span class="cx"> ################################
</span><span class="cx"> #####   Initialization     #####
</span><span class="cx"> ################################
</span><span class="lines">@@ -76,14 +66,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub remove_from_db {
</span><span class="cx">     my $self = shift;
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
-    my $id = $self-&gt;id;
-    $dbh-&gt;bz_start_transaction();
</del><span class="cx">     $self-&gt;SUPER::remove_from_db();
</span><del>-    $dbh-&gt;do('DELETE FROM status_workflow
-               WHERE old_status = ? OR new_status = ?',
-              undef, $id, $id);
-    $dbh-&gt;bz_commit_transaction();
</del><span class="cx">     delete Bugzilla-&gt;request_cache-&gt;{status_bug_state_open};
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -126,11 +109,21 @@
</span><span class="cx"> 
</span><span class="cx"> sub BUG_STATE_OPEN {
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    my $cache = Bugzilla-&gt;request_cache;
-    $cache-&gt;{status_bug_state_open} ||=
-        $dbh-&gt;selectcol_arrayref('SELECT value FROM bug_status 
-                                   WHERE is_open = 1');
-    return @{ $cache-&gt;{status_bug_state_open} };
</del><ins>+    my $request_cache = Bugzilla-&gt;request_cache;
+    my $cache_key = 'status_bug_state_open';
+    return @{ $request_cache-&gt;{$cache_key} }
+        if exists $request_cache-&gt;{$cache_key};
+
+    my $rows = Bugzilla-&gt;memcached-&gt;get_config({ key =&gt; $cache_key });
+    if (!$rows) {
+        $rows = $dbh-&gt;selectcol_arrayref(
+            'SELECT value FROM bug_status WHERE is_open = 1'
+        );
+        Bugzilla-&gt;memcached-&gt;set_config({ key =&gt; $cache_key, data =&gt; $rows });
+    }
+
+    $request_cache-&gt;{$cache_key} = $rows;
+    return @$rows;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Tells you whether or not the argument is a valid &quot;open&quot; state.
</span><span class="lines">@@ -195,8 +188,8 @@
</span><span class="cx">     my ($self, $old_status) = @_;
</span><span class="cx">     my @values;
</span><span class="cx">     my $cond = 'old_status IS NULL';
</span><del>-    # For newly-filed bugs
-    if ($old_status) {
</del><ins>+    # We may pass a fake status object to represent the initial unset state.
+    if ($old_status &amp;&amp; $old_status-&gt;id)  {
</ins><span class="cx">         $cond = 'old_status = ?';
</span><span class="cx">         push(@values, $old_status-&gt;id);
</span><span class="cx">     }
</span><span class="lines">@@ -315,3 +308,27 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item create
+
+=item BUG_STATE_OPEN
+
+=item is_static
+
+=item is_open_state
+
+=item is_active
+
+=item remove_from_db
+
+=item DB_COLUMNS
+
+=item is_open
+
+=item VALIDATORS
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTemplateContextpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Template/Context.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Template/Context.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Template/Context.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,19 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is ITA Software.
-# Portions created by the Initial Developer are Copyright (C) 2009 
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This exists to implement the template-before_process hook.
</span><span class="cx"> package Bugzilla::Template::Context;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Template::Context);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Template::Context);
+
</ins><span class="cx"> use Bugzilla::Hook;
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> 
</span><span class="lines">@@ -95,6 +85,14 @@
</span><span class="cx">     return $stash;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub filter {
+    my ($self, $name, $args) = @_;
+    # If we pass an alias for the filter name, the filter code is cached
+    # instead of looking for it at each call.
+    # If the filter has arguments, then we can't cache it.
+    $self-&gt;SUPER::filter($name, $args, $args ? undef : $name);
+}
+
</ins><span class="cx"> # We need a DESTROY sub for the same reason that Bugzilla::CGI does.
</span><span class="cx"> sub DESTROY {
</span><span class="cx">     my $self = shift;
</span><span class="lines">@@ -102,3 +100,15 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item stash
+
+=item filter
+
+=item process
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTemplatePluginBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Template::Plugin::Bugzilla;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Template::Plugin);
</del><ins>+use parent qw(Template::Plugin);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> 
</span><span class="lines">@@ -61,4 +48,3 @@
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla&gt;, L&lt;Template::Plugin&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTemplatePluginHookpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Hook.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Hook.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/Hook.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Elliotte Martin &lt;everythingsolved.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Template::Plugin::Hook;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Template::Plugin);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Template::Plugin);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Util qw(template_include_path); 
</span><span class="cx"> use Bugzilla::Util;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTemplatePluginUserpm"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/User.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/User.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Template/Plugin/User.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,65 +0,0 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#
-
-package Bugzilla::Template::Plugin::User;
-
-use strict;
-
-use base qw(Template::Plugin);
-
-use Bugzilla::User;
-
-sub new {
-    my ($class, $context) = @_;
-
-    return bless {}, $class;
-}
-
-sub AUTOLOAD {
-    my $class = shift;
-    our $AUTOLOAD;
-
-    $AUTOLOAD =~ s/^.*:://;
-
-    return if $AUTOLOAD eq 'DESTROY';
-
-    return Bugzilla::User-&gt;$AUTOLOAD(@_);
-}
-
-1;
-
-__END__
-
-=head1 NAME
-
-Bugzilla::Template::Plugin::User
-
-=head1 DESCRIPTION
-
-Template Toolkit plugin to allow access to the C&lt;User&gt;
-object.
-
-=head1 SEE ALSO
-
-L&lt;Bugzilla::User&gt;, L&lt;Template::Plugin&gt;
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTemplatepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Template.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Template.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Template.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,65 +1,44 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Tobias Burnus &lt;burnus@net-b.de&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Greg Hendricks &lt;ghendricks@novell.com&gt;
-#                 David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::Template;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Bug;
</del><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::WebService::Constants;
</ins><span class="cx"> use Bugzilla::Hook;
</span><span class="cx"> use Bugzilla::Install::Requirements;
</span><span class="cx"> use Bugzilla::Install::Util qw(install_string template_include_path 
</span><span class="cx">                                include_languages);
</span><ins>+use Bugzilla::Classification;
</ins><span class="cx"> use Bugzilla::Keyword;
</span><span class="cx"> use Bugzilla::Util;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Search;
</span><del>-use Bugzilla::Status;
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><span class="cx"> use Cwd qw(abs_path);
</span><span class="cx"> use MIME::Base64;
</span><span class="cx"> use Date::Format ();
</span><ins>+use Digest::MD5 qw(md5_hex);
</ins><span class="cx"> use File::Basename qw(basename dirname);
</span><span class="cx"> use File::Find;
</span><span class="cx"> use File::Path qw(rmtree mkpath);
</span><ins>+use File::Slurp;
</ins><span class="cx"> use File::Spec;
</span><span class="cx"> use IO::Dir;
</span><span class="cx"> use List::MoreUtils qw(firstidx);
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> 
</span><del>-use base qw(Template);
</del><ins>+use parent qw(Template);
</ins><span class="cx"> 
</span><span class="cx"> use constant FORMAT_TRIPLE =&gt; '%19s|%-28s|%-28s';
</span><span class="cx"> use constant FORMAT_3_SIZE =&gt; [19,28,28];
</span><span class="lines">@@ -72,9 +51,9 @@
</span><span class="cx">     return qr/($safe_protocols):[^:\s&lt;&gt;\&quot;][^\s&lt;&gt;\&quot;]+[\w\/]/i;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Convert the constants in the Bugzilla::Constants module into a hash we can
-# pass to the template object for reflection into its &quot;constants&quot; namespace
-# (which is like its &quot;variables&quot; namespace, but for constants).  To do so, we
</del><ins>+# Convert the constants in the Bugzilla::Constants and Bugzilla::WebService::Constants
+# modules into a hash we can pass to the template object for reflection into its &quot;constants&quot; 
+# namespace (which is like its &quot;variables&quot; namespace, but for constants). To do so, we
</ins><span class="cx"> # traverse the arrays of exported and exportable symbols and ignoring the rest
</span><span class="cx"> # (which, if Constants.pm exports only constants, as it should, will be nothing else).
</span><span class="cx"> sub _load_constants {
</span><span class="lines">@@ -90,6 +69,18 @@
</span><span class="cx">             $constants{$constant} = (scalar(@list) == 1) ? $list[0] : \@list;
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+
+    foreach my $constant (@Bugzilla::WebService::Constants::EXPORT, 
+                          @Bugzilla::WebService::Constants::EXPORT_OK)
+    {
+        if (ref Bugzilla::WebService::Constants-&gt;$constant) {
+            $constants{$constant} = Bugzilla::WebService::Constants-&gt;$constant;
+        }
+        else {
+            my @list = (Bugzilla::WebService::Constants-&gt;$constant);
+            $constants{$constant} = (scalar(@list) == 1) ? $list[0] : \@list;
+        }
+    }
</ins><span class="cx">     return \%constants;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -109,12 +100,15 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my ($template, $format, $ctype) = @_;
</span><span class="cx"> 
</span><del>-    $ctype ||= 'html';
-    $format ||= '';
</del><ins>+    $ctype //= 'html';
+    $format //= '';
</ins><span class="cx"> 
</span><del>-    # Security - allow letters and a hyphen only
-    $ctype =~ s/[^a-zA-Z\-]//g;
-    $format =~ s/[^a-zA-Z\-]//g;
</del><ins>+    # ctype and format can have letters and a hyphen only.
+    if ($ctype =~ /[^a-zA-Z\-]/ || $format =~ /[^a-zA-Z\-]/) {
+        ThrowUserError('format_not_found', {'format' =&gt; $format,
+                                            'ctype'  =&gt; $ctype,
+                                            'invalid' =&gt; 1});
+    }
</ins><span class="cx">     trick_taint($ctype);
</span><span class="cx">     trick_taint($format);
</span><span class="cx"> 
</span><span class="lines">@@ -168,6 +162,10 @@
</span><span class="cx">     # until we require Perl 5.13.9 or newer.
</span><span class="cx">     no warnings 'utf8';
</span><span class="cx"> 
</span><ins>+    # If the comment is already wrapped, we should ignore newlines when
+    # looking for matching regexps. Else we should take them into account.
+    my $s = ($comment &amp;&amp; $comment-&gt;already_wrapped) ? qr/\s/ : qr/\h/;
+
</ins><span class="cx">     # However, note that adding the title (for buglinks) can affect things
</span><span class="cx">     # In particular, attachment matches go before bug titles, so that titles
</span><span class="cx">     # with 'attachment 1' don't double match.
</span><span class="lines">@@ -234,7 +232,7 @@
</span><span class="cx">               ~&lt;a href=\&quot;mailto:$2\&quot;&gt;$1$2&lt;/a&gt;~igx;
</span><span class="cx"> 
</span><span class="cx">     # attachment links
</span><del>-    $text =~ s~\b(attachment\s*\#?\s*(\d+)(?:\s+\[details\])?)
</del><ins>+    $text =~ s~\b(attachment$s*\#?$s*([0-9]+)(?:$s+\[details\])?)
</ins><span class="cx">               ~($things[$count++] = get_attachment_link($2, $1, $user)) &amp;&amp;
</span><span class="cx">                (&quot;\x{FDD2}&quot; . ($count-1) . &quot;\x{FDD3}&quot;)
</span><span class="cx">               ~egmxi;
</span><span class="lines">@@ -247,19 +245,45 @@
</span><span class="cx">     # Also, we can't use $bug_re?$comment_re? because that will match the
</span><span class="cx">     # empty string
</span><span class="cx">     my $bug_word = template_var('terms')-&gt;{bug};
</span><del>-    my $bug_re = qr/\Q$bug_word\E\s*\#?\s*(\d+)/i;
-    my $comment_re = qr/comment\s*\#?\s*(\d+)/i;
-    $text =~ s~\b($bug_re(?:\s*,?\s*$comment_re)?|$comment_re)
</del><ins>+    my $bug_re = qr/\Q$bug_word\E$s*\#?$s*([0-9]+)/i;
+    my $comment_word = template_var('terms')-&gt;{comment};
+    my $comment_re = qr/(?:\Q$comment_word\E|comment)$s*\#?$s*([0-9]+)/i;
+    $text =~ s~\b($bug_re(?:$s*,?$s*$comment_re)?|$comment_re)
</ins><span class="cx">               ~ # We have several choices. $1 here is the link, and $2-4 are set
</span><span class="cx">                 # depending on which part matched
</span><span class="cx">                (defined($2) ? get_bug_link($2, $1, { comment_num =&gt; $3, user =&gt; $user }) :
</span><span class="cx">                               &quot;&lt;a href=\&quot;$current_bugurl#c$4\&quot;&gt;$1&lt;/a&gt;&quot;)
</span><del>-              ~egox;
</del><ins>+              ~egx;
</ins><span class="cx"> 
</span><ins>+    # Handle a list of bug ids: bugs 1, #2, 3, 4
+    # Currently, the only delimiter supported is comma.
+    # Concluding &quot;and&quot; and &quot;or&quot; are not supported.
+    my $bugs_word = template_var('terms')-&gt;{bugs};
+
+    my $bugs_re = qr/\Q$bugs_word\E$s*\#?$s*
+                     [0-9]+(?:$s*,$s*\#?$s*[0-9]+)+/ix;
+
+    $text =~ s{($bugs_re)}{
+        my $match = $1;
+        $match =~ s/((?:#$s*)?([0-9]+))/get_bug_link($2, $1);/eg;
+        $match;
+    }eg;
+
+    my $comments_word = template_var('terms')-&gt;{comments};
+
+    my $comments_re = qr/(?:comments|\Q$comments_word\E)$s*\#?$s*
+                         [0-9]+(?:$s*,$s*\#?$s*[0-9]+)+/ix;
+
+    $text =~ s{($comments_re)}{
+        my $match = $1;
+        $match =~ s|((?:#$s*)?([0-9]+))|&lt;a href=&quot;$current_bugurl#c$2&quot;&gt;$1&lt;/a&gt;|g;
+        $match;
+    }eg;
+
</ins><span class="cx">     # Old duplicate markers. These don't use $bug_word because they are old
</span><span class="cx">     # and were never customizable.
</span><span class="cx">     $text =~ s~(?&lt;=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ )
</span><del>-               (\d+)
</del><ins>+               ([0-9]+)
</ins><span class="cx">                (?=\ \*\*\*\Z)
</span><span class="cx">               ~get_bug_link($1, $1, { user =&gt; $user })
</span><span class="cx">               ~egmx;
</span><span class="lines">@@ -275,10 +299,9 @@
</span><span class="cx"> # Creates a link to an attachment, including its title.
</span><span class="cx"> sub get_attachment_link {
</span><span class="cx">     my ($attachid, $link_text, $user) = @_;
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx">     $user ||= Bugzilla-&gt;user;
</span><span class="cx"> 
</span><del>-    my $attachment = new Bugzilla::Attachment($attachid);
</del><ins>+    my $attachment = new Bugzilla::Attachment({ id =&gt; $attachid, cache =&gt; 1 });
</ins><span class="cx"> 
</span><span class="cx">     if ($attachment) {
</span><span class="cx">         my $title = &quot;&quot;;
</span><span class="lines">@@ -326,10 +349,12 @@
</span><span class="cx">     my ($bug, $link_text, $options) = @_;
</span><span class="cx">     $options ||= {};
</span><span class="cx">     $options-&gt;{user} ||= Bugzilla-&gt;user;
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx"> 
</span><del>-    if (defined $bug) {
-        $bug = blessed($bug) ? $bug : new Bugzilla::Bug($bug);
</del><ins>+    if (defined $bug &amp;&amp; $bug ne '') {
+        if (!blessed($bug)) {
+            require Bugzilla::Bug;
+            $bug = new Bugzilla::Bug({ id =&gt; $bug, cache =&gt; 1 });
+        }
</ins><span class="cx">         return $link_text if $bug-&gt;{error};
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -394,22 +419,19 @@
</span><span class="cx"> 
</span><span class="cx"> # Set up the skin CSS cascade:
</span><span class="cx"> #
</span><del>-#  1. YUI CSS
-#  2. Standard Bugzilla stylesheet set (persistent)
-#  3. Standard Bugzilla stylesheet set (selectable)
-#  4. All third-party &quot;skin&quot; stylesheet sets (selectable)
-#  5. Page-specific styles
-#  6. Custom Bugzilla stylesheet set (persistent)
-#
-# &quot;Selectable&quot; skin file sets may be either preferred or alternate.
-# Exactly one is preferred, determined by the &quot;skin&quot; user preference.
</del><ins>+#  1. standard/global.css
+#  2. YUI CSS
+#  3. Standard Bugzilla stylesheet set
+#  4. Third-party &quot;skin&quot; stylesheet set, per user prefs
+#  5. Inline css passed to global/header.html.tmpl
+#  6. Custom Bugzilla stylesheet set
+
</ins><span class="cx"> sub css_files {
</span><span class="cx">     my ($style_urls, $yui, $yui_css) = @_;
</span><del>-    
-    # global.css goes on every page, and so does IE-fixes.css.
-    my @requested_css = ('skins/standard/global.css', @$style_urls,
-                         'skins/standard/IE-fixes.css');
</del><span class="cx"> 
</span><ins>+    # global.css goes on every page.
+    my @requested_css = ('skins/standard/global.css', @$style_urls);
+
</ins><span class="cx">     my @yui_required_css;
</span><span class="cx">     foreach my $yui_name (@$yui) {
</span><span class="cx">         next if !$yui_css-&gt;{$yui_name};
</span><span class="lines">@@ -419,21 +441,18 @@
</span><span class="cx">     
</span><span class="cx">     my @css_sets = map { _css_link_set($_) } @requested_css;
</span><span class="cx">     
</span><del>-    my %by_type = (standard =&gt; [], alternate =&gt; {}, skin =&gt; [], custom =&gt; []);
</del><ins>+    my %by_type = (standard =&gt; [], skin =&gt; [], custom =&gt; []);
</ins><span class="cx">     foreach my $set (@css_sets) {
</span><span class="cx">         foreach my $key (keys %$set) {
</span><del>-            if ($key eq 'alternate') {
-                foreach my $alternate_skin (keys %{ $set-&gt;{alternate} }) {
-                    my $files = $by_type{alternate}-&gt;{$alternate_skin} ||= [];
-                    push(@$files, $set-&gt;{alternate}-&gt;{$alternate_skin});
-                }
-            }
-            else {
-                push(@{ $by_type{$key} }, $set-&gt;{$key});
-            }
</del><ins>+            push(@{ $by_type{$key} }, $set-&gt;{$key});
</ins><span class="cx">         }
</span><span class="cx">     }
</span><del>-    
</del><ins>+
+    # build unified
+    $by_type{unified_standard_skin} = _concatenate_css($by_type{standard},
+                                                       $by_type{skin});
+    $by_type{unified_custom} = _concatenate_css($by_type{custom});
+
</ins><span class="cx">     return \%by_type;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -441,42 +460,137 @@
</span><span class="cx">     my ($file_name) = @_;
</span><span class="cx"> 
</span><span class="cx">     my %set = (standard =&gt; mtime_filter($file_name));
</span><del>-    
-    # We use (^|/) to allow Extensions to use the skins system if they
-    # want.
-    if ($file_name !~ m{(^|/)skins/standard/}) {
</del><ins>+
+    # We use (?:^|/) to allow Extensions to use the skins system if they want.
+    if ($file_name !~ m{(?:^|/)skins/standard/}) {
</ins><span class="cx">         return \%set;
</span><span class="cx">     }
</span><del>-    
-    my $skin_user_prefs = Bugzilla-&gt;user-&gt;settings-&gt;{skin};
</del><ins>+
+    my $skin = Bugzilla-&gt;user-&gt;settings-&gt;{skin}-&gt;{value};
</ins><span class="cx">     my $cgi_path = bz_locations()-&gt;{'cgi_path'};
</span><del>-    # If the DB is not accessible, user settings are not available.
-    my $all_skins = $skin_user_prefs ? $skin_user_prefs-&gt;legal_values : [];
-    my %skin_urls;
-    foreach my $option (@$all_skins) {
-        next if $option eq 'standard';
-        my $skin_file_name = $file_name;
-        $skin_file_name =~ s{(^|/)skins/standard/}{skins/contrib/$option/};
-        if (my $mtime = _mtime(&quot;$cgi_path/$skin_file_name&quot;)) {
-            $skin_urls{$option} = mtime_filter($skin_file_name, $mtime);
-        }
</del><ins>+    my $skin_file_name = $file_name;
+    $skin_file_name =~ s{(?:^|/)skins/standard/}{skins/contrib/$skin/};
+    if (my $mtime = _mtime(&quot;$cgi_path/$skin_file_name&quot;)) {
+        $set{skin} = mtime_filter($skin_file_name, $mtime);
</ins><span class="cx">     }
</span><del>-    $set{alternate} = \%skin_urls;
-    
-    my $skin = $skin_user_prefs-&gt;{'value'};
-    if ($skin ne 'standard' and defined $set{alternate}-&gt;{$skin}) {
-        $set{skin} = delete $set{alternate}-&gt;{$skin};
-    }
-    
</del><ins>+
</ins><span class="cx">     my $custom_file_name = $file_name;
</span><del>-    $custom_file_name =~ s{(^|/)skins/standard/}{skins/custom/};
</del><ins>+    $custom_file_name =~ s{(?:^|/)skins/standard/}{skins/custom/};
</ins><span class="cx">     if (my $custom_mtime = _mtime(&quot;$cgi_path/$custom_file_name&quot;)) {
</span><span class="cx">         $set{custom} = mtime_filter($custom_file_name, $custom_mtime);
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     return \%set;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _concatenate_css {
+    my @sources = map { @$_ } @_;
+    return unless @sources;
+
+    my %files =
+        map {
+            (my $file = $_) =~ s/(^[^\?]+)\?.+/$1/;
+            $_ =&gt; $file;
+        } @sources;
+
+    my $cgi_path   = bz_locations()-&gt;{cgi_path};
+    my $skins_path = bz_locations()-&gt;{assetsdir};
+
+    # build minified files
+    my @minified;
+    foreach my $source (@sources) {
+        next unless -e &quot;$cgi_path/$files{$source}&quot;;
+        my $file = $skins_path . '/' . md5_hex($source) . '.css';
+        if (!-e $file) {
+            my $content = read_file(&quot;$cgi_path/$files{$source}&quot;);
+
+            # minify
+            $content =~ s{/\*.*?\*/}{}sg;   # comments
+            $content =~ s{(^\s+|\s+$)}{}mg; # leading/trailing whitespace
+            $content =~ s{\n}{}g;           # single line
+
+            # rewrite urls
+            $content =~ s{url\(([^\)]+)\)}{_css_url_rewrite($source, $1)}eig;
+
+            write_file($file, &quot;/* $files{$source} */\n&quot; . $content . &quot;\n&quot;);
+        }
+        push @minified, $file;
+    }
+
+    # concat files
+    my $file = $skins_path . '/' . md5_hex(join(' ', @sources)) . '.css';
+    if (!-e $file) {
+        my $content = '';
+        foreach my $source (@minified) {
+            $content .= read_file($source);
+        }
+        write_file($file, $content);
+    }
+
+    $file =~ s/^\Q$cgi_path\E\///o;
+    return mtime_filter($file);
+}
+
+sub _css_url_rewrite {
+    my ($source, $url) = @_;
+    # rewrite relative urls as the unified stylesheet lives in a different
+    # directory from the source
+    $url =~ s/(^['&quot;]|['&quot;]$)//g;
+    if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') {
+        return 'url(' . $url . ')';
+    }
+    return 'url(../../' . ($ENV{'PROJECT'} ? '../' : '') . dirname($source) . '/' . $url . ')';
+}
+
+sub _concatenate_js {
+    return @_ unless CONCATENATE_ASSETS;
+    my ($sources) = @_;
+    return [] unless $sources;
+    $sources = ref($sources) ? $sources : [ $sources ];
+
+    my %files =
+        map {
+            (my $file = $_) =~ s/(^[^\?]+)\?.+/$1/;
+            $_ =&gt; $file;
+        } @$sources;
+
+    my $cgi_path   = bz_locations()-&gt;{cgi_path};
+    my $skins_path = bz_locations()-&gt;{assetsdir};
+
+    # build minified files
+    my @minified;
+    foreach my $source (@$sources) {
+        next unless -e &quot;$cgi_path/$files{$source}&quot;;
+        my $file = $skins_path . '/' . md5_hex($source) . '.js';
+        if (!-e $file) {
+            my $content = read_file(&quot;$cgi_path/$files{$source}&quot;);
+
+            # minimal minification
+            $content =~ s#/\*.*?\*/##sg;    # block comments
+            $content =~ s#(^ +| +$)##gm;    # leading/trailing spaces
+            $content =~ s#^//.+$##gm;       # single line comments
+            $content =~ s#\n{2,}#\n#g;      # blank lines
+            $content =~ s#(^\s+|\s+$)##g;   # whitespace at the start/end of file
+
+            write_file($file, &quot;;/* $files{$source} */\n&quot; . $content . &quot;\n&quot;);
+        }
+        push @minified, $file;
+    }
+
+    # concat files
+    my $file = $skins_path . '/' . md5_hex(join(' ', @$sources)) . '.js';
+    if (!-e $file) {
+        my $content = '';
+        foreach my $source (@minified) {
+            $content .= read_file($source);
+        }
+        write_file($file, $content);
+    }
+
+    $file =~ s/^\Q$cgi_path\E\///o;
+    return [ $file ];
+}
+
</ins><span class="cx"> # YUI dependency resolution
</span><span class="cx"> sub yui_resolve_deps {
</span><span class="cx">     my ($yui, $yui_deps) = @_;
</span><span class="lines">@@ -541,6 +655,21 @@
</span><span class="cx">       return [@$list];
</span><span class="cx">   };
</span><span class="cx"> 
</span><ins>+# Allow us to sort the list of fields correctly
+$Template::Stash::LIST_OPS-&gt;{ sort_by_field_name } =
+    sub {
+        sub field_name {
+            if ($_[0] eq 'noop') {
+                # Sort --- first
+                return '';
+            }
+            # Otherwise sort by field_desc or description
+            return $_[1]{$_[0]} || $_[0];
+        }
+        my ($list, $field_desc) = @_;
+        return [ sort { lc field_name($a, $field_desc) cmp lc field_name($b, $field_desc) } @$list ];
+    };
+
</ins><span class="cx"> # Allow us to still get the scalar if we use the list operation &quot;.0&quot; on it,
</span><span class="cx"> # as we often do for defaults in query.cgi and other places.
</span><span class="cx"> $Template::Stash::SCALAR_OPS-&gt;{ 0 } = 
</span><span class="lines">@@ -553,10 +682,9 @@
</span><span class="cx"> $Template::Stash::SCALAR_OPS-&gt;{ truncate } = 
</span><span class="cx">   sub {
</span><span class="cx">       my ($string, $length, $ellipsis) = @_;
</span><del>-      $ellipsis ||= &quot;&quot;;
-      
</del><span class="cx">       return $string if !$length || length($string) &lt;= $length;
</span><del>-      
</del><ins>+
+      $ellipsis ||= '';
</ins><span class="cx">       my $strlen = $length - length($ellipsis);
</span><span class="cx">       my $newstr = substr($string, 0, $strlen) . $ellipsis;
</span><span class="cx">       return $newstr;
</span><span class="lines">@@ -612,8 +740,12 @@
</span><span class="cx"> 
</span><span class="cx">         COMPILE_DIR =&gt; bz_locations()-&gt;{'template_cache'},
</span><span class="cx"> 
</span><ins>+        # Don't check for a template update until 1 hour has passed since the
+        # last check.
+        STAT_TTL    =&gt; 60 * 60,
+
</ins><span class="cx">         # Initialize templates (f.e. by loading plugins like Hook).
</span><del>-        PRE_PROCESS =&gt; [&quot;global/initialize.none.tmpl&quot;],
</del><ins>+        PRE_PROCESS =&gt; [&quot;global/variables.none.tmpl&quot;],
</ins><span class="cx"> 
</span><span class="cx">         ENCODING =&gt; Bugzilla-&gt;params-&gt;{'utf8'} ? 'UTF-8' : undef,
</span><span class="cx"> 
</span><span class="lines">@@ -658,6 +790,8 @@
</span><span class="cx">                 $var =~ s/([\\\'\&quot;\/])/\\$1/g;
</span><span class="cx">                 $var =~ s/\n/\\n/g;
</span><span class="cx">                 $var =~ s/\r/\\r/g;
</span><ins>+                $var =~ s/\x{2028}/\\u2028/g; # unicode line separator
+                $var =~ s/\x{2029}/\\u2029/g; # unicode paragraph separator
</ins><span class="cx">                 $var =~ s/\@/\\x40/g; # anti-spam for email addresses
</span><span class="cx">                 $var =~ s/&lt;/\\x3c/g;
</span><span class="cx">                 $var =~ s/&gt;/\\x3e/g;
</span><span class="lines">@@ -673,9 +807,10 @@
</span><span class="cx">             # Strips out control characters excepting whitespace
</span><span class="cx">             strip_control_chars =&gt; sub {
</span><span class="cx">                 my ($data) = @_;
</span><ins>+                state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
</ins><span class="cx">                 # Only run for utf8 to avoid issues with other multibyte encodings 
</span><span class="cx">                 # that may be reassigning meaning to ascii characters.
</span><del>-                if (Bugzilla-&gt;params-&gt;{'utf8'}) {
</del><ins>+                if ($use_utf8) {
</ins><span class="cx">                     $data =~ s/(?![\t\r\n])[[:cntrl:]]//g;
</span><span class="cx">                 }
</span><span class="cx">                 return $data;
</span><span class="lines">@@ -695,14 +830,6 @@
</span><span class="cx">                 return $var;
</span><span class="cx">             },
</span><span class="cx"> 
</span><del>-            # Prevents line break on hyphens and whitespaces.
-            no_break =&gt; sub {
-                my ($var) = @_;
-                $var =~ s/ /\&amp;nbsp;/g;
-                $var =~ s/-/\&amp;#8209;/g;
-                return $var;
-            },
-
</del><span class="cx">             xml =&gt; \&amp;Bugzilla::Util::xml_quote ,
</span><span class="cx"> 
</span><span class="cx">             # This filter is similar to url_quote but used a \ instead of a %
</span><span class="lines">@@ -738,12 +865,16 @@
</span><span class="cx">             },
</span><span class="cx"> 
</span><span class="cx">             # In CSV, quotes are doubled, and any value containing a quote or a
</span><del>-            # comma is enclosed in quotes. If a field starts with an equals
-            # sign, it is proceed by a space.
</del><ins>+            # comma is enclosed in quotes.
+            # If a field starts with either &quot;=&quot;, &quot;+&quot;, &quot;-&quot; or &quot;@&quot;, it is preceded
+            # by a space to prevent stupid formula execution from Excel &amp; co.
</ins><span class="cx">             csv =&gt; sub
</span><span class="cx">             {
</span><span class="cx">                 my ($var) = @_;
</span><del>-                $var = ' ' . $var if substr($var, 0, 1) eq '=';
</del><ins>+                $var = ' ' . $var if $var =~ /^[+=@-]/;
+                # backslash is not special to CSV, but it can be used to confuse some browsers...
+                # so we do not allow it to happen. We only do this for logged-in users.
+                $var =~ s/\\/\x{FF3C}/g if Bugzilla-&gt;user-&gt;id;
</ins><span class="cx">                 $var =~ s/\&quot;/\&quot;\&quot;/g;
</span><span class="cx">                 if ($var !~ /^-?(\d+\.)?\d*$/) {
</span><span class="cx">                     $var = &quot;\&quot;$var\&quot;&quot;;
</span><span class="lines">@@ -839,9 +970,7 @@
</span><span class="cx">                 # (Wrapping the message in the WebService is unnecessary
</span><span class="cx">                 # and causes awkward things like \n's appearing in error
</span><span class="cx">                 # messages in JSON-RPC.)
</span><del>-                unless (Bugzilla-&gt;usage_mode == USAGE_MODE_JSON
-                        or Bugzilla-&gt;usage_mode == USAGE_MODE_XMLRPC)
-                {
</del><ins>+                unless (i_am_webservice()) {
</ins><span class="cx">                     $var = wrap_comment($var, 72);
</span><span class="cx">                 }
</span><span class="cx">                 $var =~ s/\&amp;nbsp;/ /g;
</span><span class="lines">@@ -891,27 +1020,50 @@
</span><span class="cx">             # Currently logged in user, if any
</span><span class="cx">             # If an sudo session is in progress, this is the user we're faking
</span><span class="cx">             'user' =&gt; sub { return Bugzilla-&gt;user; },
</span><del>-           
</del><ins>+
</ins><span class="cx">             # Currenly active language
</span><del>-            # XXX Eventually this should probably be replaced with something
-            # like Bugzilla-&gt;language.
-            'current_language' =&gt; sub {
-                my ($language) = include_languages();
-                return $language;
-            },
</del><ins>+            'current_language' =&gt; sub { return Bugzilla-&gt;current_language; },
</ins><span class="cx"> 
</span><span class="cx">             # If an sudo session is in progress, this is the user who
</span><span class="cx">             # started the session.
</span><span class="cx">             'sudoer' =&gt; sub { return Bugzilla-&gt;sudoer; },
</span><span class="cx"> 
</span><del>-            # Allow templates to access the &quot;corect&quot; URLBase value
</del><ins>+            # Allow templates to access the &quot;correct&quot; URLBase value
</ins><span class="cx">             'urlbase' =&gt; sub { return Bugzilla::Util::correct_urlbase(); },
</span><span class="cx"> 
</span><span class="cx">             # Allow templates to access docs url with users' preferred language
</span><del>-            'docs_urlbase' =&gt; sub { 
-                my ($language) = include_languages();
-                my $docs_urlbase = Bugzilla-&gt;params-&gt;{'docs_urlbase'};
-                $docs_urlbase =~ s/\%lang\%/$language/;
</del><ins>+            # We fall back to English if documentation in the preferred
+            # language is not available
+            'docs_urlbase' =&gt; sub {
+                my $docs_urlbase;
+                my $lang = Bugzilla-&gt;current_language;
+                # Translations currently available on readthedocs.org
+                my @rtd_translations = ('en', 'fr');
+
+                if ($lang ne 'en' &amp;&amp; -f &quot;docs/$lang/html/index.html&quot;) {
+                    $docs_urlbase = &quot;docs/$lang/html/&quot;;
+                }
+                elsif (-f &quot;docs/en/html/index.html&quot;) {
+                    $docs_urlbase = &quot;docs/en/html/&quot;;
+                }
+                else {
+                    if (!grep { $_ eq $lang } @rtd_translations) {
+                        $lang = &quot;en&quot;;
+                    }
+
+                    my $version = BUGZILLA_VERSION;
+                    $version =~ /^(\d+)\.(\d+)/;
+                    if ($2 % 2 == 1) {
+                        # second number is odd; development version
+                        $version = 'latest';
+                    }
+                    else {
+                        $version = &quot;$1.$2&quot;;
+                    }
+
+                    $docs_urlbase = &quot;https://bugzilla.readthedocs.org/$lang/$version/&quot;;
+                }
+
</ins><span class="cx">                 return $docs_urlbase;
</span><span class="cx">             },
</span><span class="cx"> 
</span><span class="lines">@@ -931,6 +1083,17 @@
</span><span class="cx">             # Allow templates to generate a token themselves.
</span><span class="cx">             'issue_hash_token' =&gt; \&amp;Bugzilla::Token::issue_hash_token,
</span><span class="cx"> 
</span><ins>+            'get_login_request_token' =&gt; sub {
+                my $cookie = Bugzilla-&gt;cgi-&gt;cookie('Bugzilla_login_request_cookie');
+                return $cookie ? issue_hash_token(['login_request', $cookie]) : '';
+            },
+
+            'get_api_token' =&gt; sub {
+                return '' unless Bugzilla-&gt;user-&gt;id;
+                my $cache = Bugzilla-&gt;request_cache;
+                return $cache-&gt;{api_token} //= issue_api_token();
+            },
+
</ins><span class="cx">             # A way for all templates to get at Field data, cached.
</span><span class="cx">             'bug_fields' =&gt; sub {
</span><span class="cx">                 my $cache = Bugzilla-&gt;request_cache;
</span><span class="lines">@@ -938,15 +1101,31 @@
</span><span class="cx">                     Bugzilla-&gt;fields({ by_name =&gt; 1 });
</span><span class="cx">                 return $cache-&gt;{template_bug_fields};
</span><span class="cx">             },
</span><del>-            
</del><ins>+
+            # A general purpose cache to store rendered templates for reuse.
+            # Make sure to not mix language-specific data.
+            'template_cache' =&gt; sub {
+                my $cache = Bugzilla-&gt;request_cache-&gt;{template_cache} ||= {};
+                $cache-&gt;{users} ||= {};
+                return $cache;
+            },
+
</ins><span class="cx">             'css_files' =&gt; \&amp;css_files,
</span><span class="cx">             yui_resolve_deps =&gt; \&amp;yui_resolve_deps,
</span><ins>+            concatenate_js =&gt; \&amp;_concatenate_js,
</ins><span class="cx"> 
</span><ins>+            # All classifications (sorted by sortkey, name)
+            'all_classifications' =&gt; sub {
+                return [map { $_-&gt;name } Bugzilla::Classification-&gt;get_all()];
+            },
+
</ins><span class="cx">             # Whether or not keywords are enabled, in this Bugzilla.
</span><span class="cx">             'use_keywords' =&gt; sub { return Bugzilla::Keyword-&gt;any_exist; },
</span><span class="cx"> 
</span><span class="cx">             # All the keywords.
</span><del>-            'all_keywords' =&gt; sub { return Bugzilla::Keyword-&gt;get_all(); },
</del><ins>+            'all_keywords' =&gt; sub {
+                return [map { $_-&gt;name } Bugzilla::Keyword-&gt;get_all()];
+            },
</ins><span class="cx"> 
</span><span class="cx">             'feature_enabled' =&gt; sub { return Bugzilla-&gt;feature(@_); },
</span><span class="cx"> 
</span><span class="lines">@@ -983,8 +1162,25 @@
</span><span class="cx">                 return \@optional;
</span><span class="cx">             },
</span><span class="cx">             'default_authorizer' =&gt; sub { return Bugzilla::Auth-&gt;new() },
</span><ins>+
+            'login_not_email' =&gt; sub {
+                my $params = Bugzilla-&gt;params;
+                my $cache = Bugzilla-&gt;request_cache;
+
+                return $cache-&gt;{login_not_email} //=
+                  ($params-&gt;{emailsuffix}
+                     || ($params-&gt;{user_verify_class} =~ /LDAP/ &amp;&amp; $params-&gt;{LDAPmailattribute})
+                     || ($params-&gt;{user_verify_class} =~ /RADIUS/ &amp;&amp; $params-&gt;{RADIUS_email_suffix}))
+                  ? 1 : 0;
+            },
</ins><span class="cx">         },
</span><span class="cx">     };
</span><ins>+    # Use a per-process provider to cache compiled templates in memory across
+    # requests.
+    my $provider_key = join(':', @{ $config-&gt;{INCLUDE_PATH} });
+    my $shared_providers = Bugzilla-&gt;process_cache-&gt;{shared_providers} ||= {};
+    $shared_providers-&gt;{$provider_key} ||= Template::Provider-&gt;new($config);
+    $config-&gt;{LOAD_TEMPLATES} = [ $shared_providers-&gt;{$provider_key} ];
</ins><span class="cx"> 
</span><span class="cx">     local $Template::Config::CONTEXT = 'Bugzilla::Template::Context';
</span><span class="cx"> 
</span><span class="lines">@@ -1049,6 +1245,9 @@
</span><span class="cx">             # effect of writing the compiled version to disk.
</span><span class="cx">             $template-&gt;context-&gt;template($file);
</span><span class="cx">         }
</span><ins>+
+        # Clear out the cached Provider object
+        Bugzilla-&gt;process_cache-&gt;{shared_providers} = undef;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Under mod_perl, we look for templates using the absolute path of the
</span><span class="lines">@@ -1168,3 +1367,29 @@
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla&gt;, L&lt;Template&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item multiline_sprintf
+
+=item create
+
+=item css_files
+
+=item mtime_filter
+
+=item yui_resolve_deps
+
+=item process
+
+=item get_bug_link
+
+=item quoteUrls
+
+=item get_attachment_link
+
+=item SAFE_URL_REGEXP
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaTokenpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Token.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Token.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Token.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s):    Myk Melez &lt;myk@mozilla.org&gt;
-#                    Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Module Initialization
-################################################################################
</del><ins>+package Bugzilla::Token;
</ins><span class="cx"> 
</span><del>-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-# Bundle the functions in this file together into the &quot;Bugzilla::Token&quot; package.
-package Bugzilla::Token;
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Mailer;
</span><span class="lines">@@ -39,17 +20,34 @@
</span><span class="cx"> use Date::Format;
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> use File::Basename;
</span><del>-use Digest::MD5 qw(md5_hex);
</del><ins>+use Digest::SHA qw(hmac_sha256_base64);
</ins><span class="cx"> 
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> 
</span><del>-@Bugzilla::Token::EXPORT = qw(issue_session_token check_token_data delete_token
</del><ins>+@Bugzilla::Token::EXPORT = qw(issue_api_token issue_session_token
+                              check_token_data delete_token
</ins><span class="cx">                               issue_hash_token check_hash_token);
</span><span class="cx"> 
</span><ins>+use constant SEND_NOW =&gt; 1;
+
</ins><span class="cx"> ################################################################################
</span><span class="cx"> # Public Functions
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><ins>+# Create a token used for internal API authentication
+sub issue_api_token {
+    # Generates a random token, adds it to the tokens table if one does not
+    # already exist, and returns the token to the caller.
+    my $dbh  = Bugzilla-&gt;dbh;
+    my $user = Bugzilla-&gt;user;
+    my ($token) = $dbh-&gt;selectrow_array(&quot;
+        SELECT token FROM tokens
+         WHERE userid = ? AND tokentype = 'api_token'
+               AND (&quot; . $dbh-&gt;sql_date_math('issuedate', '+', (MAX_TOKEN_AGE * 24 - 12), 'HOUR') . &quot;) &gt; NOW()&quot;,
+        undef, $user-&gt;id);
+    return $token // _create_token($user-&gt;id, 'api_token', '');
+}
+
</ins><span class="cx"> # Creates and sends a token to create a new user account.
</span><span class="cx"> # It assumes that the login has the correct format and is not already in use.
</span><span class="cx"> sub issue_new_user_account_token {
</span><span class="lines">@@ -59,9 +57,9 @@
</span><span class="cx">     my $vars = {};
</span><span class="cx"> 
</span><span class="cx">     # Is there already a pending request for this login name? If yes, do not throw
</span><del>-    # an error because the user may have lost his email with the token inside.
</del><ins>+    # an error because the user may have lost their email with the token inside.
</ins><span class="cx">     # But to prevent using this way to mailbomb an email address, make sure
</span><del>-    # the last request is at least 10 minutes old before sending a new email.
</del><ins>+    # the last request is old enough before sending a new email (default: 10 minutes).
</ins><span class="cx"> 
</span><span class="cx">     my $pending_requests = $dbh-&gt;selectrow_array(
</span><span class="cx">         'SELECT COUNT(*)
</span><span class="lines">@@ -69,7 +67,7 @@
</span><span class="cx">           WHERE tokentype = ?
</span><span class="cx">                 AND ' . $dbh-&gt;sql_istrcmp('eventdata', '?') . '
</span><span class="cx">                 AND issuedate &gt; '
</span><del>-                    . $dbh-&gt;sql_date_math('NOW()', '-', 10, 'MINUTE'),
</del><ins>+                    . $dbh-&gt;sql_date_math('NOW()', '-', ACCOUNT_CHANGE_INTERVAL, 'MINUTE'),
</ins><span class="cx">         undef, ('account', $login_name));
</span><span class="cx"> 
</span><span class="cx">     ThrowUserError('too_soon_for_new_token', {'type' =&gt; 'account'}) if $pending_requests;
</span><span class="lines">@@ -86,45 +84,51 @@
</span><span class="cx"> 
</span><span class="cx">     # In 99% of cases, the user getting the confirmation email is the same one
</span><span class="cx">     # who made the request, and so it is reasonable to send the email in the same
</span><del>-    # language used to view the &quot;Create a New Account&quot; page (we cannot use his
</del><ins>+    # language used to view the &quot;Create a New Account&quot; page (we cannot use their
</ins><span class="cx">     # user prefs as the user has no account yet!).
</span><del>-    MessageToMTA($message);
</del><ins>+    MessageToMTA($message, SEND_NOW);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub IssueEmailChangeToken {
</span><del>-    my ($user, $new_email) = @_;
-    my $email_suffix = Bugzilla-&gt;params-&gt;{'emailsuffix'};
-    my $old_email = $user-&gt;login;
</del><ins>+    my $new_email = shift;
+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><del>-    my ($token, $token_ts) = _create_token($user-&gt;id, 'emailold', $old_email . &quot;:&quot; . $new_email);
</del><ins>+    my ($token, $token_ts) = _create_token($user-&gt;id, 'emailold', $user-&gt;login . &quot;:$new_email&quot;);
+    my $newtoken = _create_token($user-&gt;id, 'emailnew', $user-&gt;login . &quot;:$new_email&quot;);
</ins><span class="cx"> 
</span><del>-    my $newtoken = _create_token($user-&gt;id, 'emailnew', $old_email . &quot;:&quot; . $new_email);
-
</del><span class="cx">     # Mail the user the token along with instructions for using it.
</span><span class="cx"> 
</span><span class="cx">     my $template = Bugzilla-&gt;template_inner($user-&gt;setting('lang'));
</span><span class="cx">     my $vars = {};
</span><span class="cx"> 
</span><del>-    $vars-&gt;{'oldemailaddress'} = $old_email . $email_suffix;
-    $vars-&gt;{'newemailaddress'} = $new_email . $email_suffix;
</del><ins>+    $vars-&gt;{'newemailaddress'} = $new_email . Bugzilla-&gt;params-&gt;{'emailsuffix'};
</ins><span class="cx">     $vars-&gt;{'expiration_ts'} = ctime($token_ts + MAX_TOKEN_AGE * 86400);
</span><del>-    $vars-&gt;{'token'} = $token;
-    $vars-&gt;{'emailaddress'} = $old_email . $email_suffix;
</del><span class="cx"> 
</span><ins>+    # First send an email to the new address. If this one doesn't exist,
+    # then the whole process must stop immediately. This means the email must
+    # be sent immediately and must not be stored in the queue.
+    $vars-&gt;{'token'} = $newtoken;
+
</ins><span class="cx">     my $message;
</span><del>-    $template-&gt;process(&quot;account/email/change-old.txt.tmpl&quot;, $vars, \$message)
</del><ins>+    $template-&gt;process('account/email/change-new.txt.tmpl', $vars, \$message)
</ins><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><del>-    MessageToMTA($message);
</del><ins>+    MessageToMTA($message, SEND_NOW);
</ins><span class="cx"> 
</span><del>-    $vars-&gt;{'token'} = $newtoken;
-    $vars-&gt;{'emailaddress'} = $new_email . $email_suffix;
</del><ins>+    # If we come here, then the new address exists. We now email the current
+    # address, but we don't want to stop the process if it no longer exists,
+    # to give a chance to the user to confirm the email address change.
+    $vars-&gt;{'token'} = $token;
</ins><span class="cx"> 
</span><del>-    $message = &quot;&quot;;
-    $template-&gt;process(&quot;account/email/change-new.txt.tmpl&quot;, $vars, \$message)
</del><ins>+    $message = '';
+    $template-&gt;process('account/email/change-old.txt.tmpl', $vars, \$message)
</ins><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><del>-    MessageToMTA($message);
</del><ins>+    eval { MessageToMTA($message, SEND_NOW); };
+
+    # Give the user a chance to cancel the process even if he never got
+    # the email above. The token is required.
+    return $token;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Generates a random token, adds it to the tokens table, and sends it
</span><span class="lines">@@ -137,12 +141,13 @@
</span><span class="cx">         'SELECT 1 FROM tokens
</span><span class="cx">           WHERE userid = ? AND tokentype = ?
</span><span class="cx">                 AND issuedate &gt; ' 
</span><del>-                    . $dbh-&gt;sql_date_math('NOW()', '-', 10, 'MINUTE'),
</del><ins>+                    . $dbh-&gt;sql_date_math('NOW()', '-', ACCOUNT_CHANGE_INTERVAL, 'MINUTE'),
</ins><span class="cx">         undef, ($user-&gt;id, 'password'));
</span><span class="cx"> 
</span><span class="cx">     ThrowUserError('too_soon_for_new_token', {'type' =&gt; 'password'}) if $too_soon;
</span><span class="cx"> 
</span><del>-    my ($token, $token_ts) = _create_token($user-&gt;id, 'password', remote_ip());
</del><ins>+    my $ip_addr = remote_ip();
+    my ($token, $token_ts) = _create_token($user-&gt;id, 'password', $ip_addr);
</ins><span class="cx"> 
</span><span class="cx">     # Mail the user the token along with instructions for using it.
</span><span class="cx">     my $template = Bugzilla-&gt;template_inner($user-&gt;setting('lang'));
</span><span class="lines">@@ -149,9 +154,10 @@
</span><span class="cx">     my $vars = {};
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'token'} = $token;
</span><ins>+    $vars-&gt;{'ip_addr'} = $ip_addr;
</ins><span class="cx">     $vars-&gt;{'emailaddress'} = $user-&gt;email;
</span><span class="cx">     $vars-&gt;{'expiration_ts'} = ctime($token_ts + MAX_TOKEN_AGE * 86400);
</span><del>-    # The user is not logged in (else he wouldn't request a new password).
</del><ins>+    # The user is not logged in (else they wouldn't request a new password).
</ins><span class="cx">     # So we have to pass this information to the template.
</span><span class="cx">     $vars-&gt;{'timezone'} = $user-&gt;timezone;
</span><span class="cx"> 
</span><span class="lines">@@ -182,15 +188,17 @@
</span><span class="cx">     my $user_id = Bugzilla-&gt;user-&gt;id || remote_ip();
</span><span class="cx"> 
</span><span class="cx">     # The concatenated string is of the form
</span><del>-    # token creation time + site-wide secret + user ID (either ID or remote IP) + data
-    my @args = ($time, Bugzilla-&gt;localconfig-&gt;{'site_wide_secret'}, $user_id, @$data);
</del><ins>+    # token creation time + user ID (either ID or remote IP) + data
+    my @args = ($time, $user_id, @$data);
</ins><span class="cx"> 
</span><span class="cx">     my $token = join('*', @args);
</span><del>-    # Wide characters cause md5_hex() to die.
</del><ins>+    # Wide characters cause Digest::SHA to die.
</ins><span class="cx">     if (Bugzilla-&gt;params-&gt;{'utf8'}) {
</span><span class="cx">         utf8::encode($token) if utf8::is_utf8($token);
</span><span class="cx">     }
</span><del>-    $token = md5_hex($token);
</del><ins>+    $token = hmac_sha256_base64($token, Bugzilla-&gt;localconfig-&gt;{'site_wide_secret'});
+    $token =~ s/\+/-/g;
+    $token =~ s/\//_/g;
</ins><span class="cx"> 
</span><span class="cx">     # Prepend the token creation time, unencrypted, so that the token
</span><span class="cx">     # lifetime can be validated.
</span><span class="lines">@@ -352,7 +360,7 @@
</span><span class="cx">     trick_taint($token);
</span><span class="cx"> 
</span><span class="cx">     my @token_data = $dbh-&gt;selectrow_array(
</span><del>-        &quot;SELECT token, userid, &quot; . $dbh-&gt;sql_date_format('issuedate') . &quot;, eventdata
</del><ins>+        &quot;SELECT token, userid, &quot; . $dbh-&gt;sql_date_format('issuedate') . &quot;, eventdata, tokentype
</ins><span class="cx">          FROM   tokens
</span><span class="cx">          WHERE  token = ?&quot;, undef, $token);
</span><span class="cx"> 
</span><span class="lines">@@ -377,8 +385,6 @@
</span><span class="cx"> 
</span><span class="cx"> # Given a token, makes sure it comes from the currently logged in user
</span><span class="cx"> # and match the expected event. Returns 1 on success, else displays a warning.
</span><del>-# Note: this routine must not be called while tables are locked as it will try
-# to lock some tables itself, see CleanTokenTable().
</del><span class="cx"> sub check_token_data {
</span><span class="cx">     my ($token, $expected_action, $alternate_script) = @_;
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="lines">@@ -392,7 +398,7 @@
</span><span class="cx">     {
</span><span class="cx">         # Something is going wrong. Ask confirmation before processing.
</span><span class="cx">         # It is possible that someone tried to trick an administrator.
</span><del>-        # In this case, we want to know his name!
</del><ins>+        # In this case, we want to know their name!
</ins><span class="cx">         require Bugzilla::User;
</span><span class="cx"> 
</span><span class="cx">         my $vars = {};
</span><span class="lines">@@ -434,6 +440,9 @@
</span><span class="cx">     trick_taint($tokentype);
</span><span class="cx">     trick_taint($eventdata);
</span><span class="cx"> 
</span><ins>+    my $is_shadow = Bugzilla-&gt;is_shadow_db;
+    $dbh = Bugzilla-&gt;switch_to_main_db() if $is_shadow;
+
</ins><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><span class="cx">     my $token = GenerateUniqueToken();
</span><span class="lines">@@ -446,8 +455,10 @@
</span><span class="cx">     if (wantarray) {
</span><span class="cx">         my (undef, $token_ts, undef) = GetTokenData($token);
</span><span class="cx">         $token_ts = str2time($token_ts);
</span><ins>+        Bugzilla-&gt;switch_to_shadow_db() if $is_shadow;
</ins><span class="cx">         return ($token, $token_ts);
</span><span class="cx">     } else {
</span><ins>+        Bugzilla-&gt;switch_to_shadow_db() if $is_shadow;
</ins><span class="cx">         return $token;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -478,18 +489,26 @@
</span><span class="cx"> 
</span><span class="cx">     my $token = Bugzilla::Token::GenerateUniqueToken($table, $column);
</span><span class="cx">     my $token = Bugzilla::Token::HasEmailChangeToken($user_id);
</span><del>-    my ($token, $date, $data) = Bugzilla::Token::GetTokenData($token);
</del><ins>+    my ($token, $date, $data, $type) = Bugzilla::Token::GetTokenData($token);
</ins><span class="cx"> 
</span><span class="cx"> =head1 SUBROUTINES
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><ins>+=item C&lt;issue_api_token($login_name)&gt;
+
+ Description: Creates a token that can be used for API calls on the web page.
+
+ Params:      None.
+
+ Returns:     The token.
+
</ins><span class="cx"> =item C&lt;issue_new_user_account_token($login_name)&gt;
</span><span class="cx"> 
</span><span class="cx">  Description: Creates and sends a token per email to the email address
</span><span class="cx">               requesting a new user account. It doesn't check whether
</span><span class="cx">               the user account already exists. The user will have to
</span><del>-              use this token to confirm the creation of his user account.
</del><ins>+              use this token to confirm the creation of their user account.
</ins><span class="cx"> 
</span><span class="cx">  Params:      $login_name - The new login name requested by the user.
</span><span class="cx"> 
</span><span class="lines">@@ -496,23 +515,21 @@
</span><span class="cx">  Returns:     Nothing. It throws an error if the same user made the same
</span><span class="cx">               request in the last few minutes.
</span><span class="cx"> 
</span><del>-=item C&lt;sub IssueEmailChangeToken($user, $new_email)&gt;
</del><ins>+=item C&lt;sub IssueEmailChangeToken($new_email)&gt;
</ins><span class="cx"> 
</span><span class="cx">  Description: Sends two distinct tokens per email to the old and new email
</span><span class="cx">               addresses to confirm the email address change for the given
</span><span class="cx">               user. These tokens remain valid for the next MAX_TOKEN_AGE days.
</span><span class="cx"> 
</span><del>- Params:      $user      - User object of the user requesting a new
-                           email address.
-              $new_email - The new email address of the user.
</del><ins>+ Params:      $new_email - The new email address of the user.
</ins><span class="cx"> 
</span><del>- Returns:     Nothing.
</del><ins>+ Returns:     The token to cancel the request.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;IssuePasswordToken($user)&gt;
</span><span class="cx"> 
</span><span class="cx">  Description: Sends a token per email to the given user. This token
</span><span class="cx">               can be used to change the password (e.g. in case the user
</span><del>-              cannot remember his password and wishes to enter a new one).
</del><ins>+              cannot remember their password and wishes to enter a new one).
</ins><span class="cx"> 
</span><span class="cx">  Params:      $user - User object of the user requesting a new password.
</span><span class="cx"> 
</span><span class="lines">@@ -542,7 +559,7 @@
</span><span class="cx"> 
</span><span class="cx">  Description: Invalidates an existing token, generally when the token is used
</span><span class="cx">               for an action which is not the one expected. An email is sent
</span><del>-              to the user who originally requested this token to inform him
</del><ins>+              to the user who originally requested this token to inform them
</ins><span class="cx">               that this token has been invalidated (e.g. because an hacker
</span><span class="cx">               tried to use this token for some malicious action).
</span><span class="cx"> 
</span><span class="lines">@@ -555,7 +572,7 @@
</span><span class="cx"> =item C&lt;DeletePasswordTokens($user_id, $reason)&gt;
</span><span class="cx"> 
</span><span class="cx">  Description: Cancels all password tokens for the given user. Emails are sent
</span><del>-              to the user to inform him about this action.
</del><ins>+              to the user to inform them about this action.
</ins><span class="cx"> 
</span><span class="cx">  Params:      $user_id: The user ID of the user account whose password tokens
</span><span class="cx">                         are canceled.
</span><span class="lines">@@ -578,8 +595,8 @@
</span><span class="cx"> 
</span><span class="cx">  Params:      $token - A valid token.
</span><span class="cx"> 
</span><del>- Returns:     The user ID, the date and time when the token was created and
-              the (event)data stored with that token.
</del><ins>+ Returns:     The user ID, the date and time when the token was created,
+              the (event)data stored with that token, and its type.
</ins><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="lines">@@ -633,3 +650,13 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item check_hash_token
+
+=item issue_hash_token
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUpdatepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Update.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Update.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Update.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Update;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserAPIKeypm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/User/APIKey.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User/APIKey.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User/APIKey.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,155 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::User::APIKey;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Object);
+
+use Bugzilla::User;
+use Bugzilla::Util qw(generate_random_password trim);
+
+#####################################################################
+# Overriden Constants that are used as methods
+#####################################################################
+
+use constant DB_TABLE       =&gt; 'user_api_keys';
+use constant DB_COLUMNS     =&gt; qw(
+    id
+    user_id
+    api_key
+    description
+    revoked
+    last_used
+);
+
+use constant UPDATE_COLUMNS =&gt; qw(description revoked last_used);
+use constant VALIDATORS     =&gt; {
+    api_key     =&gt; \&amp;_check_api_key,
+    description =&gt; \&amp;_check_description,
+    revoked     =&gt; \&amp;Bugzilla::Object::check_boolean,
+};
+use constant LIST_ORDER     =&gt; 'id';
+use constant NAME_FIELD     =&gt; 'api_key';
+
+# turn off auditing and exclude these objects from memcached
+use constant { AUDIT_CREATES =&gt; 0,
+               AUDIT_UPDATES =&gt; 0,
+               AUDIT_REMOVES =&gt; 0,
+               USE_MEMCACHED =&gt; 0 };
+
+# Accessors
+sub id            { return $_[0]-&gt;{id}          }
+sub user_id       { return $_[0]-&gt;{user_id}     }
+sub api_key       { return $_[0]-&gt;{api_key}     }
+sub description   { return $_[0]-&gt;{description} }
+sub revoked       { return $_[0]-&gt;{revoked}     }
+sub last_used     { return $_[0]-&gt;{last_used}   }
+
+# Helpers
+sub user {
+    my $self = shift;
+    $self-&gt;{user} //= Bugzilla::User-&gt;new({name =&gt; $self-&gt;user_id, cache =&gt; 1});
+    return $self-&gt;{user};
+}
+
+sub update_last_used {
+    my $self = shift;
+    my $timestamp = shift
+        || Bugzilla-&gt;dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
+    $self-&gt;set('last_used', $timestamp);
+    $self-&gt;update;
+}
+
+# Setters
+sub set_description { $_[0]-&gt;set('description', $_[1]); }
+sub set_revoked     { $_[0]-&gt;set('revoked',     $_[1]); }
+
+# Validators
+sub _check_api_key     { return generate_random_password(40); }
+sub _check_description { return trim($_[1]) || '';   }
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::User::APIKey - Model for an api key belonging to a user.
+
+=head1 SYNOPSIS
+
+  use Bugzilla::User::APIKey;
+
+  my $api_key = Bugzilla::User::APIKey-&gt;new($id);
+  my $api_key = Bugzilla::User::APIKey-&gt;new({ name =&gt; $api_key });
+
+  # Class Functions
+  $user_api_key = Bugzilla::User::APIKey-&gt;create({
+      description =&gt; $description,
+  });
+
+=head1 DESCRIPTION
+
+This package handles Bugzilla User::APIKey.
+
+C&lt;Bugzilla::User::APIKey&gt; is an implementation of L&lt;Bugzilla::Object&gt;, and
+thus provides all the methods of L&lt;Bugzilla::Object&gt; in addition to the methods
+listed below.
+
+=head1 METHODS
+
+=head2 Accessor Methods
+
+=over
+
+=item C&lt;id&gt;
+
+The internal id of the api key.
+
+=item C&lt;user&gt;
+
+The Bugzilla::User object that this api key belongs to.
+
+=item C&lt;user_id&gt;
+
+The user id that this api key belongs to.
+
+=item C&lt;api_key&gt;
+
+The API key, which is a random string.
+
+=item C&lt;description&gt;
+
+An optional string that lets the user describe what a key is used for.
+For example: &quot;Dashboard key&quot;, &quot;Application X key&quot;.
+
+=item C&lt;revoked&gt;
+
+If true, this api key cannot be used.
+
+=item C&lt;last_used&gt;
+
+The date that this key was last used. undef if never used.
+
+=item C&lt;update_last_used&gt;
+
+Updates the last used value to the current timestamp. This is updated even
+if the RPC call resulted in an error. It is not updated when the description
+or the revoked flag is changed.
+
+=item C&lt;set_description&gt;
+
+Sets the new description
+
+=item C&lt;set_revoked&gt;
+
+Sets the revoked flag
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserSettingLangpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Lang.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Lang.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Lang.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Marc Schumann.
-# Portions created by Marc Schumann are Copyright (c) 2007 Marc Schumann.
-# All rights reserved.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::User::Setting::Lang;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::User::Setting);
</del><ins>+use parent qw(Bugzilla::User::Setting);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserSettingSkinpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Skin.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Skin.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Skin.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::User::Setting::Skin;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::User::Setting);
</del><ins>+use parent qw(Bugzilla::User::Setting);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use File::Spec::Functions;
</span><span class="lines">@@ -40,14 +32,10 @@
</span><span class="cx"> 
</span><span class="cx">     foreach my $direntry (glob(catdir($dirbase, '*'))) {
</span><span class="cx">         if (-d $direntry) {
</span><del>-            # Stylesheet set
</del><span class="cx">             next if basename($direntry) =~ /^cvs$/i;
</span><ins>+            # Stylesheet set found
</ins><span class="cx">             push(@legal_values, basename($direntry));
</span><span class="cx">         }
</span><del>-        elsif ($direntry =~ /\.css$/) {
-            # Single-file stylesheet
-            push(@legal_values, basename($direntry));
-        }
</del><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return $self-&gt;{'legal_values'} = \@legal_values;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserSettingTimezonepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Timezone.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Timezone.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting/Timezone.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,19 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (c) 2008 Frédéric Buclin.
-# All rights reserved.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::User::Setting::Timezone;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use DateTime::TimeZone;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::User::Setting);
</del><ins>+use parent qw(Bugzilla::User::Setting);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserSettingpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User/Setting.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,27 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::User::Setting;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Exporter);
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> # Module stuff
</span><del>-@Bugzilla::User::Setting::EXPORT = qw(get_all_settings get_defaults
-     add_setting);
</del><ins>+@Bugzilla::User::Setting::EXPORT = qw(
+    get_all_settings
+    get_defaults
+    add_setting
+    clear_settings_cache
+);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util qw(trick_taint get_text);
</span><span class="lines">@@ -132,7 +127,7 @@
</span><span class="cx">     my $exists = _setting_exists($name);
</span><span class="cx">     return if ($exists &amp;&amp; !$force_check);
</span><span class="cx"> 
</span><del>-    ($name &amp;&amp; $default_value)
</del><ins>+    ($name &amp;&amp; length( $default_value // '' ))
</ins><span class="cx">       ||  ThrowCodeError(&quot;setting_info_invalid&quot;);
</span><span class="cx"> 
</span><span class="cx">     if ($exists) {
</span><span class="lines">@@ -166,21 +161,23 @@
</span><span class="cx"> 
</span><span class="cx"> sub get_all_settings {
</span><span class="cx">     my ($user_id) = @_;
</span><del>-    my $settings = get_defaults($user_id); # first get the defaults
</del><ins>+    my $settings = {};
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><del>-    my $sth = $dbh-&gt;prepare(
-           q{SELECT name, default_value, is_enabled, setting_value, subclass
-               FROM setting
-          LEFT JOIN profile_setting
-                 ON setting.name = profile_setting.setting_name
-              WHERE profile_setting.user_id = ?
-           ORDER BY name});
</del><ins>+    my $cache_key = &quot;user_settings.$user_id&quot;;
+    my $rows = Bugzilla-&gt;memcached-&gt;get_config({ key =&gt; $cache_key });
+    if (!$rows) {
+        $rows = $dbh-&gt;selectall_arrayref(
+            q{SELECT name, default_value, is_enabled, setting_value, subclass
+                FROM setting
+           LEFT JOIN profile_setting
+                     ON setting.name = profile_setting.setting_name
+                     AND profile_setting.user_id = ?}, undef, ($user_id));
+        Bugzilla-&gt;memcached-&gt;set_config({ key =&gt; $cache_key, data =&gt; $rows });
+    }
</ins><span class="cx"> 
</span><del>-    $sth-&gt;execute($user_id);
-    while (my ($name, $default_value, $is_enabled, $value, $subclass) 
-               = $sth-&gt;fetchrow_array()) 
-    {
</del><ins>+    foreach my $row (@$rows) {
+        my ($name, $default_value, $is_enabled, $value, $subclass) = @$row;
</ins><span class="cx"> 
</span><span class="cx">         my $is_default;
</span><span class="cx"> 
</span><span class="lines">@@ -192,7 +189,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $settings-&gt;{$name} = new Bugzilla::User::Setting(
</span><del>-           $name, $user_id, $is_enabled, 
</del><ins>+           $name, $user_id, $is_enabled,
</ins><span class="cx">            $default_value, $value, $is_default, $subclass);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -199,6 +196,11 @@
</span><span class="cx">     return $settings;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub clear_settings_cache {
+    my ($user_id) = @_;
+    Bugzilla-&gt;memcached-&gt;clear_config({ key =&gt; &quot;user_settings.$user_id&quot; });
+}
+
</ins><span class="cx"> sub get_defaults {
</span><span class="cx">     my ($user_id) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="lines">@@ -206,14 +208,12 @@
</span><span class="cx"> 
</span><span class="cx">     $user_id ||= 0;
</span><span class="cx"> 
</span><del>-    my $sth = $dbh-&gt;prepare(q{SELECT name, default_value, is_enabled, subclass
-                                FROM setting
-                            ORDER BY name});
-    $sth-&gt;execute();
-    while (my ($name, $default_value, $is_enabled, $subclass) 
-           = $sth-&gt;fetchrow_array()) 
-    {
</del><ins>+    my $rows = $dbh-&gt;selectall_arrayref(q{SELECT name, default_value, is_enabled, subclass
+                                            FROM setting});
</ins><span class="cx"> 
</span><ins>+    foreach my $row (@$rows) {
+        my ($name, $default_value, $is_enabled, $subclass) = @$row;
+
</ins><span class="cx">         $default_settings-&gt;{$name} = new Bugzilla::User::Setting(
</span><span class="cx">             $name, $user_id, $is_enabled, $default_value, $default_value, 1,
</span><span class="cx">             $subclass);
</span><span class="lines">@@ -383,6 +383,13 @@
</span><span class="cx">              C&lt;$is_enabled&gt; - boolean - if false, all users must use the global default
</span><span class="cx"> Returns:     nothing
</span><span class="cx"> 
</span><ins>+=item C&lt;clear_settings_cache($user_id)&gt;
+
+Description: Clears cached settings data for the specified user.  Must be
+             called after updating any user's setting.
+Params:      C&lt;$user_id&gt; - integer - the user id.
+Returns:     nothing
+
</ins><span class="cx"> =begin private
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;_setting_exists&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/User.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,46 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt; 
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Justin C. De Vries &lt;judevries@novell.com&gt;
-#                 Dennis Melentyev &lt;dennis.melentyev@infopulse.com.ua&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Module Initialization
-################################################################################
</del><ins>+package Bugzilla::User;
</ins><span class="cx"> 
</span><del>-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-# This module implements utilities for dealing with Bugzilla users.
-package Bugzilla::User;
-
</del><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -50,17 +20,20 @@
</span><span class="cx"> use Bugzilla::Classification;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Group;
</span><ins>+use Bugzilla::BugUserLastVisit;
+use Bugzilla::Hook;
</ins><span class="cx"> 
</span><span class="cx"> use DateTime::TimeZone;
</span><span class="cx"> use List::Util qw(max);
</span><ins>+use List::MoreUtils qw(any);
</ins><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> use Storable qw(dclone);
</span><span class="cx"> use URI;
</span><span class="cx"> use URI::QueryParam;
</span><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object Exporter);
</del><ins>+use parent qw(Bugzilla::Object Exporter);
</ins><span class="cx"> @Bugzilla::User::EXPORT = qw(is_available_username
</span><del>-    login_to_id user_id_to_login validate_password
</del><ins>+    login_to_id validate_password validate_password_check
</ins><span class="cx">     USER_MATCH_MULTIPLE USER_MATCH_FAILED USER_MATCH_SUCCESS
</span><span class="cx">     MATCH_SKIP_CONFIRM
</span><span class="cx"> );
</span><span class="lines">@@ -91,16 +64,21 @@
</span><span class="cx"> # that you passed in for &quot;name&quot; to new(). That's because historically
</span><span class="cx"> # Bugzilla::User used &quot;name&quot; for the realname field. This should be
</span><span class="cx"> # fixed one day.
</span><del>-use constant DB_COLUMNS =&gt; (
-    'profiles.userid',
-    'profiles.login_name',
-    'profiles.realname',
-    'profiles.mybugslink AS showmybugslink',
-    'profiles.disabledtext',
-    'profiles.disable_mail',
-    'profiles.extern_id',
-    'profiles.is_enabled', 
-);
</del><ins>+sub DB_COLUMNS {
+    my $dbh = Bugzilla-&gt;dbh;
+    return (
+        'profiles.userid',
+        'profiles.login_name',
+        'profiles.realname',
+        'profiles.mybugslink AS showmybugslink',
+        'profiles.disabledtext',
+        'profiles.disable_mail',
+        'profiles.extern_id',
+        'profiles.is_enabled',
+        $dbh-&gt;sql_date_format('last_seen_date', '%Y-%m-%d') . ' AS last_seen_date',
+    ),
+}
+
</ins><span class="cx"> use constant NAME_FIELD =&gt; 'login_name';
</span><span class="cx"> use constant ID_FIELD   =&gt; 'userid';
</span><span class="cx"> use constant LIST_ORDER =&gt; NAME_FIELD;
</span><span class="lines">@@ -109,7 +87,7 @@
</span><span class="cx">     cryptpassword =&gt; \&amp;_check_password,
</span><span class="cx">     disable_mail  =&gt; \&amp;_check_disable_mail,
</span><span class="cx">     disabledtext  =&gt; \&amp;_check_disabledtext,
</span><del>-    login_name    =&gt; \&amp;check_login_name_for_creation,
</del><ins>+    login_name    =&gt; \&amp;check_login_name,
</ins><span class="cx">     realname      =&gt; \&amp;_check_realname,
</span><span class="cx">     extern_id     =&gt; \&amp;_check_extern_id,
</span><span class="cx">     is_enabled    =&gt; \&amp;_check_is_enabled, 
</span><span class="lines">@@ -144,7 +122,7 @@
</span><span class="cx">     my $class = ref($invocant) || $invocant;
</span><span class="cx">     my ($param) = @_;
</span><span class="cx"> 
</span><del>-    my $user = DEFAULT_USER;
</del><ins>+    my $user = { %{ DEFAULT_USER() } };
</ins><span class="cx">     bless ($user, $class);
</span><span class="cx">     return $user unless $param;
</span><span class="cx"> 
</span><span class="lines">@@ -162,7 +140,7 @@
</span><span class="cx">     my $class = ref($invocant) || $invocant;
</span><span class="cx">     my ($param) = @_;
</span><span class="cx"> 
</span><del>-    my $user = dclone(DEFAULT_USER);
</del><ins>+    my $user = { %{ DEFAULT_USER() } };
</ins><span class="cx">     $user-&gt;{groups} = [Bugzilla::Group-&gt;get_all];
</span><span class="cx">     $user-&gt;{bless_groups} = [Bugzilla::Group-&gt;get_all];
</span><span class="cx">     bless $user, $class;
</span><span class="lines">@@ -169,14 +147,85 @@
</span><span class="cx">     return $user;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _update_groups {
+    my $self = shift;
+    my $group_changes = shift;
+    my $changes = shift;
+    my $dbh = Bugzilla-&gt;dbh;
+
+    # Update group settings.
+    my $sth_add_mapping = $dbh-&gt;prepare(
+        qq{INSERT INTO user_group_map (
+                  user_id, group_id, isbless, grant_type
+                 ) VALUES (
+                  ?, ?, ?, ?
+                 )
+          });
+    my $sth_remove_mapping = $dbh-&gt;prepare(
+        qq{DELETE FROM user_group_map
+            WHERE user_id = ?
+              AND group_id = ?
+              AND isbless = ?
+              AND grant_type = ?
+          });
+
+    foreach my $is_bless (keys %$group_changes) {
+        my ($removed, $added) = @{$group_changes-&gt;{$is_bless}};
+
+        foreach my $group (@$removed) {
+            $sth_remove_mapping-&gt;execute(
+                $self-&gt;id, $group-&gt;id, $is_bless, GRANT_DIRECT
+             );
+        }
+        foreach my $group (@$added) {
+            $sth_add_mapping-&gt;execute(
+                $self-&gt;id, $group-&gt;id, $is_bless, GRANT_DIRECT
+             );
+        }
+
+        if (! $is_bless) {
+            my $query = qq{
+                INSERT INTO profiles_activity
+                    (userid, who, profiles_when, fieldid, oldvalue, newvalue)
+                VALUES ( ?, ?, now(), ?, ?, ?)
+            };
+
+            $dbh-&gt;do(
+                $query, undef,
+                $self-&gt;id, Bugzilla-&gt;user-&gt;id,
+                get_field_id('bug_group'),
+                join(', ', map { $_-&gt;name } @$removed),
+                join(', ', map { $_-&gt;name } @$added)
+            );
+        }
+        else {
+            # XXX: should create profiles_activity entries for blesser changes.
+        }
+
+        Bugzilla-&gt;memcached-&gt;clear_config({ key =&gt; 'user_groups.' . $self-&gt;id });
+
+        my $type = $is_bless ? 'bless_groups' : 'groups';
+        $changes-&gt;{$type} = [
+            [ map { $_-&gt;name } @$removed ],
+            [ map { $_-&gt;name } @$added ],
+        ];
+    }
+}
+
</ins><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><ins>+    my $options = shift;
+
+    my $group_changes = delete $self-&gt;{_group_changes};
+
</ins><span class="cx">     my $changes = $self-&gt;SUPER::update(@_);
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><ins>+    $self-&gt;_update_groups($group_changes, $changes);
</ins><span class="cx"> 
</span><span class="cx">     if (exists $changes-&gt;{login_name}) {
</span><del>-        # If we changed the login, silently delete any tokens.
-        $dbh-&gt;do('DELETE FROM tokens WHERE userid = ?', undef, $self-&gt;id);
</del><ins>+        # Delete all the tokens related to the userid
+        $dbh-&gt;do('DELETE FROM tokens WHERE userid = ?', undef, $self-&gt;id)
+          unless $options-&gt;{keep_tokens};
</ins><span class="cx">         # And rederive regex groups
</span><span class="cx">         $self-&gt;derive_regexp_groups();
</span><span class="cx">     }
</span><span class="lines">@@ -183,8 +232,10 @@
</span><span class="cx"> 
</span><span class="cx">     # Logout the user if necessary.
</span><span class="cx">     Bugzilla-&gt;logout_user($self) 
</span><del>-        if (exists $changes-&gt;{login_name} || exists $changes-&gt;{disabledtext}
-            || exists $changes-&gt;{cryptpassword});
</del><ins>+        if (!$options-&gt;{keep_session}
+            &amp;&amp; (exists $changes-&gt;{login_name}
+                || exists $changes-&gt;{disabledtext}
+                || exists $changes-&gt;{cryptpassword}));
</ins><span class="cx"> 
</span><span class="cx">     # XXX Can update profiles_activity here as soon as it understands
</span><span class="cx">     #     field names like login_name.
</span><span class="lines">@@ -217,16 +268,17 @@
</span><span class="cx"> 
</span><span class="cx"> # This is public since createaccount.cgi needs to use it before issuing
</span><span class="cx"> # a token for account creation.
</span><del>-sub check_login_name_for_creation {
</del><ins>+sub check_login_name {
</ins><span class="cx">     my ($invocant, $name) = @_;
</span><span class="cx">     $name = trim($name);
</span><span class="cx">     $name || ThrowUserError('user_login_required');
</span><del>-    validate_email_syntax($name)
-        || ThrowUserError('illegal_email_address', { addr =&gt; $name });
</del><ins>+    check_email_syntax($name);
</ins><span class="cx"> 
</span><span class="cx">     # Check the name if it's a new user, or if we're changing the name.
</span><del>-    if (!ref($invocant) || $invocant-&gt;login ne $name) {
-        is_available_username($name) 
</del><ins>+    if (!ref($invocant) || lc($invocant-&gt;login) ne lc($name)) {
+        my @params = ($name);
+        push(@params, $invocant-&gt;login) if ref($invocant);
+        is_available_username(@params)
</ins><span class="cx">             || ThrowUserError('account_exists', { email =&gt; $name });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -262,8 +314,9 @@
</span><span class="cx"> # Mutators
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><del>-sub set_disable_mail { $_[0]-&gt;set('disable_mail', $_[1]); }
-sub set_extern_id    { $_[0]-&gt;set('extern_id', $_[1]); }
</del><ins>+sub set_disable_mail  { $_[0]-&gt;set('disable_mail', $_[1]); }
+sub set_email_enabled { $_[0]-&gt;set('disable_mail', !$_[1]); }
+sub set_extern_id     { $_[0]-&gt;set('extern_id', $_[1]); }
</ins><span class="cx"> 
</span><span class="cx"> sub set_login {
</span><span class="cx">     my ($self, $login) = @_;
</span><span class="lines">@@ -285,6 +338,130 @@
</span><span class="cx">     $_[0]-&gt;set('is_enabled', $_[1] ? 0 : 1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub set_groups {
+    my $self = shift;
+    $self-&gt;_set_groups(GROUP_MEMBERSHIP, @_);
+}
+
+sub set_bless_groups {
+    my $self = shift;
+
+    # The person making the change needs to be in the editusers group
+    Bugzilla-&gt;user-&gt;in_group('editusers')
+        || ThrowUserError(&quot;auth_failure&quot;, {group  =&gt; &quot;editusers&quot;,
+                                           reason =&gt; &quot;cant_bless&quot;,
+                                           action =&gt; &quot;edit&quot;,
+                                           object =&gt; &quot;users&quot;});
+
+    $self-&gt;_set_groups(GROUP_BLESS, @_);
+}
+
+sub _set_groups {
+    my $self     = shift;
+    my $is_bless = shift;
+    my $changes  = shift;
+    my $dbh = Bugzilla-&gt;dbh;
+
+    # The person making the change is $user, $self is the person being changed
+    my $user = Bugzilla-&gt;user;
+
+    # Input is a hash of arrays. Key is 'set', 'add' or 'remove'. The array
+    # is a list of group ids and/or names.
+
+    # First turn the arrays into group objects.
+    $changes = $self-&gt;_set_groups_to_object($changes);
+
+    # Get a list of the groups the user currently is a member of
+    my $ids = $dbh-&gt;selectcol_arrayref(
+        q{SELECT DISTINCT group_id
+            FROM user_group_map
+           WHERE user_id = ? AND isbless = ? AND grant_type = ?},
+        undef, $self-&gt;id, $is_bless, GRANT_DIRECT);
+
+    my $current_groups = Bugzilla::Group-&gt;new_from_list($ids);
+    my $new_groups = dclone($current_groups);
+
+    # Record the changes
+    if (exists $changes-&gt;{set}) {
+        $new_groups = $changes-&gt;{set};
+
+        # We need to check the user has bless rights on the existing groups
+        # If they don't, then we need to add them back to new_groups
+        foreach my $group (@$current_groups) {
+            if (! $user-&gt;can_bless($group-&gt;id)) {
+                push @$new_groups, $group
+                    unless grep { $_-&gt;id eq $group-&gt;id } @$new_groups;
+            }
+        }
+    }
+    else {
+        foreach my $group (@{$changes-&gt;{remove} // []}) {
+            @$new_groups = grep { $_-&gt;id ne $group-&gt;id } @$new_groups;
+        }
+        foreach my $group (@{$changes-&gt;{add} // []}) {
+            push @$new_groups, $group
+                unless grep { $_-&gt;id eq $group-&gt;id } @$new_groups;
+        }
+    }
+
+    # Stash the changes, so self-&gt;update can actually make them
+    my @diffs = diff_arrays($current_groups, $new_groups, 'id');
+    if (scalar(@{$diffs[0]}) || scalar(@{$diffs[1]})) {
+        $self-&gt;{_group_changes}{$is_bless} = \@diffs;
+    }
+}
+
+sub _set_groups_to_object {
+    my $self = shift;
+    my $changes = shift;
+    my $user = Bugzilla-&gt;user;
+
+    foreach my $key (keys %$changes) {
+        # Check we were given an array
+        unless (ref($changes-&gt;{$key}) eq 'ARRAY') {
+            ThrowCodeError(
+                'param_invalid',
+                { param =&gt; $changes-&gt;{$key}, function =&gt; $key }
+            );
+        }
+
+        # Go through the array, and turn items into group objects
+        my @groups = ();
+        foreach my $value (@{$changes-&gt;{$key}}) {
+            my $type = $value =~ /^\d+$/ ? 'id' : 'name';
+            my $group = Bugzilla::Group-&gt;new({$type =&gt; $value});
+
+            if (! $group || ! $user-&gt;can_bless($group-&gt;id)) {
+                ThrowUserError('auth_failure',
+                    { group  =&gt; $value, reason =&gt; 'cant_bless',
+                      action =&gt; 'edit', object =&gt; 'users' });
+            }
+            push @groups, $group;
+        }
+        $changes-&gt;{$key} = \@groups;
+    }
+
+    return $changes;
+}
+
+sub update_last_seen_date {
+    my $self = shift;
+    return unless $self-&gt;id;
+    my $dbh = Bugzilla-&gt;dbh;
+    my $date = $dbh-&gt;selectrow_array(
+        'SELECT ' . $dbh-&gt;sql_date_format('NOW()', '%Y-%m-%d'));
+
+    if (!$self-&gt;last_seen_date or $date ne $self-&gt;last_seen_date) {
+        $self-&gt;{last_seen_date} = $date;
+        # We don't use the normal update() routine here as we only
+        # want to update the last_seen_date column, not any other
+        # pending changes
+        $dbh-&gt;do(&quot;UPDATE profiles SET last_seen_date = ? WHERE userid = ?&quot;,
+                 undef, $date, $self-&gt;id);
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'profiles', id =&gt; $self-&gt;id });
+    }
+}
+
</ins><span class="cx"> ################################################################################
</span><span class="cx"> # Methods
</span><span class="cx"> ################################################################################
</span><span class="lines">@@ -299,6 +476,7 @@
</span><span class="cx"> sub showmybugslink { $_[0]-&gt;{showmybugslink}; }
</span><span class="cx"> sub email_disabled { $_[0]-&gt;{disable_mail}; }
</span><span class="cx"> sub email_enabled { !($_[0]-&gt;{disable_mail}); }
</span><ins>+sub last_seen_date { $_[0]-&gt;{last_seen_date}; }
</ins><span class="cx"> sub cryptpassword {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     # We don't store it because we never want it in the object (we
</span><span class="lines">@@ -323,7 +501,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Generate a string to identify the user by name + login if the user
</span><del>-# has a name or by login only if she doesn't.
</del><ins>+# has a name or by login only if they don't.
</ins><span class="cx"> sub identity {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><span class="lines">@@ -431,6 +609,31 @@
</span><span class="cx">     return $self-&gt;{tags};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub bugs_ignored {
+    my ($self) = @_;
+    my $dbh = Bugzilla-&gt;dbh;
+    if (!defined $self-&gt;{'bugs_ignored'}) {
+        $self-&gt;{'bugs_ignored'} = $dbh-&gt;selectall_arrayref(
+            'SELECT bugs.bug_id AS id,
+                    bugs.bug_status AS status,
+                    bugs.short_desc AS summary
+               FROM bugs
+                    INNER JOIN email_bug_ignore
+                    ON bugs.bug_id = email_bug_ignore.bug_id
+              WHERE user_id = ?',
+            { Slice =&gt; {} }, $self-&gt;id);
+        # Go ahead and load these into the visible bugs cache
+        # to speed up can_see_bug checks later
+        $self-&gt;visible_bugs([ map { $_-&gt;{'id'} } @{ $self-&gt;{'bugs_ignored'} } ]);
+    }
+    return $self-&gt;{'bugs_ignored'};
+}
+
+sub is_bug_ignored {
+    my ($self, $bug_id) = @_;
+    return (grep {$_-&gt;{'id'} == $bug_id} @{$self-&gt;bugs_ignored}) ? 1 : 0;
+}
+
</ins><span class="cx"> ##########################
</span><span class="cx"> # Saved Recent Bug Lists #
</span><span class="cx"> ##########################
</span><span class="lines">@@ -575,6 +778,25 @@
</span><span class="cx">     return $search;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub reports {
+    my $self = shift;
+    return $self-&gt;{reports} if defined $self-&gt;{reports};
+    return [] unless $self-&gt;id;
+
+    my $dbh = Bugzilla-&gt;dbh;
+    my $report_ids = $dbh-&gt;selectcol_arrayref(
+        'SELECT id FROM reports WHERE user_id = ?', undef, $self-&gt;id);
+    require Bugzilla::Report;
+    $self-&gt;{reports} = Bugzilla::Report-&gt;new_from_list($report_ids);
+    return $self-&gt;{reports};
+}
+
+sub flush_reports_cache {
+    my $self = shift;
+
+    delete $self-&gt;{reports};
+}
+
</ins><span class="cx"> sub settings {
</span><span class="cx">     my ($self) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -627,56 +849,101 @@
</span><span class="cx">     return $self-&gt;{groups} if defined $self-&gt;{groups};
</span><span class="cx">     return [] unless $self-&gt;id;
</span><span class="cx"> 
</span><del>-    my $dbh = Bugzilla-&gt;dbh;
-    my $groups_to_check = $dbh-&gt;selectcol_arrayref(
-        q{SELECT DISTINCT group_id
-            FROM user_group_map
-           WHERE user_id = ? AND isbless = 0}, undef, $self-&gt;id);
</del><ins>+    my $user_groups_key = &quot;user_groups.&quot; . $self-&gt;id;
+    my $groups = Bugzilla-&gt;memcached-&gt;get_config({
+        key =&gt; $user_groups_key
+    });
</ins><span class="cx"> 
</span><del>-    my $rows = $dbh-&gt;selectall_arrayref(
-        &quot;SELECT DISTINCT grantor_id, member_id
-           FROM group_group_map
-          WHERE grant_type = &quot; . GROUP_MEMBERSHIP);
</del><ins>+    if (!$groups) {
+        my $dbh = Bugzilla-&gt;dbh;
+        my $groups_to_check = $dbh-&gt;selectcol_arrayref(
+            &quot;SELECT DISTINCT group_id
+               FROM user_group_map
+              WHERE user_id = ? AND isbless = 0&quot;, undef, $self-&gt;id);
</ins><span class="cx"> 
</span><del>-    my %group_membership;
-    foreach my $row (@$rows) {
-        my ($grantor_id, $member_id) = @$row; 
-        push (@{ $group_membership{$member_id} }, $grantor_id);
-    }
-    
-    # Let's walk the groups hierarchy tree (using FIFO)
-    # On the first iteration it's pre-filled with direct groups 
-    # membership. Later on, each group can add its own members into the
-    # FIFO. Circular dependencies are eliminated by checking
-    # $checked_groups{$member_id} hash values.
-    # As a result, %groups will have all the groups we are the member of.
-    my %checked_groups;
-    my %groups;
-    while (scalar(@$groups_to_check) &gt; 0) {
-        # Pop the head group from FIFO
-        my $member_id = shift @$groups_to_check;
-        
-        # Skip the group if we have already checked it
-        if (!$checked_groups{$member_id}) {
-            # Mark group as checked
-            $checked_groups{$member_id} = 1;
-            
-            # Add all its members to the FIFO check list
-            # %group_membership contains arrays of group members 
-            # for all groups. Accessible by group number.
-            my $members = $group_membership{$member_id};
-            my @new_to_check = grep(!$checked_groups{$_}, @$members);
-            push(@$groups_to_check, @new_to_check);
</del><ins>+        my $grant_type_key = 'group_grant_type_' . GROUP_MEMBERSHIP;
+        my $membership_rows = Bugzilla-&gt;memcached-&gt;get_config({
+            key =&gt; $grant_type_key,
+        });
+        if (!$membership_rows) {
+            $membership_rows = $dbh-&gt;selectall_arrayref(
+                &quot;SELECT DISTINCT grantor_id, member_id
+                FROM group_group_map
+                WHERE grant_type = &quot; . GROUP_MEMBERSHIP);
+            Bugzilla-&gt;memcached-&gt;set_config({
+                key  =&gt; $grant_type_key,
+                data =&gt; $membership_rows,
+            });
+        }
</ins><span class="cx"> 
</span><del>-            $groups{$member_id} = 1;
</del><ins>+        my %group_membership;
+        foreach my $row (@$membership_rows) {
+            my ($grantor_id, $member_id) = @$row;
+            push (@{ $group_membership{$member_id} }, $grantor_id);
</ins><span class="cx">         }
</span><ins>+
+        # Let's walk the groups hierarchy tree (using FIFO)
+        # On the first iteration it's pre-filled with direct groups
+        # membership. Later on, each group can add its own members into the
+        # FIFO. Circular dependencies are eliminated by checking
+        # $checked_groups{$member_id} hash values.
+        # As a result, %groups will have all the groups we are the member of.
+        my %checked_groups;
+        my %groups;
+        while (scalar(@$groups_to_check) &gt; 0) {
+            # Pop the head group from FIFO
+            my $member_id = shift @$groups_to_check;
+
+            # Skip the group if we have already checked it
+            if (!$checked_groups{$member_id}) {
+                # Mark group as checked
+                $checked_groups{$member_id} = 1;
+
+                # Add all its members to the FIFO check list
+                # %group_membership contains arrays of group members
+                # for all groups. Accessible by group number.
+                my $members = $group_membership{$member_id};
+                my @new_to_check = grep(!$checked_groups{$_}, @$members);
+                push(@$groups_to_check, @new_to_check);
+
+                $groups{$member_id} = 1;
+            }
+        }
+        $groups = [ keys %groups ];
+
+        Bugzilla-&gt;memcached-&gt;set_config({
+            key  =&gt; $user_groups_key,
+            data =&gt; $groups,
+        });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    $self-&gt;{groups} = Bugzilla::Group-&gt;new_from_list([keys %groups]);
-
</del><ins>+    $self-&gt;{groups} = Bugzilla::Group-&gt;new_from_list($groups);
</ins><span class="cx">     return $self-&gt;{groups};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub last_visited {
+    my ($self, $ids) = @_;
+
+    return Bugzilla::BugUserLastVisit-&gt;match({ user_id =&gt; $self-&gt;id,
+                                               $ids ? ( bug_id =&gt; $ids ) : () });
+}
+
+sub is_involved_in_bug {
+    my ($self, $bug) = @_;
+    my $user_id    = $self-&gt;id;
+    my $user_login = $self-&gt;login;
+
+    return unless $user_id;
+    return 1 if $user_id == $bug-&gt;assigned_to-&gt;id;
+    return 1 if $user_id == $bug-&gt;reporter-&gt;id;
+
+    if (Bugzilla-&gt;params-&gt;{'useqacontact'} and $bug-&gt;qa_contact) {
+        return 1 if $user_id == $bug-&gt;qa_contact-&gt;id;
+    }
+
+    return any { $user_login eq $_ } @{ $bug-&gt;cc };
+}
+
</ins><span class="cx"> # It turns out that calling -&gt;id on objects a few hundred thousand
</span><span class="cx"> # times is pretty slow. (It showed up as a significant time contributor
</span><span class="cx"> # when profiling xt/search.t.) So we cache the group ids separately from
</span><span class="lines">@@ -713,34 +980,42 @@
</span><span class="cx">         return $self-&gt;{'bless_groups'};
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (Bugzilla-&gt;params-&gt;{usevisibilitygroups}
+        &amp;&amp; !@{ $self-&gt;visible_groups_inherited }) {
+        return [];
+    }
+
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><del>-    # Get all groups for the user where:
-    #    + They have direct bless privileges
-    #    + They are a member of a group that inherits bless privs.
-    my @group_ids = map {$_-&gt;id} @{ $self-&gt;groups };
-    @group_ids = (-1) if !@group_ids;
-    my $query =
-        'SELECT DISTINCT groups.id
-           FROM groups, user_group_map, group_group_map AS ggm
-          WHERE user_group_map.user_id = ?
-                AND ( (user_group_map.isbless = 1
-                       AND groups.id=user_group_map.group_id)
-                     OR (groups.id = ggm.grantor_id
-                         AND ggm.grant_type = ' . GROUP_BLESS . '
-                         AND ' . $dbh-&gt;sql_in('ggm.member_id', \@group_ids)
-                     . ') )';
-
-    # If visibilitygroups are used, restrict the set of groups.
-    if (Bugzilla-&gt;params-&gt;{'usevisibilitygroups'}) {
-        return [] if !$self-&gt;visible_groups_as_string;
-        # Users need to see a group in order to bless it.
</del><ins>+    # Get all groups for the user where they have direct bless privileges.
+    my $query = &quot;
+        SELECT DISTINCT group_id
+          FROM user_group_map
+         WHERE user_id = ?
+               AND isbless = 1&quot;;
+    if (Bugzilla-&gt;params-&gt;{usevisibilitygroups}) {
</ins><span class="cx">         $query .= &quot; AND &quot;
</span><del>-            . $dbh-&gt;sql_in('groups.id', $self-&gt;visible_groups_inherited);
</del><ins>+            . $dbh-&gt;sql_in('group_id', $self-&gt;visible_groups_inherited);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Get all groups for the user where they are a member of a group that
+    # inherits bless privs.
+    my @group_ids = map { $_-&gt;id } @{ $self-&gt;groups };
+    if (@group_ids) {
+        $query .= &quot;
+            UNION
+            SELECT DISTINCT grantor_id
+            FROM group_group_map
+            WHERE grant_type = &quot; . GROUP_BLESS . &quot;
+                AND &quot; . $dbh-&gt;sql_in('member_id', \@group_ids);
+        if (Bugzilla-&gt;params-&gt;{usevisibilitygroups}) {
+            $query .= &quot; AND &quot;
+                . $dbh-&gt;sql_in('grantor_id', $self-&gt;visible_groups_inherited);
+        }
+    }
+
</ins><span class="cx">     my $ids = $dbh-&gt;selectcol_arrayref($query, undef, $self-&gt;id);
</span><del>-    return $self-&gt;{'bless_groups'} = Bugzilla::Group-&gt;new_from_list($ids);
</del><ins>+    return $self-&gt;{bless_groups} = Bugzilla::Group-&gt;new_from_list($ids);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub in_group {
</span><span class="lines">@@ -778,6 +1053,14 @@
</span><span class="cx">     return grep($_-&gt;id == $id, @{ $self-&gt;groups }) ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# This is a helper to get all groups which have an icon to be displayed
+# besides the name of the commenter.
+sub groups_with_icon {
+    my $self = shift;
+
+    return $self-&gt;{groups_with_icon} //= [grep { $_-&gt;icon_url } @{ $self-&gt;groups }];
+}
+
</ins><span class="cx"> sub get_products_by_permission {
</span><span class="cx">     my ($self, $group) = @_;
</span><span class="cx">     # Make sure $group exists on a per-product basis.
</span><span class="lines">@@ -826,15 +1109,34 @@
</span><span class="cx">     my ($self, $prod_id) = @_;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><del>-    my $has_external_groups =
-      $dbh-&gt;selectrow_array('SELECT 1
-                               FROM group_control_map
-                              WHERE product_id = ?
-                                AND canedit != 0
-                                AND group_id NOT IN(' . $self-&gt;groups_as_string . ')',
-                             undef, $prod_id);
</del><ins>+    if (Bugzilla-&gt;params-&gt;{'or_groups'}) {
+        my $groups = $self-&gt;groups_as_string;
+        # For or-groups, we check if there are any can_edit groups for the
+        # product, and if the user is in any of them. If there are none or
+        # the user is in at least one of them, they can edit the product
+        my ($cnt_can_edit, $cnt_group_member) = $dbh-&gt;selectrow_array(
+           &quot;SELECT SUM(p.cnt_can_edit),
+                   SUM(p.cnt_group_member)
+              FROM (SELECT CASE WHEN canedit = 1 THEN 1 ELSE 0 END AS cnt_can_edit,
+                           CASE WHEN canedit = 1 AND group_id IN ($groups) THEN 1 ELSE 0 END AS cnt_group_member
+                    FROM group_control_map
+                    WHERE product_id = $prod_id) AS p&quot;);
+        return (!$cnt_can_edit or $cnt_group_member);
+    }
+    else {
+        # For and-groups, a user needs to be in all canedit groups. Therefore
+        # if the user is not in a can_edit group for the product, they cannot
+        # edit the product.
+        my $has_external_groups =
+          $dbh-&gt;selectrow_array('SELECT 1
+                                   FROM group_control_map
+                                  WHERE product_id = ?
+                                    AND canedit != 0
+                                    AND group_id NOT IN(' . $self-&gt;groups_as_string . ')',
+                                 undef, $prod_id);
</ins><span class="cx"> 
</span><del>-    return !$has_external_groups;
</del><ins>+        return !$has_external_groups;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub can_see_bug {
</span><span class="lines">@@ -855,60 +1157,122 @@
</span><span class="cx">     my @check_ids = grep(!exists $visible_cache-&gt;{$_}, @bug_ids);
</span><span class="cx"> 
</span><span class="cx">     if (@check_ids) {
</span><del>-        my $dbh = Bugzilla-&gt;dbh;
-        my $user_id = $self-&gt;id;
-        my $sth;
-        # Speed up the can_see_bug case.
-        # WEBKIT_CHANGES: Disable statement caching
-        #if (scalar(@check_ids) == 1) {
-        #    $sth = $self-&gt;{_sth_one_visible_bug};
-        #}
-        $sth ||= $dbh-&gt;prepare(
-            # This checks for groups that the bug is in that the user
-            # *isn't* in. Then, in the Perl code below, we check if
-            # the user can otherwise access the bug (for example, by being
-            # the assignee or QA Contact).
-            #
-            # The DISTINCT exists because the bug could be in *several*
-            # groups that the user isn't in, but they will all return the
-            # same result for bug_group_map.bug_id (so DISTINCT filters
-            # out duplicate rows).
-            &quot;SELECT DISTINCT bugs.bug_id, reporter, assigned_to, qa_contact,
-                    reporter_accessible, cclist_accessible, cc.who,
-                    bug_group_map.bug_id
-               FROM bugs
-                    LEFT JOIN cc
-                              ON cc.bug_id = bugs.bug_id
-                                 AND cc.who = $user_id
-                    LEFT JOIN bug_group_map 
-                              ON bugs.bug_id = bug_group_map.bug_id
-                                 AND bug_group_map.group_id NOT IN (&quot;
-                                     . $self-&gt;groups_as_string . ')
-              WHERE bugs.bug_id IN (' . join(',', ('?') x @check_ids) . ')
-                    AND creation_ts IS NOT NULL ');
-        # WEBKIT_CHANGES: Disable statement caching
-        #if (scalar(@check_ids) == 1) {
-        #    $self-&gt;{_sth_one_visible_bug} = $sth;
-        #}
</del><ins>+        foreach my $id (@check_ids) {
+            my $orig_id = $id;
+            detaint_natural($id)
+              || ThrowCodeError('param_must_be_numeric', { param    =&gt; $orig_id,
+                                                           function =&gt; 'Bugzilla::User-&gt;visible_bugs'});
+        }
</ins><span class="cx"> 
</span><del>-        $sth-&gt;execute(@check_ids);
-        my $use_qa_contact = Bugzilla-&gt;params-&gt;{'useqacontact'};
-        while (my $row = $sth-&gt;fetchrow_arrayref) {
-            my ($bug_id, $reporter, $owner, $qacontact, $reporter_access, 
-                $cclist_access, $isoncclist, $missinggroup) = @$row;
-            $visible_cache-&gt;{$bug_id} ||= 
-                ((($reporter == $user_id) &amp;&amp; $reporter_access)
-                 || ($use_qa_contact
-                     &amp;&amp; $qacontact &amp;&amp; ($qacontact == $user_id))
-                 || ($owner == $user_id)
-                 || ($isoncclist &amp;&amp; $cclist_access)
-                 || !$missinggroup) ? 1 : 0;
-        }
</del><ins>+        Bugzilla-&gt;params-&gt;{'or_groups'}
+            ? $self-&gt;_visible_bugs_check_or(\@check_ids)
+            : $self-&gt;_visible_bugs_check_and(\@check_ids);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return [grep { $visible_cache-&gt;{blessed $_ ? $_-&gt;id : $_} } @$bugs];
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _visible_bugs_check_or {
+    my ($self, $check_ids) = @_;
+    my $visible_cache = $self-&gt;{_visible_bugs_cache};
+    my $dbh = Bugzilla-&gt;dbh;
+    my $user_id = $self-&gt;id;
+
+    my $sth;
+    # Speed up the can_see_bug case.
+    if (scalar(@$check_ids) == 1) {
+        $sth = $self-&gt;{_sth_one_visible_bug};
+    }
+    my $query = qq{
+        SELECT DISTINCT bugs.bug_id
+        FROM bugs
+            LEFT JOIN bug_group_map AS security_map ON bugs.bug_id = security_map.bug_id
+            LEFT JOIN cc AS security_cc ON bugs.bug_id = security_cc.bug_id AND security_cc.who = $user_id
+        WHERE bugs.bug_id IN (} . join(',', ('?') x @$check_ids) . qq{)
+          AND ((security_map.group_id IS NULL OR security_map.group_id IN (} . $self-&gt;groups_as_string . qq{))
+            OR (bugs.reporter_accessible = 1 AND bugs.reporter = $user_id)
+            OR (bugs.cclist_accessible = 1 AND security_cc.who IS NOT NULL)
+            OR bugs.assigned_to = $user_id
+    };
+
+    if (Bugzilla-&gt;params-&gt;{'useqacontact'}) {
+        $query .= &quot; OR bugs.qa_contact = $user_id&quot;;
+    }
+    $query .= ')';
+
+    $sth ||= $dbh-&gt;prepare($query);
+    if (scalar(@$check_ids) == 1) {
+        $self-&gt;{_sth_one_visible_bug} = $sth;
+    }
+
+    # Set all bugs as non visible
+    foreach my $bug_id (@$check_ids) {
+        $visible_cache-&gt;{$bug_id} = 0;
+    }
+
+    # Now get the bugs the user can see
+    my $visible_bug_ids = $dbh-&gt;selectcol_arrayref($sth, undef, @$check_ids);
+    foreach my $bug_id (@$visible_bug_ids) {
+        $visible_cache-&gt;{$bug_id} = 1;
+    }
+}
+
+sub _visible_bugs_check_and {
+    my ($self, $check_ids) = @_;
+    my $visible_cache = $self-&gt;{_visible_bugs_cache};
+    my $dbh = Bugzilla-&gt;dbh;
+    my $user_id = $self-&gt;id;
+
+    my $sth;
+    # Speed up the can_see_bug case.
+    # WEBKIT_CHANGES: Disable statement caching
+    #if (scalar(@$check_ids) == 1) {
+    #    $sth = $self-&gt;{_sth_one_visible_bug};
+    #}
+    $sth ||= $dbh-&gt;prepare(
+        # This checks for groups that the bug is in that the user
+        # *isn't* in. Then, in the Perl code below, we check if
+        # the user can otherwise access the bug (for example, by being
+        # the assignee or QA Contact).
+        #
+        # The DISTINCT exists because the bug could be in *several*
+        # groups that the user isn't in, but they will all return the
+        # same result for bug_group_map.bug_id (so DISTINCT filters
+        # out duplicate rows).
+        &quot;SELECT DISTINCT bugs.bug_id, reporter, assigned_to, qa_contact,
+                reporter_accessible, cclist_accessible, cc.who,
+                bug_group_map.bug_id
+           FROM bugs
+                LEFT JOIN cc
+                          ON cc.bug_id = bugs.bug_id
+                             AND cc.who = $user_id
+                LEFT JOIN bug_group_map 
+                          ON bugs.bug_id = bug_group_map.bug_id
+                             AND bug_group_map.group_id NOT IN (&quot;
+                                 . $self-&gt;groups_as_string . ')
+          WHERE bugs.bug_id IN (' . join(',', ('?') x @$check_ids) . ')
+                AND creation_ts IS NOT NULL ');
+    # WEBKIT_CHANGES: Disable statement caching
+    #if (scalar(@$check_ids) == 1) {
+    #    $self-&gt;{_sth_one_visible_bug} = $sth;
+    #}
+
+    $sth-&gt;execute(@$check_ids);
+    my $use_qa_contact = Bugzilla-&gt;params-&gt;{'useqacontact'};
+    while (my $row = $sth-&gt;fetchrow_arrayref) {
+        my ($bug_id, $reporter, $owner, $qacontact, $reporter_access, 
+            $cclist_access, $isoncclist, $missinggroup) = @$row;
+        $visible_cache-&gt;{$bug_id} ||= 
+            ((($reporter == $user_id) &amp;&amp; $reporter_access)
+             || ($use_qa_contact
+                 &amp;&amp; $qacontact &amp;&amp; ($qacontact == $user_id))
+             || ($owner == $user_id)
+             || ($isoncclist &amp;&amp; $cclist_access)
+             || !$missinggroup) ? 1 : 0;
+    }
+
+}
+
</ins><span class="cx"> sub clear_product_cache {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     delete $self-&gt;{enterable_products};
</span><span class="lines">@@ -928,15 +1292,24 @@
</span><span class="cx">     my $class_restricted = Bugzilla-&gt;params-&gt;{'useclassification'} &amp;&amp; $class_id;
</span><span class="cx"> 
</span><span class="cx">     if (!defined $self-&gt;{selectable_products}) {
</span><del>-        my $query = &quot;SELECT id &quot; .
-                    &quot;  FROM products &quot; .
-                 &quot;LEFT JOIN group_control_map &quot; .
-                        &quot;ON group_control_map.product_id = products.id &quot; .
-                      &quot; AND group_control_map.membercontrol = &quot; . CONTROLMAPMANDATORY .
-                      &quot; AND group_id NOT IN(&quot; . $self-&gt;groups_as_string . &quot;) &quot; .
-                  &quot;   WHERE group_id IS NULL &quot; .
-                  &quot;ORDER BY name&quot;;
-
</del><ins>+        my $query = &quot;SELECT id
+                     FROM products
+                         LEFT JOIN group_control_map
+                             ON group_control_map.product_id = products.id
+                             AND group_control_map.membercontrol = &quot; . CONTROLMAPMANDATORY;
+                             
+        if (Bugzilla-&gt;params-&gt;{'or_groups'}) {
+            # Either the user is in at least one of the MANDATORY groups, or
+            # there are no such groups for the product.
+            $query .= &quot; WHERE group_id IN (&quot; . $self-&gt;groups_as_string . &quot;)
+                        OR group_id IS NULL&quot;;
+        }
+        else {
+            # There must be no MANDATORY groups that the user is not in.
+            $query .= &quot; AND group_id NOT IN (&quot; . $self-&gt;groups_as_string . &quot;)
+                        WHERE group_id IS NULL&quot;;
+        }
+        
</ins><span class="cx">         my $prod_ids = Bugzilla-&gt;dbh-&gt;selectcol_arrayref($query);
</span><span class="cx">         $self-&gt;{selectable_products} = Bugzilla::Product-&gt;new_from_list($prod_ids);
</span><span class="cx">     }
</span><span class="lines">@@ -1029,15 +1402,22 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">      # All products which the user has &quot;Entry&quot; access to.
</span><del>-     my $enterable_ids = $dbh-&gt;selectcol_arrayref(
</del><ins>+     my $query =
</ins><span class="cx">            'SELECT products.id FROM products
</span><del>-         LEFT JOIN group_control_map
-                   ON group_control_map.product_id = products.id
-                      AND group_control_map.entry != 0
-                      AND group_id NOT IN (' . $self-&gt;groups_as_string . ')
-            WHERE group_id IS NULL
-                  AND products.isactive = 1');
</del><ins>+            LEFT JOIN group_control_map
+                ON group_control_map.product_id = products.id
+                    AND group_control_map.entry != 0';
</ins><span class="cx"> 
</span><ins>+    if (Bugzilla-&gt;params-&gt;{'or_groups'}) {
+        $query .= &quot; WHERE (group_id IN (&quot; . $self-&gt;groups_as_string . &quot;)&quot; .
+                  &quot;    OR group_id IS NULL)&quot;;
+    } else {
+        $query .= &quot; AND group_id NOT IN (&quot; . $self-&gt;groups_as_string . &quot;)&quot; .
+                  &quot; WHERE group_id IS NULL&quot;
+    }
+    $query .= &quot; AND products.isactive = 1&quot;;
+    my $enterable_ids = $dbh-&gt;selectcol_arrayref($query);
+
</ins><span class="cx">     if (scalar @$enterable_ids) {
</span><span class="cx">         # And all of these products must have at least one component
</span><span class="cx">         # and one version.
</span><span class="lines">@@ -1074,6 +1454,30 @@
</span><span class="cx">     return [ sort { $a-&gt;name cmp $b-&gt;name } values %products ];
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub can_administer {
+    my $self = shift;
+
+    if (not defined $self-&gt;{can_administer}) {
+        my $can_administer = 0;
+
+        $can_administer = 1 if $self-&gt;in_group('admin')
+            || $self-&gt;in_group('tweakparams')
+            || $self-&gt;in_group('editusers')
+            || $self-&gt;can_bless
+            || (Bugzilla-&gt;params-&gt;{'useclassification'} &amp;&amp; $self-&gt;in_group('editclassifications'))
+            || $self-&gt;in_group('editcomponents')
+            || scalar(@{$self-&gt;get_products_by_permission('editcomponents')})
+            || $self-&gt;in_group('creategroups')
+            || $self-&gt;in_group('editkeywords')
+            || $self-&gt;in_group('bz_canusewhines');
+
+        Bugzilla::Hook::process('user_can_administer', { can_administer =&gt; \$can_administer });
+        $self-&gt;{can_administer} = $can_administer;
+    }
+
+    return $self-&gt;{can_administer};
+}
+
</ins><span class="cx"> sub check_can_admin_product {
</span><span class="cx">     my ($self, $product_name) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -1107,7 +1511,7 @@
</span><span class="cx">         my $e = $flagtype-&gt;exclusions_as_hash;
</span><span class="cx"> 
</span><span class="cx">         # If there is at least one product for which the user doesn't have
</span><del>-        # editcomponents privs, then don't allow him to do everything with
</del><ins>+        # editcomponents privs, then don't allow them to do everything with
</ins><span class="cx">         # this flagtype, independently of whether this product is in the
</span><span class="cx">         # exclusion list or not.
</span><span class="cx">         my %product_ids;
</span><span class="lines">@@ -1146,24 +1550,6 @@
</span><span class="cx">             || $self-&gt;in_group_id($flag_type-&gt;grant_group_id)) ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub direct_group_membership {
-    my $self = shift;
-    my $dbh = Bugzilla-&gt;dbh;
-
-    if (!$self-&gt;{'direct_group_membership'}) {
-        my $gid = $dbh-&gt;selectcol_arrayref('SELECT id
-                                              FROM groups
-                                        INNER JOIN user_group_map
-                                                ON groups.id = user_group_map.group_id
-                                             WHERE user_id = ?
-                                               AND isbless = 0',
-                                             undef, $self-&gt;id);
-        $self-&gt;{'direct_group_membership'} = Bugzilla::Group-&gt;new_from_list($gid);
-    }
-    return $self-&gt;{'direct_group_membership'};
-}
-
-
</del><span class="cx"> # visible_groups_inherited returns a reference to a list of all the groups
</span><span class="cx"> # whose members are visible to this user.
</span><span class="cx"> sub visible_groups_inherited {
</span><span class="lines">@@ -1279,6 +1665,8 @@
</span><span class="cx">             $group_delete-&gt;execute($id, $group, GRANT_REGEXP) if $present;
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+
+    Bugzilla-&gt;memcached-&gt;clear_config({ key =&gt; &quot;user_groups.$id&quot; });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub product_responsibilities {
</span><span class="lines">@@ -1637,7 +2025,9 @@
</span><span class="cx">     'attachments.mimetype'    =&gt; EVT_ATTACHMENT_DATA,
</span><span class="cx">     'attachments.ispatch'     =&gt; EVT_ATTACHMENT_DATA,
</span><span class="cx">     'dependson'               =&gt; EVT_DEPEND_BLOCK,
</span><del>-    'blocked'                 =&gt; EVT_DEPEND_BLOCK);
</del><ins>+    'blocked'                 =&gt; EVT_DEPEND_BLOCK,
+    'product'                 =&gt; EVT_COMPONENT,
+    'component'               =&gt; EVT_COMPONENT);
</ins><span class="cx"> 
</span><span class="cx"> # Returns true if the user wants mail for a given bug change.
</span><span class="cx"> # Note: the &quot;+&quot; signs before the constants suppress bareword quoting.
</span><span class="lines">@@ -1656,7 +2046,7 @@
</span><span class="cx">         }
</span><span class="cx">         else {
</span><span class="cx">             # Catch-all for any change not caught by a more specific event
</span><del>-            $events{+EVT_OTHER} = 1;            
</del><ins>+            $events{+EVT_OTHER} = 1;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         # If the user is in a particular role and the value of that role
</span><span class="lines">@@ -1812,6 +2202,17 @@
</span><span class="cx">     return $self-&gt;{'is_timetracker'};
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub can_tag_comments {
+    my $self = shift;
+
+    if (!defined $self-&gt;{'can_tag_comments'}) {
+        my $group = Bugzilla-&gt;params-&gt;{'comment_taggers_group'};
+        $self-&gt;{'can_tag_comments'} =
+            ($group &amp;&amp; $self-&gt;in_group($group)) ? 1 : 0;
+    }
+    return $self-&gt;{'can_tag_comments'};
+}
+
</ins><span class="cx"> sub get_userlist {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><span class="lines">@@ -1967,8 +2368,8 @@
</span><span class="cx">     # was unsafe and required weird escaping; using substring to pull out
</span><span class="cx">     # the new/old email addresses and sql_position() to find the delimiter (':')
</span><span class="cx">     # is cleaner/safer
</span><del>-    my $eventdata = $dbh-&gt;selectrow_array(
-        &quot;SELECT eventdata
</del><ins>+    my ($tokentype, $eventdata) = $dbh-&gt;selectrow_array(
+        &quot;SELECT tokentype, eventdata
</ins><span class="cx">            FROM tokens
</span><span class="cx">           WHERE (tokentype = 'emailold'
</span><span class="cx">                 AND SUBSTRING(eventdata, 1, (&quot; .
</span><span class="lines">@@ -1980,7 +2381,10 @@
</span><span class="cx"> 
</span><span class="cx">     if ($eventdata) {
</span><span class="cx">         # Allow thru owner of token
</span><del>-        if($old_username &amp;&amp; ($eventdata eq &quot;$old_username:$username&quot;)) {
</del><ins>+        if ($old_username
+            &amp;&amp; (($tokentype eq 'emailnew' &amp;&amp; $eventdata eq &quot;$old_username:$username&quot;)
+                || ($tokentype eq 'emailold' &amp;&amp; $eventdata eq &quot;$username:$old_username&quot;)))
+        {
</ins><span class="cx">             return 1;
</span><span class="cx">         }
</span><span class="cx">         return 0;
</span><span class="lines">@@ -2002,8 +2406,11 @@
</span><span class="cx"> 
</span><span class="cx"> sub check_and_send_account_creation_confirmation {
</span><span class="cx">     my ($self, $login) = @_;
</span><ins>+    my $dbh = Bugzilla-&gt;dbh;
</ins><span class="cx"> 
</span><del>-    $login = $self-&gt;check_login_name_for_creation($login);
</del><ins>+    $dbh-&gt;bz_start_transaction;
+
+    $login = $self-&gt;check_login_name($login);
</ins><span class="cx">     my $creation_regexp = Bugzilla-&gt;params-&gt;{'createemailregexp'};
</span><span class="cx"> 
</span><span class="cx">     if ($login !~ /$creation_regexp/i) {
</span><span class="lines">@@ -2010,9 +2417,14 @@
</span><span class="cx">         ThrowUserError('account_creation_restricted');
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Allow extensions to do extra checks.
+    Bugzilla::Hook::process('user_check_account_creation', { login =&gt; $login });
+
</ins><span class="cx">     # Create and send a token for this new account.
</span><span class="cx">     require Bugzilla::Token;
</span><span class="cx">     Bugzilla::Token::issue_new_user_account_token($login);
</span><ins>+
+    $dbh-&gt;bz_commit_transaction;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # This is used in a few performance-critical areas where we don't want to
</span><span class="lines">@@ -2049,41 +2461,36 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub user_id_to_login {
-    my $user_id = shift;
-    my $dbh = Bugzilla-&gt;dbh;
-
-    return '' unless ($user_id &amp;&amp; detaint_natural($user_id));
-
-    my $login = $dbh-&gt;selectrow_array('SELECT login_name FROM profiles
-                                       WHERE userid = ?', undef, $user_id);
-    return $login || '';
</del><ins>+sub validate_password {
+    my $check = validate_password_check(@_);
+    ThrowUserError($check) if $check;
+    return 1;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub validate_password {
</del><ins>+sub validate_password_check {
</ins><span class="cx">     my ($password, $matchpassword) = @_;
</span><span class="cx"> 
</span><span class="cx">     if (length($password) &lt; USER_PASSWORD_MIN_LENGTH) {
</span><del>-        ThrowUserError('password_too_short');
</del><ins>+        return 'password_too_short';
</ins><span class="cx">     } elsif ((defined $matchpassword) &amp;&amp; ($password ne $matchpassword)) {
</span><del>-        ThrowUserError('passwords_dont_match');
</del><ins>+        return 'passwords_dont_match';
</ins><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $complexity_level = Bugzilla-&gt;params-&gt;{password_complexity};
</span><span class="cx">     if ($complexity_level eq 'letters_numbers_specialchars') {
</span><del>-        ThrowUserError('password_not_complex')
</del><ins>+        return 'password_not_complex'
</ins><span class="cx">           if ($password !~ /[[:alpha:]]/ || $password !~ /\d/ || $password !~ /[[:punct:]]/);
</span><span class="cx">     } elsif ($complexity_level eq 'letters_numbers') {
</span><del>-        ThrowUserError('password_not_complex')
</del><ins>+        return 'password_not_complex'
</ins><span class="cx">           if ($password !~ /[[:lower:]]/ || $password !~ /[[:upper:]]/ || $password !~ /\d/);
</span><span class="cx">     } elsif ($complexity_level eq 'mixed_letters') {
</span><del>-        ThrowUserError('password_not_complex')
</del><ins>+        return 'password_not_complex'
</ins><span class="cx">           if ($password !~ /[[:lower:]]/ || $password !~ /[[:upper:]]/);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Having done these checks makes us consider the password untainted.
</span><span class="cx">     trick_taint($_[0]);
</span><del>-    return 1;
</del><ins>+    return;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -2201,8 +2608,36 @@
</span><span class="cx"> Returns a hashref with tag IDs as key, and a hashref with tag 'id',
</span><span class="cx"> 'name' and 'bug_count' as value.
</span><span class="cx"> 
</span><ins>+=item C&lt;bugs_ignored&gt;
+
+Returns an array of hashrefs containing information about bugs currently
+being ignored by the user.
+
+Each hashref contains the following information:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the bug.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The current status of the bug.
+
+=item C&lt;summary&gt;
+
+C&lt;string&gt; The current summary of the bug.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item C&lt;is_bug_ignored&gt;
+
+Returns true if the user does not want email notifications for the
+specified bug ID, else returns false.
+
+=back
+
</ins><span class="cx"> =head2 Saved Recent Bug Lists
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2253,6 +2688,10 @@
</span><span class="cx"> in the database. The storing happens immediately, it does not wait for
</span><span class="cx"> you to call C&lt;update&gt;.
</span><span class="cx"> 
</span><ins>+=item C&lt;set_email_enabled&gt;
+
+C&lt;bool&gt; - Sets C&lt;disable_mail&gt; to the inverse of the boolean provided.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head2 Other Methods
</span><span class="lines">@@ -2278,7 +2717,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;showmybugslink&gt;
</span><span class="cx"> 
</span><del>-Returns C&lt;1&gt; if the user has set his preference to show the 'My Bugs' link in
</del><ins>+Returns C&lt;1&gt; if the user has set their preference to show the 'My Bugs' link in
</ins><span class="cx"> the page footer, and C&lt;0&gt; otherwise.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;identity&gt;
</span><span class="lines">@@ -2309,6 +2748,17 @@
</span><span class="cx"> 
</span><span class="cx"> Returns the disable text of the user, if any.
</span><span class="cx"> 
</span><ins>+=item C&lt;reports&gt;
+
+Returns an arrayref of the user's own saved reports. The array contains 
+L&lt;Bugzilla::Reports&gt; objects.
+
+=item C&lt;flush_reports_cache&gt;
+
+Some code modifies the set of stored reports. Because C&lt;Bugzilla::User&gt; does
+not handle these modifications, but does cache the result of calling C&lt;reports&gt;
+internally, such code must call this method to flush the cached result.
+
</ins><span class="cx"> =item C&lt;settings&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns a hash of hashes which holds the user's settings. The first key is
</span><span class="lines">@@ -2371,7 +2821,7 @@
</span><span class="cx"> =item C&lt;get_products_by_permission($group)&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns a list of product objects for which the user has $group privileges
</span><del>-and which he can access.
</del><ins>+and which they can access.
</ins><span class="cx"> $group must be one of the groups defined in PER_PRODUCT_PRIVILEGES.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;can_see_user(user)&gt;
</span><span class="lines">@@ -2384,6 +2834,12 @@
</span><span class="cx"> Determines if, given a product id, the user can edit bugs in this product
</span><span class="cx"> at all.
</span><span class="cx"> 
</span><ins>+=item C&lt;visible_bugs($bugs)&gt;
+
+Description: Determines if a list of bugs are visible to the user.
+Params:      C&lt;$bugs&gt; - An arrayref of Bugzilla::Bug objects or bug ids
+Returns:     An arrayref of the bug ids that the user can see
+
</ins><span class="cx"> =item C&lt;can_see_bug(bug_id)&gt;
</span><span class="cx"> 
</span><span class="cx"> Determines if the user can see the specified bug.
</span><span class="lines">@@ -2470,6 +2926,10 @@
</span><span class="cx"> 
</span><span class="cx">  Returns:     an array of product objects.
</span><span class="cx"> 
</span><ins>+=item C&lt;can_administer&gt;
+
+Returns 1 if the user can see the admin menu. Otherwise, returns 0
+
</ins><span class="cx"> =item C&lt;check_can_admin_product($product_name)&gt;
</span><span class="cx"> 
</span><span class="cx">  Description: Checks whether the user is allowed to administrate the product.
</span><span class="lines">@@ -2483,7 +2943,7 @@
</span><span class="cx">  Description: Checks whether the user is allowed to edit properties of the flag type.
</span><span class="cx">               If the flag type is also used by some products for which the user
</span><span class="cx">               hasn't editcomponents privs, then the user is only allowed to edit
</span><del>-              the inclusion and exclusion lists for products he can administrate.
</del><ins>+              the inclusion and exclusion lists for products they can administrate.
</ins><span class="cx"> 
</span><span class="cx">  Params:      $flagtype_id - a flag type ID.
</span><span class="cx"> 
</span><span class="lines">@@ -2517,11 +2977,6 @@
</span><span class="cx"> containing the login, identity and visibility.  Users that are not visible to this
</span><span class="cx"> user will have 'visible' set to zero.
</span><span class="cx"> 
</span><del>-=item C&lt;direct_group_membership&gt;
-
-Returns a reference to an array of group objects. Groups the user belong to
-by group inheritance are excluded from the list.
-
</del><span class="cx"> =item C&lt;visible_groups_inherited&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns a list of all groups whose members should be visible to this user.
</span><span class="lines">@@ -2571,8 +3026,74 @@
</span><span class="cx"> Returns true if the user is a global watcher,
</span><span class="cx"> i.e. if the 'globalwatchers' parameter contains the user.
</span><span class="cx"> 
</span><ins>+=item C&lt;can_tag_comments&gt;
+
+Returns true if the user can attach tags to comments.
+i.e. if the 'comment_taggers_group' parameter is set and the user belongs to
+this group.
+
+=item C&lt;last_visited&gt;
+
+Returns an arrayref L&lt;Bugzilla::BugUserLastVisit&gt; objects.
+
+=item C&lt;is_involved_in_bug($bug)&gt;
+
+Returns true if any of the following conditions are met, false otherwise.
+
+=over
+
+=item *
+
+User is the assignee of the bug
+
+=item *
+
+User is the reporter of the bug
+
+=item *
+
+User is the QA contact of the bug (if Bugzilla is configured to use a QA
+contact)
+
+=item *
+
+User is in the cc list for the bug.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item C&lt;set_groups&gt;
+
+C&lt;hash&gt; These specify the groups that this user is directly a member of.
+To set these, you should pass a hash as the value. The hash may contain
+the following fields:
+
+=over
+
+=item C&lt;add&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. The group ids or group names
+that the user should be added to.
+
+=item C&lt;remove&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. The group ids or group names
+that the user should be removed from.
+
+=item C&lt;set&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. An exact set of group ids
+and group names that the user should be a member of. NOTE: This does not
+remove groups from the user where the person making the change does not
+have the bless privilege for.
+
+If you specify C&lt;set&gt;, then C&lt;add&gt; and C&lt;remove&gt; will be ignored. A group in
+both the C&lt;add&gt; and C&lt;remove&gt; list will be added. Specifying a group that the
+user making the change does not have bless rights will generate an error.
+
+=back
+
+=item C&lt;set_bless_groups&gt;
+
+C&lt;hash&gt; - This is the same as set_groups, but affects what groups a user
+has direct membership to bless that group. It takes the same inputs as
+set_groups.
+
+=back
+
</ins><span class="cx"> =head1 CLASS FUNCTIONS
</span><span class="cx"> 
</span><span class="cx"> These are functions that are not called on a User object, but instead are
</span><span class="lines">@@ -2591,7 +3112,7 @@
</span><span class="cx">             a plain-text password. If you specify '*', the user will not
</span><span class="cx">             be able to log in using DB authentication.
</span><span class="cx">         disabledtext - The disable-text for the new user. If given, the user 
</span><del>-            will be disabled, meaning he cannot log in. Defaults to an
</del><ins>+            will be disabled, meaning they cannot log in. Defaults to an
</ins><span class="cx">             empty string.
</span><span class="cx">         disable_mail - If 1, bug-related mail will not be  sent to this user; 
</span><span class="cx">             if 0, mail will be sent depending on the user's  email preferences.
</span><span class="lines">@@ -2621,8 +3142,8 @@
</span><span class="cx">             that you are checking.
</span><span class="cx">         $old_username (scalar, string) - If you are checking an email-change
</span><span class="cx">             token, insert the &quot;old&quot; username that the user is changing from,
</span><del>-            here. Then, as long as it's the right user for that token, he 
-            can change his username to $username. (That is, this function
</del><ins>+            here. Then, as long as it's the right user for that token, they
+            can change their username to $username. (That is, this function
</ins><span class="cx">             will return a boolean true value).
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;login_to_id($login, $throw_error)&gt;
</span><span class="lines">@@ -2641,21 +3162,26 @@
</span><span class="cx"> However, consider using a Bugzilla::User object instead of this function
</span><span class="cx"> if you need more information about the user than just their ID.
</span><span class="cx"> 
</span><del>-=item C&lt;user_id_to_login($user_id)&gt;
-
-Returns the login name of the user account for the given user ID. If no
-valid user ID is given or the user has no entry in the profiles table,
-we return an empty string.
-
</del><span class="cx"> =item C&lt;validate_password($passwd1, $passwd2)&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns true if a password is valid (i.e. meets Bugzilla's
</span><del>-requirements for length and content), else returns false.
</del><ins>+requirements for length and content), else throws an error.
</ins><span class="cx"> Untaints C&lt;$passwd1&gt; if successful.
</span><span class="cx"> 
</span><span class="cx"> If a second password is passed in, this function also verifies that
</span><span class="cx"> the two passwords match.
</span><span class="cx"> 
</span><ins>+=item C&lt;validate_password_check($passwd1, $passwd2)&gt;
+
+This sub routine is similair to C&lt;validate_password&gt;, except that it allows
+the calling code to handle its own errors.
+
+Returns undef and untaints C&lt;$passwd1&gt; if a password is valid (i.e. meets
+Bugzilla's requirements for length and content), else returns the error.
+
+If a second password is passed in, this function also verifies that
+the two passwords match.
+
</ins><span class="cx"> =item C&lt;match_field($data, $fields, $behavior)&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2704,3 +3230,55 @@
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla|Bugzilla&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item email_enabled
+
+=item cryptpassword
+
+=item clear_login_failures
+
+=item set_disable_mail
+
+=item has_audit_entries
+
+=item groups_with_icon
+
+=item check_login_name
+
+=item set_extern_id
+
+=item mail_settings
+
+=item email_disabled
+
+=item update
+
+=item is_timetracker
+
+=item is_enabled
+
+=item queryshare_groups_as_string
+
+=item set_login
+
+=item set_password
+
+=item last_seen_date
+
+=item set_disabledtext
+
+=item update_last_seen_date
+
+=item set_name
+
+=item DB_COLUMNS
+
+=item extern_id
+
+=item UPDATE_COLUMNS
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUserAgentpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/UserAgent.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/UserAgent.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/UserAgent.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,243 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::UserAgent;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Exporter);
+our @EXPORT = qw(detect_platform detect_op_sys);
+
+use Bugzilla::Field;
+use List::MoreUtils qw(natatime);
+
+use constant DEFAULT_VALUE =&gt; 'Other';
+
+use constant PLATFORMS_MAP =&gt; (
+    # PowerPC
+    qr/\(.*PowerPC.*\)/i =&gt; [&quot;PowerPC&quot;, &quot;Macintosh&quot;],
+    # AMD64, Intel x86_64
+    qr/\(.*[ix0-9]86 (?:on |\()x86_64.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    qr/\(.*amd64.*\)/ =&gt; [&quot;AMD64&quot;, &quot;x86_64&quot;, &quot;PC&quot;],
+    qr/\(.*x86_64.*\)/ =&gt; [&quot;AMD64&quot;, &quot;x86_64&quot;, &quot;PC&quot;],
+    # Intel IA64
+    qr/\(.*IA64.*\)/ =&gt; [&quot;IA64&quot;, &quot;PC&quot;],
+    # Intel x86
+    qr/\(.*Intel.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    qr/\(.*[ix0-9]86.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    # Versions of Windows that only run on Intel x86
+    qr/\(.*Win(?:dows |)[39M].*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    qr/\(.*Win(?:dows |)16.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    # Sparc
+    qr/\(.*sparc.*\)/ =&gt; [&quot;Sparc&quot;, &quot;Sun&quot;],
+    qr/\(.*sun4.*\)/ =&gt; [&quot;Sparc&quot;, &quot;Sun&quot;],
+    # Alpha
+    qr/\(.*AXP.*\)/i =&gt; [&quot;Alpha&quot;, &quot;DEC&quot;],
+    qr/\(.*[ _]Alpha.\D/i =&gt; [&quot;Alpha&quot;, &quot;DEC&quot;],
+    qr/\(.*[ _]Alpha\)/i =&gt; [&quot;Alpha&quot;, &quot;DEC&quot;],
+    # MIPS
+    qr/\(.*IRIX.*\)/i =&gt; [&quot;MIPS&quot;, &quot;SGI&quot;],
+    qr/\(.*MIPS.*\)/i =&gt; [&quot;MIPS&quot;, &quot;SGI&quot;],
+    # 68k
+    qr/\(.*68K.*\)/ =&gt; [&quot;68k&quot;, &quot;Macintosh&quot;],
+    qr/\(.*680[x0]0.*\)/ =&gt; [&quot;68k&quot;, &quot;Macintosh&quot;],
+    # HP
+    qr/\(.*9000.*\)/ =&gt; [&quot;PA-RISC&quot;, &quot;HP&quot;],
+    # ARM
+    qr/\(.*(?:iPod|iPad|iPhone).*\)/ =&gt; [&quot;ARM&quot;],
+    qr/\(.*ARM.*\)/ =&gt; [&quot;ARM&quot;, &quot;PocketPC&quot;],
+    # PocketPC intentionally before PowerPC
+    qr/\(.*Windows CE.*PPC.*\)/ =&gt; [&quot;ARM&quot;, &quot;PocketPC&quot;],
+    # PowerPC
+    qr/\(.*PPC.*\)/ =&gt; [&quot;PowerPC&quot;, &quot;Macintosh&quot;],
+    qr/\(.*AIX.*\)/ =&gt; [&quot;PowerPC&quot;, &quot;Macintosh&quot;],
+    # Stereotypical and broken
+    qr/\(.*Windows CE.*\)/ =&gt; [&quot;ARM&quot;, &quot;PocketPC&quot;],
+    qr/\(.*Macintosh.*\)/ =&gt; [&quot;68k&quot;, &quot;Macintosh&quot;],
+    qr/\(.*Mac OS [89].*\)/ =&gt; [&quot;68k&quot;, &quot;Macintosh&quot;],
+    qr/\(.*WOW64.*\)/ =&gt; [&quot;x86_64&quot;],
+    qr/\(.*Win64.*\)/ =&gt; [&quot;IA64&quot;],
+    qr/\(Win.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    qr/\(.*Win(?:dows[ -])NT.*\)/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+    qr/\(.*OSF.*\)/ =&gt; [&quot;Alpha&quot;, &quot;DEC&quot;],
+    qr/\(.*HP-?UX.*\)/i =&gt; [&quot;PA-RISC&quot;, &quot;HP&quot;],
+    qr/\(.*IRIX.*\)/i =&gt; [&quot;MIPS&quot;, &quot;SGI&quot;],
+    qr/\(.*(SunOS|Solaris).*\)/ =&gt; [&quot;Sparc&quot;, &quot;Sun&quot;],
+    # Braindead old browsers who didn't follow convention:
+    qr/Amiga/ =&gt; [&quot;68k&quot;, &quot;Macintosh&quot;],
+    qr/WinMosaic/ =&gt; [&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;],
+);
+
+use constant OS_MAP =&gt; (
+    # Sun
+    qr/\(.*Solaris.*\)/ =&gt; [&quot;Solaris&quot;],
+    qr/\(.*SunOS 5.11.*\)/ =&gt; [(&quot;OpenSolaris&quot;, &quot;Opensolaris&quot;, &quot;Solaris 11&quot;)],
+    qr/\(.*SunOS 5.10.*\)/ =&gt; [&quot;Solaris 10&quot;],
+    qr/\(.*SunOS 5.9.*\)/ =&gt; [&quot;Solaris 9&quot;],
+    qr/\(.*SunOS 5.8.*\)/ =&gt; [&quot;Solaris 8&quot;],
+    qr/\(.*SunOS 5.7.*\)/ =&gt; [&quot;Solaris 7&quot;],
+    qr/\(.*SunOS 5.6.*\)/ =&gt; [&quot;Solaris 6&quot;],
+    qr/\(.*SunOS 5.5.*\)/ =&gt; [&quot;Solaris 5&quot;],
+    qr/\(.*SunOS 5.*\)/ =&gt; [&quot;Solaris&quot;],
+    qr/\(.*SunOS.*sun4u.*\)/ =&gt; [&quot;Solaris&quot;],
+    qr/\(.*SunOS.*i86pc.*\)/ =&gt; [&quot;Solaris&quot;],
+    qr/\(.*SunOS.*\)/ =&gt; [&quot;SunOS&quot;],
+    # BSD
+    qr/\(.*BSD\/(?:OS|386).*\)/ =&gt; [&quot;BSDI&quot;],
+    qr/\(.*FreeBSD.*\)/ =&gt; [&quot;FreeBSD&quot;],
+    qr/\(.*OpenBSD.*\)/ =&gt; [&quot;OpenBSD&quot;],
+    qr/\(.*NetBSD.*\)/ =&gt; [&quot;NetBSD&quot;],
+    # Misc POSIX
+    qr/\(.*IRIX.*\)/ =&gt; [&quot;IRIX&quot;],
+    qr/\(.*OSF.*\)/ =&gt; [&quot;OSF/1&quot;],
+    qr/\(.*Linux.*\)/ =&gt; [&quot;Linux&quot;],
+    qr/\(.*BeOS.*\)/ =&gt; [&quot;BeOS&quot;],
+    qr/\(.*AIX.*\)/ =&gt; [&quot;AIX&quot;],
+    qr/\(.*OS\/2.*\)/ =&gt; [&quot;OS/2&quot;],
+    qr/\(.*QNX.*\)/ =&gt; [&quot;Neutrino&quot;],
+    qr/\(.*VMS.*\)/ =&gt; [&quot;OpenVMS&quot;],
+    qr/\(.*HP-?UX.*\)/ =&gt; [&quot;HP-UX&quot;],
+    qr/\(.*Android.*\)/ =&gt; [&quot;Android&quot;],
+    # Windows
+    qr/\(.*Windows XP.*\)/ =&gt; [&quot;Windows XP&quot;],
+    qr/\(.*Windows NT 10\.0.*\)/ =&gt; [&quot;Windows 10&quot;],
+    qr/\(.*Windows NT 6\.4.*\)/ =&gt; [&quot;Windows 10&quot;],
+    qr/\(.*Windows NT 6\.3.*\)/ =&gt; [&quot;Windows 8.1&quot;],
+    qr/\(.*Windows NT 6\.2.*\)/ =&gt; [&quot;Windows 8&quot;],
+    qr/\(.*Windows NT 6\.1.*\)/ =&gt; [&quot;Windows 7&quot;],
+    qr/\(.*Windows NT 6\.0.*\)/ =&gt; [&quot;Windows Vista&quot;],
+    qr/\(.*Windows NT 5\.2.*\)/ =&gt; [&quot;Windows Server 2003&quot;],
+    qr/\(.*Windows NT 5\.1.*\)/ =&gt; [&quot;Windows XP&quot;],
+    qr/\(.*Windows 2000.*\)/ =&gt; [&quot;Windows 2000&quot;],
+    qr/\(.*Windows NT 5.*\)/ =&gt; [&quot;Windows 2000&quot;],
+    qr/\(.*Win.*9[8x].*4\.9.*\)/ =&gt; [&quot;Windows ME&quot;],
+    qr/\(.*Win(?:dows |)M[Ee].*\)/ =&gt; [&quot;Windows ME&quot;],
+    qr/\(.*Win(?:dows |)98.*\)/ =&gt; [&quot;Windows 98&quot;],
+    qr/\(.*Win(?:dows |)95.*\)/ =&gt; [&quot;Windows 95&quot;],
+    qr/\(.*Win(?:dows |)16.*\)/ =&gt; [&quot;Windows 3.1&quot;],
+    qr/\(.*Win(?:dows[ -]|)NT.*\)/ =&gt; [&quot;Windows NT&quot;],
+    qr/\(.*Windows.*NT.*\)/ =&gt; [&quot;Windows NT&quot;],
+    # OS X
+    qr/\(.*(?:iPad|iPhone).*OS 7.*\)/ =&gt; [&quot;iOS 7&quot;],
+    qr/\(.*(?:iPad|iPhone).*OS 6.*\)/ =&gt; [&quot;iOS 6&quot;],
+    qr/\(.*(?:iPad|iPhone).*OS 5.*\)/ =&gt; [&quot;iOS 5&quot;],
+    qr/\(.*(?:iPad|iPhone).*OS 4.*\)/ =&gt; [&quot;iOS 4&quot;],
+    qr/\(.*(?:iPad|iPhone).*OS 3.*\)/ =&gt; [&quot;iOS 3&quot;],
+    qr/\(.*(?:iPod|iPad|iPhone).*\)/ =&gt; [&quot;iOS&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.8.*\)/ =&gt; [&quot;Mac OS X 10.8&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.7.*\)/ =&gt; [&quot;Mac OS X 10.7&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ =&gt; [&quot;Mac OS X 10.6&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.5.*\)/ =&gt; [&quot;Mac OS X 10.5&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.4.*\)/ =&gt; [&quot;Mac OS X 10.4&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.3.*\)/ =&gt; [&quot;Mac OS X 10.3&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.2.*\)/ =&gt; [&quot;Mac OS X 10.2&quot;],
+    qr/\(.*Mac OS X (?:|Mach-O |\()10.1.*\)/ =&gt; [&quot;Mac OS X 10.1&quot;],
+    # Unfortunately, OS X 10.4 was the first to support Intel. This is fallback
+    # support because some browsers refused to include the OS Version.
+    qr/\(.*Intel.*Mac OS X.*\)/ =&gt; [&quot;Mac OS X 10.4&quot;],
+    # OS X 10.3 is the most likely default version of PowerPC Macs
+    # OS X 10.0 is more for configurations which didn't setup 10.x versions
+    qr/\(.*Mac OS X.*\)/ =&gt; [(&quot;Mac OS X 10.3&quot;, &quot;Mac OS X 10.0&quot;, &quot;Mac OS X&quot;)],
+    qr/\(.*Mac OS 9.*\)/ =&gt; [(&quot;Mac System 9.x&quot;, &quot;Mac System 9.0&quot;)],
+    qr/\(.*Mac OS 8\.6.*\)/ =&gt; [(&quot;Mac System 8.6&quot;, &quot;Mac System 8.5&quot;)],
+    qr/\(.*Mac OS 8\.5.*\)/ =&gt; [&quot;Mac System 8.5&quot;],
+    qr/\(.*Mac OS 8\.1.*\)/ =&gt; [(&quot;Mac System 8.1&quot;, &quot;Mac System 8.0&quot;)],
+    qr/\(.*Mac OS 8\.0.*\)/ =&gt; [&quot;Mac System 8.0&quot;],
+    qr/\(.*Mac OS 8[^.].*\)/ =&gt; [&quot;Mac System 8.0&quot;],
+    qr/\(.*Mac OS 8.*\)/ =&gt; [&quot;Mac System 8.6&quot;],
+    qr/\(.*Darwin.*\)/ =&gt; [(&quot;Mac OS X 10.0&quot;, &quot;Mac OS X&quot;)],
+    # Silly
+    qr/\(.*Mac.*PowerPC.*\)/ =&gt; [&quot;Mac System 9.x&quot;],
+    qr/\(.*Mac.*PPC.*\)/ =&gt; [&quot;Mac System 9.x&quot;],
+    qr/\(.*Mac.*68k.*\)/ =&gt; [&quot;Mac System 8.0&quot;],
+    # Evil
+    qr/Amiga/i =&gt; [&quot;Other&quot;],
+    qr/WinMosaic/ =&gt; [&quot;Windows 95&quot;],
+    qr/\(.*32bit.*\)/ =&gt; [&quot;Windows 95&quot;],
+    qr/\(.*16bit.*\)/ =&gt; [&quot;Windows 3.1&quot;],
+    qr/\(.*PowerPC.*\)/ =&gt; [&quot;Mac System 9.x&quot;],
+    qr/\(.*PPC.*\)/ =&gt; [&quot;Mac System 9.x&quot;],
+    qr/\(.*68K.*\)/ =&gt; [&quot;Mac System 8.0&quot;],
+);
+
+sub detect_platform {
+    my $userAgent = $ENV{'HTTP_USER_AGENT'};
+    my @detected;
+    my $iterator = natatime(2, PLATFORMS_MAP);
+    while (my($re, $ra) = $iterator-&gt;()) {
+        if ($userAgent =~ $re) {
+            push @detected, @$ra;
+        }
+    }
+    return _pick_valid_field_value('rep_platform', @detected);
+}
+
+sub detect_op_sys {
+    my $userAgent = $ENV{'HTTP_USER_AGENT'} || '';
+    my @detected;
+    my $iterator = natatime(2, OS_MAP);
+    while (my($re, $ra) = $iterator-&gt;()) {
+        if ($userAgent =~ $re) {
+            push @detected, @$ra;
+        }
+    }
+    push(@detected, &quot;Windows&quot;) if grep(/^Windows /, @detected);
+    push(@detected, &quot;Mac OS&quot;) if grep(/^Mac /, @detected);
+    return _pick_valid_field_value('op_sys', @detected);
+}
+
+# Takes the name of a field and a list of possible values for that field.
+# Returns the first value in the list that is actually a valid value for that
+# field.
+# Returns 'Other' if none of the values match.
+sub _pick_valid_field_value {
+    my ($field, @values) = @_;
+    foreach my $value (@values) {
+        return $value if check_field($field, $value, undef, 1);
+    }
+    return DEFAULT_VALUE;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::UserAgent - UserAgent utilities for Bugzilla
+
+=head1 SYNOPSIS
+
+  use Bugzilla::UserAgent;
+  printf &quot;platform: %s op-sys: %s\n&quot;, detect_platform(), detect_op_sys();
+
+=head1 DESCRIPTION
+
+The functions exported by this module all return information derived from the
+remote client's user agent.
+
+=head1 FUNCTIONS
+
+=over 4
+
+=item C&lt;detect_platform&gt;
+
+This function attempts to detect the remote client's platform from the
+presented user-agent. If a suitable value on the I&lt;platform&gt; field is found,
+that field value will be returned.  If no suitable value is detected,
+C&lt;detect_platform&gt; returns I&lt;Other&gt;.
+
+=item C&lt;detect_op_sys&gt;
+
+This function attempts to detect the remote client's operating system from the
+presented user-agent. If a suitable value on the I&lt;op_sys&gt; field is found, that
+field value will be returned.  If no suitable value is detected,
+C&lt;detect_op_sys&gt; returns I&lt;Other&gt;.
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaUtilpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Util.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Util.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Util.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,63 +1,41 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Util;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Exporter);
-@Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural
-                             detaint_signed
</del><ins>+use parent qw(Exporter);
+@Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed
</ins><span class="cx">                              html_quote url_quote xml_quote
</span><span class="cx">                              css_class_quote html_light_quote
</span><del>-                             i_am_cgi correct_urlbase remote_ip validate_ip
-                             do_ssl_redirect_if_required use_attachbase
</del><ins>+                             i_am_cgi i_am_webservice correct_urlbase remote_ip
+                             validate_ip do_ssl_redirect_if_required use_attachbase
</ins><span class="cx">                              diff_arrays on_main_db
</span><span class="cx">                              trim wrap_hard wrap_comment find_wrap_point
</span><span class="cx">                              format_time validate_date validate_time datetime_from
</span><del>-                             file_mod_time is_7bit_clean
-                             bz_crypt generate_random_password
-                             validate_email_syntax clean_text
-                             get_text template_var disable_utf8
-                             detect_encoding);
</del><ins>+                             is_7bit_clean bz_crypt generate_random_password
+                             validate_email_syntax check_email_syntax clean_text
+                             get_text template_var display_value disable_utf8
+                             detect_encoding email_filter
+                             join_activity_entries);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::RNG qw(irand);
</span><ins>+use Bugzilla::Error;
</ins><span class="cx"> 
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> use Date::Format;
</span><del>-use DateTime;
-use DateTime::TimeZone;
</del><span class="cx"> use Digest;
</span><span class="cx"> use Email::Address;
</span><span class="cx"> use List::Util qw(first);
</span><span class="cx"> use Scalar::Util qw(tainted blessed);
</span><del>-use Template::Filters;
</del><span class="cx"> use Text::Wrap;
</span><span class="cx"> use Encode qw(encode decode resolve_alias);
</span><span class="cx"> use Encode::Guess;
</span><span class="lines">@@ -71,13 +49,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub detaint_natural {
</span><del>-    my $match = $_[0] =~ /^(\d+)$/;
</del><ins>+    my $match = $_[0] =~ /^([0-9]+)$/;
</ins><span class="cx">     $_[0] = $match ? int($1) : undef;
</span><span class="cx">     return (defined($_[0]));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub detaint_signed {
</span><del>-    my $match = $_[0] =~ /^([-+]?\d+)$/;
</del><ins>+    my $match = $_[0] =~ /^([-+]?[0-9]+)$/;
</ins><span class="cx">     # The &quot;int()&quot; call removes any leading plus sign.
</span><span class="cx">     $_[0] = $match ? int($1) : undef;
</span><span class="cx">     return (defined($_[0]));
</span><span class="lines">@@ -87,10 +65,17 @@
</span><span class="cx"> #             visible strings.
</span><span class="cx"> # Bug 319331: Handle BiDi disruptions.
</span><span class="cx"> sub html_quote {
</span><del>-    my ($var) = Template::Filters::html_filter(@_);
</del><ins>+    my $var = shift;
+    $var =~ s/&amp;/&amp;amp;/g;
+    $var =~ s/&lt;/&amp;lt;/g;
+    $var =~ s/&gt;/&amp;gt;/g;
+    $var =~ s/&quot;/&amp;quot;/g;
</ins><span class="cx">     # Obscure '@'.
</span><span class="cx">     $var =~ s/\@/\&amp;#64;/g;
</span><del>-    if (Bugzilla-&gt;params-&gt;{'utf8'}) {
</del><ins>+
+    state $use_utf8 = Bugzilla-&gt;params-&gt;{'utf8'};
+
+    if ($use_utf8) {
</ins><span class="cx">         # Remove control characters if the encoding is utf8.
</span><span class="cx">         # Other multibyte encodings may be using this range; so ignore if not utf8.
</span><span class="cx">         $var =~ s/(?![\t\r\n])[[:cntrl:]]//g;
</span><span class="lines">@@ -116,7 +101,7 @@
</span><span class="cx">         # |U+200e|Left-To-Right Mark        |0xe2 0x80 0x8e      |
</span><span class="cx">         # |U+200f|Right-To-Left Mark        |0xe2 0x80 0x8f      |
</span><span class="cx">         # --------------------------------------------------------
</span><del>-        $var =~ s/[\x{202a}-\x{202e}]//g;
</del><ins>+        $var =~ tr/\x{202a}-\x{202e}//d;
</ins><span class="cx">     }
</span><span class="cx">     return $var;
</span><span class="cx"> }
</span><span class="lines">@@ -123,6 +108,9 @@
</span><span class="cx"> 
</span><span class="cx"> sub html_light_quote {
</span><span class="cx">     my ($text) = @_;
</span><ins>+    # admin/table.html.tmpl calls |FILTER html_light| many times.
+    # There is no need to recreate the HTML::Scrubber object again and again.
+    my $scrubber = Bugzilla-&gt;process_cache-&gt;{html_scrubber};
</ins><span class="cx"> 
</span><span class="cx">     # List of allowed HTML elements having no attributes.
</span><span class="cx">     my @allow = qw(b strong em i u p br abbr acronym ins del cite code var
</span><span class="lines">@@ -144,7 +132,7 @@
</span><span class="cx">         $text =~ s#$chr($safe)$chr#&lt;$1&gt;#go;
</span><span class="cx">         return $text;
</span><span class="cx">     }
</span><del>-    else {
</del><ins>+    elsif (!$scrubber) {
</ins><span class="cx">         # We can be less restrictive. We can accept elements with attributes.
</span><span class="cx">         push(@allow, qw(a blockquote q span));
</span><span class="cx"> 
</span><span class="lines">@@ -164,12 +152,13 @@
</span><span class="cx">         # Specific rules for allowed elements. If no specific rule is set
</span><span class="cx">         # for a given element, then the default is used.
</span><span class="cx">         my @rules = (a =&gt; {
</span><del>-                           href  =&gt; $protocol_regexp,
-                           title =&gt; 1,
-                           id    =&gt; 1,
-                           name  =&gt; 1,
-                           class =&gt; 1,
-                           '*'   =&gt; 0, # Reject all other attributes.
</del><ins>+                           href   =&gt; $protocol_regexp,
+                           target =&gt; qr{^(?:_blank|_parent|_self|_top)$}i,
+                           title  =&gt; 1,
+                           id     =&gt; 1,
+                           name   =&gt; 1,
+                           class  =&gt; 1,
+                           '*'    =&gt; 0, # Reject all other attributes.
</ins><span class="cx">                           },
</span><span class="cx">                      blockquote =&gt; {
</span><span class="cx">                                     cite =&gt; $protocol_regexp,
</span><span class="lines">@@ -187,14 +176,14 @@
</span><span class="cx">                           },
</span><span class="cx">                     );
</span><span class="cx"> 
</span><del>-        my $scrubber = HTML::Scrubber-&gt;new(default =&gt; \@default,
-                                           allow   =&gt; \@allow,
-                                           rules   =&gt; \@rules,
-                                           comment =&gt; 0,
-                                           process =&gt; 0);
-
-        return $scrubber-&gt;scrub($text);
</del><ins>+        Bugzilla-&gt;process_cache-&gt;{html_scrubber} = $scrubber =
+          HTML::Scrubber-&gt;new(default =&gt; \@default,
+                              allow   =&gt; \@allow,
+                              rules   =&gt; \@rules,
+                              comment =&gt; 0,
+                              process =&gt; 0);
</ins><span class="cx">     }
</span><ins>+    return $scrubber-&gt;scrub($text);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub email_filter {
</span><span class="lines">@@ -253,6 +242,13 @@
</span><span class="cx">     return exists $ENV{'SERVER_SOFTWARE'} ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub i_am_webservice {
+    my $usage_mode = Bugzilla-&gt;usage_mode;
+    return $usage_mode == USAGE_MODE_XMLRPC
+           || $usage_mode == USAGE_MODE_JSON
+           || $usage_mode == USAGE_MODE_REST;
+}
+
</ins><span class="cx"> # This exists as a separate function from Bugzilla::CGI::redirect_to_https
</span><span class="cx"> # because we don't want to create a CGI object during XML-RPC calls
</span><span class="cx"> # (doing so can mess up XML-RPC).
</span><span class="lines">@@ -459,11 +455,6 @@
</span><span class="cx">         $wrappedcomment .= ($line . &quot;\n&quot;);
</span><span class="cx">       }
</span><span class="cx">       else {
</span><del>-        # Due to a segfault in Text::Tabs::expand() when processing tabs with
-        # Unicode (see http://rt.perl.org/rt3/Public/Bug/Display.html?id=52104),
-        # we have to remove tabs before processing the comment. This restriction
-        # can go away when we require Perl 5.8.9 or newer.
-        $line =~ s/\t/    /g;
</del><span class="cx">         $wrappedcomment .= (wrap('', '', $line) . &quot;\n&quot;);
</span><span class="cx">       }
</span><span class="cx">     }
</span><span class="lines">@@ -477,11 +468,11 @@
</span><span class="cx">     if (!$string) { return 0 }
</span><span class="cx">     if (length($string) &lt; $maxpos) { return length($string) }
</span><span class="cx">     my $wrappoint = rindex($string, &quot;,&quot;, $maxpos); # look for comma
</span><del>-    if ($wrappoint &lt; 0) {  # can't find comma
</del><ins>+    if ($wrappoint &lt;= 0) {  # can't find comma
</ins><span class="cx">         $wrappoint = rindex($string, &quot; &quot;, $maxpos); # look for space
</span><del>-        if ($wrappoint &lt; 0) {  # can't find space
</del><ins>+        if ($wrappoint &lt;= 0) {  # can't find space
</ins><span class="cx">             $wrappoint = rindex($string, &quot;-&quot;, $maxpos); # look for hyphen
</span><del>-            if ($wrappoint &lt; 0) {  # can't find hyphen
</del><ins>+            if ($wrappoint &lt;= 0) {  # can't find hyphen
</ins><span class="cx">                 $wrappoint = $maxpos;  # just truncate it
</span><span class="cx">             } else {
</span><span class="cx">                 $wrappoint++; # leave hyphen on the left side
</span><span class="lines">@@ -491,6 +482,36 @@
</span><span class="cx">     return $wrappoint;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub join_activity_entries {
+    my ($field, $current_change, $new_change) = @_;
+    # We need to insert characters as these were removed by old
+    # LogActivityEntry code.
+
+    return $new_change if $current_change eq '';
+
+    # Buglists and see_also need the comma restored
+    if ($field eq 'dependson' || $field eq 'blocked' || $field eq 'see_also') {
+        if (substr($new_change, 0, 1) eq ',' || substr($new_change, 0, 1) eq ' ') {
+            return $current_change . $new_change;
+        } else {
+            return $current_change . ', ' . $new_change;
+        }
+    }
+
+    # Assume bug_file_loc contain a single url, don't insert a delimiter
+    if ($field eq 'bug_file_loc') {
+        return $current_change . $new_change;
+    }
+
+    # All other fields get a space unless the first character of the second
+    # string is a comma or space
+    if (substr($new_change, 0, 1) eq ',' || substr($new_change, 0, 1) eq ' ') {
+        return $current_change . $new_change;
+    } else {
+        return $current_change . ' ' . $new_change;
+    }
+}
+
</ins><span class="cx"> sub wrap_hard {
</span><span class="cx">     my ($string, $columns) = @_;
</span><span class="cx">     local $Text::Wrap::columns = $columns;
</span><span class="lines">@@ -533,9 +554,14 @@
</span><span class="cx">     # In the database, this is the &quot;0&quot; date.
</span><span class="cx">     return undef if $date =~ /^0000/;
</span><span class="cx"> 
</span><del>-    # strptime($date) returns an empty array if $date has an invalid
-    # date format.
-    my @time = strptime($date);
</del><ins>+    my @time;
+    # Most dates will be in this format, avoid strptime's generic parser
+    if ($date =~ /^(\d{4})[\.-](\d{2})[\.-](\d{2})(?: (\d{2}):(\d{2}):(\d{2}))?$/) {
+        @time = ($6, $5, $4, $3, $2 - 1, $1 - 1900, undef);
+    }
+    else {
+        @time = strptime($date);
+    }
</ins><span class="cx"> 
</span><span class="cx">     unless (scalar @time) {
</span><span class="cx">         # If an unknown timezone is passed (such as MSK, for Moskow),
</span><span class="lines">@@ -547,10 +573,14 @@
</span><span class="cx"> 
</span><span class="cx">     return undef if !@time;
</span><span class="cx"> 
</span><del>-    # strptime() counts years from 1900, and months from 0 (January).
-    # We have to fix both values.
</del><ins>+    # strptime() counts years from 1900, except if they are older than 1901
+    # in which case it returns the full year (so 1890 -&gt; 1890, but 1984 -&gt; 84,
+    # and 3790 -&gt; 1890). We make a guess and assume that 1100 &lt;= year &lt; 3000.
+    $time[5] += 1900 if $time[5] &lt; 1100;
+
</ins><span class="cx">     my %args = (
</span><del>-        year   =&gt; $time[5] + 1900,
</del><ins>+        year   =&gt; $time[5],
+        # Months start from 0 (January).
</ins><span class="cx">         month  =&gt; $time[4] + 1,
</span><span class="cx">         day    =&gt; $time[3],
</span><span class="cx">         hour   =&gt; $time[2],
</span><span class="lines">@@ -571,6 +601,9 @@
</span><span class="cx">         delete $args{$arg} if !defined $args{$arg};
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # This module takes time to load and is only used here, so we
+    # |require| it here rather than |use| it.
+    require DateTime;
</ins><span class="cx">     my $dt = new DateTime(\%args);
</span><span class="cx"> 
</span><span class="cx">     # Now display the date using the given timezone,
</span><span class="lines">@@ -579,14 +612,6 @@
</span><span class="cx">     return $dt;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub file_mod_time {
-    my ($filename) = (@_);
-    my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
-        $atime,$mtime,$ctime,$blksize,$blocks)
-        = stat($filename);
-    return $mtime;
-}
-
</del><span class="cx"> sub bz_crypt {
</span><span class="cx">     my ($password, $salt) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -611,29 +636,22 @@
</span><span class="cx">         $algorithm = $1;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Wide characters cause crypt and Digest to die.
+    if (Bugzilla-&gt;params-&gt;{'utf8'}) {
+        utf8::encode($password) if utf8::is_utf8($password);
+    }
+
</ins><span class="cx">     my $crypted_password;
</span><span class="cx">     if (!$algorithm) {
</span><del>-        # Wide characters cause crypt to die
-        if (Bugzilla-&gt;params-&gt;{'utf8'}) {
-            utf8::encode($password) if utf8::is_utf8($password);
-        }
-    
</del><span class="cx">         # Crypt the password.
</span><span class="cx">         $crypted_password = crypt($password, $salt);
</span><del>-
-        # HACK: Perl has bug where returned crypted password is considered
-        # tainted. See http://rt.perl.org/rt3/Public/Bug/Display.html?id=59998
-        unless(tainted($password) || tainted($salt)) {
-            trick_taint($crypted_password);
-        } 
</del><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         my $hasher = Digest-&gt;new($algorithm);
</span><del>-        # We only want to use the first characters of the salt, no
-        # matter how long of a salt we may have been passed.
-        $salt = substr($salt, 0, PASSWORD_SALT_LENGTH);
</del><ins>+        # Newly created salts won't yet have a comma.
+        ($salt) = $salt =~ /^([^,]+),?/;
</ins><span class="cx">         $hasher-&gt;add($password, $salt);
</span><del>-        $crypted_password = $salt . $hasher-&gt;b64digest . &quot;{$algorithm}&quot;;
</del><ins>+        $crypted_password = $salt . ',' . $hasher-&gt;b64digest . &quot;{$algorithm}&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Return the crypted password.
</span><span class="lines">@@ -654,11 +672,18 @@
</span><span class="cx"> sub validate_email_syntax {
</span><span class="cx">     my ($addr) = @_;
</span><span class="cx">     my $match = Bugzilla-&gt;params-&gt;{'emailregexp'};
</span><ins>+    my $email = $addr . Bugzilla-&gt;params-&gt;{'emailsuffix'};
+    # This regexp follows RFC 2822 section 3.4.1.
+    my $addr_spec = $Email::Address::addr_spec;
+    # RFC 2822 section 2.1 specifies that email addresses must
+    # be made of US-ASCII characters only.
+    # Email::Address::addr_spec doesn't enforce this.
</ins><span class="cx">     # We set the max length to 127 to ensure addresses aren't truncated when
</span><span class="cx">     # inserted into the tokens.eventdata field.
</span><span class="cx">     if ($addr =~ /$match/
</span><del>-        &amp;&amp; $addr !~ /[\\\(\)&lt;&gt;&amp;,;:&quot;\[\] \t\r\n\P{ASCII}]/
-        &amp;&amp; length($addr) &lt;= 127)
</del><ins>+        &amp;&amp; $email !~ /\P{ASCII}/
+        &amp;&amp; $email =~ /^$addr_spec$/
+        &amp;&amp; length($email) &lt;= 127)
</ins><span class="cx">     {
</span><span class="cx">         # We assume these checks to suffice to consider the address untainted.
</span><span class="cx">         trick_taint($_[0]);
</span><span class="lines">@@ -667,6 +692,15 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub check_email_syntax {
+    my ($addr) = @_;
+
+    unless (validate_email_syntax(@_)) {
+        my $email = $addr . Bugzilla-&gt;params-&gt;{'emailsuffix'};
+        ThrowUserError('illegal_email_address', { addr =&gt; $email });
+    }
+}
+
</ins><span class="cx"> sub validate_date {
</span><span class="cx">     my ($date) = @_;
</span><span class="cx">     my $date2;
</span><span class="lines">@@ -726,10 +760,9 @@
</span><span class="cx">     $vars ||= {};
</span><span class="cx">     $vars-&gt;{'message'} = $name;
</span><span class="cx">     my $message;
</span><del>-    if (!$template-&gt;process('global/message.txt.tmpl', $vars, \$message)) {
-        require Bugzilla::Error;
-        Bugzilla::Error::ThrowTemplateError($template-&gt;error());
-    }
</del><ins>+    $template-&gt;process('global/message.txt.tmpl', $vars, \$message)
+      || ThrowTemplateError($template-&gt;error());
+
</ins><span class="cx">     # Remove the indenting that exists in messages.html.tmpl.
</span><span class="cx">     $message =~ s/^    //gm;
</span><span class="cx">     return $message;
</span><span class="lines">@@ -737,20 +770,19 @@
</span><span class="cx"> 
</span><span class="cx"> sub template_var {
</span><span class="cx">     my $name = shift;
</span><del>-    my $cache = Bugzilla-&gt;request_cache-&gt;{util_template_var} ||= {};
-    my $template = Bugzilla-&gt;template_inner;
-    my $lang = $template-&gt;context-&gt;{bz_language};
</del><ins>+    my $request_cache = Bugzilla-&gt;request_cache;
+    my $cache = $request_cache-&gt;{util_template_var} ||= {};
+    my $lang = $request_cache-&gt;{template_current_lang}-&gt;[0] || '';
</ins><span class="cx">     return $cache-&gt;{$lang}-&gt;{$name} if defined $cache-&gt;{$lang};
</span><ins>+
+    my $template = Bugzilla-&gt;template_inner($lang);
</ins><span class="cx">     my %vars;
</span><span class="cx">     # Note: If we suddenly start needing a lot of template_var variables,
</span><span class="cx">     # they should move into their own template, not field-descs.
</span><del>-    my $result = $template-&gt;process('global/field-descs.none.tmpl', 
-                                    { vars =&gt; \%vars, in_template_var =&gt; 1 });
-    # Bugzilla::Error can't be &quot;use&quot;d in Bugzilla::Util.
-    if (!$result) {
-        require Bugzilla::Error;
-        Bugzilla::Error::ThrowTemplateError($template-&gt;error);
-    }
</del><ins>+    $template-&gt;process('global/field-descs.none.tmpl',
+                       { vars =&gt; \%vars, in_template_var =&gt; 1 })
+      || ThrowTemplateError($template-&gt;error());
+
</ins><span class="cx">     $cache-&gt;{$lang} = \%vars;
</span><span class="cx">     return $vars{$name};
</span><span class="cx"> }
</span><span class="lines">@@ -757,11 +789,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub display_value {
</span><span class="cx">     my ($field, $value) = @_;
</span><del>-    my $value_descs = template_var('value_descs');
-    if (defined $value_descs-&gt;{$field}-&gt;{$value}) {
-        return $value_descs-&gt;{$field}-&gt;{$value};
-    }
-    return $value;
</del><ins>+    return template_var('value_descs')-&gt;{$field}-&gt;{$value} // $value;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub disable_utf8 {
</span><span class="lines">@@ -775,11 +803,8 @@
</span><span class="cx"> sub detect_encoding {
</span><span class="cx">     my $data = shift;
</span><span class="cx"> 
</span><del>-    if (!Bugzilla-&gt;feature('detect_charset')) {
-        require Bugzilla::Error;
-        Bugzilla::Error::ThrowCodeError('feature_disabled',
-            { feature =&gt; 'detect_charset' });
-    }
</del><ins>+    Bugzilla-&gt;feature('detect_charset')
+      || ThrowUserError('feature_disabled', { feature =&gt; 'detect_charset' });
</ins><span class="cx"> 
</span><span class="cx">     require Encode::Detect::Detector;
</span><span class="cx">     import Encode::Detect::Detector 'detect';
</span><span class="lines">@@ -800,12 +825,12 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Encode::Detect sometimes mis-detects various ISO encodings as iso-8859-8,
</span><del>-    # but Encode::Guess can usually tell which one it is.
-    if ($encoding &amp;&amp; $encoding eq 'iso-8859-8') {
</del><ins>+    # or cp1255, but Encode::Guess can usually tell which one it is.
+    if ($encoding &amp;&amp; ($encoding eq 'iso-8859-8' || $encoding eq 'cp1255')) {
</ins><span class="cx">         my $decoded_as = _guess_iso($data, 'iso-8859-8', 
</span><span class="cx">             # These are ordered this way because it gives the most 
</span><span class="cx">             # accurate results.
</span><del>-            qw(iso-8859-7 iso-8859-2));
</del><ins>+            qw(cp1252 iso-8859-7 iso-8859-2));
</ins><span class="cx">         $encoding = $decoded_as if $decoded_as;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -852,6 +877,7 @@
</span><span class="cx"> 
</span><span class="cx">   # Functions that tell you about your environment
</span><span class="cx">   my $is_cgi   = i_am_cgi();
</span><ins>+  my $is_webservice = i_am_webservice();
</ins><span class="cx">   my $urlbase  = correct_urlbase();
</span><span class="cx"> 
</span><span class="cx">   # Data manipulation
</span><span class="lines">@@ -865,9 +891,6 @@
</span><span class="cx">   format_time($time);
</span><span class="cx">   datetime_from($time, $timezone);
</span><span class="cx"> 
</span><del>-  # Functions for dealing with files
-  $time = file_mod_time($filename);
-
</del><span class="cx">   # Cryptographic Functions
</span><span class="cx">   $crypted_password = bz_crypt($password);
</span><span class="cx">   $new_password = generate_random_password($password_length);
</span><span class="lines">@@ -874,6 +897,7 @@
</span><span class="cx"> 
</span><span class="cx">   # Validation Functions
</span><span class="cx">   validate_email_syntax($email);
</span><ins>+  check_email_syntax($email);
</ins><span class="cx">   validate_date($date);
</span><span class="cx"> 
</span><span class="cx">   # DB-related functions
</span><span class="lines">@@ -981,6 +1005,11 @@
</span><span class="cx"> server. For example, it would return false if the caller is running
</span><span class="cx"> in a command-line script.
</span><span class="cx"> 
</span><ins>+=item C&lt;i_am_webservice()&gt;
+
+Tells you whether or not the current usage mode is WebServices related
+such as JSONRPC, XMLRPC, or REST.
+
</ins><span class="cx"> =item C&lt;correct_urlbase()&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns either the C&lt;sslbase&gt; or C&lt;urlbase&gt; parameter, depending on the
</span><span class="lines">@@ -1052,6 +1081,12 @@
</span><span class="cx"> $maxpos characters. If none of them is found, just split $string at $maxpos.
</span><span class="cx"> The search starts at $maxpos and goes back to the beginning of the string.
</span><span class="cx"> 
</span><ins>+=item C&lt;join_activity_entries($field, $current_change, $new_change)&gt;
+
+Joins two strings together so they appear as one. The field name is specified
+as the method of joining the two strings depends on this. Returns the
+combined string.
+
</ins><span class="cx"> =item C&lt;is_7bit_clean($str)&gt;
</span><span class="cx"> 
</span><span class="cx"> Returns true is the string contains only 7-bit characters (ASCII 32 through 126,
</span><span class="lines">@@ -1118,7 +1153,7 @@
</span><span class="cx"> Takes a time and converts it to the desired format and timezone.
</span><span class="cx"> If no format is given, the routine guesses the correct one and returns
</span><span class="cx"> an empty array if it cannot. If no timezone is given, the user's timezone
</span><del>-is used, as defined in his preferences.
</del><ins>+is used, as defined in their preferences.
</ins><span class="cx"> 
</span><span class="cx"> This routine is mainly called from templates to filter dates, see
</span><span class="cx"> &quot;FILTER time&quot; in L&lt;Bugzilla::Template&gt;.
</span><span class="lines">@@ -1134,18 +1169,6 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-
-=head2 Files
-
-=over 4
-
-=item C&lt;file_mod_time($filename)&gt;
-
-Takes a filename and returns the modification time. It returns it in the format
-of the &quot;mtime&quot; parameter of the perl &quot;stat&quot; function.
-
-=back
-
</del><span class="cx"> =head2 Cryptography
</span><span class="cx"> 
</span><span class="cx"> =over 4
</span><span class="lines">@@ -1187,6 +1210,12 @@
</span><span class="cx"> the check is successful, else returns 0.
</span><span class="cx"> Untaints C&lt;$email&gt; if successful.
</span><span class="cx"> 
</span><ins>+=item C&lt;check_email_syntax($email)&gt;
+
+Do a syntax checking for a legal email address and throws an error
+if the check fails.
+Untaints C&lt;$email&gt; if successful.
+
</ins><span class="cx"> =item C&lt;validate_date($date)&gt;
</span><span class="cx"> 
</span><span class="cx"> Make sure the date has the correct format and returns 1 if
</span><span class="lines">@@ -1210,3 +1239,19 @@
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item do_ssl_redirect_if_required
+
+=item validate_time
+
+=item is_ipv4
+
+=item is_ipv6
+
+=item display_value
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaVersionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Version.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Version.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Version.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,20 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Tiago R. Mello &lt;timello@async.com.br&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Version;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Version;
</del><ins>+use parent qw(Bugzilla::Object Exporter);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+@Bugzilla::Version::EXPORT = qw(vers_cmp);
</ins><span class="cx"> 
</span><del>-use Bugzilla::Install::Util qw(vers_cmp);
</del><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> 
</span><span class="lines">@@ -76,7 +68,7 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     my $product;
</span><del>-    if (ref $param) {
</del><ins>+    if (ref $param and !defined $param-&gt;{id}) {
</ins><span class="cx">         $product = $param-&gt;{product};
</span><span class="cx">         my $name = $param-&gt;{name};
</span><span class="cx">         if (!defined $product) {
</span><span class="lines">@@ -128,14 +120,18 @@
</span><span class="cx"> 
</span><span class="cx"> sub update {
</span><span class="cx">     my $self = shift;
</span><ins>+    my $dbh = Bugzilla-&gt;dbh;
+
+    $dbh-&gt;bz_start_transaction();
</ins><span class="cx">     my ($changes, $old_self) = $self-&gt;SUPER::update(@_);
</span><span class="cx"> 
</span><span class="cx">     if (exists $changes-&gt;{value}) {
</span><del>-        my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx">         $dbh-&gt;do('UPDATE bugs SET version = ?
</span><span class="cx">                   WHERE version = ? AND product_id = ?',
</span><span class="cx">                   undef, ($self-&gt;name, $old_self-&gt;name, $self-&gt;product_id));
</span><span class="cx">     }
</span><ins>+    $dbh-&gt;bz_commit_transaction();
+
</ins><span class="cx">     return $changes;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -143,6 +139,13 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><ins>+    $dbh-&gt;bz_start_transaction();
+
+    # Products must have at least one version.
+    if (scalar(@{$self-&gt;product-&gt;versions}) == 1) {
+        ThrowUserError('version_is_last', { version =&gt; $self });
+    }
+
</ins><span class="cx">     # The version cannot be removed if there are bugs
</span><span class="cx">     # associated with it.
</span><span class="cx">     if ($self-&gt;bug_count) {
</span><span class="lines">@@ -149,6 +152,8 @@
</span><span class="cx">         ThrowUserError(&quot;version_has_bugs&quot;, { nb =&gt; $self-&gt;bug_count });
</span><span class="cx">     }
</span><span class="cx">     $self-&gt;SUPER::remove_from_db();
</span><ins>+
+    $dbh-&gt;bz_commit_transaction();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###############################
</span><span class="lines">@@ -170,8 +175,8 @@
</span><span class="cx"> # Validators
</span><span class="cx"> ################################
</span><span class="cx"> 
</span><del>-sub set_name      { $_[0]-&gt;set('value', $_[1]);    }
-sub set_is_active { $_[0]-&gt;set('isactive', $_[1]); }
</del><ins>+sub set_value    { $_[0]-&gt;set('value', $_[1]);    }
+sub set_isactive { $_[0]-&gt;set('isactive', $_[1]); }
</ins><span class="cx"> 
</span><span class="cx"> sub _check_value {
</span><span class="cx">     my ($invocant, $name, undef, $params) = @_;
</span><span class="lines">@@ -197,6 +202,53 @@
</span><span class="cx">     return Bugzilla-&gt;user-&gt;check_can_admin_product($product-&gt;name);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+###############################
+#####     Functions        ####
+###############################
+
+# This is taken straight from Sort::Versions 1.5, which is not included
+# with perl by default.
+sub vers_cmp {
+    my ($a, $b) = @_;
+
+    # Remove leading zeroes - Bug 344661
+    $a =~ s/^0*(\d.+)/$1/;
+    $b =~ s/^0*(\d.+)/$1/;
+
+    my @A = ($a =~ /([-.]|\d+|[^-.\d]+)/g);
+    my @B = ($b =~ /([-.]|\d+|[^-.\d]+)/g);
+
+    my ($A, $B);
+    while (@A and @B) {
+        $A = shift @A;
+        $B = shift @B;
+        if ($A eq '-' and $B eq '-') {
+            next;
+        } elsif ( $A eq '-' ) {
+            return -1;
+        } elsif ( $B eq '-') {
+            return 1;
+        } elsif ($A eq '.' and $B eq '.') {
+            next;
+        } elsif ( $A eq '.' ) {
+            return -1;
+        } elsif ( $B eq '.' ) {
+            return 1;
+        } elsif ($A =~ /^\d+$/ and $B =~ /^\d+$/) {
+            if ($A =~ /^0/ || $B =~ /^0/) {
+                return $A cmp $B if $A cmp $B;
+            } else {
+                return $A &lt;=&gt; $B if $A &lt;=&gt; $B;
+            }
+        } else {
+            $A = uc $A;
+            $B = uc $B;
+            return $A cmp $B if $A cmp $B;
+        }
+    }
+    return @A &lt;=&gt; @B;
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -209,7 +261,9 @@
</span><span class="cx"> 
</span><span class="cx">     use Bugzilla::Version;
</span><span class="cx"> 
</span><del>-    my $version = new Bugzilla::Version({ name =&gt; $name, product =&gt; $product });
</del><ins>+    my $version = new Bugzilla::Version({ name =&gt; $name, product =&gt; $product_obj });
+    my $version = Bugzilla::Version-&gt;check({ name =&gt; $name, product =&gt; $product_obj });
+    my $version = Bugzilla::Version-&gt;check({ id =&gt; $id });
</ins><span class="cx"> 
</span><span class="cx">     my $value = $version-&gt;name;
</span><span class="cx">     my $product_id = $version-&gt;product_id;
</span><span class="lines">@@ -216,9 +270,9 @@
</span><span class="cx">     my $product = $version-&gt;product;
</span><span class="cx"> 
</span><span class="cx">     my $version = Bugzilla::Version-&gt;create(
</span><del>-        { value =&gt; $name, product =&gt; $product });
</del><ins>+        { value =&gt; $name, product =&gt; $product_obj });
</ins><span class="cx"> 
</span><del>-    $version-&gt;set_name($new_name);
</del><ins>+    $version-&gt;set_value($new_name);
</ins><span class="cx">     $version-&gt;update();
</span><span class="cx"> 
</span><span class="cx">     $version-&gt;remove_from_db;
</span><span class="lines">@@ -238,12 +292,74 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;bug_count()&gt;
</span><span class="cx"> 
</span><del>- Description: Returns the total of bugs that belong to the version.
</del><ins>+=over
</ins><span class="cx"> 
</span><del>- Params:      none.
</del><ins>+=item B&lt;Description&gt;
</ins><span class="cx"> 
</span><del>- Returns:     Integer with the number of bugs.
</del><ins>+Returns the total of bugs that belong to the version.
</ins><span class="cx"> 
</span><ins>+=item B&lt;Params&gt;
+
+none
+
+=item B&lt;Returns&gt;
+
+Integer with the number of bugs.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
+=head1 FUNCTIONS
+
+=over
+
+=item C&lt;vers_cmp($a, $b)&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This is a comparison function, like you would use in C&lt;sort&gt;, except that
+it compares two version numbers. So, for example, 2.10 would be greater
+than 2.2.
+
+It's based on versioncmp from L&lt;Sort::Versions&gt;, with some Bugzilla-specific
+fixes.
+
+=item B&lt;Params&gt;
+
+C&lt;$a&gt; and C&lt;$b&gt; - The versions you want to compare.
+
+=item B&lt;Returns&gt;
+
+C&lt;-1&gt; if C&lt;$a&gt; is less than C&lt;$b&gt;, C&lt;0&gt; if they are equal, or C&lt;1&gt; if C&lt;$a&gt;
+is greater than C&lt;$b&gt;.
+
+=back
+
+=back
+
</ins><span class="cx"> =cut
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item DEFAULT_VERSION
+
+=item set_isactive
+
+=item set_value
+
+=item product_id
+
+=item is_active
+
+=item remove_from_db
+
+=item product
+
+=item update
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceBugpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bug.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bug.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bug.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,44 +1,41 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
-#                 Tsahi Asher &lt;tsahi_75@yahoo.com&gt;
-#                 Noura Elhawary &lt;nelhawar@redhat.com&gt;
-#                 Frank Becker &lt;Frank@Frank-Becker.de&gt;
-#                 Dave Lawrence &lt;dkl@redhat.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Bug;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::WebService);
+
</ins><span class="cx"> use Bugzilla::Comment;
</span><ins>+use Bugzilla::Comment::TagWeights;
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><del>-use Bugzilla::WebService::Util qw(filter filter_wants validate);
</del><ins>+use Bugzilla::WebService::Util qw(extract_flags filter filter_wants validate translate);
</ins><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::BugMail;
</span><del>-use Bugzilla::Util qw(trick_taint trim);
</del><ins>+use Bugzilla::Util qw(trick_taint trim diff_arrays detaint_natural);
</ins><span class="cx"> use Bugzilla::Version;
</span><span class="cx"> use Bugzilla::Milestone;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Token qw(issue_hash_token);
</span><ins>+use Bugzilla::Search;
+use Bugzilla::Product;
+use Bugzilla::FlagType;
+use Bugzilla::Search::Quicksearch;
</ins><span class="cx"> 
</span><ins>+use List::Util qw(max);
+use List::MoreUtils qw(uniq);
+use Storable qw(dclone);
+
</ins><span class="cx"> #############
</span><span class="cx"> # Constants #
</span><span class="cx"> #############
</span><span class="lines">@@ -47,6 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> use constant DATE_FIELDS =&gt; {
</span><span class="cx">     comments =&gt; ['new_since'],
</span><ins>+    history  =&gt; ['new_since'],
</ins><span class="cx">     search   =&gt; ['last_change_time', 'creation_time'],
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -64,17 +62,41 @@
</span><span class="cx">     search
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-######################################################
-# Add aliases here for old method name compatibility #
-######################################################
</del><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    add_attachment
+    add_comment
+    attachments
+    comments
+    create
+    fields
+    get
+    history
+    legal_values
+    possible_duplicates
+    render_comment
+    search
+    search_comment_tags
+    update
+    update_attachment
+    update_comment_tags
+    update_see_also
+    update_tags
+);
</ins><span class="cx"> 
</span><del>-BEGIN { 
-  # In 3.0, get was called get_bugs
-  *get_bugs = \&amp;get;
-  # Before 3.4rc1, &quot;history&quot; was get_history.
-  *get_history = \&amp;history;
-}
</del><ins>+use constant ATTACHMENT_MAPPED_SETTERS =&gt; {
+    file_name =&gt; 'filename',
+    summary   =&gt; 'description',
+};
</ins><span class="cx"> 
</span><ins>+use constant ATTACHMENT_MAPPED_RETURNS =&gt; {
+    description =&gt; 'summary',
+    ispatch     =&gt; 'is_patch',
+    isprivate   =&gt; 'is_private',
+    isobsolete  =&gt; 'is_obsolete',
+    filename    =&gt; 'file_name',
+    mimetype    =&gt; 'content_type',
+};
+
</ins><span class="cx"> ###########
</span><span class="cx"> # Methods #
</span><span class="cx"> ###########
</span><span class="lines">@@ -82,6 +104,8 @@
</span><span class="cx"> sub fields {
</span><span class="cx">     my ($self, $params) = validate(@_, 'ids', 'names');
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
</ins><span class="cx">     my @fields;
</span><span class="cx">     if (defined $params-&gt;{ids}) {
</span><span class="cx">         my $ids = $params-&gt;{ids};
</span><span class="lines">@@ -117,11 +141,12 @@
</span><span class="cx"> 
</span><span class="cx">         my (@values, $has_values);
</span><span class="cx">         if ( ($field-&gt;is_select and $field-&gt;name ne 'product')
</span><del>-             or grep($_ eq $field-&gt;name, PRODUCT_SPECIFIC_FIELDS))
</del><ins>+             or grep($_ eq $field-&gt;name, PRODUCT_SPECIFIC_FIELDS)
+             or $field-&gt;name eq 'keywords')
</ins><span class="cx">         {
</span><span class="cx">              $has_values = 1;
</span><span class="cx">              @values = @{ $self-&gt;_legal_field_values({ field =&gt; $field }) };
</span><del>-        }
</del><ins>+        } 
</ins><span class="cx"> 
</span><span class="cx">         if (grep($_ eq $field-&gt;name, PRODUCT_SPECIFIC_FIELDS)) {
</span><span class="cx">              $value_field = 'product';
</span><span class="lines">@@ -179,6 +204,7 @@
</span><span class="cx">                     sort_key =&gt; $self-&gt;type('int', $sortkey),
</span><span class="cx">                     sortkey  =&gt; $self-&gt;type('int', $sortkey), # deprecated
</span><span class="cx">                     visibility_values =&gt; [$self-&gt;type('string', $product_name)],
</span><ins>+                    is_active         =&gt; $self-&gt;type('boolean', $value-&gt;is_active),
</ins><span class="cx">                 });
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="lines">@@ -186,6 +212,11 @@
</span><span class="cx"> 
</span><span class="cx">     elsif ($field_name eq 'bug_status') {
</span><span class="cx">         my @status_all = Bugzilla::Status-&gt;get_all;
</span><ins>+        my $initial_status = bless({ id =&gt; 0, name =&gt; '', is_open =&gt; 1, sortkey =&gt; 0,
+                                     can_change_to =&gt; Bugzilla::Status-&gt;can_change_to },
+                                   'Bugzilla::Status');
+        unshift(@status_all, $initial_status);
+
</ins><span class="cx">         foreach my $status (@status_all) {
</span><span class="cx">             my @can_change_to;
</span><span class="cx">             foreach my $change_to (@{ $status-&gt;can_change_to }) {
</span><span class="lines">@@ -211,6 +242,15 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    elsif ($field_name eq 'keywords') {
+        my @legal_keywords = Bugzilla::Keyword-&gt;get_all;
+        foreach my $value (@legal_keywords) {
+            push (@result, {
+               name     =&gt; $self-&gt;type('string', $value-&gt;name),
+               description =&gt; $self-&gt;type('string', $value-&gt;description),
+            });
+        }
+    }
</ins><span class="cx">     else {
</span><span class="cx">         my @values = Bugzilla::Field::Choice-&gt;type($field)-&gt;get_all();
</span><span class="cx">         foreach my $value (@values) {
</span><span class="lines">@@ -242,7 +282,7 @@
</span><span class="cx">     my $bug_ids = $params-&gt;{ids} || [];
</span><span class="cx">     my $comment_ids = $params-&gt;{comment_ids} || [];
</span><span class="cx"> 
</span><del>-    my $dbh  = Bugzilla-&gt;dbh;
</del><ins>+    my $dbh  = Bugzilla-&gt;switch_to_shadow_db();
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><span class="cx">     my %bugs;
</span><span class="lines">@@ -289,31 +329,74 @@
</span><span class="cx">     return { bugs =&gt; \%bugs, comments =&gt; \%comments };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub render_comment {
+    my ($self, $params) = @_;
+
+    unless (defined $params-&gt;{text}) {
+        ThrowCodeError('params_required',
+                       { function =&gt; 'Bug.render_comment',
+                         params   =&gt; ['text'] });
+    }
+
+    Bugzilla-&gt;switch_to_shadow_db();
+    my $bug = $params-&gt;{id} ? Bugzilla::Bug-&gt;check($params-&gt;{id}) : undef;
+
+    my $tmpl = '[% text FILTER quoteUrls(bug) %]';
+    my $html;
+    my $template = Bugzilla-&gt;template;
+    $template-&gt;process(
+        \$tmpl,
+        { bug =&gt; $bug, text =&gt; $params-&gt;{text}},
+        \$html
+    );
+
+    return { html =&gt; $html };
+}
+
</ins><span class="cx"> # Helper for Bug.comments
</span><span class="cx"> sub _translate_comment {
</span><del>-    my ($self, $comment, $filters) = @_;
</del><ins>+    my ($self, $comment, $filters, $types, $prefix) = @_;
</ins><span class="cx">     my $attach_id = $comment-&gt;is_about_attachment ? $comment-&gt;extra_data
</span><span class="cx">                                                   : undef;
</span><del>-    return filter $filters, {
</del><ins>+
+    my $comment_hash = {
</ins><span class="cx">         id         =&gt; $self-&gt;type('int', $comment-&gt;id),
</span><span class="cx">         bug_id     =&gt; $self-&gt;type('int', $comment-&gt;bug_id),
</span><del>-        creator    =&gt; $self-&gt;type('string', $comment-&gt;author-&gt;login),
-        author     =&gt; $self-&gt;type('string', $comment-&gt;author-&gt;login),
</del><ins>+        creator    =&gt; $self-&gt;type('email', $comment-&gt;author-&gt;login),
</ins><span class="cx">         time       =&gt; $self-&gt;type('dateTime', $comment-&gt;creation_ts),
</span><ins>+        creation_time =&gt; $self-&gt;type('dateTime', $comment-&gt;creation_ts),
</ins><span class="cx">         is_private =&gt; $self-&gt;type('boolean', $comment-&gt;is_private),
</span><span class="cx">         text       =&gt; $self-&gt;type('string', $comment-&gt;body_full),
</span><span class="cx">         attachment_id =&gt; $self-&gt;type('int', $attach_id),
</span><ins>+        count      =&gt; $self-&gt;type('int', $comment-&gt;count),
</ins><span class="cx">     };
</span><ins>+
+    # Don't load comment tags unless enabled
+    if (Bugzilla-&gt;params-&gt;{'comment_taggers_group'}) {
+        $comment_hash-&gt;{tags} = [
+            map { $self-&gt;type('string', $_) }
+            @{ $comment-&gt;tags }
+        ];
+    }
+
+    return filter($filters, $comment_hash, $types, $prefix);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub get {
</span><span class="cx">     my ($self, $params) = validate(@_, 'ids');
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db() unless Bugzilla-&gt;user-&gt;id;
+
</ins><span class="cx">     my $ids = $params-&gt;{ids};
</span><span class="cx">     defined $ids || ThrowCodeError('param_required', { param =&gt; 'ids' });
</span><span class="cx"> 
</span><del>-    my @bugs;
-    my @faults;
</del><ins>+    my (@bugs, @faults, @hashes);
+
+    # Cache permissions for bugs. This highly reduces the number of calls to the DB.
+    # visible_bugs() is only able to handle bug IDs, so we have to skip aliases.
+    my @int = grep { $_ =~ /^\d+$/ } @$ids;
+    Bugzilla-&gt;user-&gt;visible_bugs(\@int);
+
</ins><span class="cx">     foreach my $bug_id (@$ids) {
</span><span class="cx">         my $bug;
</span><span class="cx">         if ($params-&gt;{permissive}) {
</span><span class="lines">@@ -331,10 +414,18 @@
</span><span class="cx">         else {
</span><span class="cx">             $bug = Bugzilla::Bug-&gt;check($bug_id);
</span><span class="cx">         }
</span><del>-        push(@bugs, $self-&gt;_bug_to_hash($bug, $params));
</del><ins>+        push(@bugs, $bug);
+        push(@hashes, $self-&gt;_bug_to_hash($bug, $params));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return { bugs =&gt; \@bugs, faults =&gt; \@faults };
</del><ins>+    # Set the ETag before inserting the update tokens
+    # since the tokens will always be unique even if
+    # the data has not changed.
+    $self-&gt;bz_etag(\@hashes);
+
+    $self-&gt;_add_update_tokens($params, \@bugs, \@hashes);
+
+    return { bugs =&gt; \@hashes, faults =&gt; \@faults };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # this is a function that gets bug activity for list of bug ids 
</span><span class="lines">@@ -343,11 +434,15 @@
</span><span class="cx"> sub history {
</span><span class="cx">     my ($self, $params) = validate(@_, 'ids');
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
</ins><span class="cx">     my $ids = $params-&gt;{ids};
</span><span class="cx">     defined $ids || ThrowCodeError('param_required', { param =&gt; 'ids' });
</span><span class="cx"> 
</span><ins>+    my %api_name = reverse %{ Bugzilla::Bug::FIELD_MAP() };
+    $api_name{'bug_group'} = 'groups';
+
</ins><span class="cx">     my @return;
</span><del>-
</del><span class="cx">     foreach my $bug_id (@$ids) {
</span><span class="cx">         my %item;
</span><span class="cx">         my $bug = Bugzilla::Bug-&gt;check($bug_id);
</span><span class="lines">@@ -354,7 +449,7 @@
</span><span class="cx">         $bug_id = $bug-&gt;id;
</span><span class="cx">         $item{id} = $self-&gt;type('int', $bug_id);
</span><span class="cx"> 
</span><del>-        my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id);
</del><ins>+        my ($activity) = $bug-&gt;get_activity(undef, $params-&gt;{new_since});
</ins><span class="cx"> 
</span><span class="cx">         my @history;
</span><span class="cx">         foreach my $changeset (@$activity) {
</span><span class="lines">@@ -363,6 +458,7 @@
</span><span class="cx">             $bug_history{who}  = $self-&gt;type('string', $changeset-&gt;{who});
</span><span class="cx">             $bug_history{changes} = [];
</span><span class="cx">             foreach my $change (@{ $changeset-&gt;{changes} }) {
</span><ins>+                my $api_field = $api_name{$change-&gt;{fieldname}} || $change-&gt;{fieldname};
</ins><span class="cx">                 my $attach_id = delete $change-&gt;{attachid};
</span><span class="cx">                 if ($attach_id) {
</span><span class="cx">                     $change-&gt;{attachment_id} = $self-&gt;type('int', $attach_id);
</span><span class="lines">@@ -369,8 +465,8 @@
</span><span class="cx">                 }
</span><span class="cx">                 $change-&gt;{removed} = $self-&gt;type('string', $change-&gt;{removed});
</span><span class="cx">                 $change-&gt;{added}   = $self-&gt;type('string', $change-&gt;{added});
</span><del>-                $change-&gt;{field_name} = $self-&gt;type('string',
-                    delete $change-&gt;{fieldname});
</del><ins>+                $change-&gt;{field_name} = $self-&gt;type('string', $api_field);
+                delete $change-&gt;{fieldname};
</ins><span class="cx">                 push (@{$bug_history{changes}}, $change);
</span><span class="cx">             }
</span><span class="cx">             
</span><span class="lines">@@ -382,14 +478,7 @@
</span><span class="cx">         # alias is returned in case users passes a mixture of ids and aliases
</span><span class="cx">         # then they get to know which bug activity relates to which value  
</span><span class="cx">         # they passed
</span><del>-        if (Bugzilla-&gt;params-&gt;{'usebugaliases'}) {
-            $item{alias} = $self-&gt;type('string', $bug-&gt;alias);
-        }
-        else {
-            # For API reasons, we always want the value to appear, we just
-            # don't want it to have a value if aliases are turned off.
-            $item{alias} = undef;
-        }
</del><ins>+        $item{alias} = [ map { $self-&gt;type('string', $_) } @{ $bug-&gt;alias } ];
</ins><span class="cx"> 
</span><span class="cx">         push(@return, \%item);
</span><span class="cx">     }
</span><span class="lines">@@ -399,83 +488,120 @@
</span><span class="cx"> 
</span><span class="cx"> sub search {
</span><span class="cx">     my ($self, $params) = @_;
</span><ins>+    my $user = Bugzilla-&gt;user;
+    my $dbh  = Bugzilla-&gt;dbh;
</ins><span class="cx"> 
</span><del>-    if ( defined($params-&gt;{offset}) and !defined($params-&gt;{limit}) ) {
-        ThrowCodeError('param_required', 
</del><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
+    my $match_params = dclone($params);
+    delete $match_params-&gt;{include_fields};
+    delete $match_params-&gt;{exclude_fields};
+
+    # Determine whether this is a quicksearch query
+    if (exists $match_params-&gt;{quicksearch}) {
+        my $quicksearch = quicksearch($match_params-&gt;{'quicksearch'});
+        my $cgi = Bugzilla::CGI-&gt;new($quicksearch);
+        $match_params = $cgi-&gt;Vars;
+    }
+
+    if ( defined($match_params-&gt;{offset}) and !defined($match_params-&gt;{limit}) ) {
+        ThrowCodeError('param_required',
</ins><span class="cx">                        { param =&gt; 'limit', function =&gt; 'Bug.search()' });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $max_results = Bugzilla-&gt;params-&gt;{max_search_results};
</span><del>-    unless (defined $params-&gt;{limit} &amp;&amp; $params-&gt;{limit} == 0) {
-        if (!defined $params-&gt;{limit} || $params-&gt;{limit} &gt; $max_results) {
-            $params-&gt;{limit} = $max_results;
</del><ins>+    unless (defined $match_params-&gt;{limit} &amp;&amp; $match_params-&gt;{limit} == 0) {
+        if (!defined $match_params-&gt;{limit} || $match_params-&gt;{limit} &gt; $max_results) {
+            $match_params-&gt;{limit} = $max_results;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     else {
</span><del>-        delete $params-&gt;{limit};
-        delete $params-&gt;{offset};
</del><ins>+        delete $match_params-&gt;{limit};
+        delete $match_params-&gt;{offset};
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    $params = Bugzilla::Bug::map_fields($params);
-    delete $params-&gt;{WHERE};
</del><ins>+    $match_params = Bugzilla::Bug::map_fields($match_params);
</ins><span class="cx"> 
</span><del>-    unless (Bugzilla-&gt;user-&gt;is_timetracker) {
-        delete $params-&gt;{$_} foreach qw(estimated_time remaining_time deadline);
-    }
</del><ins>+    my %options = ( fields =&gt; ['bug_id'] );
</ins><span class="cx"> 
</span><ins>+    # Find the highest custom field id
+    my @field_ids = grep(/^f(\d+)$/, keys %$match_params);
+    my $last_field_id = @field_ids ? max @field_ids + 1 : 1;
+
</ins><span class="cx">     # Do special search types for certain fields.
</span><del>-    if ( my $bug_when = delete $params-&gt;{delta_ts} ) {
-        $params-&gt;{WHERE}-&gt;{'delta_ts &gt;= ?'} = $bug_when;
</del><ins>+    if (my $change_when = delete $match_params-&gt;{'delta_ts'}) {
+        $match_params-&gt;{&quot;f${last_field_id}&quot;} = 'delta_ts';
+        $match_params-&gt;{&quot;o${last_field_id}&quot;} = 'greaterthaneq';
+        $match_params-&gt;{&quot;v${last_field_id}&quot;} = $change_when;
+        $last_field_id++;
</ins><span class="cx">     }
</span><del>-    if (my $when = delete $params-&gt;{creation_ts}) {
-        $params-&gt;{WHERE}-&gt;{'creation_ts &gt;= ?'} = $when;
</del><ins>+    if (my $creation_when = delete $match_params-&gt;{'creation_ts'}) {
+        $match_params-&gt;{&quot;f${last_field_id}&quot;} = 'creation_ts';
+        $match_params-&gt;{&quot;o${last_field_id}&quot;} = 'greaterthaneq';
+        $match_params-&gt;{&quot;v${last_field_id}&quot;} = $creation_when;
+        $last_field_id++;
</ins><span class="cx">     }
</span><del>-    if (my $summary = delete $params-&gt;{short_desc}) {
-        my @strings = ref $summary ? @$summary : ($summary);
-        my @likes = (&quot;short_desc LIKE ?&quot;) x @strings;
-        my $clause = join(' OR ', @likes);
-        $params-&gt;{WHERE}-&gt;{&quot;($clause)&quot;} = [map { &quot;\%$_\%&quot; } @strings];
</del><ins>+
+    # Some fields require a search type such as short desc, keywords, etc.
+    foreach my $param (qw(short_desc longdesc status_whiteboard bug_file_loc)) {
+        if (defined $match_params-&gt;{$param} &amp;&amp; !defined $match_params-&gt;{$param . '_type'}) {
+            $match_params-&gt;{$param . '_type'} = 'allwordssubstr';
+        }
</ins><span class="cx">     }
</span><del>-    if (my $whiteboard = delete $params-&gt;{status_whiteboard}) {
-        my @strings = ref $whiteboard ? @$whiteboard : ($whiteboard);
-        my @likes = (&quot;status_whiteboard LIKE ?&quot;) x @strings;
-        my $clause = join(' OR ', @likes);
-        $params-&gt;{WHERE}-&gt;{&quot;($clause)&quot;} = [map { &quot;\%$_\%&quot; } @strings];
</del><ins>+    if (defined $match_params-&gt;{'keywords'} &amp;&amp; !defined $match_params-&gt;{'keywords_type'}) {
+        $match_params-&gt;{'keywords_type'} = 'allwords';
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Backwards compatibility with old method regarding role search
+    $match_params-&gt;{'reporter'} = delete $match_params-&gt;{'creator'} if $match_params-&gt;{'creator'};
+    foreach my $role (qw(assigned_to reporter qa_contact longdesc cc)) {
+        next if !exists $match_params-&gt;{$role};
+        my $value = delete $match_params-&gt;{$role};
+        $match_params-&gt;{&quot;f${last_field_id}&quot;} = $role;
+        $match_params-&gt;{&quot;o${last_field_id}&quot;} = &quot;anywordssubstr&quot;;
+        $match_params-&gt;{&quot;v${last_field_id}&quot;} = ref $value ? join(&quot; &quot;, @{$value}) : $value;
+        $last_field_id++;
+    }
+
</ins><span class="cx">     # If no other parameters have been passed other than limit and offset
</span><del>-    # and a WHERE parameter was not created earlier, then we throw error
-    # if system is configured to do so.
-    if (!$params-&gt;{WHERE}
-        &amp;&amp; !grep(!/(limit|offset)/i, keys %$params)
</del><ins>+    # then we throw error if system is configured to do so.
+    if (!grep(!/^(limit|offset)$/, keys %$match_params)
</ins><span class="cx">         &amp;&amp; !Bugzilla-&gt;params-&gt;{search_allow_no_criteria})
</span><span class="cx">     {
</span><span class="cx">         ThrowUserError('buglist_parameters_required');
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # We want include_fields and exclude_fields to be passed to
-    # _bug_to_hash but not to Bugzilla::Bug-&gt;match so we copy the 
-    # params and delete those before passing to Bugzilla::Bug-&gt;match.
-    my %match_params = %{ $params };
-    delete $match_params{'include_fields'};
-    delete $match_params{'exclude_fields'};
</del><ins>+    $options{order}  = [ split(/\s*,\s*/, delete $match_params-&gt;{order}) ] if $match_params-&gt;{order};
+    $options{params} = $match_params;
</ins><span class="cx"> 
</span><del>-    my $bugs = Bugzilla::Bug-&gt;match(\%match_params);
-    my $visible = Bugzilla-&gt;user-&gt;visible_bugs($bugs);
-    my @hashes = map { $self-&gt;_bug_to_hash($_, $params) } @$visible;
-    return { bugs =&gt; \@hashes };
</del><ins>+    my $search = new Bugzilla::Search(%options);
+    my ($data) = $search-&gt;data;
+
+    if (!scalar @$data) {
+        return { bugs =&gt; [] };
+    }
+
+    # Search.pm won't return bugs that the user shouldn't see so no filtering is needed.
+    my @bug_ids = map { $_-&gt;[0] } @$data;
+    my %bug_objects = map { $_-&gt;id =&gt; $_ } @{ Bugzilla::Bug-&gt;new_from_list(\@bug_ids) };
+    my @bugs = map { $bug_objects{$_} } @bug_ids;
+    @bugs = map { $self-&gt;_bug_to_hash($_, $params) } @bugs;
+
+    return { bugs =&gt; \@bugs };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub possible_duplicates {
</span><del>-    my ($self, $params) = validate(@_, 'product');
</del><ins>+    my ($self, $params) = validate(@_, 'products');
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
</ins><span class="cx">     # Undo the array-ification that validate() does, for &quot;summary&quot;.
</span><span class="cx">     $params-&gt;{summary} || ThrowCodeError('param_required',
</span><span class="cx">         { function =&gt; 'Bug.possible_duplicates', param =&gt; 'summary' });
</span><span class="cx"> 
</span><span class="cx">     my @products;
</span><del>-    foreach my $name (@{ $params-&gt;{'product'} || [] }) {
</del><ins>+    foreach my $name (@{ $params-&gt;{'products'} || [] }) {
</ins><span class="cx">         my $object = $user-&gt;can_enter_product($name, THROW_ERROR);
</span><span class="cx">         push(@products, $object);
</span><span class="cx">     }
</span><span class="lines">@@ -484,6 +610,7 @@
</span><span class="cx">         { summary =&gt; $params-&gt;{summary}, products =&gt; \@products,
</span><span class="cx">           limit   =&gt; $params-&gt;{limit} });
</span><span class="cx">     my @hashes = map { $self-&gt;_bug_to_hash($_, $params) } @$possible_dupes;
</span><ins>+    $self-&gt;_add_update_tokens($params, $possible_dupes, \@hashes);
</ins><span class="cx">     return { bugs =&gt; \@hashes };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -501,7 +628,7 @@
</span><span class="cx">     my $ids = delete $params-&gt;{ids};
</span><span class="cx">     defined $ids || ThrowCodeError('param_required', { param =&gt; 'ids' });
</span><span class="cx"> 
</span><del>-    my @bugs = map { Bugzilla::Bug-&gt;check($_) } @$ids;
</del><ins>+    my @bugs = map { Bugzilla::Bug-&gt;check_for_edit($_) } @$ids;
</ins><span class="cx"> 
</span><span class="cx">     my %values = %$params;
</span><span class="cx">     $values{other_bugs} = \@bugs;
</span><span class="lines">@@ -514,15 +641,25 @@
</span><span class="cx">     # have valid &quot;set_&quot; functions in Bugzilla::Bug, but shouldn't be
</span><span class="cx">     # called using those field names.
</span><span class="cx">     delete $values{dependencies};
</span><del>-    delete $values{flags};
</del><span class="cx"> 
</span><del>-    foreach my $bug (@bugs) {
-        if (!$user-&gt;can_edit_product($bug-&gt;product_obj-&gt;id) ) {
-            ThrowUserError(&quot;product_edit_denied&quot;,
-                          { product =&gt; $bug-&gt;product });
</del><ins>+    # For backwards compatibility, treat alias string or array as a set action
+    if (exists $values{alias}) {
+        if (not ref $values{alias}) {
+            $values{alias} = { set =&gt; [ $values{alias} ] };
</ins><span class="cx">         }
</span><ins>+        elsif (ref $values{alias} eq 'ARRAY') {
+            $values{alias} = { set =&gt; $values{alias} };
+        }
+    }
</ins><span class="cx"> 
</span><ins>+    my $flags = delete $values{flags};
+
+    foreach my $bug (@bugs) {
</ins><span class="cx">         $bug-&gt;set_all(\%values);
</span><ins>+        if ($flags) {
+            my ($old_flags, $new_flags) = extract_flags($flags, $bug);
+            $bug-&gt;set_flags($old_flags, $new_flags);
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my %all_changes;
</span><span class="lines">@@ -531,7 +668,7 @@
</span><span class="cx">         $all_changes{$bug-&gt;id} = $bug-&gt;update();
</span><span class="cx">     }
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><del>-    
</del><ins>+
</ins><span class="cx">     foreach my $bug (@bugs) {
</span><span class="cx">         $bug-&gt;send_changes($all_changes{$bug-&gt;id});
</span><span class="cx">     }
</span><span class="lines">@@ -552,14 +689,7 @@
</span><span class="cx">         # alias is returned in case users pass a mixture of ids and aliases,
</span><span class="cx">         # so that they can know which set of changes relates to which value
</span><span class="cx">         # they passed.
</span><del>-        if (Bugzilla-&gt;params-&gt;{'usebugaliases'}) {
-            $hash{alias} = $self-&gt;type('string', $bug-&gt;alias);
-        }
-        else {
-            # For API reasons, we always want the alias field to appear, we
-            # just don't want it to have a value if aliases are turned off.
-            $hash{alias} = $self-&gt;type('string', '');
-        }
</del><ins>+        $hash{alias} = [ map { $self-&gt;type('string', $_) } @{ $bug-&gt;alias } ];
</ins><span class="cx"> 
</span><span class="cx">         my %changes = %{ $all_changes{$bug-&gt;id} };
</span><span class="cx">         foreach my $field (keys %changes) {
</span><span class="lines">@@ -584,10 +714,31 @@
</span><span class="cx"> 
</span><span class="cx"> sub create {
</span><span class="cx">     my ($self, $params) = @_;
</span><ins>+    my $dbh = Bugzilla-&gt;dbh;
+
</ins><span class="cx">     Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><ins>+
</ins><span class="cx">     $params = Bugzilla::Bug::map_fields($params);
</span><ins>+
+    my $flags = delete $params-&gt;{flags};
+
+    # We start a nested transaction in case flag setting fails
+    # we want the bug creation to roll back as well.
+    $dbh-&gt;bz_start_transaction();
+
</ins><span class="cx">     my $bug = Bugzilla::Bug-&gt;create($params);
</span><del>-    Bugzilla::BugMail::Send($bug-&gt;bug_id, { changer =&gt; $bug-&gt;reporter });
</del><ins>+
+    # Set bug flags
+    if ($flags) {
+        my ($flags, $new_flags) = extract_flags($flags, $bug);
+        $bug-&gt;set_flags($flags, $new_flags);
+        $bug-&gt;update($bug-&gt;creation_ts);
+    }
+
+    $dbh-&gt;bz_commit_transaction();
+
+    $bug-&gt;send_changes();
+
</ins><span class="cx">     return { id =&gt; $self-&gt;type('int', $bug-&gt;bug_id) };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -594,6 +745,8 @@
</span><span class="cx"> sub legal_values {
</span><span class="cx">     my ($self, $params) = @_;
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
</ins><span class="cx">     defined $params-&gt;{field} 
</span><span class="cx">         or ThrowCodeError('param_required', { param =&gt; 'field' });
</span><span class="cx"> 
</span><span class="lines">@@ -652,16 +805,14 @@
</span><span class="cx">     defined $params-&gt;{data}
</span><span class="cx">         || ThrowCodeError('param_required', { param =&gt; 'data' });
</span><span class="cx"> 
</span><del>-    my @bugs = map { Bugzilla::Bug-&gt;check($_) } @{ $params-&gt;{ids} };
-    foreach my $bug (@bugs) {
-        Bugzilla-&gt;user-&gt;can_edit_product($bug-&gt;product_id)
-          || ThrowUserError(&quot;product_edit_denied&quot;, {product =&gt; $bug-&gt;product});
-    }
</del><ins>+    my @bugs = map { Bugzilla::Bug-&gt;check_for_edit($_) } @{ $params-&gt;{ids} };
</ins><span class="cx"> 
</span><span class="cx">     my @created;
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx">     my $timestamp = $dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</span><span class="cx"> 
</span><ins>+    my $flags = delete $params-&gt;{flags};
+
</ins><span class="cx">     foreach my $bug (@bugs) {
</span><span class="cx">         my $attachment = Bugzilla::Attachment-&gt;create({
</span><span class="cx">             bug         =&gt; $bug,
</span><span class="lines">@@ -673,6 +824,13 @@
</span><span class="cx">             ispatch     =&gt; $params-&gt;{is_patch},
</span><span class="cx">             isprivate   =&gt; $params-&gt;{is_private},
</span><span class="cx">         });
</span><ins>+
+        if ($flags) {
+            my ($old_flags, $new_flags) = extract_flags($flags, $bug, $attachment);
+            $attachment-&gt;set_flags($old_flags, $new_flags);
+        }
+
+        $attachment-&gt;update($timestamp);
</ins><span class="cx">         my $comment = $params-&gt;{comment} || '';
</span><span class="cx">         $attachment-&gt;bug-&gt;add_comment($comment, 
</span><span class="cx">             { isprivate  =&gt; $attachment-&gt;isprivate,
</span><span class="lines">@@ -685,18 +843,130 @@
</span><span class="cx"> 
</span><span class="cx">     $_-&gt;send_changes() foreach @bugs;
</span><span class="cx"> 
</span><del>-    my %attachments = map { $_-&gt;id =&gt; $self-&gt;_attachment_to_hash($_, $params) }
-                          @created;
</del><ins>+    my @created_ids = map { $_-&gt;id } @created;
</ins><span class="cx"> 
</span><del>-    return { attachments =&gt; \%attachments };
</del><ins>+    return { ids =&gt; \@created_ids };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub update_attachment {
+    my ($self, $params) = validate(@_, 'ids');
+
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+    my $dbh = Bugzilla-&gt;dbh;
+
+    my $ids = delete $params-&gt;{ids};
+    defined $ids || ThrowCodeError('param_required', { param =&gt; 'ids' });
+
+    # Some fields cannot be sent to set_all
+    foreach my $key (qw(login password token)) {
+        delete $params-&gt;{$key};
+    }
+
+    $params = translate($params, ATTACHMENT_MAPPED_SETTERS);
+
+    # Get all the attachments, after verifying that they exist and are editable
+    my @attachments = ();
+    my %bugs = ();
+    foreach my $id (@$ids) {
+        my $attachment = Bugzilla::Attachment-&gt;new($id)
+          || ThrowUserError(&quot;invalid_attach_id&quot;, { attach_id =&gt; $id });
+        my $bug = $attachment-&gt;bug;
+        $attachment-&gt;_check_bug;
+
+        push @attachments, $attachment;
+        $bugs{$bug-&gt;id} = $bug;
+    }
+
+    my $flags = delete $params-&gt;{flags};
+    my $comment = delete $params-&gt;{comment};
+
+    # Update the values
+    foreach my $attachment (@attachments) {
+        my ($update_flags, $new_flags) = $flags
+            ? extract_flags($flags, $attachment-&gt;bug, $attachment)
+            : ([], []);
+        if ($attachment-&gt;validate_can_edit) {
+            $attachment-&gt;set_all($params);
+            $attachment-&gt;set_flags($update_flags, $new_flags) if $flags;
+        }
+        elsif (scalar @$update_flags &amp;&amp; !scalar(@$new_flags) &amp;&amp; !scalar keys %$params) {
+            # Requestees can set flags targetted to them, even if they cannot
+            # edit the attachment. Flag setters can edit their own flags too.
+            my %flag_list = map { $_-&gt;{id} =&gt; $_ } @$update_flags;
+            my $flag_objs = Bugzilla::Flag-&gt;new_from_list([ keys %flag_list ]);
+            my @editable_flags;
+            foreach my $flag_obj (@$flag_objs) {
+                if ($flag_obj-&gt;setter_id == $user-&gt;id
+                    || ($flag_obj-&gt;requestee_id &amp;&amp; $flag_obj-&gt;requestee_id == $user-&gt;id))
+                {
+                    push(@editable_flags, $flag_list{$flag_obj-&gt;id});
+                }
+            }
+            if (!scalar @editable_flags) {
+                ThrowUserError(&quot;illegal_attachment_edit&quot;, { attach_id =&gt; $attachment-&gt;id });
+            }
+            $attachment-&gt;set_flags(\@editable_flags, []);
+        }
+        else {
+            ThrowUserError(&quot;illegal_attachment_edit&quot;, { attach_id =&gt; $attachment-&gt;id });
+        }
+    }
+
+    $dbh-&gt;bz_start_transaction();
+
+    # Do the actual update and get information to return to user
+    my @result;
+    foreach my $attachment (@attachments) {
+        my $changes = $attachment-&gt;update();
+
+        if ($comment = trim($comment)) {
+            $attachment-&gt;bug-&gt;add_comment($comment,
+                { isprivate  =&gt; $attachment-&gt;isprivate,
+                  type       =&gt; CMT_ATTACHMENT_UPDATED,
+                  extra_data =&gt; $attachment-&gt;id });
+        }
+
+        $changes = translate($changes, ATTACHMENT_MAPPED_RETURNS);
+
+        my %hash = (
+            id               =&gt; $self-&gt;type('int', $attachment-&gt;id),
+            last_change_time =&gt; $self-&gt;type('dateTime', $attachment-&gt;modification_time),
+            changes          =&gt; {},
+        );
+
+        foreach my $field (keys %$changes) {
+            my $change = $changes-&gt;{$field};
+
+            # We normalize undef to an empty string, so that the API
+            # stays consistent for things like Deadline that can become
+            # empty.
+            $hash{changes}-&gt;{$field} = {
+                removed =&gt; $self-&gt;type('string', $change-&gt;[0] // ''),
+                added   =&gt; $self-&gt;type('string', $change-&gt;[1] // '')
+            };
+        }
+
+        push(@result, \%hash);
+    }
+
+    $dbh-&gt;bz_commit_transaction();
+
+    # Email users about the change
+    foreach my $bug (values %bugs) {
+        $bug-&gt;update();
+        $bug-&gt;send_changes();
+    }
+
+    # Return the information to the user
+    return { attachments =&gt; \@result };
+}
+
</ins><span class="cx"> sub add_comment {
</span><span class="cx">     my ($self, $params) = @_;
</span><del>-    
-    #The user must login in order add a comment
-    Bugzilla-&gt;login(LOGIN_REQUIRED);
-    
</del><ins>+
+    # The user must login in order add a comment
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+
</ins><span class="cx">     # Check parameters
</span><span class="cx">     defined $params-&gt;{id} 
</span><span class="cx">         || ThrowCodeError('param_required', { param =&gt; 'id' }); 
</span><span class="lines">@@ -704,11 +974,8 @@
</span><span class="cx">     (defined $comment &amp;&amp; trim($comment) ne '')
</span><span class="cx">         || ThrowCodeError('param_required', { param =&gt; 'comment' });
</span><span class="cx">     
</span><del>-    my $bug = Bugzilla::Bug-&gt;check($params-&gt;{id});
-    
-    Bugzilla-&gt;user-&gt;can_edit_product($bug-&gt;product_id)
-        || ThrowUserError(&quot;product_edit_denied&quot;, {product =&gt; $bug-&gt;product});
-    
</del><ins>+    my $bug = Bugzilla::Bug-&gt;check_for_edit($params-&gt;{id});
+
</ins><span class="cx">     # Backwards-compatibility for versions before 3.6    
</span><span class="cx">     if (defined $params-&gt;{private}) {
</span><span class="cx">         $params-&gt;{is_private} = delete $params-&gt;{private};
</span><span class="lines">@@ -716,22 +983,13 @@
</span><span class="cx">     # Append comment
</span><span class="cx">     $bug-&gt;add_comment($comment, { isprivate =&gt; $params-&gt;{is_private},
</span><span class="cx">                                   work_time =&gt; $params-&gt;{work_time} });
</span><del>-    
-    # Capture the call to bug-&gt;update (which creates the new comment) in 
-    # a transaction so we're sure to get the correct comment_id.
-    
-    my $dbh = Bugzilla-&gt;dbh;
-    $dbh-&gt;bz_start_transaction();
-    
</del><span class="cx">     $bug-&gt;update();
</span><del>-    
-    my $new_comment_id = $dbh-&gt;bz_last_key('longdescs', 'comment_id');
-    
-    $dbh-&gt;bz_commit_transaction();
-    
</del><ins>+
+    my $new_comment_id = $bug-&gt;{added_comments}[0]-&gt;id;
+
</ins><span class="cx">     # Send mail.
</span><del>-    Bugzilla::BugMail::Send($bug-&gt;bug_id, { changer =&gt; Bugzilla-&gt;user });
-    
</del><ins>+    Bugzilla::BugMail::Send($bug-&gt;bug_id, { changer =&gt; $user });
+
</ins><span class="cx">     return { id =&gt; $self-&gt;type('int', $new_comment_id) };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -749,10 +1007,7 @@
</span><span class="cx"> 
</span><span class="cx">     my @bugs;
</span><span class="cx">     foreach my $id (@{ $params-&gt;{ids} }) {
</span><del>-        my $bug = Bugzilla::Bug-&gt;check($id);
-        $user-&gt;can_edit_product($bug-&gt;product_id)
-            || ThrowUserError(&quot;product_edit_denied&quot;, 
-                              { product =&gt; $bug-&gt;product });
</del><ins>+        my $bug = Bugzilla::Bug-&gt;check_for_edit($id);
</ins><span class="cx">         push(@bugs, $bug);
</span><span class="cx">         if ($remove) {
</span><span class="cx">             $bug-&gt;remove_see_also($_) foreach @$remove;
</span><span class="lines">@@ -785,6 +1040,8 @@
</span><span class="cx"> sub attachments {
</span><span class="cx">     my ($self, $params) = validate(@_, 'ids', 'attachment_ids');
</span><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db() unless Bugzilla-&gt;user-&gt;id;
+
</ins><span class="cx">     if (!(defined $params-&gt;{ids}
</span><span class="cx">           or defined $params-&gt;{attachment_ids}))
</span><span class="cx">     {
</span><span class="lines">@@ -821,6 +1078,115 @@
</span><span class="cx">     return { bugs =&gt; \%bugs, attachments =&gt; \%attachments };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub update_tags {
+    my ($self, $params) = @_;
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    my $ids  = $params-&gt;{ids};
+    my $tags = $params-&gt;{tags};
+
+    ThrowCodeError('param_required',
+                   { function =&gt; 'Bug.update_tags', 
+                     param    =&gt; 'ids' }) if !defined $ids;
+
+    ThrowCodeError('param_required',
+                   { function =&gt; 'Bug.update_tags', 
+                     param    =&gt; 'tags' }) if !defined $tags;
+
+    my %changes;
+    foreach my $bug_id (@$ids) {
+        my $bug = Bugzilla::Bug-&gt;check($bug_id);
+        my @old_tags = @{ $bug-&gt;tags };
+
+        $bug-&gt;remove_tag($_) foreach @{ $tags-&gt;{remove} || [] };
+        $bug-&gt;add_tag($_) foreach @{ $tags-&gt;{add} || [] };
+
+        my ($removed, $added) = diff_arrays(\@old_tags, $bug-&gt;tags);
+
+        my @removed = map { $self-&gt;type('string', $_) } @$removed;
+        my @added   = map { $self-&gt;type('string', $_) } @$added;
+
+        $changes{$bug-&gt;id}-&gt;{tags} = {
+            removed =&gt; \@removed,
+            added   =&gt; \@added
+        };
+    }
+
+    return { changes =&gt; \%changes };
+}
+
+sub update_comment_tags {
+    my ($self, $params) = @_;
+
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+    Bugzilla-&gt;params-&gt;{'comment_taggers_group'}
+        || ThrowUserError(&quot;comment_tag_disabled&quot;);
+    $user-&gt;can_tag_comments
+        || ThrowUserError(&quot;auth_failure&quot;,
+                          { group  =&gt; Bugzilla-&gt;params-&gt;{'comment_taggers_group'},
+                            action =&gt; &quot;update&quot;,
+                            object =&gt; &quot;comment_tags&quot; });
+
+    my $comment_id  = $params-&gt;{comment_id}
+        // ThrowCodeError('param_required',
+                          { function =&gt; 'Bug.update_comment_tags',
+                            param    =&gt; 'comment_id' });
+
+    ThrowCodeError('param_integer_required', { function =&gt; 'Bug.update_comment_tags',
+                                               param =&gt; 'comment_id' })
+      unless $comment_id =~ /^[0-9]+$/;
+
+    my $comment = Bugzilla::Comment-&gt;new($comment_id)
+        || return [];
+    $comment-&gt;bug-&gt;check_is_visible();
+    if ($comment-&gt;is_private &amp;&amp; !$user-&gt;is_insider) {
+        ThrowUserError('comment_is_private', { id =&gt; $comment_id });
+    }
+
+    my $dbh = Bugzilla-&gt;dbh;
+    $dbh-&gt;bz_start_transaction();
+    foreach my $tag (@{ $params-&gt;{add} || [] }) {
+        $comment-&gt;add_tag($tag) if defined $tag;
+    }
+    foreach my $tag (@{ $params-&gt;{remove} || [] }) {
+        $comment-&gt;remove_tag($tag) if defined $tag;
+    }
+    $comment-&gt;update();
+    $dbh-&gt;bz_commit_transaction();
+
+    return $comment-&gt;tags;
+}
+
+sub search_comment_tags {
+    my ($self, $params) = @_;
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+    Bugzilla-&gt;params-&gt;{'comment_taggers_group'}
+        || ThrowUserError(&quot;comment_tag_disabled&quot;);
+    Bugzilla-&gt;user-&gt;can_tag_comments
+        || ThrowUserError(&quot;auth_failure&quot;, { group  =&gt; Bugzilla-&gt;params-&gt;{'comment_taggers_group'},
+                                            action =&gt; &quot;search&quot;,
+                                            object =&gt; &quot;comment_tags&quot;});
+
+    my $query = $params-&gt;{query};
+    $query
+        // ThrowCodeError('param_required', { param =&gt; 'query' });
+    my $limit = $params-&gt;{limit} || 7;
+    detaint_natural($limit)
+        || ThrowCodeError('param_must_be_numeric', { param    =&gt; 'limit',
+                                                     function =&gt; 'Bug.search_comment_tags' });
+
+
+    my $tags = Bugzilla::Comment::TagWeights-&gt;match({
+        WHERE =&gt; {
+            'tag LIKE ?' =&gt; &quot;\%$query\%&quot;,
+        },
+        LIMIT =&gt; $limit,
+    });
+    return [ map { $_-&gt;tag } @$tags ];
+}
+
</ins><span class="cx"> ##############################
</span><span class="cx"> # Private Helper Subroutines #
</span><span class="cx"> ##############################
</span><span class="lines">@@ -836,18 +1202,15 @@
</span><span class="cx">     # All the basic bug attributes are here, in alphabetical order.
</span><span class="cx">     # A bug attribute is &quot;basic&quot; if it doesn't require an additional
</span><span class="cx">     # database call to get the info.
</span><del>-    my %item = (
-        alias            =&gt; $self-&gt;type('string', $bug-&gt;alias),
-        classification   =&gt; $self-&gt;type('string', $bug-&gt;classification),
-        component        =&gt; $self-&gt;type('string', $bug-&gt;component),
-        creation_time    =&gt; $self-&gt;type('dateTime', $bug-&gt;creation_ts),
</del><ins>+    my %item = %{ filter $params, {
+        # No need to format $bug-&gt;deadline specially, because Bugzilla::Bug
+        # already does it for us.
+        deadline         =&gt; $self-&gt;type('string', $bug-&gt;deadline),
</ins><span class="cx">         id               =&gt; $self-&gt;type('int', $bug-&gt;bug_id),
</span><span class="cx">         is_confirmed     =&gt; $self-&gt;type('boolean', $bug-&gt;everconfirmed),
</span><del>-        last_change_time =&gt; $self-&gt;type('dateTime', $bug-&gt;delta_ts),
</del><span class="cx">         op_sys           =&gt; $self-&gt;type('string', $bug-&gt;op_sys),
</span><span class="cx">         platform         =&gt; $self-&gt;type('string', $bug-&gt;rep_platform),
</span><span class="cx">         priority         =&gt; $self-&gt;type('string', $bug-&gt;priority),
</span><del>-        product          =&gt; $self-&gt;type('string', $bug-&gt;product),
</del><span class="cx">         resolution       =&gt; $self-&gt;type('string', $bug-&gt;resolution),
</span><span class="cx">         severity         =&gt; $self-&gt;type('string', $bug-&gt;bug_severity),
</span><span class="cx">         status           =&gt; $self-&gt;type('string', $bug-&gt;bug_status),
</span><span class="lines">@@ -856,25 +1219,38 @@
</span><span class="cx">         url              =&gt; $self-&gt;type('string', $bug-&gt;bug_file_loc),
</span><span class="cx">         version          =&gt; $self-&gt;type('string', $bug-&gt;version),
</span><span class="cx">         whiteboard       =&gt; $self-&gt;type('string', $bug-&gt;status_whiteboard),
</span><del>-    );
</del><ins>+    } };
</ins><span class="cx"> 
</span><del>-
-    # First we handle any fields that require extra SQL calls.
-    # We don't do the SQL calls at all if the filter would just
-    # eliminate them anyway.
</del><ins>+    # First we handle any fields that require extra work (such as date parsing
+    # or SQL calls).
+    if (filter_wants $params, 'alias') {
+        $item{alias} = [ map { $self-&gt;type('string', $_) } @{ $bug-&gt;alias } ];
+    }
</ins><span class="cx">     if (filter_wants $params, 'assigned_to') {
</span><del>-        $item{'assigned_to'} = $self-&gt;type('string', $bug-&gt;assigned_to-&gt;login);
</del><ins>+        $item{'assigned_to'} = $self-&gt;type('email', $bug-&gt;assigned_to-&gt;login);
+        $item{'assigned_to_detail'} = $self-&gt;_user_to_hash($bug-&gt;assigned_to, $params, undef, 'assigned_to');
</ins><span class="cx">     }
</span><span class="cx">     if (filter_wants $params, 'blocks') {
</span><span class="cx">         my @blocks = map { $self-&gt;type('int', $_) } @{ $bug-&gt;blocked };
</span><span class="cx">         $item{'blocks'} = \@blocks;
</span><span class="cx">     }
</span><ins>+    if (filter_wants $params, 'classification') {
+        $item{classification} = $self-&gt;type('string', $bug-&gt;classification);
+    }
+    if (filter_wants $params, 'component') {
+        $item{component} = $self-&gt;type('string', $bug-&gt;component);
+    }
</ins><span class="cx">     if (filter_wants $params, 'cc') {
</span><del>-        my @cc = map { $self-&gt;type('string', $_) } @{ $bug-&gt;cc || [] };
</del><ins>+        my @cc = map { $self-&gt;type('email', $_) } @{ $bug-&gt;cc };
</ins><span class="cx">         $item{'cc'} = \@cc;
</span><ins>+        $item{'cc_detail'} = [ map { $self-&gt;_user_to_hash($_, $params, undef, 'cc') } @{ $bug-&gt;cc_users } ];
</ins><span class="cx">     }
</span><ins>+    if (filter_wants $params, 'creation_time') {
+        $item{'creation_time'} = $self-&gt;type('dateTime', $bug-&gt;creation_ts);
+    }
</ins><span class="cx">     if (filter_wants $params, 'creator') {
</span><del>-        $item{'creator'} = $self-&gt;type('string', $bug-&gt;reporter-&gt;login);
</del><ins>+        $item{'creator'} = $self-&gt;type('email', $bug-&gt;reporter-&gt;login);
+        $item{'creator_detail'} = $self-&gt;_user_to_hash($bug-&gt;reporter, $params, undef, 'creator');
</ins><span class="cx">     }
</span><span class="cx">     if (filter_wants $params, 'depends_on') {
</span><span class="cx">         my @depends_on = map { $self-&gt;type('int', $_) } @{ $bug-&gt;dependson };
</span><span class="lines">@@ -896,9 +1272,18 @@
</span><span class="cx">                        @{ $bug-&gt;keyword_objects };
</span><span class="cx">         $item{'keywords'} = \@keywords;
</span><span class="cx">     }
</span><ins>+    if (filter_wants $params, 'last_change_time') {
+        $item{'last_change_time'} = $self-&gt;type('dateTime', $bug-&gt;delta_ts);
+    }
+    if (filter_wants $params, 'product') {
+        $item{product} = $self-&gt;type('string', $bug-&gt;product);
+    }
</ins><span class="cx">     if (filter_wants $params, 'qa_contact') {
</span><span class="cx">         my $qa_login = $bug-&gt;qa_contact ? $bug-&gt;qa_contact-&gt;login : '';
</span><del>-        $item{'qa_contact'} = $self-&gt;type('string', $qa_login);
</del><ins>+        $item{'qa_contact'} = $self-&gt;type('email', $qa_login);
+        if ($bug-&gt;qa_contact) {
+            $item{'qa_contact_detail'} = $self-&gt;_user_to_hash($bug-&gt;qa_contact, $params, undef, 'qa_contact');
+        }
</ins><span class="cx">     }
</span><span class="cx">     if (filter_wants $params, 'see_also') {
</span><span class="cx">         my @see_also = map { $self-&gt;type('string', $_-&gt;name) }
</span><span class="lines">@@ -905,16 +1290,24 @@
</span><span class="cx">                        @{ $bug-&gt;see_also };
</span><span class="cx">         $item{'see_also'} = \@see_also;
</span><span class="cx">     }
</span><ins>+    if (filter_wants $params, 'flags') {
+        $item{'flags'} = [ map { $self-&gt;_flag_to_hash($_) } @{$bug-&gt;flags} ];
+    }
+    if (filter_wants $params, 'tags', 'extra') {
+        $item{'tags'} = $bug-&gt;tags;
+    }
</ins><span class="cx"> 
</span><span class="cx">     # And now custom fields
</span><span class="cx">     my @custom_fields = Bugzilla-&gt;active_custom_fields;
</span><span class="cx">     foreach my $field (@custom_fields) {
</span><span class="cx">         my $name = $field-&gt;name;
</span><del>-        next if !filter_wants $params, $name;
</del><ins>+        next if !filter_wants($params, $name, ['default', 'custom']);
</ins><span class="cx">         if ($field-&gt;type == FIELD_TYPE_BUG_ID) {
</span><span class="cx">             $item{$name} = $self-&gt;type('int', $bug-&gt;$name);
</span><span class="cx">         }
</span><del>-        elsif ($field-&gt;type == FIELD_TYPE_DATETIME) {
</del><ins>+        elsif ($field-&gt;type == FIELD_TYPE_DATETIME
+               || $field-&gt;type == FIELD_TYPE_DATE)
+        {
</ins><span class="cx">             $item{$name} = $self-&gt;type('dateTime', $bug-&gt;$name);
</span><span class="cx">         }
</span><span class="cx">         elsif ($field-&gt;type == FIELD_TYPE_MULTI_SELECT) {
</span><span class="lines">@@ -928,34 +1321,43 @@
</span><span class="cx"> 
</span><span class="cx">     # Timetracking fields are only sent if the user can see them.
</span><span class="cx">     if (Bugzilla-&gt;user-&gt;is_timetracker) {
</span><del>-        $item{'estimated_time'} = $self-&gt;type('double', $bug-&gt;estimated_time);
-        $item{'remaining_time'} = $self-&gt;type('double', $bug-&gt;remaining_time);
-        # No need to format $bug-&gt;deadline specially, because Bugzilla::Bug
-        # already does it for us.
-        $item{'deadline'} = $self-&gt;type('string', $bug-&gt;deadline);
</del><ins>+        if (filter_wants $params, 'estimated_time') {
+            $item{'estimated_time'} = $self-&gt;type('double', $bug-&gt;estimated_time);
+        }
+        if (filter_wants $params, 'remaining_time') {
+            $item{'remaining_time'} = $self-&gt;type('double', $bug-&gt;remaining_time);
+        }
+        if (filter_wants $params, 'actual_time') {
+            $item{'actual_time'} = $self-&gt;type('double', $bug-&gt;actual_time);
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (Bugzilla-&gt;user-&gt;id) {
-        my $token = issue_hash_token([$bug-&gt;id, $bug-&gt;delta_ts]);
-        $item{'update_token'} = $self-&gt;type('string', $token);
-    }
-
</del><span class="cx">     # The &quot;accessible&quot; bits go here because they have long names and it
</span><span class="cx">     # makes the code look nicer to separate them out.
</span><del>-    $item{'is_cc_accessible'} = $self-&gt;type('boolean', 
-                                            $bug-&gt;cclist_accessible);
-    $item{'is_creator_accessible'} = $self-&gt;type('boolean',
-                                                 $bug-&gt;reporter_accessible);
</del><ins>+    if (filter_wants $params, 'is_cc_accessible') {
+        $item{'is_cc_accessible'} = $self-&gt;type('boolean', $bug-&gt;cclist_accessible);
+    }
+    if (filter_wants $params, 'is_creator_accessible') {
+        $item{'is_creator_accessible'} = $self-&gt;type('boolean', $bug-&gt;reporter_accessible);
+    }
</ins><span class="cx"> 
</span><del>-    return filter $params, \%item;
</del><ins>+    return \%item;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _user_to_hash {
+    my ($self, $user, $filters, $types, $prefix) = @_;
+    my $item = filter $filters, {
+        id        =&gt; $self-&gt;type('int', $user-&gt;id),
+        real_name =&gt; $self-&gt;type('string', $user-&gt;name),
+        name      =&gt; $self-&gt;type('email', $user-&gt;login),
+        email     =&gt; $self-&gt;type('email', $user-&gt;email),
+    }, $types, $prefix;
+    return $item;
+}
+
</ins><span class="cx"> sub _attachment_to_hash {
</span><del>-    my ($self, $attach, $filters) = @_;
</del><ins>+    my ($self, $attach, $filters, $types, $prefix) = @_;
</ins><span class="cx"> 
</span><del>-    # Skipping attachment flags for now.
-    delete $attach-&gt;{flags};
-
</del><span class="cx">     my $item = filter $filters, {
</span><span class="cx">         creation_time    =&gt; $self-&gt;type('dateTime', $attach-&gt;attached),
</span><span class="cx">         last_change_time =&gt; $self-&gt;type('dateTime', $attach-&gt;modification_time),
</span><span class="lines">@@ -963,28 +1365,66 @@
</span><span class="cx">         bug_id           =&gt; $self-&gt;type('int', $attach-&gt;bug_id),
</span><span class="cx">         file_name        =&gt; $self-&gt;type('string', $attach-&gt;filename),
</span><span class="cx">         summary          =&gt; $self-&gt;type('string', $attach-&gt;description),
</span><del>-        description      =&gt; $self-&gt;type('string', $attach-&gt;description),
</del><span class="cx">         content_type     =&gt; $self-&gt;type('string', $attach-&gt;contenttype),
</span><span class="cx">         is_private       =&gt; $self-&gt;type('int', $attach-&gt;isprivate),
</span><span class="cx">         is_obsolete      =&gt; $self-&gt;type('int', $attach-&gt;isobsolete),
</span><span class="cx">         is_patch         =&gt; $self-&gt;type('int', $attach-&gt;ispatch),
</span><del>-    };
</del><ins>+    }, $types, $prefix;
</ins><span class="cx"> 
</span><del>-    # creator/attacher require an extra lookup, so we only send them if
</del><ins>+    # creator requires an extra lookup, so we only send them if
</ins><span class="cx">     # the filter wants them.
</span><del>-    foreach my $field (qw(creator attacher)) {
-        if (filter_wants $filters, $field) {
-            $item-&gt;{$field} = $self-&gt;type('string', $attach-&gt;attacher-&gt;login);
-        }
</del><ins>+    if (filter_wants $filters, 'creator', $types, $prefix) {
+        $item-&gt;{'creator'} = $self-&gt;type('email', $attach-&gt;attacher-&gt;login);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (filter_wants $filters, 'data') {
</del><ins>+    if (filter_wants $filters, 'data', $types, $prefix) {
</ins><span class="cx">         $item-&gt;{'data'} = $self-&gt;type('base64', $attach-&gt;data);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (filter_wants $filters, 'size', $types, $prefix) {
+        $item-&gt;{'size'} = $self-&gt;type('int', $attach-&gt;datasize);
+    }
+
+    if (filter_wants $filters, 'flags', $types, $prefix) {
+        $item-&gt;{'flags'} = [ map { $self-&gt;_flag_to_hash($_) } @{$attach-&gt;flags} ];
+    }
+
</ins><span class="cx">     return $item;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _flag_to_hash {
+    my ($self, $flag) = @_;
+
+    my $item = {
+        id                =&gt; $self-&gt;type('int', $flag-&gt;id),
+        name              =&gt; $self-&gt;type('string', $flag-&gt;name),
+        type_id           =&gt; $self-&gt;type('int', $flag-&gt;type_id),
+        creation_date     =&gt; $self-&gt;type('dateTime', $flag-&gt;creation_date), 
+        modification_date =&gt; $self-&gt;type('dateTime', $flag-&gt;modification_date), 
+        status            =&gt; $self-&gt;type('string', $flag-&gt;status)
+    };
+
+    foreach my $field (qw(setter requestee)) {
+        my $field_id = $field . &quot;_id&quot;;
+        $item-&gt;{$field} = $self-&gt;type('email', $flag-&gt;$field-&gt;login)
+            if $flag-&gt;$field_id;
+    }
+
+    return $item;
+}
+
+sub _add_update_tokens {
+    my ($self, $params, $bugs, $hashes) = @_;
+
+    return if !Bugzilla-&gt;user-&gt;id;
+    return if !filter_wants($params, 'update_token');
+
+    for(my $i = 0; $i &lt; @$bugs; $i++) {
+        my $token = issue_hash_token([$bugs-&gt;[$i]-&gt;id, $bugs-&gt;[$i]-&gt;delta_ts]);
+        $hashes-&gt;[$i]-&gt;{'update_token'} = $self-&gt;type('string', $token);
+    }
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -1004,6 +1444,10 @@
</span><span class="cx"> See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
</span><span class="cx"> and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
</span><span class="cx"> 
</span><ins>+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
</ins><span class="cx"> =head1 Utility Functions
</span><span class="cx"> 
</span><span class="cx"> =head2 fields
</span><span class="lines">@@ -1017,11 +1461,26 @@
</span><span class="cx"> Get information about valid bug fields, including the lists of legal values
</span><span class="cx"> for each field.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+You have several options for retreiving information about fields. The first
+part is the request method and the rest is the related path needed.
+
+To get information about all fields:
+
+GET /rest/field/bug
+
+To get information related to a single field:
+
+GET /rest/field/bug/&lt;id_or_name&gt;
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> You can pass either field ids or field names.
</span><span class="cx"> 
</span><del>-B&lt;Note&gt;: If neither C&lt;ids&gt; nor C&lt;names&gt; is specified, then all 
</del><ins>+B&lt;Note&gt;: If neither C&lt;ids&gt; nor C&lt;names&gt; is specified, then all
</ins><span class="cx"> non-obsolete fields will be returned.
</span><span class="cx"> 
</span><span class="cx"> In addition to the parameters below, this method also accepts the
</span><span class="lines">@@ -1069,6 +1528,12 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;7&gt; Bug URLs (&quot;See Also&quot;)
</span><span class="cx"> 
</span><ins>+=item C&lt;8&gt; Keywords
+
+=item C&lt;9&gt; Date
+
+=item C&lt;10&gt; Integer value
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;is_custom&gt;
</span><span class="lines">@@ -1120,7 +1585,7 @@
</span><span class="cx"> 
</span><span class="cx"> This is an array of hashes, representing the legal values for
</span><span class="cx"> select-type (drop-down and multiple-selection) fields. This is also
</span><del>-populated for the C&lt;component&gt;, C&lt;version&gt;, and C&lt;target_milestone&gt;
</del><ins>+populated for the C&lt;component&gt;, C&lt;version&gt;, C&lt;target_milestone&gt;, and C&lt;keywords&gt;
</ins><span class="cx"> fields, but not for the C&lt;product&gt; field (you must use
</span><span class="cx"> L&lt;Product.get_accessible_products|Bugzilla::WebService::Product/get_accessible_products&gt;
</span><span class="cx"> for that.
</span><span class="lines">@@ -1153,6 +1618,17 @@
</span><span class="cx"> Note that for per-product fields, C&lt;value_field&gt; is set to C&lt;'product'&gt;
</span><span class="cx"> and C&lt;visibility_values&gt; will reflect which product(s) this value appears in.
</span><span class="cx"> 
</span><ins>+=item C&lt;is_active&gt;
+
+C&lt;boolean&gt; This value is defined only for certain product specific fields
+such as version, target_milestone or component. When true, the value is active,
+otherwise the value is not active.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; The description of the value. This item is only included for the
+C&lt;keywords&gt; field.
+
</ins><span class="cx"> =item C&lt;is_open&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; For C&lt;bug_status&gt; values, determines whether this status
</span><span class="lines">@@ -1204,11 +1680,14 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;sortkey&gt; was renamed to C&lt;sort_key&gt; in Bugzilla B&lt;4.2&gt;.
</span><span class="cx"> 
</span><ins>+=item C&lt;is_active&gt; return key for C&lt;values&gt; was added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> =head2 legal_values
</span><span class="cx"> 
</span><span class="cx"> B&lt;DEPRECATED&gt; - Use L&lt;/fields&gt; instead.
</span><span class="lines">@@ -1219,6 +1698,18 @@
</span><span class="cx"> 
</span><span class="cx"> Tells you what values are allowed for a particular field.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To get information on the values for a field based on field name:
+
+GET /rest/field/bug/&lt;field_name&gt;/values
+
+To get information based on field name and a specific product:
+
+GET /rest/field/bug/&lt;field_name&gt;/&lt;product_id&gt;/values
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -1251,8 +1742,16 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head1 Bug Information
</span><span class="cx"> 
</span><span class="cx"> =head2 attachments
</span><span class="lines">@@ -1269,6 +1768,18 @@
</span><span class="cx"> B&lt;Note&gt;: Private attachments will only be returned if you are in the 
</span><span class="cx"> insidergroup or if you are the submitter of the attachment.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To get all current attachments for a bug:
+
+GET /rest/bug/&lt;bug_id&gt;/attachment
+
+To get a specific attachment based on attachment ID:
+
+GET /rest/bug/attachment/&lt;attachment_id&gt;
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> B&lt;Note&gt;: At least one of C&lt;ids&gt; or C&lt;attachment_ids&gt; is required.
</span><span class="lines">@@ -1329,6 +1840,10 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;base64&gt; The raw data of the attachment, encoded as Base64.
</span><span class="cx"> 
</span><ins>+=item C&lt;size&gt;
+
+C&lt;int&gt; The length (in bytes) of the attachment.
+
</ins><span class="cx"> =item C&lt;creation_time&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;dateTime&gt; The time the attachment was created.
</span><span class="lines">@@ -1353,10 +1868,6 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; A short string describing the attachment.
</span><span class="cx"> 
</span><del>-Also returned as C&lt;description&gt;, for backwards-compatibility with older
-Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
-5.0.)
-
</del><span class="cx"> =item C&lt;content_type&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The MIME type of the attachment.
</span><span class="lines">@@ -1378,12 +1889,50 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the user that created the attachment.
</span><span class="cx"> 
</span><del>-Also returned as C&lt;attacher&gt;, for backwards-compatibility with older
-Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
-5.0.)
</del><ins>+=item C&lt;flags&gt;
</ins><span class="cx"> 
</span><ins>+An array of hashes containing the information about flags currently set
+for each attachment. Each flag hash contains the following items:
+
+=over
+
+=item C&lt;id&gt; 
+
+C&lt;int&gt; The id of the flag.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The type id of the flag.
+
+=item C&lt;creation_date&gt;
+
+C&lt;dateTime&gt; The timestamp when this flag was originally created.
+
+=item C&lt;modification_date&gt;
+
+C&lt;dateTime&gt; The timestamp when the flag was last modified.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The current status of the flag.
+
+=item C&lt;setter&gt;
+
+C&lt;string&gt; The login name of the user who created or last modified the flag.
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login name of the user this flag has been requested to be granted or denied.
+Note, this field is only returned if a requestee is set.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =item B&lt;Errors&gt;
</span><span class="cx"> 
</span><span class="cx"> This method can throw all the same errors as L&lt;/get&gt;. In addition,
</span><span class="lines">@@ -1416,6 +1965,12 @@
</span><span class="cx"> =item In Bugzilla B&lt;4.2&gt;, the C&lt;is_url&gt; return value was removed
</span><span class="cx"> (this attribute no longer exists for attachments).
</span><span class="cx"> 
</span><ins>+=item The C&lt;size&gt; return value was added in Bugzilla B&lt;4.4&gt;.
+
+=item The C&lt;flags&gt; array was added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -1432,6 +1987,18 @@
</span><span class="cx"> This allows you to get data about comments, given a list of bugs 
</span><span class="cx"> and/or comment ids.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To get all comments for a particular bug using the bug ID or alias:
+
+GET /rest/bug/&lt;id_or_alias&gt;/comment
+
+To get a specific comment based on the comment ID:
+
+GET /rest/bug/comment/&lt;comment_id&gt;
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> B&lt;Note&gt;: At least one of C&lt;ids&gt; or C&lt;comment_ids&gt; is required.
</span><span class="lines">@@ -1506,6 +2073,11 @@
</span><span class="cx"> C&lt;int&gt; If the comment was made on an attachment, this will be the
</span><span class="cx"> ID of that attachment. Otherwise it will be null.
</span><span class="cx"> 
</span><ins>+=item count
+
+C&lt;int&gt; The number of the comment local to the bug. The Description is 0,
+comments start with 1.
+
</ins><span class="cx"> =item text
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The actual text of the comment.
</span><span class="lines">@@ -1514,14 +2086,17 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the comment's author.
</span><span class="cx"> 
</span><del>-Also returned as C&lt;author&gt;, for backwards-compatibility with older
-Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
-5.0.)
-
</del><span class="cx"> =item time
</span><span class="cx"> 
</span><span class="cx"> C&lt;dateTime&gt; The time (in Bugzilla's timezone) that the comment was added.
</span><span class="cx"> 
</span><ins>+=item creation_time
+
+C&lt;dateTime&gt; This is exactly same as the C&lt;time&gt; key. Use this field instead of
+C&lt;time&gt; for consistency with other methods including L&lt;/get&gt; and L&lt;/attachments&gt;.
+For compatibility, C&lt;time&gt; is still usable. However, please note that C&lt;time&gt;
+may be deprecated and removed in a future release.
+
</ins><span class="cx"> =item is_private
</span><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; True if this comment is private (only visible to a certain
</span><span class="lines">@@ -1561,6 +2136,12 @@
</span><span class="cx"> =item In Bugzilla B&lt;4.0&gt;, the C&lt;author&gt; return value was renamed to
</span><span class="cx"> C&lt;creator&gt;.
</span><span class="cx"> 
</span><ins>+=item C&lt;count&gt; was added to the return value in Bugzilla B&lt;4.4&gt;.
+
+=item C&lt;creation_time&gt; was added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -1576,8 +2157,14 @@
</span><span class="cx"> 
</span><span class="cx"> Gets information about particular bugs in the database.
</span><span class="cx"> 
</span><del>-Note: Can also be called as &quot;get_bugs&quot; for compatibilty with Bugzilla 3.0 API.
</del><ins>+=item B&lt;REST&gt;
</ins><span class="cx"> 
</span><ins>+To get information about a particular bug using its ID or alias:
+
+GET /rest/bug/&lt;id_or_alias&gt;
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> In addition to the parameters below, this method also accepts the
</span><span class="lines">@@ -1595,10 +2182,6 @@
</span><span class="cx"> characters, it is considered to be a bug alias instead, and the bug with 
</span><span class="cx"> that alias will be loaded. 
</span><span class="cx"> 
</span><del>-Note that it's possible for aliases to be disabled in Bugzilla, in which
-case you will be told that you have specified an invalid bug_id if you
-try to specify an alias. (It will be error 100.)
-
</del><span class="cx"> =item C&lt;permissive&gt; B&lt;EXPERIMENTAL&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; Normally, if you request any inaccessible or invalid bug ids,
</span><span class="lines">@@ -1620,16 +2203,32 @@
</span><span class="cx"> An array of hashes that contains information about the bugs with 
</span><span class="cx"> the valid ids. Each hash contains the following items:
</span><span class="cx"> 
</span><ins>+These fields are returned by default or by specifying C&lt;_default&gt;
+in C&lt;include_fields&gt;.
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><ins>+=item C&lt;actual_time&gt;
+
+C&lt;double&gt; The total number of hours that this bug has taken (so far).
+
+If you are not in the time-tracking group, this field will not be included
+in the return value.
+
</ins><span class="cx"> =item C&lt;alias&gt;
</span><span class="cx"> 
</span><del>-C&lt;string&gt; The unique alias of this bug.
</del><ins>+C&lt;array&gt; of C&lt;string&gt;s The unique aliases of this bug. An empty array will be
+returned if this bug has no aliases.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;assigned_to&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the user to whom the bug is assigned.
</span><span class="cx"> 
</span><ins>+=item C&lt;assigned_to_detail&gt; 
+
+C&lt;hash&gt; A hash containing detailed user information for the assigned_to. To see the 
+keys included in the user detail hash, see below.
+
</ins><span class="cx"> =item C&lt;blocks&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;array&gt; of C&lt;int&gt;s. The ids of bugs that are &quot;blocked&quot; by this bug.
</span><span class="lines">@@ -1639,6 +2238,11 @@
</span><span class="cx"> C&lt;array&gt; of C&lt;string&gt;s. The login names of users on the CC list of this
</span><span class="cx"> bug.
</span><span class="cx"> 
</span><ins>+=item C&lt;cc_detail&gt;
+
+C&lt;array&gt; of hashes containing detailed user information for each of the cc list
+members. To see the keys included in the user detail hash, see below.
+
</ins><span class="cx"> =item C&lt;classification&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The name of the current classification the bug is in.
</span><span class="lines">@@ -1655,14 +2259,16 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the person who filed this bug (the reporter).
</span><span class="cx"> 
</span><ins>+=item C&lt;creator_detail&gt; 
+
+C&lt;hash&gt; A hash containing detailed user information for the creator. To see the 
+keys included in the user detail hash, see below.
+
</ins><span class="cx"> =item C&lt;deadline&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The day that this bug is due to be completed, in the format
</span><span class="cx"> C&lt;YYYY-MM-DD&gt;.
</span><span class="cx"> 
</span><del>-If you are not in the time-tracking group, this field will not be included
-in the return value.
-
</del><span class="cx"> =item C&lt;depends_on&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;array&gt; of C&lt;int&gt;s. The ids of bugs that this bug &quot;depends on&quot;.
</span><span class="lines">@@ -1680,6 +2286,48 @@
</span><span class="cx"> If you are not in the time-tracking group, this field will not be included
</span><span class="cx"> in the return value.
</span><span class="cx"> 
</span><ins>+=item C&lt;flags&gt;
+
+An array of hashes containing the information about flags currently set
+for the bug. Each flag hash contains the following items:
+
+=over
+
+=item C&lt;id&gt; 
+
+C&lt;int&gt; The id of the flag.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The type id of the flag.
+
+=item C&lt;creation_date&gt;
+
+C&lt;dateTime&gt; The timestamp when this flag was originally created.
+
+=item C&lt;modification_date&gt;
+
+C&lt;dateTime&gt; The timestamp when the flag was last modified.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The current status of the flag.
+
+=item C&lt;setter&gt;
+
+C&lt;string&gt; The login name of the user who created or last modified the flag.
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login name of the user this flag has been requested to be granted or denied.
+Note, this field is only returned if a requestee is set.
+
+=back
+
</ins><span class="cx"> =item C&lt;groups&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;array&gt; of C&lt;string&gt;s. The names of all the groups that this bug is in.
</span><span class="lines">@@ -1706,7 +2354,7 @@
</span><span class="cx"> =item C&lt;is_creator_accessible&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; If true, this bug can be accessed by the creator (reporter)
</span><del>-of the bug, even if he or she is not a member of the groups the bug
</del><ins>+of the bug, even if they are not a member of the groups the bug
</ins><span class="cx"> is restricted to.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;keywords&gt;
</span><span class="lines">@@ -1737,6 +2385,11 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the current QA Contact on the bug.
</span><span class="cx"> 
</span><ins>+=item C&lt;qa_contact_detail&gt;
+
+C&lt;hash&gt; A hash containing detailed user information for the qa_contact. To see the
+keys included in the user detail hash, see below.
+
</ins><span class="cx"> =item C&lt;remaining_time&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;double&gt; The number of hours of work remaining until work on this bug
</span><span class="lines">@@ -1800,8 +2453,12 @@
</span><span class="cx"> 
</span><span class="cx"> Every custom field in this installation will also be included in the
</span><span class="cx"> return value. Most fields are returned as C&lt;string&gt;s. However, some
</span><del>-field types have different return values:
</del><ins>+field types have different return values.
</ins><span class="cx"> 
</span><ins>+Normally custom fields are returned by default similar to normal bug
+fields or you can specify only custom fields by using C&lt;_custom&gt; in
+C&lt;include_fields&gt;.
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><span class="cx"> =item Bug ID Fields - C&lt;int&gt;
</span><span class="lines">@@ -1812,8 +2469,44 @@
</span><span class="cx"> 
</span><span class="cx"> =back 
</span><span class="cx"> 
</span><ins>+=item I&lt;user detail hashes&gt; 
+
+Each user detail hash contains the following items:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The user id for this user.
+
+=item C&lt;real_name&gt;
+
+C&lt;string&gt; The 'real' name for this user, if any.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The user's Bugzilla login.
+
+=item C&lt;email&gt;
+
+C&lt;string&gt; The user's email address. Currently this is the same value as the name.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
+These fields are returned only by specifying &quot;_extra&quot; or the field name in &quot;include_fields&quot;.
+
+=over
+
+=item C&lt;tags&gt;
+
+C&lt;array&gt; of C&lt;string&gt;s.  Each array item is a tag name.
+
+Note that tags are personal to the currently logged in user.
+
+=back
+
</ins><span class="cx"> =item C&lt;faults&gt; B&lt;EXPERIMENTAL&gt;
</span><span class="cx"> 
</span><span class="cx"> An array of hashes that contains invalid bug ids with error messages
</span><span class="lines">@@ -1827,13 +2520,13 @@
</span><span class="cx"> 
</span><span class="cx"> =item faultString 
</span><span class="cx"> 
</span><del>-c&lt;string&gt; This will only be returned for invalid bugs if the C&lt;permissive&gt;
</del><ins>+C&lt;string&gt; This will only be returned for invalid bugs if the C&lt;permissive&gt;
</ins><span class="cx"> argument was set when calling Bug.get, and it is an error indicating that 
</span><span class="cx"> the bug id was invalid.
</span><span class="cx"> 
</span><span class="cx"> =item faultCode
</span><span class="cx"> 
</span><del>-c&lt;int&gt; This will only be returned for invalid bugs if the C&lt;permissive&gt;
</del><ins>+C&lt;int&gt; This will only be returned for invalid bugs if the C&lt;permissive&gt;
</ins><span class="cx"> argument was set when calling Bug.get, and it is the error code for the 
</span><span class="cx"> invalid bug error.
</span><span class="cx"> 
</span><span class="lines">@@ -1847,8 +2540,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item 100 (Invalid Bug Alias)
</span><span class="cx"> 
</span><del>-If you specified an alias and either: (a) the Bugzilla you're querying
-doesn't support aliases or (b) there is no bug with that alias.
</del><ins>+If you specified an alias and there is no bug with that alias.
</ins><span class="cx"> 
</span><span class="cx"> =item 101 (Invalid Bug ID)
</span><span class="cx"> 
</span><span class="lines">@@ -1864,7 +2556,7 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;permissive&gt; argument added to this method's params in Bugzilla B&lt;3.4&gt;. 
</del><ins>+=item C&lt;permissive&gt; argument added to this method's params in Bugzilla B&lt;3.4&gt;.
</ins><span class="cx"> 
</span><span class="cx"> =item The following properties were added to this method's return values
</span><span class="cx"> in Bugzilla B&lt;3.4&gt;:
</span><span class="lines">@@ -1907,11 +2599,19 @@
</span><span class="cx"> C&lt;target_milestone&gt;, C&lt;update_token&gt;, C&lt;url&gt;, C&lt;version&gt;, C&lt;whiteboard&gt;,
</span><span class="cx"> and all custom fields.
</span><span class="cx"> 
</span><del>-=back
</del><ins>+=item The C&lt;flags&gt; array was added in Bugzilla B&lt;4.4&gt;.
</ins><span class="cx"> 
</span><ins>+=item The C&lt;actual_time&gt; item was added to the C&lt;bugs&gt; return value
+in Bugzilla B&lt;4.4&gt;.
</ins><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=item In Bugzilla B&lt;5.0&gt;, the following items were added to the bugs return value: C&lt;assigned_to_detail&gt;, C&lt;creator_detail&gt;, C&lt;qa_contact_detail&gt;. 
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 history
</span><span class="cx"> 
</span><span class="cx"> B&lt;EXPERIMENTAL&gt;
</span><span class="lines">@@ -1922,6 +2622,14 @@
</span><span class="cx"> 
</span><span class="cx"> Gets the history of changes for particular bugs in the database.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To get the history for a specific bug ID:
+
+GET /rest/bug/&lt;bug_id&gt;/history
+
+The returned data format will be the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -1933,12 +2641,13 @@
</span><span class="cx"> If an element in the array is entirely numeric, it represents a bug_id 
</span><span class="cx"> from the Bugzilla database to fetch. If it contains any non-numeric 
</span><span class="cx"> characters, it is considered to be a bug alias instead, and the data bug 
</span><del>-with that alias will be loaded. 
</del><ins>+with that alias will be loaded.
</ins><span class="cx"> 
</span><del>-Note that it's possible for aliases to be disabled in Bugzilla, in which
-case you will be told that you have specified an invalid bug_id if you
-try to specify an alias. (It will be error 100.)
</del><ins>+=item C&lt;new_since&gt;
</ins><span class="cx"> 
</span><ins>+C&lt;dateTime&gt; If specified, the method will only return changes I&lt;newer&gt;
+than this time.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -1954,8 +2663,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item alias
</span><span class="cx"> 
</span><del>-C&lt;string&gt; The alias of this bug. If there is no alias or aliases are 
-disabled in this Bugzilla, this will be undef.
</del><ins>+C&lt;array&gt; of C&lt;string&gt;s The unique aliases of this bug. An empty array will be
+returned if this bug has no aliases.
</ins><span class="cx"> 
</span><span class="cx"> =item history
</span><span class="cx"> 
</span><span class="lines">@@ -2014,6 +2723,14 @@
</span><span class="cx"> 
</span><span class="cx"> =item Added in Bugzilla B&lt;3.4&gt;.
</span><span class="cx"> 
</span><ins>+=item Field names returned by the C&lt;field_name&gt; field changed to be
+consistent with other methods. Since Bugzilla B&lt;4.4&gt;, they now match
+names used by L&lt;Bug.update|/&quot;update&quot;&gt; for consistency.
+
+=item REST API call added Bugzilla B&lt;5.0&gt;.
+
+=item Added C&lt;new_since&gt; parameter if Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2037,7 +2754,7 @@
</span><span class="cx"> =item C&lt;summary&gt; (string) B&lt;Required&gt; - A string of keywords defining
</span><span class="cx"> the type of bug you are trying to report.
</span><span class="cx"> 
</span><del>-=item C&lt;product&gt; (array) - One or more product names to narrow the
</del><ins>+=item C&lt;products&gt; (array) - One or more product names to narrow the
</ins><span class="cx"> duplicate search to. If omitted, all bugs are searched.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2068,6 +2785,9 @@
</span><span class="cx"> 
</span><span class="cx"> =item Added in Bugzilla B&lt;4.0&gt;.
</span><span class="cx"> 
</span><ins>+=item The C&lt;product&gt; parameter has been renamed to C&lt;products&gt; in
+Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2082,6 +2802,14 @@
</span><span class="cx"> 
</span><span class="cx"> Allows you to search for bugs based on particular criteria.
</span><span class="cx"> 
</span><ins>+=item &lt;REST&gt;
+
+To search for bugs:
+
+GET /bug
+
+The URL parameters and the returned data format are the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> Unless otherwise specified in the description of a parameter, bugs are
</span><span class="lines">@@ -2102,17 +2830,25 @@
</span><span class="cx">  product =&gt; ['Foo', 'Bar']
</span><span class="cx"> 
</span><span class="cx"> Some Bugzillas may treat your arguments case-sensitively, depending
</span><del>-on what database system they are using. Most commonly, though, Bugzilla is 
-not case-sensitive with the arguments passed (because MySQL is the 
</del><ins>+on what database system they are using. Most commonly, though, Bugzilla is
+not case-sensitive with the arguments passed (because MySQL is the
</ins><span class="cx"> most-common database to use with Bugzilla, and MySQL is not case sensitive).
</span><span class="cx"> 
</span><ins>+In addition to the fields listed below, you may also use criteria that
+is similar to what is used in the Advanced Search screen of the Bugzilla
+UI. This includes fields specified by C&lt;Search by Change History&gt; and
+C&lt;Custom Search&gt;. The easiest way to determine what the field names are and what
+format Bugzilla expects, is to first construct your query using the
+Advanced Search UI, execute it and use the query parameters in they URL
+as your key/value pairs for the WebService call. With REST, you can
+just reuse the query parameter portion in the REST call itself.
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;alias&gt;
</span><span class="cx"> 
</span><del>-C&lt;string&gt; The unique alias for this bug. Note that you can search
-by alias even if the alias field is disabled in this Bugzilla, but
-it's likely that there won't be any aliases set on bugs, in that case.
</del><ins>+C&lt;array&gt; of C&lt;string&gt;s The unique aliases of this bug. An empty array will be
+returned if this bug has no aliases.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;assigned_to&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -2201,6 +2937,13 @@
</span><span class="cx"> but not &quot;This foo is a bar&quot;. C&lt;['foo', 'bar']&gt;, would, however, match
</span><span class="cx"> the second item.
</span><span class="cx"> 
</span><ins>+=item C&lt;tags&gt;
+
+C&lt;string&gt; Searches for a bug with the specified tag.  If you specify an
+array, then any bugs that match I&lt;any&gt; of the tags will be returned.
+
+Note that tags are personal to the currently logged in user.
+
</ins><span class="cx"> =item C&lt;target_milestone&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The Target Milestone field of a bug. Note that even if this
</span><span class="lines">@@ -2230,6 +2973,10 @@
</span><span class="cx"> Works the same as the C&lt;summary&gt; field described above, but searches the
</span><span class="cx"> Status Whiteboard field.
</span><span class="cx"> 
</span><ins>+=item C&lt;quicksearch&gt;
+
+C&lt;string&gt; Search for bugs using quicksearch syntax.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -2269,6 +3016,13 @@
</span><span class="cx"> C&lt;limit&gt; is set equal to zero. Otherwise maximum results returned are limited
</span><span class="cx"> by system configuration.
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=item Updated to allow for full search capability similar to the Bugzilla UI
+in Bugzilla B&lt;5.0&gt;.
+
+=item Updated to allow quicksearch capability in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2295,10 +3049,19 @@
</span><span class="cx"> here, but realize that anything undocumented is B&lt;UNSTABLE&gt; and will very
</span><span class="cx"> likely change in the future.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To create a new bug in Bugzilla:
+
+POST /rest/bug
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> Some params must be set, or an error will be thrown. These params are
</span><del>-marked B&lt;Required&gt;. 
</del><ins>+marked B&lt;Required&gt;.
</ins><span class="cx"> 
</span><span class="cx"> Some parameters can have defaults set in Bugzilla, by the administrator.
</span><span class="cx"> If these parameters have defaults set, you can omit them. These parameters
</span><span class="lines">@@ -2342,7 +3105,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;severity&gt; (string) B&lt;Defaulted&gt; - How severe the bug is.
</span><span class="cx"> 
</span><del>-=item C&lt;alias&gt; (string) - A brief alias for the bug that can be used 
</del><ins>+=item C&lt;alias&gt; (array) - A brief alias for the bug that can be used
</ins><span class="cx"> instead of a bug number when accessing this bug. Must be unique in
</span><span class="cx"> all of this Bugzilla.
</span><span class="cx"> 
</span><span class="lines">@@ -2369,11 +3132,42 @@
</span><span class="cx"> =item C&lt;status&gt; (string) - The status that this bug should start out as.
</span><span class="cx"> Note that only certain statuses can be set on bug creation.
</span><span class="cx"> 
</span><ins>+=item C&lt;resolution&gt; (string) - If you are filing a closed bug, then
+you will have to specify a resolution. You cannot currently specify
+a resolution of C&lt;DUPLICATE&gt; for new bugs, though. That must be done
+with L&lt;/update&gt;.
+
</ins><span class="cx"> =item C&lt;target_milestone&gt; (string) - A valid target milestone for this
</span><span class="cx"> product.
</span><span class="cx"> 
</span><ins>+=item C&lt;flags&gt;
+
+C&lt;array&gt; An array of hashes with flags to add to the bug. To create a flag,
+at least the status and the type_id or name must be provided. An optional
+requestee can be passed if the flag type is requestable to a specific user.
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag type.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The internal flag type id.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a flag).
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login of the requestee if the flag type is requestable to a specific user.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> In addition to the above parameters, if your installation has any custom
</span><span class="cx"> fields, you can set them just by passing in the name of the field and
</span><span class="cx"> its value as a string.
</span><span class="lines">@@ -2424,6 +3218,28 @@
</span><span class="cx"> You tried to restrict the bug to a group which does not exist, or which
</span><span class="cx"> you cannot use with this product.
</span><span class="cx"> 
</span><ins>+=item 129 (Flag Status Invalid)
+
+The flag status is invalid.
+
+=item 130 (Flag Modification Denied)
+
+You tried to request, grant, or deny a flag but only a user with the required
+permissions may make the change.
+
+=item 131 (Flag not Requestable from Specific Person)
+
+You can't ask a specific person for the flag.
+
+=item 133 (Flag Type not Unique)
+
+The flag type specified matches several flag types. You must specify
+the type id value to update or add a flag.
+
+=item 134 (Inactive Flag Type)
+
+The flag type is inactive and cannot be used to create new flags.
+
</ins><span class="cx"> =item 504 (Invalid User)
</span><span class="cx"> 
</span><span class="cx"> Either the QA Contact, Assignee, or CC lists have some invalid user
</span><span class="lines">@@ -2451,6 +3267,11 @@
</span><span class="cx"> =item Error 116 was added in Bugzilla B&lt;4.0&gt;. Before that, dependency
</span><span class="cx"> loop errors had a generic code of C&lt;32000&gt;.
</span><span class="cx"> 
</span><ins>+=item The ability to file new bugs with a C&lt;resolution&gt; was added in
+Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2458,7 +3279,7 @@
</span><span class="cx"> 
</span><span class="cx"> =head2 add_attachment
</span><span class="cx"> 
</span><del>-B&lt;UNSTABLE&gt;
</del><ins>+B&lt;STABLE&gt;
</ins><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><span class="lines">@@ -2466,6 +3287,16 @@
</span><span class="cx"> 
</span><span class="cx"> This allows you to add an attachment to a bug in Bugzilla.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To create attachment on a current bug:
+
+POST /rest/bug/&lt;bug_id&gt;/attachment
+
+The params to include in the POST body, as well as the returned
+data format are the same as below. The C&lt;ids&gt; param will be
+overridden as it it pulled from the URL path.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2517,13 +3348,38 @@
</span><span class="cx"> 
</span><span class="cx"> Defaults to False if not specified.
</span><span class="cx"> 
</span><ins>+=item C&lt;flags&gt;
+
+C&lt;array&gt; An array of hashes with flags to add to the attachment. to create a flag,
+at least the status and the type_id or name must be provided. An optional requestee
+can be passed if the flag type is requestable to a specific user.
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag type.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The internal flag type id.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a flag).
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login of the requestee if the flag type is requestable to a specific user.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =item B&lt;Returns&gt;
</span><span class="cx"> 
</span><del>-A single item C&lt;attachments&gt;, which contains the created
-attachments in the same format as the C&lt;attachments&gt; return
-value from L&lt;/attachments&gt;.
</del><ins>+A single item C&lt;ids&gt;, which contains an array of the
+attachment id(s) created.
</ins><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -2531,6 +3387,28 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><ins>+=item 129 (Flag Status Invalid)
+
+The flag status is invalid.
+
+=item 130 (Flag Modification Denied)
+
+You tried to request, grant, or deny a flag but only a user with the required
+permissions may make the change.
+
+=item 131 (Flag not Requestable from Specific Person)
+
+You can't ask a specific person for the flag.
+
+=item 133 (Flag Type not Unique)
+
+The flag type specified matches several flag types. You must specify
+the type id value to update or add a flag.
+
+=item 134 (Inactive Flag Type)
+
+The flag type is inactive and cannot be used to create new flags.
+
</ins><span class="cx"> =item 600 (Attachment Too Large)
</span><span class="cx"> 
</span><span class="cx"> You tried to attach a file that was larger than Bugzilla will accept.
</span><span class="lines">@@ -2562,11 +3440,232 @@
</span><span class="cx"> 
</span><span class="cx"> =item The C&lt;is_url&gt; parameter was removed in Bugzilla B&lt;4.2&gt;.
</span><span class="cx"> 
</span><ins>+=item The return value has changed in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+=head2 update_attachment
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This allows you to update attachment metadata in Bugzilla.
+
+=item B&lt;REST&gt;
+
+To update attachment metadata on a current attachment:
+
+PUT /rest/bug/attachment/&lt;attach_id&gt;
+
+The params to include in the POST body, as well as the returned
+data format are the same as below. The C&lt;ids&gt; param will be
+overridden as it it pulled from the URL path.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;ids&gt;
+
+B&lt;Required&gt; C&lt;array&gt; An array of integers -- the ids of the attachments you
+want to update.
+
+=item C&lt;file_name&gt;
+
+C&lt;string&gt; The &quot;file name&quot; that will be displayed
+in the UI for this attachment.
+
+=item C&lt;summary&gt;
+
+C&lt;string&gt; A short string describing the
+attachment.
+
+=item C&lt;comment&gt;
+
+C&lt;string&gt; An optional comment to add to the attachment's bug.
+
+=item C&lt;content_type&gt;
+
+C&lt;string&gt; The MIME type of the attachment, like
+C&lt;text/plain&gt; or C&lt;image/png&gt;.
+
+=item C&lt;is_patch&gt;
+
+C&lt;boolean&gt; True if Bugzilla should treat this attachment as a patch.
+If you specify this, you do not need to specify a C&lt;content_type&gt;.
+The C&lt;content_type&gt; of the attachment will be forced to C&lt;text/plain&gt;.
+
+=item C&lt;is_private&gt;
+
+C&lt;boolean&gt; True if the attachment should be private (restricted
+to the &quot;insidergroup&quot;), False if the attachment should be public.
+
+=item C&lt;is_obsolete&gt;
+
+C&lt;boolean&gt; True if the attachment is obsolete, False otherwise.
+
+=item C&lt;flags&gt;
+
+C&lt;array&gt; An array of hashes with changes to the flags. The following values
+can be specified. At least the status and one of type_id, id, or name must
+be specified. If a type_id or name matches a single currently set flag,
+the flag will be updated unless new is specified.
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag that will be created or updated.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The internal flag type id that will be created or updated. You will
+need to specify the C&lt;type_id&gt; if more than one flag type of the same name exists.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a flag).
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login of the requestee if the flag type is requestable to a specific user.
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; Use id to specify the flag to be updated. You will need to specify the C&lt;id&gt;
+if more than one flag is set of the same name.
+
+=item C&lt;new&gt;
+
+C&lt;boolean&gt; Set to true if you specifically want a new flag to be created.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A C&lt;hash&gt; with a single field, &quot;attachments&quot;. This points to an array of hashes
+with the following fields:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the attachment that was updated.
+
+=item C&lt;last_change_time&gt;
+
+C&lt;dateTime&gt; The exact time that this update was done at, for this attachment.
+If no update was done (that is, no fields had their values changed and
+no comment was added) then this will instead be the last time the attachment
+was updated.
+
+=item C&lt;changes&gt;
+
+C&lt;hash&gt; The changes that were actually done on this bug. The keys are
+the names of the fields that were changed, and the values are a hash
+with two keys:
+
+=over
+
+=item C&lt;added&gt; (C&lt;string&gt;) The values that were added to this field.
+possibly a comma-and-space-separated list if multiple values were added.
+
+=item C&lt;removed&gt; (C&lt;string&gt;) The values that were removed from this
+field.
+
+=back
+
+=back
+
+Here's an example of what a return value might look like:
+
+ {
+   attachments =&gt; [
+     {
+       id    =&gt; 123,
+       last_change_time =&gt; '2010-01-01T12:34:56',
+       changes =&gt; {
+         summary =&gt; {
+           removed =&gt; 'Sample ptach',
+           added   =&gt; 'Sample patch'
+         },
+         is_obsolete =&gt; {
+           removed =&gt; '0',
+           added   =&gt; '1',
+         }
+       },
+     }
+   ]
+ }
+
+=item B&lt;Errors&gt;
+
+This method can throw all the same errors as L&lt;/get&gt;, plus:
+
+=over
+
+=item 129 (Flag Status Invalid)
+
+The flag status is invalid.
+
+=item 130 (Flag Modification Denied)
+
+You tried to request, grant, or deny a flag but only a user with the required
+permissions may make the change.
+
+=item 131 (Flag not Requestable from Specific Person)
+
+You can't ask a specific person for the flag.
+
+=item 132 (Flag not Unique)
+
+The flag specified has been set multiple times. You must specify the id
+value to update the flag.
+
+=item 133 (Flag Type not Unique)
+
+The flag type specified matches several flag types. You must specify
+the type id value to update or add a flag.
+
+=item 134 (Inactive Flag Type)
+
+The flag type is inactive and cannot be used to create new flags.
+
+=item 601 (Invalid MIME Type)
+
+You specified a C&lt;content_type&gt; argument that was blank, not a valid
+MIME type, or not a MIME type that Bugzilla accepts for attachments.
+
+=item 603 (File Name Not Specified)
+
+You did not specify a valid for the C&lt;file_name&gt; argument.
+
+=item 604 (Summary Required)
+
+You did not specify a value for the C&lt;summary&gt; argument.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=back
+
</ins><span class="cx"> =head2 add_comment
</span><span class="cx"> 
</span><span class="cx"> B&lt;STABLE&gt;
</span><span class="lines">@@ -2577,6 +3676,15 @@
</span><span class="cx"> 
</span><span class="cx"> This allows you to add a comment to a bug in Bugzilla.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To create a comment on a current bug:
+
+POST /rest/bug/&lt;bug_id&gt;/comment
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2613,8 +3721,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item 100 (Invalid Bug Alias) 
</span><span class="cx"> 
</span><del>-If you specified an alias and either: (a) the Bugzilla you're querying
-doesn't support aliases or (b) there is no bug with that alias.
</del><ins>+If you specified an alias and there is no bug with that alias.
</ins><span class="cx"> 
</span><span class="cx"> =item 101 (Invalid Bug ID)
</span><span class="cx"> 
</span><span class="lines">@@ -2653,6 +3760,8 @@
</span><span class="cx"> =item Before Bugzilla B&lt;3.6&gt;, error 54 and error 114 had a generic error
</span><span class="cx"> code of 32000.
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -2669,6 +3778,16 @@
</span><span class="cx"> Allows you to update the fields of a bug. Automatically sends emails
</span><span class="cx"> out about the changes.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To update the fields of a current bug:
+
+PUT /rest/bug/&lt;bug_id&gt;
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. The C&lt;ids&gt; param will be overridden as it is
+pulled from the URL path.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -2687,10 +3806,30 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;alias&gt;
</span><span class="cx"> 
</span><del>-(string) The alias of the bug. You can only set this if you are modifying 
-a single bug. If there is more than one bug specified in C&lt;ids&gt;, passing in
-a value for C&lt;alias&gt; will cause an error to be thrown.
</del><ins>+C&lt;hash&gt; These specify the aliases of a bug that can be used instead of a bug
+number when acessing this bug. To set these, you should pass a hash as the
+value. The hash may contain the following fields:
</ins><span class="cx"> 
</span><ins>+=over
+
+=item C&lt;add&gt; An array of C&lt;string&gt;s. Aliases to add to this field.
+
+=item C&lt;remove&gt; An array of C&lt;string&gt;s. Aliases to remove from this field.
+If the aliases are not already in the field, they will be ignored.
+
+=item C&lt;set&gt; An array of C&lt;string&gt;s. An exact set of aliases to set this
+field to, overriding the current value. If you specify C&lt;set&gt;, then C&lt;add&gt;
+and  C&lt;remove&gt; will be ignored.
+
+=back
+
+You can only set this if you are modifying a single bug. If there is more
+than one bug specified in C&lt;ids&gt;, passing in a value for C&lt;alias&gt; will cause
+an error to be thrown.
+
+For backwards compatibility, you can also specify a single string. This will
+be treated as if you specified the set key above.
+
</ins><span class="cx"> =item C&lt;assigned_to&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The full login name of the user this bug is assigned to.
</span><span class="lines">@@ -2788,6 +3927,43 @@
</span><span class="cx"> C&lt;double&gt; The total estimate of time required to fix the bug, in hours.
</span><span class="cx"> This is the I&lt;total&gt; estimate, not the amount of time remaining to fix it.
</span><span class="cx"> 
</span><ins>+=item C&lt;flags&gt;
+
+C&lt;array&gt; An array of hashes with changes to the flags. The following values
+can be specified. At least the status and one of type_id, id, or name must
+be specified. If a type_id or name matches a single currently set flag,
+the flag will be updated unless new is specified.
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the flag that will be created or updated.
+
+=item C&lt;type_id&gt;
+
+C&lt;int&gt; The internal flag type id that will be created or updated. You will
+need to specify the C&lt;type_id&gt; if more than one flag type of the same name exists.
+
+=item C&lt;status&gt;
+
+C&lt;string&gt; The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a flag).
+
+=item C&lt;requestee&gt;
+
+C&lt;string&gt; The login of the requestee if the flag type is requestable to a specific user.
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; Use id to specify the flag to be updated. You will need to specify the C&lt;id&gt;
+if more than one flag is set of the same name.
+
+=item C&lt;new&gt;
+
+C&lt;boolean&gt; Set to true if you specifically want a new flag to be created.
+
+=back
+
</ins><span class="cx"> =item C&lt;groups&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;hash&gt; The groups a bug is in. To modify this field, pass a hash, which
</span><span class="lines">@@ -2865,7 +4041,7 @@
</span><span class="cx"> =item C&lt;is_creator_accessible&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; Whether or not the bug's reporter is allowed to access
</span><del>-the bug, even if he or she isn't in a group that can normally access
</del><ins>+the bug, even if they aren't in a group that can normally access
</ins><span class="cx"> the bug.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;remaining_time&gt;
</span><span class="lines">@@ -2971,8 +4147,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;alias&gt;
</span><span class="cx"> 
</span><del>-C&lt;string&gt; The alias of the bug that was updated, if aliases are enabled and
-this bug has an alias.
</del><ins>+C&lt;array&gt; of C&lt;string&gt;s The aliases of the bug that was updated, if this bug
+has any alias.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;last_change_time&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -3006,7 +4182,7 @@
</span><span class="cx">    bugs =&gt; [
</span><span class="cx">      {
</span><span class="cx">        id    =&gt; 123,
</span><del>-       alias =&gt; 'foo',
</del><ins>+       alias =&gt; [ 'foo' ],
</ins><span class="cx">        last_change_time =&gt; '2010-01-01T12:34:56',
</span><span class="cx">        changes =&gt; {
</span><span class="cx">          status =&gt; {
</span><span class="lines">@@ -3106,6 +4282,33 @@
</span><span class="cx"> You tried to change from one status to another, but the status workflow
</span><span class="cx"> rules don't allow that change.
</span><span class="cx"> 
</span><ins>+=item 129 (Flag Status Invalid)
+
+The flag status is invalid.
+
+=item 130 (Flag Modification Denied)
+
+You tried to request, grant, or deny a flag but only a user with the required
+permissions may make the change.
+
+=item 131 (Flag not Requestable from Specific Person)
+
+You can't ask a specific person for the flag.
+
+=item 132 (Flag not Unique)
+
+The flag specified has been set multiple times. You must specify the id
+value to update the flag.
+
+=item 133 (Flag Type not Unique)
+
+The flag type specified matches several flag types. You must specify
+the type id value to update or add a flag.
+
+=item 134 (Inactive Flag Type)
+
+The flag type is inactive and cannot be used to create new flags.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;History&gt;
</span><span class="lines">@@ -3114,6 +4317,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item Added in Bugzilla B&lt;4.0&gt;.
</span><span class="cx"> 
</span><ins>+=item REST API call added Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -3230,3 +4435,240 @@
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+
+=head2 update_tags
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Adds or removes tags on bugs.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;ids&gt;
+
+B&lt;Required&gt; C&lt;array&gt; An array of ints and/or strings--the ids
+or aliases of bugs that you want to add or remove tags to. All the tags
+will be added or removed to all these bugs.
+
+=item C&lt;tags&gt;
+
+B&lt;Required&gt; C&lt;hash&gt; A hash representing tags to be added and/or removed.
+The hash has the following fields:
+
+=over
+
+=item C&lt;add&gt; An array of C&lt;string&gt;s representing tag names
+to be added to the bugs.
+
+It is safe to specify tags that are already associated with the 
+bugs--they will just be silently ignored.
+
+=item C&lt;remove&gt; An array of C&lt;string&gt;s representing tag names
+to be removed from the bugs.
+
+It is safe to specify tags that are not associated with any
+bugs--they will just be silently ignored.
+
+=back
+
+=back
+
+=item B&lt;Returns&gt;
+
+C&lt;changes&gt;, a hash containing bug IDs as keys and one single value
+name &quot;tags&quot; which is also a hash, with C&lt;added&gt; and C&lt;removed&gt; as keys.
+See L&lt;/update_see_also&gt; for an example of how it looks like.
+
+=item B&lt;Errors&gt;
+
+This method can throw the same errors as L&lt;/get&gt;.
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;4.4&gt;.
+
+=back
+
+=back
+
+=head2 search_comment_tags
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Searches for tags which contain the provided substring.
+
+=item B&lt;REST&gt;
+
+To search for comment tags:
+
+GET /rest/bug/comment/tags/&lt;query&gt;
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;query&gt;
+
+B&lt;Required&gt; C&lt;string&gt; Only tags containg this substring will be returned.
+
+=item C&lt;limit&gt;
+
+C&lt;int&gt; If provided will return no more than C&lt;limit&gt; tags.  Defaults to C&lt;10&gt;.
+
+=back
+
+=item B&lt;Returns&gt;
+
+An C&lt;array of strings&gt; of matching tags.
+
+=item B&lt;Errors&gt;
+
+This method can throw all of the errors that L&lt;/get&gt; throws, plus:
+
+=over
+
+=item 125 (Comment Tagging Disabled)
+
+Comment tagging support is not available or enabled.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 update_comment_tags
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Adds or removes tags from a comment.
+
+=item B&lt;REST&gt;
+
+To update the tags comments attached to a comment:
+
+PUT /rest/bug/comment/tags
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;comment_id&gt;
+
+B&lt;Required&gt; C&lt;int&gt; The ID of the comment to update.
+
+=item C&lt;add&gt;
+
+C&lt;array of strings&gt; The tags to attach to the comment.
+
+=item C&lt;remove&gt;
+
+C&lt;array of strings&gt; The tags to detach from the comment.
+
+=back
+
+=item B&lt;Returns&gt;
+
+An C&lt;array of strings&gt; containing the comment's updated tags.
+
+=item B&lt;Errors&gt;
+
+This method can throw all of the errors that L&lt;/get&gt; throws, plus:
+
+=over
+
+=item 125 (Comment Tagging Disabled)
+
+Comment tagging support is not available or enabled.
+
+=item 126 (Invalid Comment Tag)
+
+The comment tag provided was not valid (eg. contains invalid characters).
+
+=item 127 (Comment Tag Too Short)
+
+The comment tag provided is shorter than the minimum length.
+
+=item 128 (Comment Tag Too Long)
+
+The comment tag provided is longer than the maximum length.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 render_comment
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Returns the HTML rendering of the provided comment text.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;text&gt;
+
+B&lt;Required&gt; C&lt;strings&gt; Text comment text to render.
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The ID of the bug to render the comment against.
+
+=back
+
+=item B&lt;Returns&gt;
+
+C&lt;html&gt; containing the HTML rendering.
+
+=item B&lt;Errors&gt;
+
+This method can throw all of the errors that L&lt;/get&gt; throws.
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceBugUserLastVisitpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/BugUserLastVisit.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/BugUserLastVisit.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/BugUserLastVisit.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,203 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::BugUserLastVisit;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::WebService);
+
+use Bugzilla::Bug;
+use Bugzilla::Error;
+use Bugzilla::WebService::Util qw( validate filter );
+use Bugzilla::Constants;
+
+use constant PUBLIC_METHODS =&gt; qw(
+    get
+    update
+);
+
+sub update {
+    my ($self, $params) = validate(@_, 'ids');
+    my $user = Bugzilla-&gt;user;
+    my $dbh  = Bugzilla-&gt;dbh;
+
+    $user-&gt;login(LOGIN_REQUIRED);
+
+    my $ids = $params-&gt;{ids} // [];
+    ThrowCodeError('param_required', { param =&gt; 'ids' }) unless @$ids;
+
+    # Cache permissions for bugs. This highly reduces the number of calls to the
+    # DB.  visible_bugs() is only able to handle bug IDs, so we have to skip
+    # aliases.
+    $user-&gt;visible_bugs([grep /^[0-9]+$/, @$ids]);
+
+    $dbh-&gt;bz_start_transaction();
+    my @results;
+    my $last_visit_ts = $dbh-&gt;selectrow_array('SELECT NOW()');
+    foreach my $bug_id (@$ids) {
+        my $bug = Bugzilla::Bug-&gt;check({ id =&gt; $bug_id, cache =&gt; 1 });
+
+        ThrowUserError('user_not_involved', { bug_id =&gt; $bug-&gt;id })
+            unless $user-&gt;is_involved_in_bug($bug);
+
+        $bug-&gt;update_user_last_visit($user, $last_visit_ts);
+
+        push(
+            @results,
+            $self-&gt;_bug_user_last_visit_to_hash(
+                $bug-&gt;id, $last_visit_ts, $params
+            ));
+    }
+    $dbh-&gt;bz_commit_transaction();
+
+    return \@results;
+}
+
+sub get {
+    my ($self, $params) = validate(@_, 'ids');
+    my $user = Bugzilla-&gt;user;
+    my $ids  = $params-&gt;{ids};
+
+    $user-&gt;login(LOGIN_REQUIRED);
+
+    my @last_visits;
+    if ($ids) {
+        # Cache permissions for bugs. This highly reduces the number of calls to
+        # the DB.  visible_bugs() is only able to handle bug IDs, so we have to
+        # skip aliases.
+        $user-&gt;visible_bugs([grep /^[0-9]+$/, @$ids]);
+
+        my %last_visit  = map { $_-&gt;bug_id =&gt; $_-&gt;last_visit_ts } @{ $user-&gt;last_visited($ids) };
+        @last_visits = map { $self-&gt;_bug_user_last_visit_to_hash($_-&gt;id, $last_visit{$_}, $params) } @$ids;
+    }
+    else {
+        @last_visits = map {
+            $self-&gt;_bug_user_last_visit_to_hash($_-&gt;bug_id, $_-&gt;last_visit_ts, $params)
+        } @{ $user-&gt;last_visited };
+    }
+
+    return \@last_visits;
+}
+
+sub _bug_user_last_visit_to_hash {
+    my ($self, $bug_id, $last_visit_ts, $params) = @_;
+
+    my %result = (id            =&gt; $self-&gt;type('int',      $bug_id),
+                  last_visit_ts =&gt; $self-&gt;type('dateTime', $last_visit_ts));
+
+    return filter($params, \%result);
+}
+
+1;
+
+__END__
+=head1 NAME
+
+Bugzilla::WebService::BugUserLastVisit - Find and Store the last time a user
+visited a bug.
+
+=head1 METHODS
+
+See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
+and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
+
+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
+=head2 update
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Update the last visit time for the specified bug and current user.
+
+=item B&lt;REST&gt;
+
+To add a single bug id:
+
+    POST /rest/bug_user_last_visit/&lt;bug-id&gt;
+
+Tp add one or more bug ids at once:
+
+    POST /rest/bug_user_last_visit
+
+The returned data format is the same as below.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;ids&gt; (array) - One or more bug ids to add.
+
+=back
+
+=item B&lt;Returns&gt;
+
+=over
+
+=item C&lt;array&gt; - An array of hashes containing the following:
+
+=over
+
+=item C&lt;id&gt; - (int) The bug id.
+
+=item C&lt;last_visit_ts&gt; - (string) The timestamp the user last visited the bug.
+
+=back
+
+=back
+
+=back
+
+=head2 get
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Get the last visited timestamp for one or more specified bug ids.
+
+=item B&lt;REST&gt;
+
+To return the last visited timestamp for a single bug id:
+
+    GET /rest/bug_user_last_visit/&lt;bug-id&gt;
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;ids&gt; (integer) - One or more optional bug ids to get.
+
+=back
+
+=item B&lt;Returns&gt;
+
+=over
+
+=item C&lt;array&gt; - An array of hashes containing the following:
+
+=over
+
+=item C&lt;id&gt; - (int) The bug id.
+
+=item C&lt;last_visit_ts&gt; - (string) The timestamp the user last visited the bug.
+
+=back
+
+=back
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,27 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Bugzilla;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::WebService);
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util qw(datetime_from);
</span><ins>+use Bugzilla::WebService::Util qw(validate filter_wants);
+use Bugzilla::Util qw(trick_taint);
</ins><span class="cx"> 
</span><span class="cx"> use DateTime;
</span><span class="cx"> 
</span><span class="cx"> # Basic info that is needed before logins
</span><span class="cx"> use constant LOGIN_EXEMPT =&gt; {
</span><ins>+    parameters =&gt; 1,
</ins><span class="cx">     timezone =&gt; 1,
</span><span class="cx">     version =&gt; 1,
</span><span class="cx"> };
</span><span class="lines">@@ -33,11 +28,63 @@
</span><span class="cx"> 
</span><span class="cx"> use constant READ_ONLY =&gt; qw(
</span><span class="cx">     extensions
</span><ins>+    parameters
</ins><span class="cx">     timezone
</span><span class="cx">     time
</span><span class="cx">     version
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    extensions
+    last_audit_time
+    parameters
+    time
+    timezone
+    version
+);
+
+# Logged-out users do not need to know more than that.
+use constant PARAMETERS_LOGGED_OUT =&gt; qw(
+    maintainer
+    requirelogin
+);
+
+# These parameters are guessable from the web UI when the user
+# is logged in. So it's safe to access them.
+use constant PARAMETERS_LOGGED_IN =&gt; qw(
+    allowemailchange
+    attachment_base
+    commentonchange_resolution
+    commentonduplicate
+    cookiepath
+    defaultopsys
+    defaultplatform
+    defaultpriority
+    defaultseverity
+    duplicate_or_move_bug_status
+    emailregexpdesc
+    emailsuffix
+    letsubmitterchoosemilestone
+    letsubmitterchoosepriority
+    mailfrom
+    maintainer
+    maxattachmentsize
+    maxlocalattachment
+    musthavemilestoneonaccept
+    noresolveonopenblockers
+    password_complexity
+    rememberlogin
+    requirelogin
+    search_allow_no_criteria
+    urlbase
+    use_see_also
+    useclassification
+    usemenuforusers
+    useqacontact
+    usestatuswhiteboard
+    usetargetmilestone
+);
+
</ins><span class="cx"> sub version {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     return { version =&gt; $self-&gt;type('string', BUGZILLA_VERSION) };
</span><span class="lines">@@ -81,6 +128,52 @@
</span><span class="cx">     };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub last_audit_time {
+    my ($self, $params) = validate(@_, 'class');
+    my $dbh = Bugzilla-&gt;dbh;
+
+    my $sql_statement = &quot;SELECT MAX(at_time) FROM audit_log&quot;;
+    my $class_values =  $params-&gt;{class};
+    my @class_values_quoted;
+    foreach my $class_value (@$class_values) {
+        push (@class_values_quoted, $dbh-&gt;quote($class_value))
+            if $class_value =~ /^Bugzilla(::[a-zA-Z0-9_]+)*$/;
+    }
+
+    if (@class_values_quoted) {
+        $sql_statement .= &quot; WHERE &quot; . $dbh-&gt;sql_in('class', \@class_values_quoted);
+    }
+
+    my $last_audit_time = $dbh-&gt;selectrow_array(&quot;$sql_statement&quot;);
+
+    # All Webservices return times in UTC; Use UTC here for backwards compat.
+    # Hardcode values where appropriate
+    $last_audit_time = datetime_from($last_audit_time, 'UTC');
+
+    return {
+        last_audit_time =&gt; $self-&gt;type('dateTime', $last_audit_time)
+    };
+}
+
+sub parameters {
+    my ($self, $args) = @_;
+    my $user = Bugzilla-&gt;login(LOGIN_OPTIONAL);
+    my $params = Bugzilla-&gt;params;
+    $args ||= {};
+
+    my @params_list = $user-&gt;in_group('tweakparams')
+                      ? keys(%$params)
+                      : $user-&gt;id ? PARAMETERS_LOGGED_IN : PARAMETERS_LOGGED_OUT;
+
+    my %parameters;
+    foreach my $param (@params_list) {
+        next unless filter_wants($args, $param);
+        $parameters{$param} = $self-&gt;type('string', $params-&gt;{$param});
+    }
+
+    return { parameters =&gt; \%parameters };
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -98,6 +191,10 @@
</span><span class="cx"> See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
</span><span class="cx"> and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
</span><span class="cx"> 
</span><ins>+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
</ins><span class="cx"> =head2 version
</span><span class="cx"> 
</span><span class="cx"> B&lt;STABLE&gt;
</span><span class="lines">@@ -108,6 +205,12 @@
</span><span class="cx"> 
</span><span class="cx"> Returns the current version of Bugzilla.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/version
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -117,8 +220,16 @@
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt; (none)
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 extensions
</span><span class="cx"> 
</span><span class="cx"> B&lt;EXPERIMENTAL&gt;
</span><span class="lines">@@ -130,6 +241,12 @@
</span><span class="cx"> Gets information about the extensions that are currently installed and enabled
</span><span class="cx"> in this Bugzilla.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/extensions
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -160,6 +277,8 @@
</span><span class="cx"> that the extensions define themselves. Before 3.6, the names of the
</span><span class="cx"> extensions depended on the directory they were in on the Bugzilla server.
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -175,6 +294,12 @@
</span><span class="cx"> 
</span><span class="cx"> Returns the timezone that Bugzilla expects dates and times in.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/timezone
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -189,6 +314,8 @@
</span><span class="cx"> =item As of Bugzilla B&lt;3.6&gt;, the timezone returned is always C&lt;+0000&gt;
</span><span class="cx"> (the UTC timezone).
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="lines">@@ -205,6 +332,12 @@
</span><span class="cx"> Gets information about what time the Bugzilla server thinks it is, and
</span><span class="cx"> what timezone it's running in.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/time
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -215,7 +348,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;db_time&gt;
</span><span class="cx"> 
</span><del>-C&lt;dateTime&gt; The current time in UTC, according to the Bugzilla 
</del><ins>+C&lt;dateTime&gt; The current time in UTC, according to the Bugzilla
</ins><span class="cx"> I&lt;database server&gt;.
</span><span class="cx"> 
</span><span class="cx"> Note that Bugzilla assumes that the database and the webserver are running
</span><span class="lines">@@ -225,7 +358,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;web_time&gt;
</span><span class="cx"> 
</span><del>-C&lt;dateTime&gt; This is the current time in UTC, according to Bugzilla's 
</del><ins>+C&lt;dateTime&gt; This is the current time in UTC, according to Bugzilla's
</ins><span class="cx"> I&lt;web server&gt;.
</span><span class="cx"> 
</span><span class="cx"> This might be different by a second from C&lt;db_time&gt; since this comes from
</span><span class="lines">@@ -241,7 +374,7 @@
</span><span class="cx"> =item C&lt;tz_name&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The literal string C&lt;UTC&gt;. (Exists only for backwards-compatibility
</span><del>-with versions of Bugzilla before 3.6.) 
</del><ins>+with versions of Bugzilla before 3.6.)
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;tz_short_name&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -265,6 +398,136 @@
</span><span class="cx"> were in the UTC timezone, instead of returning information in the server's
</span><span class="cx"> local timezone.
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head2 parameters
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Returns parameter values currently used in this Bugzilla.
+
+=item B&lt;REST&gt;
+
+GET /rest/parameters
+
+The returned data format is the same as below.
+
+=item B&lt;Params&gt; (none)
+
+=item B&lt;Returns&gt;
+
+A hash with a single item C&lt;parameters&gt; which contains a hash with
+the name of the parameters as keys and their value as values. All
+values are returned as strings.
+The list of parameters returned by this method depends on the user
+credentials:
+
+A logged-out user can only access the C&lt;maintainer&gt; and C&lt;requirelogin&gt; parameters.
+
+A logged-in user can access the following parameters (listed alphabetically):
+    C&lt;allowemailchange&gt;,
+    C&lt;attachment_base&gt;,
+    C&lt;commentonchange_resolution&gt;,
+    C&lt;commentonduplicate&gt;,
+    C&lt;cookiepath&gt;,
+    C&lt;defaultopsys&gt;,
+    C&lt;defaultplatform&gt;,
+    C&lt;defaultpriority&gt;,
+    C&lt;defaultseverity&gt;,
+    C&lt;duplicate_or_move_bug_status&gt;,
+    C&lt;emailregexpdesc&gt;,
+    C&lt;emailsuffix&gt;,
+    C&lt;letsubmitterchoosemilestone&gt;,
+    C&lt;letsubmitterchoosepriority&gt;,
+    C&lt;mailfrom&gt;,
+    C&lt;maintainer&gt;,
+    C&lt;maxattachmentsize&gt;,
+    C&lt;maxlocalattachment&gt;,
+    C&lt;musthavemilestoneonaccept&gt;,
+    C&lt;noresolveonopenblockers&gt;,
+    C&lt;password_complexity&gt;,
+    C&lt;rememberlogin&gt;,
+    C&lt;requirelogin&gt;,
+    C&lt;search_allow_no_criteria&gt;,
+    C&lt;urlbase&gt;,
+    C&lt;use_see_also&gt;,
+    C&lt;useclassification&gt;,
+    C&lt;usemenuforusers&gt;,
+    C&lt;useqacontact&gt;,
+    C&lt;usestatuswhiteboard&gt;,
+    C&lt;usetargetmilestone&gt;.
+
+A user in the tweakparams group can access all existing parameters.
+New parameters can appear or obsolete parameters can disappear depending
+on the version of Bugzilla and on extensions being installed.
+The list of parameters returned by this method is not stable and will
+never be stable.
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 last_audit_time
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Gets the latest time of the audit_log table.
+
+=item B&lt;REST&gt;
+
+GET /rest/last_audit_time
+
+The returned data format is the same as below.
+
+=item B&lt;Params&gt;
+
+You can pass the optional parameter C&lt;class&gt; to get the maximum for only
+the listed classes.
+
+=over
+
+=item C&lt;class&gt; (array) - An array of strings representing the class names.
+
+B&lt;Note:&gt; The class names are defined as &quot;Bugzilla::&lt;class_name&gt;&quot;. For the product
+use Bugzilla:Product.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A hash with a single item, C&lt;last_audit_time&gt;, that is the maximum of the
+at_time from the audit_log.
+
+=item B&lt;Errors&gt; (none)
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceClassificationpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Classification.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Classification.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Classification.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,213 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Classification;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw (Bugzilla::WebService);
+
+use Bugzilla::Classification;
+use Bugzilla::Error;
+use Bugzilla::WebService::Util qw(filter validate params_to_objects);
+
+use constant READ_ONLY =&gt; qw(
+    get
+);
+
+use constant PUBLIC_METHODS =&gt; qw(
+    get
+);
+
+sub get {
+    my ($self, $params) = validate(@_, 'names', 'ids');
+
+    defined $params-&gt;{names} || defined $params-&gt;{ids}
+        || ThrowCodeError('params_required', { function =&gt; 'Classification.get',
+                                               params =&gt; ['names', 'ids'] });
+
+    my $user = Bugzilla-&gt;user;
+
+    Bugzilla-&gt;params-&gt;{'useclassification'}
+      || $user-&gt;in_group('editclassifications')
+      || ThrowUserError('auth_classification_not_enabled');
+
+    Bugzilla-&gt;switch_to_shadow_db;
+
+    my @classification_objs = @{ params_to_objects($params, 'Bugzilla::Classification') };
+    unless ($user-&gt;in_group('editclassifications')) {
+        my %selectable_class = map { $_-&gt;id =&gt; 1 } @{$user-&gt;get_selectable_classifications};
+        @classification_objs = grep { $selectable_class{$_-&gt;id} } @classification_objs;
+    }
+
+    my @classifications = map { $self-&gt;_classification_to_hash($_, $params) } @classification_objs;
+
+    return { classifications =&gt; \@classifications };
+}
+
+sub _classification_to_hash {
+    my ($self, $classification, $params) = @_;
+
+    my $user = Bugzilla-&gt;user;
+    return unless (Bugzilla-&gt;params-&gt;{'useclassification'} || $user-&gt;in_group('editclassifications'));
+
+    my $products = $user-&gt;in_group('editclassifications') ?
+                     $classification-&gt;products : $user-&gt;get_selectable_products($classification-&gt;id);
+
+    return filter $params, {
+        id          =&gt; $self-&gt;type('int',    $classification-&gt;id),
+        name        =&gt; $self-&gt;type('string', $classification-&gt;name),
+        description =&gt; $self-&gt;type('string', $classification-&gt;description),
+        sort_key    =&gt; $self-&gt;type('int',    $classification-&gt;sortkey),
+        products    =&gt; [ map { $self-&gt;_product_to_hash($_, $params) } @$products ],
+    };
+}
+
+sub _product_to_hash {
+    my ($self, $product, $params) = @_;
+
+    return filter $params, {
+       id          =&gt; $self-&gt;type('int', $product-&gt;id),
+       name        =&gt; $self-&gt;type('string', $product-&gt;name),
+       description =&gt; $self-&gt;type('string', $product-&gt;description),
+   }, undef, 'products';
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Classification - The Classification API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla API allows you to deal with the available Classifications.
+You will be able to get information about them as well as manipulate them.
+
+=head1 METHODS
+
+See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
+and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
+
+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
+=head1 Classification Retrieval
+
+=head2 get
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Returns a hash containing information about a set of classifications.
+
+=item B&lt;REST&gt;
+
+To return information on a single classification:
+
+GET /rest/classification/&lt;classification_id_or_name&gt;
+
+The returned data format will be the same as below.
+
+=item B&lt;Params&gt;
+
+In addition to the parameters below, this method also accepts the
+standard L&lt;include_fields|Bugzilla::WebService/include_fields&gt; and
+L&lt;exclude_fields|Bugzilla::WebService/exclude_fields&gt; arguments.
+
+You could get classifications info by supplying their names and/or ids.
+So, this method accepts the following parameters:
+
+=over
+
+=item C&lt;ids&gt;
+
+An array of classification ids.
+
+=item C&lt;names&gt;
+
+An array of classification names.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A hash with the key C&lt;classifications&gt; and an array of hashes as the corresponding value.
+Each element of the array represents a classification that the user is authorized to see
+and has the following keys:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the classification.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the classification.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; The description of the classificaion.
+
+=item C&lt;sort_key&gt;
+
+C&lt;int&gt; The value which determines the order the classification is sorted.
+
+=item C&lt;products&gt;
+
+An array of hashes. The array contains the products the user is authorized to
+access within the classification. Each hash has the following keys:
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the product.
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the product.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; The description of the product.
+
+=back
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 900 (Classification not enabled)
+
+Classification is not enabled on this installation.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceComponentpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Component.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Component.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Component.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,153 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Component;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use base qw(Bugzilla::WebService);
+
+use Bugzilla::Component;
+use Bugzilla::Constants;
+use Bugzilla::Error;
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Util qw(translate params_to_objects validate);
+
+use constant PUBLIC_METHODS =&gt; qw(                                                                                                                                                                                                            
+    create
+);
+
+use constant MAPPED_FIELDS =&gt; {
+    default_assignee   =&gt; 'initialowner',
+    default_qa_contact =&gt; 'initialqacontact',
+    default_cc         =&gt; 'initial_cc',
+    is_open            =&gt; 'isactive',
+};
+
+sub create {
+    my ($self, $params) = @_;
+
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    $user-&gt;in_group('editcomponents')
+        || scalar @{ $user-&gt;get_products_by_permission('editcomponents') }
+        || ThrowUserError('auth_failure', { group  =&gt; 'editcomponents',
+                                            action =&gt; 'edit',
+                                            object =&gt; 'components' });
+
+    my $product = $user-&gt;check_can_admin_product($params-&gt;{product});
+
+    # Translate the fields
+    my $values = translate($params, MAPPED_FIELDS);
+    $values-&gt;{product} = $product;
+
+    # Create the component and return the newly created id.
+    my $component = Bugzilla::Component-&gt;create($values);
+    return { id =&gt; $self-&gt;type('int', $component-&gt;id) };
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Component - The Component API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla API allows you to deal with the available product components.
+You will be able to get information about them as well as manipulate them.
+
+=head1 METHODS
+
+See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
+and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
+
+=head1 Component Creation and Modification
+
+=head2 create
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This allows you to create a new component in Bugzilla.
+
+=item B&lt;Params&gt;
+
+Some params must be set, or an error will be thrown. These params are
+marked B&lt;Required&gt;.
+
+=over
+
+=item C&lt;name&gt;
+
+B&lt;Required&gt; C&lt;string&gt; The name of the new component.
+
+=item C&lt;product&gt;
+
+B&lt;Required&gt; C&lt;string&gt; The name of the product that the component must be
+added to. This product must already exist, and the user have the necessary
+permissions to edit components for it.
+
+=item C&lt;description&gt;
+
+B&lt;Required&gt; C&lt;string&gt; The description of the new component.
+
+=item C&lt;default_assignee&gt;
+
+B&lt;Required&gt; C&lt;string&gt; The login name of the default assignee of the component.
+
+=item C&lt;default_cc&gt;
+
+C&lt;array&gt; An array of strings with each element representing one login name of the default CC list.
+
+=item C&lt;default_qa_contact&gt;
+
+C&lt;string&gt; The login name of the default QA contact for the component.
+
+=item C&lt;is_open&gt;
+
+C&lt;boolean&gt; 1 if you want to enable the component for bug creations. 0 otherwise. Default is 1.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A hash with one key: C&lt;id&gt;. This will represent the ID of the newly-added
+component.
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 304 (Authorization Failure)
+
+You are not authorized to create a new component.
+
+=item 1200 (Component already exists)
+
+The name that you specified for the new component already exists in the
+specified product.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceConstantspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Constants.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Constants.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Constants.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,36 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Constants;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Exporter);
+
</ins><span class="cx"> our @EXPORT = qw(
</span><span class="cx">     WS_ERROR_CODE
</span><ins>+
+    STATUS_OK
+    STATUS_CREATED
+    STATUS_ACCEPTED
+    STATUS_NO_CONTENT
+    STATUS_MULTIPLE_CHOICES
+    STATUS_BAD_REQUEST
+    STATUS_NOT_FOUND
+    STATUS_GONE
+    REST_STATUS_CODE_MAP
+
</ins><span class="cx">     ERROR_UNKNOWN_FATAL
</span><span class="cx">     ERROR_UNKNOWN_TRANSIENT
</span><ins>+
</ins><span class="cx">     XMLRPC_CONTENT_TYPE_WHITELIST
</span><ins>+    REST_CONTENT_TYPE_WHITELIST
</ins><span class="cx"> 
</span><span class="cx">     WS_DISPATCH
</span><span class="cx"> );
</span><span class="lines">@@ -61,6 +67,8 @@
</span><span class="cx">     number_too_large            =&gt; 54,
</span><span class="cx">     number_too_small            =&gt; 55,
</span><span class="cx">     illegal_date                =&gt; 56,
</span><ins>+    param_integer_required      =&gt; 57,
+    param_scalar_array_required =&gt; 58,
</ins><span class="cx">     # Bug errors usually occupy the 100-200 range.
</span><span class="cx">     improper_bug_id_field_value =&gt; 100,
</span><span class="cx">     bug_id_does_not_exist       =&gt; 101,
</span><span class="lines">@@ -76,8 +84,9 @@
</span><span class="cx">     illegal_field =&gt; 104,
</span><span class="cx">     freetext_too_long =&gt; 104,
</span><span class="cx">     # Component errors
</span><del>-    require_component       =&gt; 105,
-    component_name_too_long =&gt; 105,
</del><ins>+    require_component         =&gt; 105,
+    component_name_too_long   =&gt; 105,
+    product_unknown_component =&gt; 105,
</ins><span class="cx">     # Invalid Product
</span><span class="cx">     no_products         =&gt; 106,
</span><span class="cx">     entry_access_denied =&gt; 106,
</span><span class="lines">@@ -93,7 +102,12 @@
</span><span class="cx">     comment_is_private =&gt; 110,
</span><span class="cx">     comment_id_invalid =&gt; 111,
</span><span class="cx">     comment_too_long =&gt; 114,
</span><del>-    comment_invalid_isprivate =&gt; 117, 
</del><ins>+    comment_invalid_isprivate =&gt; 117,
+    # Comment tagging
+    comment_tag_disabled =&gt; 125,
+    comment_tag_invalid =&gt; 126,
+    comment_tag_too_long =&gt; 127,
+    comment_tag_too_short =&gt; 128,
</ins><span class="cx">     # See Also errors
</span><span class="cx">     bug_url_invalid =&gt; 112,
</span><span class="cx">     bug_url_too_long =&gt; 112,
</span><span class="lines">@@ -116,14 +130,25 @@
</span><span class="cx">     missing_resolution =&gt; 121,
</span><span class="cx">     resolution_not_allowed =&gt; 122,
</span><span class="cx">     illegal_bug_status_transition =&gt; 123,
</span><ins>+    # Flag errors
+    flag_status_invalid =&gt; 129,
+    flag_update_denied =&gt; 130,
+    flag_type_requestee_disabled =&gt; 131,
+    flag_not_unique =&gt; 132,
+    flag_type_not_unique =&gt; 133,
+    flag_type_inactive =&gt; 134,
</ins><span class="cx"> 
</span><span class="cx">     # Authentication errors are usually 300-400.
</span><del>-    invalid_username_or_password =&gt; 300,
</del><ins>+    invalid_login_or_password =&gt; 300,
</ins><span class="cx">     account_disabled             =&gt; 301,
</span><span class="cx">     auth_invalid_email           =&gt; 302,
</span><span class="cx">     extern_id_conflict           =&gt; -303,
</span><span class="cx">     auth_failure                 =&gt; 304,
</span><del>-    password_current_too_short   =&gt; 305,
</del><ins>+    password_too_short           =&gt; 305,
+    password_not_complex         =&gt; 305,
+    api_key_not_valid            =&gt; 306,
+    api_key_revoked              =&gt; 306,
+    auth_invalid_token           =&gt; 307,
</ins><span class="cx"> 
</span><span class="cx">     # Except, historically, AUTH_NODATA, which is 410.
</span><span class="cx">     login_required               =&gt; 410,
</span><span class="lines">@@ -167,10 +192,26 @@
</span><span class="cx">     empty_group_description =&gt; 802,
</span><span class="cx">     invalid_regexp =&gt; 803,
</span><span class="cx">     invalid_group_name =&gt; 804,
</span><ins>+    group_cannot_view =&gt; 805,
</ins><span class="cx"> 
</span><ins>+    # Classification errors are 900-1000
+    auth_classification_not_enabled =&gt; 900,
+
</ins><span class="cx">     # Search errors are 1000-1100
</span><span class="cx">     buglist_parameters_required =&gt; 1000,
</span><span class="cx"> 
</span><ins>+    # Flag type errors are 1100-1200
+    flag_type_name_invalid        =&gt; 1101,
+    flag_type_description_invalid =&gt; 1102,
+    flag_type_cc_list_invalid     =&gt; 1103,
+    flag_type_sortkey_invalid     =&gt; 1104,
+    flag_type_not_editable        =&gt; 1105,
+
+    # Component errors are 1200-1300
+    component_already_exists =&gt; 1200,
+    component_is_last        =&gt; 1201,
+    component_has_bugs       =&gt; 1202,
+
</ins><span class="cx">     # Errors thrown by the WebService itself. The ones that are negative 
</span><span class="cx">     # conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
</span><span class="cx">     xmlrpc_invalid_value =&gt; -32600,
</span><span class="lines">@@ -177,10 +218,57 @@
</span><span class="cx">     unknown_method       =&gt; -32601,
</span><span class="cx">     json_rpc_post_only   =&gt; 32610,
</span><span class="cx">     json_rpc_invalid_callback =&gt; 32611,
</span><del>-    xmlrpc_illegal_content_type   =&gt; 32612, 
-    json_rpc_illegal_content_type =&gt; 32613, 
</del><ins>+    xmlrpc_illegal_content_type   =&gt; 32612,
+    json_rpc_illegal_content_type =&gt; 32613,
+    rest_invalid_resource         =&gt; 32614,
</ins><span class="cx"> };
</span><span class="cx"> 
</span><ins>+# RESTful webservices use the http status code
+# to describe whether a call was successful or
+# to describe the type of error that occurred.
+use constant STATUS_OK               =&gt; 200;
+use constant STATUS_CREATED          =&gt; 201;
+use constant STATUS_ACCEPTED         =&gt; 202;
+use constant STATUS_NO_CONTENT       =&gt; 204;
+use constant STATUS_MULTIPLE_CHOICES =&gt; 300;
+use constant STATUS_BAD_REQUEST      =&gt; 400;
+use constant STATUS_NOT_AUTHORIZED   =&gt; 401;
+use constant STATUS_NOT_FOUND        =&gt; 404;
+use constant STATUS_GONE             =&gt; 410;
+
+# The integer value is the error code above returned by
+# the related webvservice call. We choose the appropriate
+# http status code based on the error code or use the
+# default STATUS_BAD_REQUEST.
+sub REST_STATUS_CODE_MAP {
+    my $status_code_map = {
+        51       =&gt; STATUS_NOT_FOUND,
+        101      =&gt; STATUS_NOT_FOUND,
+        102      =&gt; STATUS_NOT_AUTHORIZED,
+        106      =&gt; STATUS_NOT_AUTHORIZED,
+        109      =&gt; STATUS_NOT_AUTHORIZED,
+        110      =&gt; STATUS_NOT_AUTHORIZED,
+        113      =&gt; STATUS_NOT_AUTHORIZED,
+        115      =&gt; STATUS_NOT_AUTHORIZED,
+        120      =&gt; STATUS_NOT_AUTHORIZED,
+        300      =&gt; STATUS_NOT_AUTHORIZED,
+        301      =&gt; STATUS_NOT_AUTHORIZED,
+        302      =&gt; STATUS_NOT_AUTHORIZED,
+        303      =&gt; STATUS_NOT_AUTHORIZED,
+        304      =&gt; STATUS_NOT_AUTHORIZED,
+        410      =&gt; STATUS_NOT_AUTHORIZED,
+        504      =&gt; STATUS_NOT_AUTHORIZED,
+        505      =&gt; STATUS_NOT_AUTHORIZED,
+        32614    =&gt; STATUS_NOT_FOUND,
+        _default =&gt; STATUS_BAD_REQUEST
+    };
+
+    Bugzilla::Hook::process('webservice_status_code_map',
+        { status_code_map =&gt; $status_code_map });
+
+    return $status_code_map;
+};
+
</ins><span class="cx"> # These are the fallback defaults for errors not in ERROR_CODE.
</span><span class="cx"> use constant ERROR_UNKNOWN_FATAL     =&gt; -32000;
</span><span class="cx"> use constant ERROR_UNKNOWN_TRANSIENT =&gt; 32000;
</span><span class="lines">@@ -192,6 +280,14 @@
</span><span class="cx">     application/xml
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+# The first content type specified is used as the default.
+use constant REST_CONTENT_TYPE_WHITELIST =&gt; qw(
+    application/json
+    application/javascript
+    text/javascript
+    text/html
+);
+
</ins><span class="cx"> sub WS_DISPATCH {
</span><span class="cx">     # We &quot;require&quot; here instead of &quot;use&quot; above to avoid a dependency loop.
</span><span class="cx">     require Bugzilla::Hook;
</span><span class="lines">@@ -199,11 +295,15 @@
</span><span class="cx">     Bugzilla::Hook::process('webservice', { dispatch =&gt; \%hook_dispatch });
</span><span class="cx"> 
</span><span class="cx">     my $dispatch = {
</span><del>-        'Bugzilla' =&gt; 'Bugzilla::WebService::Bugzilla',
-        'Bug'      =&gt; 'Bugzilla::WebService::Bug',
-        'User'     =&gt; 'Bugzilla::WebService::User',
-        'Product'  =&gt; 'Bugzilla::WebService::Product',
-        'Group'    =&gt; 'Bugzilla::WebService::Group',
</del><ins>+        'Bugzilla'         =&gt; 'Bugzilla::WebService::Bugzilla',
+        'Bug'              =&gt; 'Bugzilla::WebService::Bug',
+        'Classification'   =&gt; 'Bugzilla::WebService::Classification',
+        'Component'        =&gt; 'Bugzilla::WebService::Component',
+        'FlagType'         =&gt; 'Bugzilla::WebService::FlagType',
+        'Group'            =&gt; 'Bugzilla::WebService::Group',
+        'Product'          =&gt; 'Bugzilla::WebService::Product',
+        'User'             =&gt; 'Bugzilla::WebService::User',
+        'BugUserLastVisit' =&gt; 'Bugzilla::WebService::BugUserLastVisit',
</ins><span class="cx">         %hook_dispatch
</span><span class="cx">     };
</span><span class="cx">     return $dispatch;
</span><span class="lines">@@ -210,3 +310,13 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item REST_STATUS_CODE_MAP
+
+=item WS_DISPATCH
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceFlagTypepm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/FlagType.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/FlagType.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/FlagType.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,830 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::FlagType;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::WebService);
+use Bugzilla::Component;
+use Bugzilla::Constants;
+use Bugzilla::Error;
+use Bugzilla::FlagType;
+use Bugzilla::Product;
+use Bugzilla::Util qw(trim);
+
+use List::MoreUtils qw(uniq);
+
+use constant PUBLIC_METHODS =&gt; qw(
+    create
+    get
+    update
+);
+
+sub get {
+    my ($self, $params) = @_;
+    my $dbh  = Bugzilla-&gt;switch_to_shadow_db();
+    my $user = Bugzilla-&gt;user;
+
+    defined $params-&gt;{product}
+        || ThrowCodeError('param_required',
+                          { function =&gt; 'Bug.flag_types',
+                            param   =&gt; 'product' });
+
+    my $product   = delete $params-&gt;{product};
+    my $component = delete $params-&gt;{component};
+
+    $product = Bugzilla::Product-&gt;check({ name =&gt; $product, cache =&gt; 1 });
+    $component = Bugzilla::Component-&gt;check(
+        { name =&gt; $component, product =&gt; $product, cache =&gt; 1 }) if $component;
+
+    my $flag_params = { product_id =&gt; $product-&gt;id };
+    $flag_params-&gt;{component_id} = $component-&gt;id if $component;
+    my $matched_flag_types = Bugzilla::FlagType::match($flag_params);
+
+    my $flag_types = { bug =&gt; [], attachment =&gt; [] };
+    foreach my $flag_type (@$matched_flag_types) {
+        push(@{ $flag_types-&gt;{bug} }, $self-&gt;_flagtype_to_hash($flag_type, $product))
+            if $flag_type-&gt;target_type eq 'bug';
+        push(@{ $flag_types-&gt;{attachment} }, $self-&gt;_flagtype_to_hash($flag_type, $product))
+            if $flag_type-&gt;target_type eq 'attachment';
+    }
+
+    return $flag_types;
+}
+
+sub create {
+    my ($self, $params) = @_;
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    $user-&gt;in_group('editcomponents')
+        || scalar(@{$user-&gt;get_products_by_permission('editcomponents')})
+        || ThrowUserError(&quot;auth_failure&quot;, { group =&gt; &quot;editcomponents&quot;,
+                                         action =&gt; &quot;add&quot;,
+                                         object =&gt; &quot;flagtypes&quot; });
+
+    $params-&gt;{name} || ThrowCodeError('param_required', { param =&gt; 'name' });
+    $params-&gt;{description} || ThrowCodeError('param_required', { param =&gt; 'description' });
+
+    my %args = (
+        sortkey =&gt; 1,
+        name =&gt; undef,
+        inclusions =&gt; ['0:0'],  # Default to __ALL__:__ALL__
+        cc_list =&gt; '',
+        description =&gt; undef,
+        is_requestable =&gt; 'on',
+        exclusions =&gt; [],
+        is_multiplicable =&gt; 'on',
+        request_group =&gt; '',
+        is_active =&gt; 'on',
+        is_specifically_requestable =&gt; 'on',
+        target_type =&gt; 'bug',
+        grant_group =&gt; '',
+    );
+
+    foreach my $key (keys %args) {
+        $args{$key} = $params-&gt;{$key} if defined($params-&gt;{$key});
+    }
+
+    $args{name} = trim($params-&gt;{name});
+    $args{description} = trim($params-&gt;{description});
+
+    # Is specifically requestable is actually is_requesteeable
+    if (exists $args{is_specifically_requestable}) {
+        $args{is_requesteeble} = delete $args{is_specifically_requestable};
+    }
+
+    # Default is on for the tickbox flags.
+    # If the user has set them to 'off' then undefine them so the flags are not ticked
+    foreach my $arg_name (qw(is_requestable is_multiplicable is_active is_requesteeble)) {
+        if (defined($args{$arg_name}) &amp;&amp; ($args{$arg_name} eq '0')) {
+            $args{$arg_name} = undef;
+        }
+    }
+
+    # Process group inclusions and exclusions
+    $args{inclusions} = _process_lists($params-&gt;{inclusions}) if defined $params-&gt;{inclusions};
+    $args{exclusions} = _process_lists($params-&gt;{exclusions}) if defined $params-&gt;{exclusions};
+
+    my $flagtype = Bugzilla::FlagType-&gt;create(\%args);
+
+    return { id =&gt; $self-&gt;type('int', $flagtype-&gt;id)  };
+}
+
+sub update {
+    my ($self, $params) = @_;
+    my $dbh = Bugzilla-&gt;dbh;
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    $user-&gt;in_group('editcomponents')
+        || scalar(@{$user-&gt;get_products_by_permission('editcomponents')})
+        || ThrowUserError(&quot;auth_failure&quot;, { group  =&gt; &quot;editcomponents&quot;,
+                                            action =&gt; &quot;edit&quot;,
+                                            object =&gt; &quot;flagtypes&quot; });
+
+    defined($params-&gt;{names}) || defined($params-&gt;{ids})
+        || ThrowCodeError('params_required',
+               { function =&gt; 'FlagType.update', params =&gt; ['ids', 'names'] });
+
+    # Get the list of unique flag type ids we are updating
+    my @flag_type_ids = defined($params-&gt;{ids}) ? @{$params-&gt;{ids}} : ();
+    if (defined $params-&gt;{names}) {
+        push @flag_type_ids, map { $_-&gt;id }
+            @{ Bugzilla::FlagType::match({ name =&gt; $params-&gt;{names} }) };
+    }
+    @flag_type_ids = uniq @flag_type_ids;
+
+    # We delete names and ids to keep only new values to set.
+    delete $params-&gt;{names};
+    delete $params-&gt;{ids};
+
+    # Process group inclusions and exclusions
+    # We removed them from $params because these are handled differently
+    my $inclusions = _process_lists(delete $params-&gt;{inclusions}) if defined $params-&gt;{inclusions};
+    my $exclusions = _process_lists(delete $params-&gt;{exclusions}) if defined $params-&gt;{exclusions};
+
+    $dbh-&gt;bz_start_transaction();
+    my %changes = ();
+
+    foreach my $flag_type_id (@flag_type_ids) {
+        my ($flagtype, $can_fully_edit) = $user-&gt;check_can_admin_flagtype($flag_type_id);
+
+        if ($can_fully_edit) {
+            $flagtype-&gt;set_all($params);
+        }
+        elsif (scalar keys %$params) {
+            ThrowUserError('flag_type_not_editable', { flagtype =&gt; $flagtype });
+        }
+
+        # Process the clusions
+        foreach my $type ('inclusions', 'exclusions') {
+            my $clusions = $type eq 'inclusions' ? $inclusions : $exclusions;
+            next if not defined $clusions;
+
+            my @extra_clusions = ();
+            if (!$user-&gt;in_group('editcomponents')) {
+                my $products = $user-&gt;get_products_by_permission('editcomponents');
+                # Bring back the products the user cannot edit.
+                foreach my $item (values %{$flagtype-&gt;$type}) {
+                    my ($prod_id, $comp_id) = split(':', $item);
+                    push(@extra_clusions, $item) unless grep { $_-&gt;id == $prod_id } @$products;
+                }
+            }
+
+            $flagtype-&gt;set_clusions({
+                $type =&gt; [@$clusions, @extra_clusions],
+            });
+        }
+
+        my $returned_changes = $flagtype-&gt;update();
+        $changes{$flagtype-&gt;id} = {
+            name    =&gt; $flagtype-&gt;name,
+            changes =&gt; $returned_changes,
+        };
+    }
+    $dbh-&gt;bz_commit_transaction();
+
+    my @result;
+    foreach my $flag_type_id (keys %changes) {
+        my %hash = (
+            id      =&gt; $self-&gt;type('int',    $flag_type_id),
+            name    =&gt; $self-&gt;type('string', $changes{$flag_type_id}{name}),
+            changes =&gt; {},
+        );
+
+        foreach my $field (keys %{ $changes{$flag_type_id}{changes} }) {
+            my $change = $changes{$flag_type_id}{changes}{$field};
+            $hash{changes}{$field} = {
+                removed =&gt; $self-&gt;type('string', $change-&gt;[0]),
+                added   =&gt; $self-&gt;type('string', $change-&gt;[1])
+            };
+        }
+
+        push(@result, \%hash);
+    }
+
+    return { flagtypes =&gt; \@result };
+}
+
+sub _flagtype_to_hash {
+    my ($self, $flagtype, $product) = @_;
+    my $user = Bugzilla-&gt;user;
+
+    my @values = ('X');
+    push(@values, '?') if ($flagtype-&gt;is_requestable &amp;&amp; $user-&gt;can_request_flag($flagtype));
+    push(@values, '+', '-') if $user-&gt;can_set_flag($flagtype);
+
+    my $item = {
+        id          =&gt; $self-&gt;type('int'    , $flagtype-&gt;id),
+        name        =&gt; $self-&gt;type('string' , $flagtype-&gt;name),
+        description =&gt; $self-&gt;type('string' , $flagtype-&gt;description),
+        type        =&gt; $self-&gt;type('string' , $flagtype-&gt;target_type),
+        values      =&gt; \@values,
+        is_active   =&gt; $self-&gt;type('boolean', $flagtype-&gt;is_active),
+        is_requesteeble  =&gt; $self-&gt;type('boolean', $flagtype-&gt;is_requesteeble),
+        is_multiplicable =&gt; $self-&gt;type('boolean', $flagtype-&gt;is_multiplicable)
+    };
+
+    if ($product) {
+        my $inclusions = $self-&gt;_flagtype_clusions_to_hash($flagtype-&gt;inclusions, $product-&gt;id);
+        my $exclusions = $self-&gt;_flagtype_clusions_to_hash($flagtype-&gt;exclusions, $product-&gt;id);
+        # if we have both inclusions and exclusions, the exclusions are redundant
+        $exclusions = [] if @$inclusions &amp;&amp; @$exclusions;
+        # no need to return anything if there's just &quot;any component&quot;
+        $item-&gt;{inclusions} = $inclusions if @$inclusions &amp;&amp; $inclusions-&gt;[0] ne '';
+        $item-&gt;{exclusions} = $exclusions if @$exclusions &amp;&amp; $exclusions-&gt;[0] ne '';
+    }
+
+    return $item;
+}
+
+sub _flagtype_clusions_to_hash {
+    my ($self, $clusions, $product_id) = @_;
+    my $result = [];
+    foreach my $key (keys %$clusions) {
+        my ($prod_id, $comp_id) = split(/:/, $clusions-&gt;{$key}, 2);
+        if ($prod_id == 0 || $prod_id == $product_id) {
+            if ($comp_id) {
+                my $component = Bugzilla::Component-&gt;new({ id =&gt; $comp_id, cache =&gt; 1 });
+                push @$result, $component-&gt;name;
+            }
+            else {
+                return [ '' ];
+            }
+        }
+    }
+    return $result;
+}
+
+sub _process_lists {
+    my $list = shift;
+    my $user = Bugzilla-&gt;user;
+
+    my @products;
+    if ($user-&gt;in_group('editcomponents')) {
+        @products = Bugzilla::Product-&gt;get_all;
+    }
+    else {
+        @products = @{$user-&gt;get_products_by_permission('editcomponents')};
+    }
+
+    my @component_list;
+
+    foreach my $item (@$list) {
+        # A hash with products as the key and component names as the values
+        if(ref($item) eq 'HASH') {
+            while (my ($product_name, $component_names) = each %$item) {
+                my $product = Bugzilla::Product-&gt;check({name =&gt; $product_name});
+                unless (grep { $product-&gt;name eq $_-&gt;name } @products) {
+                    ThrowUserError('product_access_denied', { name =&gt; $product_name });
+                }
+                my @component_ids;
+
+                foreach my $comp_name (@$component_names) {
+                    my $component = Bugzilla::Component-&gt;check({product =&gt; $product, name =&gt; $comp_name});
+                    ThrowCodeError('param_invalid', { param =&gt; $comp_name}) unless defined $component;
+                    push @component_list, $product-&gt;id . ':' . $component-&gt;id;
+                }
+            }
+        }
+        elsif(!ref($item)) {
+            # These are whole products
+            my $product = Bugzilla::Product-&gt;check({name =&gt; $item});
+            unless (grep { $product-&gt;name eq $_-&gt;name } @products) {
+                ThrowUserError('product_access_denied', { name =&gt; $item });
+            }
+            push @component_list, $product-&gt;id . ':0';
+        }
+        else {
+            # The user has passed something invalid
+            ThrowCodeError('param_invalid', { param =&gt; $item });
+        }
+    }
+
+    return \@component_list;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::WebService::FlagType - API for creating flags.
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla API allows you to create new flags
+
+=head1 METHODS
+
+See L&lt;Bugzilla::WebService&gt; for a description of what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;,
+and B&lt;EXPERIMENTAL&gt; mean, and for more description about error codes.
+
+=head2 Get Flag Types
+
+=over
+
+=item C&lt;get&gt; B&lt;UNSTABLE&gt;
+
+=item B&lt;Description&gt;
+
+Get information about valid flag types that can be set for bugs and attachments.
+
+=item B&lt;REST&gt;
+
+You have several options for retreiving information about flag types. The first
+part is the request method and the rest is the related path needed.
+
+To get information about all flag types for a product:
+
+GET /rest/flag_type/&lt;product&gt;
+
+To get information about flag_types for a product and component:
+
+GET /rest/flag_type/&lt;product&gt;/&lt;component&gt;
+
+The returned data format is the same as below.
+
+=item B&lt;Params&gt;
+
+You must pass a product name and an optional component name.
+
+=over
+
+=item C&lt;product&gt;   (string) - The name of a valid product.
+
+=item C&lt;component&gt; (string) - An optional valid component name associated with the product.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A hash containing two keys, C&lt;bug&gt; and C&lt;attachment&gt;. Each key value is an array of hashes,
+containing the following keys:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; An integer id uniquely identifying this flag type.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name for the flag type.
+
+=item C&lt;type&gt;
+
+C&lt;string&gt; The target of the flag type which is either C&lt;bug&gt; or C&lt;attachment&gt;.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; The description of the flag type.
+
+=item C&lt;values&gt;
+
+C&lt;array&gt; An array of string values that the user can set on the flag type.
+
+=item C&lt;is_requesteeble&gt;
+
+C&lt;boolean&gt; Users can ask specific other users to set flags of this type.
+
+=item C&lt;is_multiplicable&gt;
+
+C&lt;boolean&gt; Multiple flags of this type can be set for the same bug or attachment.
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 106 (Product Access Denied)
+
+Either the product does not exist or you don't have access to it.
+
+=item 51 (Invalid Component)
+
+The component provided does not exist in the product.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 Create Flag
+
+=over
+
+=item C&lt;create&gt; B&lt;UNSTABLE&gt;
+
+=item B&lt;Description&gt;
+
+Creates a new FlagType
+
+=item B&lt;REST&gt;
+
+POST /rest/flag_type
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
+=item B&lt;Params&gt;
+
+At a minimum the following two arguments must be supplied:
+
+=over
+
+=item C&lt;name&gt; (string) - The name of the new Flag Type.
+
+=item C&lt;description&gt; (string) - A description for the Flag Type object.
+
+=back
+
+=item B&lt;Returns&gt;
+
+C&lt;int&gt; flag_id
+
+The ID of the new FlagType object is returned.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item name B&lt;required&gt;
+
+C&lt;string&gt; A short name identifying this type.
+
+=item description B&lt;required&gt;
+
+C&lt;string&gt; A comprehensive description of this type.
+
+=item inclusions B&lt;optional&gt;
+
+An array of strings or a hash containing product names, and optionally
+component names. If you provide a string, the flag type will be shown on
+all bugs in that product. If you provide a hash, the key represents the
+product name, and the value is the components of the product to be included.
+
+For example:
+
+ [ 'FooProduct',
+   {
+     BarProduct =&gt; [ 'C1', 'C3' ],
+     BazProduct =&gt; [ 'C7' ]
+   }
+ ]
+
+This flag will be added to B&lt;All&gt; components of I&lt;FooProduct&gt;,
+components C1 and C3 of I&lt;BarProduct&gt;, and C7 of I&lt;BazProduct&gt;.
+
+=item exclusions B&lt;optional&gt;
+
+An array of strings or hashes containing product names. This uses the same
+fromat as inclusions.
+
+This will exclude the flag from all products and components specified.
+
+=item sortkey B&lt;optional&gt;
+
+C&lt;int&gt; A number between 1 and 32767 by which this type will be sorted when
+displayed to users in a list; ignore if you don't care what order the types
+appear in or if you want them to appear in alphabetical order.
+
+=item is_active B&lt;optional&gt;
+
+C&lt;boolean&gt; Flag of this type appear in the UI and can be set. Default is B&lt;true&gt;.
+
+=item is_requestable B&lt;optional&gt;
+
+C&lt;boolean&gt; Users can ask for flags of this type to be set. Default is B&lt;true&gt;.
+
+=item cc_list B&lt;optional&gt;
+
+C&lt;array&gt; An array of strings. If the flag type is requestable, who should
+receive e-mail notification of requests. This is an array of e-mail addresses
+which do not need to be Bugzilla logins.
+
+=item is_specifically_requestable B&lt;optional&gt;
+
+C&lt;boolean&gt; Users can ask specific other users to set flags of this type as
+opposed to just asking the wind.  Default is B&lt;true&gt;.
+
+=item is_multiplicable B&lt;optional&gt;
+
+C&lt;boolean&gt; Multiple flags of this type can be set on the same bug. Default is B&lt;true&gt;.
+
+=item grant_group B&lt;optional&gt;
+
+C&lt;string&gt; The group allowed to grant/deny flags of this type (to allow all
+users to grant/deny these flags, select no group). Default is B&lt;no group&gt;.
+
+=item request_group B&lt;optional&gt;
+
+C&lt;string&gt; If flags of this type are requestable, the group allowed to request
+them (to allow all users to request these flags, select no group). Note that
+the request group alone has no effect if the grant group is not defined!
+Default is B&lt;no group&gt;.
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 51 (Group Does Not Exist)
+
+The group name you entered does not exist, or you do not have access to it.
+
+=item 105 (Unknown component)
+
+The component does not exist for this product.
+
+=item 106 (Product Access Denied)
+
+Either the product does not exist or you don't have editcomponents privileges
+to it.
+
+=item 501 (Illegal Email Address)
+
+One of the e-mail address in the CC list is invalid. An e-mail in the CC
+list does NOT need to be a valid Bugzilla user.
+
+=item 1101 (Flag Type Name invalid)
+
+You must specify a non-blank name for this flag type. It must
+no contain spaces or commas, and must be 50 characters or less.
+
+=item 1102 (Flag type must have description)
+
+You must specify a description for this flag type.
+
+=item 1103 (Flag type CC list is invalid
+
+The CC list must be 200 characters or less.
+
+=item 1104 (Flag Type Sort Key Not Valid)
+
+The sort key is not a valid number.
+
+=item 1105 (Flag Type Not Editable)
+
+This flag type is not available for the products you can administer. Therefore
+you can not edit attributes of the flag type, other than the inclusion and
+exclusion list.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 update
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This allows you to update a flag type in Bugzilla.
+
+=item B&lt;REST&gt;
+
+PUT /rest/flag_type/&lt;product_id_or_name&gt;
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. The C&lt;ids&gt; and C&lt;names&gt; params will be overridden as
+it is pulled from the URL path.
+
+=item B&lt;Params&gt;
+
+B&lt;Note:&gt; The following parameters specify which products you are updating.
+You must set one or both of these parameters.
+
+=over
+
+=item C&lt;ids&gt;
+
+C&lt;array&gt; of C&lt;int&gt;s. Numeric ids of the flag types that you wish to update.
+
+=item C&lt;names&gt;
+
+C&lt;array&gt; of C&lt;string&gt;s. Names of the flag types that you wish to update. If
+many flag types have the same name, this will change ALL of them.
+
+=back
+
+B&lt;Note:&gt; The following parameters specify the new values you want to set for
+the products you are updating.
+
+=over
+
+=item name
+
+C&lt;string&gt; A short name identifying this type.
+
+=item description
+
+C&lt;string&gt; A comprehensive description of this type.
+
+=item inclusions B&lt;optional&gt;
+
+An array of strings or a hash containing product names, and optionally
+component names. If you provide a string, the flag type will be shown on
+all bugs in that product. If you provide a hash, the key represents the
+product name, and the value is the components of the product to be included.
+
+for example
+
+ [ 'FooProduct',
+   {
+     BarProduct =&gt; [ 'C1', 'C3' ],
+     BazProduct =&gt; [ 'C7' ]
+   }
+ ]
+
+This flag will be added to B&lt;All&gt; components of I&lt;FooProduct&gt;,
+components C1 and C3 of I&lt;BarProduct&gt;, and C7 of I&lt;BazProduct&gt;.
+
+=item exclusions B&lt;optional&gt;
+
+An array of strings or hashes containing product names.
+This uses the same fromat as inclusions.
+
+This will exclude the flag from all products and components specified.
+
+=item sortkey
+
+C&lt;int&gt; A number between 1 and 32767 by which this type will be sorted when
+displayed to users in a list; ignore if you don't care what order the types
+appear in or if you want them to appear in alphabetical order.
+
+=item is_active
+
+C&lt;boolean&gt; Flag of this type appear in the UI and can be set.
+
+=item is_requestable
+
+C&lt;boolean&gt; Users can ask for flags of this type to be set.
+
+=item cc_list
+
+C&lt;array&gt; An array of strings. If the flag type is requestable, who should
+receive e-mail notification of requests. This is an array of e-mail addresses
+which do not need to be Bugzilla logins.
+
+=item is_specifically_requestable
+
+C&lt;boolean&gt; Users can ask specific other users to set flags of this type as
+opposed to just asking the wind.
+
+=item is_multiplicable
+
+C&lt;boolean&gt; Multiple flags of this type can be set on the same bug.
+
+=item grant_group
+
+C&lt;string&gt; The group allowed to grant/deny flags of this type (to allow all
+users to grant/deny these flags, select no group).
+
+=item request_group
+
+C&lt;string&gt; If flags of this type are requestable, the group allowed to request
+them (to allow all users to request these flags, select no group). Note that
+the request group alone has no effect if the grant group is not defined!
+
+=back
+
+=item B&lt;Returns&gt;
+
+A C&lt;hash&gt; with a single field &quot;flagtypes&quot;. This points to an array of hashes
+with the following fields:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the product that was updated.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; The name of the product that was updated.
+
+=item C&lt;changes&gt;
+
+C&lt;hash&gt; The changes that were actually done on this product. The keys are
+the names of the fields that were changed, and the values are a hash
+with two keys:
+
+=over
+
+=item C&lt;added&gt;
+
+C&lt;string&gt; The value that this field was changed to.
+
+=item C&lt;removed&gt;
+
+C&lt;string&gt; The value that was previously set in this field.
+
+=back
+
+Note that booleans will be represented with the strings '1' and '0'.
+
+Here's an example of what a return value might look like:
+
+ {
+   products =&gt; [
+     {
+       id =&gt; 123,
+       changes =&gt; {
+         name =&gt; {
+           removed =&gt; 'FooFlagType',
+           added   =&gt; 'BarFlagType'
+         },
+         is_requestable =&gt; {
+           removed =&gt; '1',
+           added   =&gt; '0',
+         }
+       }
+     }
+   ]
+ }
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 51 (Group Does Not Exist)
+
+The group name you entered does not exist, or you do not have access to it.
+
+=item 105 (Unknown component)
+
+The component does not exist for this product.
+
+=item 106 (Product Access Denied)
+
+Either the product does not exist or you don't have editcomponents privileges
+to it.
+
+=item 501 (Illegal Email Address)
+
+One of the e-mail address in the CC list is invalid. An e-mail in the CC
+list does NOT need to be a valid Bugzilla user.
+
+=item 1101 (Flag Type Name invalid)
+
+You must specify a non-blank name for this flag type. It must
+no contain spaces or commas, and must be 50 characters or less.
+
+=item 1102 (Flag type must have description)
+
+You must specify a description for this flag type.
+
+=item 1103 (Flag type CC list is invalid
+
+The CC list must be 200 characters or less.
+
+=item 1104 (Flag Type Sort Key Not Valid)
+
+The sort key is not a valid number.
+
+=item 1105 (Flag Type Not Editable)
+
+This flag type is not available for the products you can administer. Therefore
+you can not edit attributes of the flag type, other than the inclusion and
+exclusion list.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceGrouppm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Group.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Group.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Group.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,32 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): 
-#   Carole Pryfer &lt;carole.pryfer@dgfip.finances.gouv.fr&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Group;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::WebService);
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><ins>+use Bugzilla::WebService::Util qw(validate translate params_to_objects);
</ins><span class="cx"> 
</span><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    create
+    get
+    update
+);
+
+use constant MAPPED_RETURNS =&gt; {
+    userregexp =&gt; 'user_regexp',
+    isactive =&gt; 'is_active'
+};
+
</ins><span class="cx"> sub create {
</span><span class="cx">     my ($self, $params) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -42,6 +47,179 @@
</span><span class="cx">     return { id =&gt; $self-&gt;type('int', $group-&gt;id) };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub update {
+    my ($self, $params) = @_;
+
+    my $dbh = Bugzilla-&gt;dbh;
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+    Bugzilla-&gt;user-&gt;in_group('creategroups')
+        || ThrowUserError(&quot;auth_failure&quot;, { group  =&gt; &quot;creategroups&quot;,
+                                            action =&gt; &quot;edit&quot;,
+                                            object =&gt; &quot;group&quot; });
+
+    defined($params-&gt;{names}) || defined($params-&gt;{ids})
+        || ThrowCodeError('params_required',
+               { function =&gt; 'Group.update', params =&gt; ['ids', 'names'] });
+
+    my $group_objects = params_to_objects($params, 'Bugzilla::Group');
+
+    my %values = %$params;
+    
+    # We delete names and ids to keep only new values to set.
+    delete $values{names};
+    delete $values{ids};
+
+    $dbh-&gt;bz_start_transaction();
+    foreach my $group (@$group_objects) {
+        $group-&gt;set_all(\%values);
+    }
+
+    my %changes;
+    foreach my $group (@$group_objects) {
+        my $returned_changes = $group-&gt;update();
+        $changes{$group-&gt;id} = translate($returned_changes, MAPPED_RETURNS);
+    }
+    $dbh-&gt;bz_commit_transaction();
+
+    my @result;
+    foreach my $group (@$group_objects) {
+        my %hash = (
+            id      =&gt; $group-&gt;id,
+            changes =&gt; {},
+        );
+        foreach my $field (keys %{ $changes{$group-&gt;id} }) {
+            my $change = $changes{$group-&gt;id}-&gt;{$field};
+            $hash{changes}{$field} = {
+                removed =&gt; $self-&gt;type('string', $change-&gt;[0]),
+                added   =&gt; $self-&gt;type('string', $change-&gt;[1]) 
+            };
+        }
+       push(@result, \%hash);
+    }
+
+    return { groups =&gt; \@result };
+}
+
+sub get {
+    my ($self, $params) = validate(@_, 'ids', 'names', 'type');
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    # Reject access if there is no sense in continuing.
+    my $user = Bugzilla-&gt;user;
+    my $all_groups = $user-&gt;in_group('editusers') || $user-&gt;in_group('creategroups');
+    if (!$all_groups &amp;&amp; !$user-&gt;can_bless) {
+        ThrowUserError('group_cannot_view');
+    }
+
+    Bugzilla-&gt;switch_to_shadow_db();
+
+    my $groups = [];
+
+    if (defined $params-&gt;{ids}) {
+        # Get the groups by id
+        $groups = Bugzilla::Group-&gt;new_from_list($params-&gt;{ids});
+    }
+
+    if (defined $params-&gt;{names}) {
+        # Get the groups by name. Check will throw an error if a bad name is given
+        foreach my $name (@{$params-&gt;{names}}) {
+            # Skip if we got this from params-&gt;{id}
+            next if grep { $_-&gt;name eq $name } @$groups;
+
+            push @$groups, Bugzilla::Group-&gt;check({ name =&gt; $name });
+        }
+    }
+
+    if (!defined $params-&gt;{ids} &amp;&amp; !defined $params-&gt;{names}) {
+        if ($all_groups) {
+            @$groups = Bugzilla::Group-&gt;get_all;
+        }
+        else {
+            # Get only groups the user has bless groups too
+            $groups = $user-&gt;bless_groups;
+        }
+    }
+
+    # Now create a result entry for each.
+    my @groups = map { $self-&gt;_group_to_hash($params, $_) } @$groups;
+    return { groups =&gt; \@groups };
+}
+
+sub _group_to_hash {
+    my ($self, $params, $group) = @_;
+    my $user = Bugzilla-&gt;user;
+
+    my $field_data = {
+        id          =&gt; $self-&gt;type('int', $group-&gt;id),
+        name        =&gt; $self-&gt;type('string', $group-&gt;name),
+        description =&gt; $self-&gt;type('string', $group-&gt;description),
+    };
+
+    if ($user-&gt;in_group('creategroups')) {
+        $field_data-&gt;{is_active}    = $self-&gt;type('boolean', $group-&gt;is_active);
+        $field_data-&gt;{is_bug_group} = $self-&gt;type('boolean', $group-&gt;is_bug_group);
+        $field_data-&gt;{user_regexp}  = $self-&gt;type('string', $group-&gt;user_regexp);
+    }
+
+    if ($params-&gt;{membership}) {
+        $field_data-&gt;{membership} = $self-&gt;_get_group_membership($group, $params);
+    }
+    return $field_data;
+}
+
+sub _get_group_membership {
+    my ($self, $group, $params) = @_;
+    my $user = Bugzilla-&gt;user;
+
+    my %users_only;
+    my $dbh = Bugzilla-&gt;dbh;
+    my $editusers = $user-&gt;in_group('editusers');
+
+    my $query = 'SELECT userid FROM profiles';
+    my $visibleGroups;
+
+    if (!$editusers &amp;&amp; Bugzilla-&gt;params-&gt;{'usevisibilitygroups'}) {
+        # Show only users in visible groups.
+        $visibleGroups = $user-&gt;visible_groups_inherited;
+
+        if (scalar @$visibleGroups) {
+            $query .= qq{, user_group_map AS ugm
+                         WHERE ugm.user_id = profiles.userid
+                           AND ugm.isbless = 0
+                           AND } . $dbh-&gt;sql_in('ugm.group_id', $visibleGroups);
+        }
+    } elsif ($editusers || $user-&gt;can_bless($group-&gt;id) || $user-&gt;in_group('creategroups')) {
+        $visibleGroups = 1;
+        $query .= qq{, user_group_map AS ugm
+                     WHERE ugm.user_id = profiles.userid
+                       AND ugm.isbless = 0
+                    };
+    }
+    if (!$visibleGroups) {
+        ThrowUserError('group_not_visible', { group =&gt; $group });
+    }
+
+    my $grouplist = Bugzilla::Group-&gt;flatten_group_membership($group-&gt;id);
+    $query .= ' AND ' . $dbh-&gt;sql_in('ugm.group_id', $grouplist);
+
+    my $userids = $dbh-&gt;selectcol_arrayref($query);
+    my $user_objects = Bugzilla::User-&gt;new_from_list($userids);
+    my @users =
+        map {{
+            id                =&gt; $self-&gt;type('int', $_-&gt;id),
+            real_name         =&gt; $self-&gt;type('string', $_-&gt;name),
+            name              =&gt; $self-&gt;type('string', $_-&gt;login),
+            email             =&gt; $self-&gt;type('string', $_-&gt;email),
+            can_login         =&gt; $self-&gt;type('boolean', $_-&gt;is_enabled),
+            email_enabled     =&gt; $self-&gt;type('boolean', $_-&gt;email_enabled),
+            login_denied_text =&gt; $self-&gt;type('string', $_-&gt;disabledtext),
+        }} @$user_objects;
+
+    return \@users;
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -61,8 +239,12 @@
</span><span class="cx"> See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
</span><span class="cx"> and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
</span><span class="cx"> 
</span><del>-=head1 Group Creation
</del><ins>+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
</ins><span class="cx"> 
</span><ins>+=head1 Group Creation and Modification
+
</ins><span class="cx"> =head2 create
</span><span class="cx"> 
</span><span class="cx"> B&lt;UNSTABLE&gt;
</span><span class="lines">@@ -73,9 +255,16 @@
</span><span class="cx"> 
</span><span class="cx"> This allows you to create a new group in Bugzilla.
</span><span class="cx"> 
</span><del>-=item B&lt;Params&gt; 
</del><ins>+=item B&lt;REST&gt;
</ins><span class="cx"> 
</span><del>-Some params must be set, or an error will be thrown. These params are 
</del><ins>+POST /rest/group
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
+=item B&lt;Params&gt;
+
+Some params must be set, or an error will be thrown. These params are
</ins><span class="cx"> marked B&lt;Required&gt;.
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -96,7 +285,7 @@
</span><span class="cx"> C&lt;string&gt; A regular expression. Any user whose Bugzilla username matches
</span><span class="cx"> this regular expression will automatically be granted membership in this group.
</span><span class="cx"> 
</span><del>-=item C&lt;is_active&gt; 
</del><ins>+=item C&lt;is_active&gt;
</ins><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; C&lt;True&gt; if new group can be used for bugs, C&lt;False&gt; if this
</span><span class="cx"> is a group that will only contain users and no bugs will be restricted
</span><span class="lines">@@ -110,7 +299,7 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=item B&lt;Returns&gt;    
</del><ins>+=item B&lt;Returns&gt;
</ins><span class="cx"> 
</span><span class="cx"> A hash with one element, C&lt;id&gt;. This is the id of the newly-created group.
</span><span class="cx"> 
</span><span class="lines">@@ -136,6 +325,282 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=back 
</del><ins>+=item B&lt;History&gt;
</ins><span class="cx"> 
</span><ins>+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head2 update
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This allows you to update a group in Bugzilla.
+
+=item B&lt;REST&gt;
+
+PUT /rest/group/&lt;group_name_or_id&gt;
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. The C&lt;ids&gt; param will be overridden as it is pulled
+from the URL path.
+
+=item B&lt;Params&gt;
+
+At least C&lt;ids&gt; or C&lt;names&gt; must be set, or an error will be thrown.
+
+=over
+
+=item C&lt;ids&gt;
+
+B&lt;Required&gt; C&lt;array&gt; Contain ids of groups to update.
+
+=item C&lt;names&gt;
+
+B&lt;Required&gt; C&lt;array&gt; Contain names of groups to update.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; A new name for group.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; A new description for groups. This is what will appear in the UI
+as the name of the groups.
+
+=item C&lt;user_regexp&gt;
+
+C&lt;string&gt; A new regular expression for email. Will automatically grant
+membership to these groups to anyone with an email address that matches
+this perl regular expression.
+
+=item C&lt;is_active&gt;
+
+C&lt;boolean&gt; Set if groups are active and eligible to be used for bugs.
+True if bugs can be restricted to this group, false otherwise.
+
+=item C&lt;icon_url&gt;
+
+C&lt;string&gt; A URL pointing to an icon that will appear next to the name of
+users who are in this group.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A C&lt;hash&gt; with a single field &quot;groups&quot;. This points to an array of hashes
+with the following fields:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the group that was updated.
+
+=item C&lt;changes&gt;
+
+C&lt;hash&gt; The changes that were actually done on this group. The keys are
+the names of the fields that were changed, and the values are a hash
+with two keys:
+
+=over
+
+=item C&lt;added&gt;
+
+C&lt;string&gt; The values that were added to this field,
+possibly a comma-and-space-separated list if multiple values were added.
+
+=item C&lt;removed&gt;
+
+C&lt;string&gt; The values that were removed from this field, possibly a
+comma-and-space-separated list if multiple values were removed.
+
+=back
+
+=back
+
+=item B&lt;Errors&gt;
+
+The same as L&lt;/create&gt;.
+
+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
+=head1 Group Information
+
+=head2 get
+
+B&lt;UNSTABLE&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Returns information about L&lt;Bugzilla::Group|Groups&gt;.
+
+=item B&lt;REST&gt;
+
+To return information about a specific group by C&lt;id&gt; or C&lt;name&gt;:
+
+GET /rest/group/&lt;group_id_or_name&gt;
+
+You can also return information about more than one specific group
+by using the following in your query string:
+
+GET /rest/group?ids=1&amp;ids=2&amp;ids=3 or GET /group?names=ProductOne&amp;names=Product2
+
+the returned data format is same as below.
+
+=item B&lt;Params&gt;
+
+If neither ids or names is passed, and you are in the creategroups or
+editusers group, then all groups will be retrieved. Otherwise, only groups
+that you have bless privileges for will be returned.
+
+=over
+
+=item C&lt;ids&gt;
+
+C&lt;array&gt; Contain ids of groups to update.
+
+=item C&lt;names&gt;
+
+C&lt;array&gt; Contain names of groups to update.
+
+=item C&lt;membership&gt;
+
+C&lt;boolean&gt; Set to 1 then a list of members of the passed groups' names and
+ids will be returned.
+
+=back
+
+=item B&lt;Returns&gt;
+
+If the user is a member of the &quot;creategroups&quot; group they will receive
+information about all groups or groups matching the criteria that they passed.
+You have to be in the creategroups group unless you're requesting membership
+information.
+
+If the user is not a member of the &quot;creategroups&quot; group, but they are in the
+&quot;editusers&quot; group or have bless privileges to the groups they require
+membership information for, the is_active, is_bug_group and user_regexp values
+are not supplied.
+
+The return value will be a hash containing group names as the keys, each group
+name will point to a hash that describes the group and has the following items:
+
+=over
+
+=item id
+
+C&lt;int&gt; The unique integer ID that Bugzilla uses to identify this group.
+Even if the name of the group changes, this ID will stay the same.
+
+=item name
+
+C&lt;string&gt; The name of the group.
+
+=item description
+
+C&lt;string&gt; The description of the group.
+
+=item is_bug_group
+
+C&lt;int&gt; Whether this groups is to be used for bug reports or is only administrative specific.
+
+=item user_regexp
+
+C&lt;string&gt; A regular expression that allows users to be added to this group if their login matches.
+
+=item is_active
+
+C&lt;int&gt; Whether this group is currently active or not.
+
+=item users
+
+C&lt;array&gt; An array of hashes, each hash contains a user object for one of the
+members of this group, only returned if the user sets the C&lt;membership&gt;
+parameter to 1, the user hash has the following items:
+
+=over
+
+=item id
+
+C&lt;int&gt; The id of the user.
+
+=item real_name
+
+C&lt;string&gt; The actual name of the user.
+
+=item email
+
+C&lt;string&gt; The email address of the user.
+
+=item name
+
+C&lt;string&gt; The login name of the user. Note that in some situations this is
+different than their email.
+
+=item can_login
+
+C&lt;boolean&gt; A boolean value to indicate if the user can login into bugzilla.
+
+=item email_enabled
+
+C&lt;boolean&gt; A boolean value to indicate if bug-related mail will be sent
+to the user or not.
+
+=item disabled_text
+
+C&lt;string&gt; A text field that holds the reason for disabling a user from logging
+into bugzilla, if empty then the user account is enabled otherwise it is
+disabled/closed.
+
+=back
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 51 (Invalid Object)
+
+A non existing group name was passed to the function, as a result no
+group object existed for that invalid name.
+
+=item 805 (Cannot view groups)
+
+Logged-in users are not authorized to edit bugzilla groups as they are not
+members of the creategroups group in bugzilla, or they are not authorized to
+access group member's information as they are not members of the &quot;editusers&quot;
+group or can bless the group.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item This function was added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
</ins><span class="cx"> =cut
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceProductpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Product.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Product.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Product.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,23 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
-#                 Byron Jones &lt;glob@mozilla.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Product;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::WebService);
</ins><span class="cx"> use Bugzilla::Product;
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><del>-use Bugzilla::WebService::Util qw(validate filter filter_wants);
</del><ins>+use Bugzilla::WebService::Util qw(validate filter filter_wants translate params_to_objects);
</ins><span class="cx"> 
</span><span class="cx"> use constant READ_ONLY =&gt; qw(
</span><span class="cx">     get
</span><span class="lines">@@ -34,6 +26,26 @@
</span><span class="cx">     get_selectable_products
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    create
+    get
+    get_accessible_products
+    get_enterable_products
+    get_selectable_products
+    update
+);
+
+use constant MAPPED_FIELDS =&gt; {
+    has_unconfirmed =&gt; 'allows_unconfirmed',
+    is_open =&gt; 'is_active',
+};
+
+use constant MAPPED_RETURNS =&gt; {
+    allows_unconfirmed =&gt; 'has_unconfirmed',
+    defaultmilestone =&gt; 'default_milestone',
+    isactive =&gt; 'is_open',
+};
+
</ins><span class="cx"> use constant FIELD_MAP =&gt; {
</span><span class="cx">     has_unconfirmed =&gt; 'allows_unconfirmed',
</span><span class="cx">     is_open         =&gt; 'isactive',
</span><span class="lines">@@ -43,61 +55,95 @@
</span><span class="cx"> # Add aliases here for method name compatibility #
</span><span class="cx"> ##################################################
</span><span class="cx"> 
</span><del>-BEGIN { *get_products = \&amp;get }
-
</del><span class="cx"> # Get the ids of the products the user can search
</span><span class="cx"> sub get_selectable_products {
</span><del>-    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_selectable_products}]}; 
</del><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_selectable_products}]};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Get the ids of the products the user can enter bugs against
</span><span class="cx"> sub get_enterable_products {
</span><del>-    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_enterable_products}]}; 
</del><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_enterable_products}]};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Get the union of the products the user can search and enter bugs against.
</span><span class="cx"> sub get_accessible_products {
</span><del>-    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_accessible_products}]}; 
</del><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+    return {ids =&gt; [map {$_-&gt;id} @{Bugzilla-&gt;user-&gt;get_accessible_products}]};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Get a list of actual products, based on list of ids or names
</span><span class="cx"> sub get {
</span><del>-    my ($self, $params) = validate(@_, 'ids', 'names');
-    
-    # Only products that are in the users accessible products, 
-    # can be allowed to be returned
-    my $accessible_products = Bugzilla-&gt;user-&gt;get_accessible_products;
</del><ins>+    my ($self, $params) = validate(@_, 'ids', 'names', 'type');
+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><del>-    my @requested_accessible;
</del><ins>+    defined $params-&gt;{ids} || defined $params-&gt;{names} || defined $params-&gt;{type}
+        || ThrowCodeError(&quot;params_required&quot;, { function =&gt; &quot;Product.get&quot;,
+                                               params =&gt; ['ids', 'names', 'type'] });
+    Bugzilla-&gt;switch_to_shadow_db();
</ins><span class="cx"> 
</span><ins>+    my $products = [];
+    if (defined $params-&gt;{type}) {
+        my %product_hash;
+        foreach my $type (@{ $params-&gt;{type} }) {
+            my $result = [];
+            if ($type eq 'accessible') {
+                $result = $user-&gt;get_accessible_products();
+            }
+            elsif ($type eq 'enterable') {
+                $result = $user-&gt;get_enterable_products();
+            }
+            elsif ($type eq 'selectable') {
+                $result = $user-&gt;get_selectable_products();
+            }
+            else {
+                ThrowUserError('get_products_invalid_type',
+                               { type =&gt; $type });
+            }
+            map { $product_hash{$_-&gt;id} = $_ } @$result;
+        }
+        $products = [ values %product_hash ];
+    }
+    else {
+        $products = $user-&gt;get_accessible_products;
+    }
+
+    my @requested_products;
+
</ins><span class="cx">     if (defined $params-&gt;{ids}) {
</span><span class="cx">         # Create a hash with the ids the user wants
</span><span class="cx">         my %ids = map { $_ =&gt; 1 } @{$params-&gt;{ids}};
</span><del>-        
-        # Return the intersection of this, by grepping the ids from 
-        # accessible products.
-        push(@requested_accessible,
-            grep { $ids{$_-&gt;id} } @$accessible_products);
</del><ins>+
+        # Return the intersection of this, by grepping the ids from $products.
+        push(@requested_products,
+            grep { $ids{$_-&gt;id} } @$products);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (defined $params-&gt;{names}) {
</span><span class="cx">         # Create a hash with the names the user wants
</span><span class="cx">         my %names = map { lc($_) =&gt; 1 } @{$params-&gt;{names}};
</span><del>-        
-        # Return the intersection of this, by grepping the names from 
-        # accessible products, union'ed with products found by ID to
</del><ins>+
+        # Return the intersection of this, by grepping the names
+        # from $products, union'ed with products found by ID to
</ins><span class="cx">         # avoid duplicates
</span><span class="cx">         foreach my $product (grep { $names{lc $_-&gt;name} }
</span><del>-                                  @$accessible_products) {
</del><ins>+                                  @$products) {
</ins><span class="cx">             next if grep { $_-&gt;id == $product-&gt;id }
</span><del>-                         @requested_accessible;
-            push @requested_accessible, $product;
</del><ins>+                         @requested_products;
+            push @requested_products, $product;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # If we just requested a specific type of products without
+    # specifying ids or names, then return the entire list.
+    if (!defined $params-&gt;{ids} &amp;&amp; !defined $params-&gt;{names}) {
+        @requested_products = @$products;
+    }
+
</ins><span class="cx">     # Now create a result entry for each.
</span><span class="cx">     my @products = map { $self-&gt;_product_to_hash($params, $_) }
</span><del>-                       @requested_accessible;
</del><ins>+                       @requested_products;
</ins><span class="cx">     return { products =&gt; \@products };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -105,7 +151,7 @@
</span><span class="cx">     my ($self, $params) = @_;
</span><span class="cx"> 
</span><span class="cx">     Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><del>-    Bugzilla-&gt;user-&gt;in_group('editcomponents') 
</del><ins>+    Bugzilla-&gt;user-&gt;in_group('editcomponents')
</ins><span class="cx">         || ThrowUserError(&quot;auth_failure&quot;, { group  =&gt; &quot;editcomponents&quot;,
</span><span class="cx">                                             action =&gt; &quot;add&quot;,
</span><span class="cx">                                             object =&gt; &quot;products&quot;});
</span><span class="lines">@@ -129,6 +175,62 @@
</span><span class="cx">     return { id =&gt; $self-&gt;type('int', $product-&gt;id) };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub update {
+    my ($self, $params) = @_;
+
+    my $dbh = Bugzilla-&gt;dbh;
+
+    Bugzilla-&gt;login(LOGIN_REQUIRED);
+    Bugzilla-&gt;user-&gt;in_group('editcomponents')
+        || ThrowUserError(&quot;auth_failure&quot;, { group  =&gt; &quot;editcomponents&quot;,
+                                            action =&gt; &quot;edit&quot;,
+                                            object =&gt; &quot;products&quot; });
+
+    defined($params-&gt;{names}) || defined($params-&gt;{ids})
+        || ThrowCodeError('params_required',
+               { function =&gt; 'Product.update', params =&gt; ['ids', 'names'] });
+
+    my $product_objects = params_to_objects($params, 'Bugzilla::Product');
+
+    my $values = translate($params, MAPPED_FIELDS);
+
+    # We delete names and ids to keep only new values to set.
+    delete $values-&gt;{names};
+    delete $values-&gt;{ids};
+
+    $dbh-&gt;bz_start_transaction();
+    foreach my $product (@$product_objects) {
+        $product-&gt;set_all($values);
+    }
+
+    my %changes;
+    foreach my $product (@$product_objects) {
+        my $returned_changes = $product-&gt;update();
+        $changes{$product-&gt;id} = translate($returned_changes, MAPPED_RETURNS);
+    }
+    $dbh-&gt;bz_commit_transaction();
+
+    my @result;
+    foreach my $product (@$product_objects) {
+        my %hash = (
+            id      =&gt; $product-&gt;id,
+            changes =&gt; {},
+        );
+
+        foreach my $field (keys %{ $changes{$product-&gt;id} }) {
+            my $change = $changes{$product-&gt;id}-&gt;{$field};
+            $hash{changes}{$field} = {
+                removed =&gt; $self-&gt;type('string', $change-&gt;[0]),
+                added   =&gt; $self-&gt;type('string', $change-&gt;[1])
+            };
+        }
+
+        push(@result, \%hash);
+    }
+
+    return { products =&gt; \@result };
+}
+
</ins><span class="cx"> sub _product_to_hash {
</span><span class="cx">     my ($self, $params, $product) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -143,17 +245,17 @@
</span><span class="cx">     };
</span><span class="cx">     if (filter_wants($params, 'components')) {
</span><span class="cx">         $field_data-&gt;{components} = [map {
</span><del>-            $self-&gt;_component_to_hash($_)
</del><ins>+            $self-&gt;_component_to_hash($_, $params)
</ins><span class="cx">         } @{$product-&gt;components}];
</span><span class="cx">     }
</span><span class="cx">     if (filter_wants($params, 'versions')) {
</span><span class="cx">         $field_data-&gt;{versions} = [map {
</span><del>-            $self-&gt;_version_to_hash($_)
</del><ins>+            $self-&gt;_version_to_hash($_, $params)
</ins><span class="cx">         } @{$product-&gt;versions}];
</span><span class="cx">     }
</span><span class="cx">     if (filter_wants($params, 'milestones')) {
</span><span class="cx">         $field_data-&gt;{milestones} = [map {
</span><del>-            $self-&gt;_milestone_to_hash($_)
</del><ins>+            $self-&gt;_milestone_to_hash($_, $params)
</ins><span class="cx">         } @{$product-&gt;milestones}];
</span><span class="cx">     }
</span><span class="cx">     return filter($params, $field_data);
</span><span class="lines">@@ -160,8 +262,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _component_to_hash {
</span><del>-    my ($self, $component) = @_;
-    return {
</del><ins>+    my ($self, $component, $params) = @_;
+    my $field_data = filter $params, {
</ins><span class="cx">         id =&gt;
</span><span class="cx">             $self-&gt;type('int', $component-&gt;id),
</span><span class="cx">         name =&gt;
</span><span class="lines">@@ -169,19 +271,63 @@
</span><span class="cx">         description =&gt;
</span><span class="cx">             $self-&gt;type('string' , $component-&gt;description),
</span><span class="cx">         default_assigned_to =&gt;
</span><del>-            $self-&gt;type('string' , $component-&gt;default_assignee-&gt;login),
</del><ins>+            $self-&gt;type('email', $component-&gt;default_assignee-&gt;login),
</ins><span class="cx">         default_qa_contact =&gt;
</span><del>-            $self-&gt;type('string' , $component-&gt;default_qa_contact-&gt;login),
</del><ins>+            $self-&gt;type('email', $component-&gt;default_qa_contact ?
+                                 $component-&gt;default_qa_contact-&gt;login : &quot;&quot;),
</ins><span class="cx">         sort_key =&gt;  # sort_key is returned to match Bug.fields
</span><span class="cx">             0,
</span><span class="cx">         is_active =&gt;
</span><span class="cx">             $self-&gt;type('boolean', $component-&gt;is_active),
</span><del>-    };
</del><ins>+    }, undef, 'components';
+
+    if (filter_wants($params, 'flag_types', undef, 'components')) {
+        $field_data-&gt;{flag_types} = {
+            bug =&gt;
+                [map {
+                    $self-&gt;_flag_type_to_hash($_)
+                } @{$component-&gt;flag_types-&gt;{'bug'}}],
+            attachment =&gt;
+                [map {
+                    $self-&gt;_flag_type_to_hash($_)
+                } @{$component-&gt;flag_types-&gt;{'attachment'}}],
+        };
+    }
+
+    return $field_data;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _flag_type_to_hash {
+    my ($self, $flag_type, $params) = @_;
+    return filter $params, {
+        id =&gt;
+            $self-&gt;type('int', $flag_type-&gt;id),
+        name =&gt;
+            $self-&gt;type('string', $flag_type-&gt;name),
+        description =&gt;
+            $self-&gt;type('string', $flag_type-&gt;description),
+        cc_list =&gt;
+            $self-&gt;type('string', $flag_type-&gt;cc_list),
+        sort_key =&gt;
+            $self-&gt;type('int', $flag_type-&gt;sortkey),
+        is_active =&gt;
+            $self-&gt;type('boolean', $flag_type-&gt;is_active),
+        is_requestable =&gt;
+            $self-&gt;type('boolean', $flag_type-&gt;is_requestable),
+        is_requesteeble =&gt;
+            $self-&gt;type('boolean', $flag_type-&gt;is_requesteeble),
+        is_multiplicable =&gt;
+            $self-&gt;type('boolean', $flag_type-&gt;is_multiplicable),
+        grant_group =&gt;
+            $self-&gt;type('int', $flag_type-&gt;grant_group_id),
+        request_group =&gt;
+            $self-&gt;type('int', $flag_type-&gt;request_group_id),
+    }, undef, 'flag_types';
+}
+
</ins><span class="cx"> sub _version_to_hash {
</span><del>-    my ($self, $version) = @_;
-    return {
</del><ins>+    my ($self, $version, $params) = @_;
+    return filter $params, {
</ins><span class="cx">         id =&gt;
</span><span class="cx">             $self-&gt;type('int', $version-&gt;id),
</span><span class="cx">         name =&gt;
</span><span class="lines">@@ -190,12 +336,12 @@
</span><span class="cx">             0,
</span><span class="cx">         is_active =&gt;
</span><span class="cx">             $self-&gt;type('boolean', $version-&gt;is_active),
</span><del>-    };
</del><ins>+    }, undef, 'versions';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _milestone_to_hash {
</span><del>-    my ($self, $milestone) = @_;
-    return {
</del><ins>+    my ($self, $milestone, $params) = @_;
+    return filter $params, {
</ins><span class="cx">         id =&gt;
</span><span class="cx">             $self-&gt;type('int', $milestone-&gt;id),
</span><span class="cx">         name =&gt;
</span><span class="lines">@@ -204,7 +350,7 @@
</span><span class="cx">             $self-&gt;type('int', $milestone-&gt;sortkey),
</span><span class="cx">         is_active =&gt;
</span><span class="cx">             $self-&gt;type('boolean', $milestone-&gt;is_active),
</span><del>-    };
</del><ins>+    }, undef, 'milestones';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 1;
</span><span class="lines">@@ -225,6 +371,10 @@
</span><span class="cx"> See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
</span><span class="cx"> and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
</span><span class="cx"> 
</span><ins>+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
</ins><span class="cx"> =head1 List Products
</span><span class="cx"> 
</span><span class="cx"> =head2 get_selectable_products
</span><span class="lines">@@ -237,9 +387,15 @@
</span><span class="cx"> 
</span><span class="cx"> Returns a list of the ids of the products the user can search on.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/product_selectable
+
+the returned data format is same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><del>-=item B&lt;Returns&gt;    
</del><ins>+=item B&lt;Returns&gt;
</ins><span class="cx"> 
</span><span class="cx"> A hash containing one item, C&lt;ids&gt;, that contains an array of product
</span><span class="cx"> ids.
</span><span class="lines">@@ -246,8 +402,16 @@
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt; (none)
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 get_enterable_products
</span><span class="cx"> 
</span><span class="cx"> B&lt;EXPERIMENTAL&gt;
</span><span class="lines">@@ -259,6 +423,12 @@
</span><span class="cx"> Returns a list of the ids of the products the user can enter bugs
</span><span class="cx"> against.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/product_enterable
+
+the returned data format is same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -268,8 +438,16 @@
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt; (none)
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 get_accessible_products
</span><span class="cx"> 
</span><span class="cx"> B&lt;UNSTABLE&gt;
</span><span class="lines">@@ -281,6 +459,12 @@
</span><span class="cx"> Returns a list of the ids of the products the user can search or enter
</span><span class="cx"> bugs against.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+GET /rest/product_accessible
+
+the returned data format is same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt; (none)
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="lines">@@ -290,8 +474,16 @@
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt; (none)
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 get
</span><span class="cx"> 
</span><span class="cx"> B&lt;EXPERIMENTAL&gt;
</span><span class="lines">@@ -302,8 +494,26 @@
</span><span class="cx"> 
</span><span class="cx"> Returns a list of information about the products passed to it.
</span><span class="cx"> 
</span><del>-Note: Can also be called as &quot;get_products&quot; for compatibilty with Bugzilla 3.0 API.
</del><ins>+B&lt;Note&gt;: You must at least specify one of C&lt;ids&gt; or C&lt;names&gt;.
</ins><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To return information about a specific groups of products such as
+C&lt;accessible&gt;, C&lt;selectable&gt;, or C&lt;enterable&gt;:
+
+GET /rest/product?type=accessible
+
+To return information about a specific product by C&lt;id&gt; or C&lt;name&gt;:
+
+GET /rest/product/&lt;product_id_or_name&gt;
+
+You can also return information about more than one specific product
+by using the following in your query string:
+
+GET /rest/product?ids=1&amp;ids=2&amp;ids=3 or GET /product?names=ProductOne&amp;names=Product2
+
+the returned data format is same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> In addition to the parameters below, this method also accepts the
</span><span class="lines">@@ -310,6 +520,8 @@
</span><span class="cx"> standard L&lt;include_fields|Bugzilla::WebService/include_fields&gt; and
</span><span class="cx"> L&lt;exclude_fields|Bugzilla::WebService/exclude_fields&gt; arguments.
</span><span class="cx"> 
</span><ins>+This RPC call supports sub field restrictions.
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;ids&gt;
</span><span class="lines">@@ -320,9 +532,15 @@
</span><span class="cx"> 
</span><span class="cx"> An array of product names
</span><span class="cx"> 
</span><ins>+=item C&lt;type&gt;
+
+The group of products to return. Valid values are: C&lt;accessible&gt; (default),
+C&lt;selectable&gt;, and C&lt;enterable&gt;. C&lt;type&gt; can be a single value or an array
+of values if more than one group is needed with duplicates removed.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=item B&lt;Returns&gt; 
</del><ins>+=item B&lt;Returns&gt;
</ins><span class="cx"> 
</span><span class="cx"> A hash containing one item, C&lt;products&gt;, that is an array of
</span><span class="cx"> hashes. Each hash describes a product, and has the following items:
</span><span class="lines">@@ -388,7 +606,7 @@
</span><span class="cx"> =item C&lt;default_qa_contact&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The login name of the user who will be set as the QA Contact for
</span><del>-new bugs by default.
</del><ins>+new bugs by default. Empty string if the QA contact is not defined.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;sort_key&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -400,8 +618,70 @@
</span><span class="cx"> C&lt;boolean&gt; A boolean indicating if the component is active.  Inactive
</span><span class="cx"> components are not enabled for new bugs.
</span><span class="cx"> 
</span><ins>+=item C&lt;flag_types&gt;
+
+A hash containing the two items C&lt;bug&gt; and C&lt;attachment&gt; that each contains an
+array of hashes, where each hash describes a flagtype, and has the
+following items:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; Returns the ID of the flagtype.
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; Returns the name of the flagtype.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; Returns the description of the flagtype.
+
+=item C&lt;cc_list&gt;
+
+C&lt;string&gt; Returns the concatenated CC list for the flagtype, as a single string.
+
+=item C&lt;sort_key&gt;
+
+C&lt;int&gt; Returns the sortkey of the flagtype.
+
+=item C&lt;is_active&gt;
+
+C&lt;boolean&gt; Returns whether the flagtype is active or disabled. Flags being
+in a disabled flagtype are not deleted. It only prevents you from
+adding new flags to it.
+
+=item C&lt;is_requestable&gt;
+
+C&lt;boolean&gt; Returns whether you can request for the given flagtype
+(i.e. whether the '?' flag is available or not).
+
+=item C&lt;is_requesteeble&gt;
+
+C&lt;boolean&gt; Returns whether you can ask someone specifically or not.
+
+=item C&lt;is_multiplicable&gt;
+
+C&lt;boolean&gt; Returns whether you can have more than one flag for the given
+flagtype in a given bug/attachment.
+
+=item C&lt;grant_group&gt;
+
+C&lt;int&gt; the group id that is allowed to grant/deny flags of this type.
+If the item is not included all users are allowed to grant/deny this
+flagtype.
+
+=item C&lt;request_group&gt;
+
+C&lt;int&gt; the group id that is allowed to request the flag if the flag
+is of the type requestable. If the item is not included all users
+are allowed request this flagtype.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =item C&lt;versions&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;array&gt; An array of hashes, where each hash describes a version, and has the
</span><span class="lines">@@ -432,11 +712,16 @@
</span><span class="cx"> the fields returned by C&lt;get&gt; as a replacement for C&lt;internals&gt;, which has
</span><span class="cx"> been removed.
</span><span class="cx"> 
</span><ins>+=item In Bugzilla B&lt;4.4&gt;, C&lt;flag_types&gt; was added to the fields returned
+by C&lt;get&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=head1 Product Creation
</del><ins>+=head1 Product Creation and Modification
</ins><span class="cx"> 
</span><span class="cx"> =head2 create
</span><span class="cx"> 
</span><span class="lines">@@ -448,9 +733,16 @@
</span><span class="cx"> 
</span><span class="cx"> This allows you to create a new product in Bugzilla.
</span><span class="cx"> 
</span><del>-=item B&lt;Params&gt; 
</del><ins>+=item B&lt;REST&gt;
</ins><span class="cx"> 
</span><del>-Some params must be set, or an error will be thrown. These params are 
</del><ins>+POST /rest/product
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
+=item B&lt;Params&gt;
+
+Some params must be set, or an error will be thrown. These params are
</ins><span class="cx"> marked B&lt;Required&gt;.
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -464,11 +756,11 @@
</span><span class="cx"> 
</span><span class="cx"> B&lt;Required&gt; C&lt;string&gt; A description for this product. Allows some simple HTML.
</span><span class="cx"> 
</span><del>-=item C&lt;version&gt; 
</del><ins>+=item C&lt;version&gt;
</ins><span class="cx"> 
</span><span class="cx"> B&lt;Required&gt; C&lt;string&gt; The default version for this product.
</span><span class="cx"> 
</span><del>-=item C&lt;has_unconfirmed&gt; 
</del><ins>+=item C&lt;has_unconfirmed&gt;
</ins><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; Allow the UNCONFIRMED status to be set on bugs in this product.
</span><span class="cx"> Default: true.
</span><span class="lines">@@ -477,11 +769,11 @@
</span><span class="cx"> 
</span><span class="cx"> C&lt;string&gt; The name of the Classification which contains this product.
</span><span class="cx"> 
</span><del>-=item C&lt;default_milestone&gt; 
</del><ins>+=item C&lt;default_milestone&gt;
</ins><span class="cx"> 
</span><del>-C&lt;string&gt; The default milestone for this product. Default: '---'.
</del><ins>+C&lt;string&gt; The default milestone for this product. Default '---'.
</ins><span class="cx"> 
</span><del>-=item C&lt;is_open&gt; 
</del><ins>+=item C&lt;is_open&gt;
</ins><span class="cx"> 
</span><span class="cx"> C&lt;boolean&gt; True if the product is currently allowing bugs to be entered
</span><span class="cx"> into it. Default: true.
</span><span class="lines">@@ -493,7 +785,7 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=item B&lt;Returns&gt;    
</del><ins>+=item B&lt;Returns&gt;
</ins><span class="cx"> 
</span><span class="cx"> A hash with one element, id. This is the id of the newly-filed product.
</span><span class="cx"> 
</span><span class="lines">@@ -529,4 +821,170 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><ins>+
+=back
+
+=head2 update
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This allows you to update a product in Bugzilla.
+
+=item B&lt;REST&gt;
+
+PUT /rest/product/&lt;product_id_or_name&gt;
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. The C&lt;ids&gt; and C&lt;names&gt; params will be overridden as
+it is pulled from the URL path.
+
+=item B&lt;Params&gt;
+
+B&lt;Note:&gt; The following parameters specify which products you are updating.
+You must set one or both of these parameters.
+
+=over
+
+=item C&lt;ids&gt;
+
+C&lt;array&gt; of C&lt;int&gt;s. Numeric ids of the products that you wish to update.
+
+=item C&lt;names&gt;
+
+C&lt;array&gt; or C&lt;string&gt;s. Names of the products that you wish to update.
+
+=back
+
+B&lt;Note:&gt; The following parameters specify the new values you want to set for
+the products you are updating.
+
+=over
+
+=item C&lt;name&gt;
+
+C&lt;string&gt; A new name for this product. If you try to set this while updating more
+than one product, an error will occur, as product names must be unique.
+
+=item C&lt;default_milestone&gt;
+
+C&lt;string&gt; When a new bug is filed, what milestone does it get by default if the
+user does not choose one? Must represent a milestone that is valid for this product.
+
+=item C&lt;description&gt;
+
+C&lt;string&gt; Update the long description for these products to this value.
+
+=item C&lt;has_unconfirmed&gt;
+
+C&lt;boolean&gt; Allow the UNCONFIRMED status to be set on bugs in products.
+
+=item C&lt;is_open&gt;
+
+C&lt;boolean&gt; True if the product is currently allowing bugs to be entered
+into it, False otherwise.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A C&lt;hash&gt; with a single field &quot;products&quot;. This points to an array of hashes
+with the following fields:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the product that was updated.
+
+=item C&lt;changes&gt;
+
+C&lt;hash&gt; The changes that were actually done on this product. The keys are
+the names of the fields that were changed, and the values are a hash
+with two keys:
+
+=over
+
+=item C&lt;added&gt;
+
+C&lt;string&gt; The value that this field was changed to.
+
+=item C&lt;removed&gt;
+
+C&lt;string&gt; The value that was previously set in this field.
+
+=back
+
+Note that booleans will be represented with the strings '1' and '0'.
+
+Here's an example of what a return value might look like:
+
+ {
+   products =&gt; [
+     {
+       id =&gt; 123,
+       changes =&gt; {
+         name =&gt; {
+           removed =&gt; 'FooName',
+           added   =&gt; 'BarName'
+         },
+         has_unconfirmed =&gt; {
+           removed =&gt; '1',
+           added   =&gt; '0',
+         }
+       }
+     }
+   ]
+ }
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 700 (Product blank name)
+
+You must specify a non-blank name for this product.
+
+=item 701 (Product name too long)
+
+The name specified for this product was longer than the maximum
+allowed length.
+
+=item 702 (Product name already exists)
+
+You specified the name of a product that already exists.
+(Product names must be globally unique in Bugzilla.)
+
+=item 703 (Product must have description)
+
+You must specify a description for this product.
+
+=item 705 (Product must define a default milestone)
+
+You must define a default milestone.
+
+=back
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceREADME"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/README (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/README        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/README        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> method is in. For example, if we call Bugzilla.version(), the first argument
</span><span class="cx"> is Bugzilla::WebService::Bugzilla. So in order to have $self
</span><span class="cx"> (our first argument) act correctly in XML-RPC, we make all WebService
</span><del>-classes use base qw(Bugzilla::WebService). 
</del><ins>+classes use parent qw(Bugzilla::WebService). 
</ins><span class="cx"> 
</span><span class="cx"> When JSON::RPC calls a method, $self is the JSON-RPC *server object*. In other
</span><span class="cx"> words, it's an instance of Bugzilla::WebService::Server::JSONRPC. So we have
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerJSONRPCpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/JSONRPC.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/JSONRPC.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/JSONRPC.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla JSON Webservices Interface.
-#
-# The Initial Developer of the Original Code is the San Jose State
-# University Foundation. Portions created by the Initial Developer
-# are Copyright (C) 2008 the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Server::JSONRPC;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::WebService::Server;
</span><span class="cx"> BEGIN {
</span><span class="cx">     our @ISA = qw(Bugzilla::WebService::Server);
</span><span class="lines">@@ -37,11 +26,12 @@
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><del>-use Bugzilla::WebService::Util qw(taint_data);
-use Bugzilla::Util qw(correct_urlbase trim disable_utf8);
</del><ins>+use Bugzilla::WebService::Util qw(taint_data fix_credentials);
+use Bugzilla::Util;
</ins><span class="cx"> 
</span><span class="cx"> use HTTP::Message;
</span><span class="cx"> use MIME::Base64 qw(decode_base64 encode_base64);
</span><ins>+use List::MoreUtils qw(none);
</ins><span class="cx"> 
</span><span class="cx"> #####################################
</span><span class="cx"> # Public JSON::RPC Method Overrides #
</span><span class="lines">@@ -87,6 +77,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub response {
</span><span class="cx">     my ($self, $response) = @_;
</span><ins>+    my $cgi = $self-&gt;cgi;
</ins><span class="cx"> 
</span><span class="cx">     # Implement JSONP.
</span><span class="cx">     if (my $callback = $self-&gt;_bz_callback) {
</span><span class="lines">@@ -108,9 +99,18 @@
</span><span class="cx">             push(@header_args, &quot;-$name&quot;, $value);
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    my $cgi = $self-&gt;cgi;
-    print $cgi-&gt;header(-status =&gt; $response-&gt;code, @header_args);
-    print $response-&gt;content;
</del><ins>+
+    # ETag support
+    my $etag = $self-&gt;bz_etag;
+    if ($etag &amp;&amp; $cgi-&gt;check_etag($etag)) {
+        push(@header_args, &quot;-ETag&quot;, $etag);
+        print $cgi-&gt;header(-status =&gt; '304 Not Modified', @header_args);
+    }
+    else {
+        push(@header_args, &quot;-ETag&quot;, $etag) if $etag;
+        print $cgi-&gt;header(-status =&gt; $response-&gt;code, @header_args);
+        print $response-&gt;content;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # The JSON-RPC 1.1 GET specification is not so great--you can't specify
</span><span class="lines">@@ -222,6 +222,9 @@
</span><span class="cx">         utf8::encode($value) if utf8::is_utf8($value);
</span><span class="cx">         $retval = encode_base64($value, '');
</span><span class="cx">     }
</span><ins>+    elsif ($type eq 'email' &amp;&amp; Bugzilla-&gt;params-&gt;{'webservice_email_filter'}) {
+        $retval = email_filter($value);
+    }
</ins><span class="cx"> 
</span><span class="cx">     return $retval;
</span><span class="cx"> }
</span><span class="lines">@@ -267,7 +270,17 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my ($obj) = @_;
</span><span class="cx">     $self-&gt;{_bz_request_id} = $obj-&gt;{id};
</span><del>-    return $self-&gt;SUPER::_handle(@_);
</del><ins>+
+    my $result = $self-&gt;SUPER::_handle(@_);
+
+    # Set the ETag if not already set in the webservice methods.
+    my $etag = $self-&gt;bz_etag;
+    if (!$etag &amp;&amp; ref $result) {
+        my $data = $self-&gt;json-&gt;decode($result)-&gt;{'result'};
+        $self-&gt;bz_etag($data);
+    }
+
+    return $result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Make all error messages returned by JSON::RPC go into the 100000
</span><span class="lines">@@ -364,6 +377,10 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Update the params to allow for several convenience key/values
+    # use for authentication
+    fix_credentials($params);
+
</ins><span class="cx">     Bugzilla-&gt;input_params($params);
</span><span class="cx"> 
</span><span class="cx">     if ($self-&gt;request-&gt;method eq 'POST') {
</span><span class="lines">@@ -388,6 +405,11 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # Only allowed methods to be used from our whitelist
+    if (none { $_ eq $method} $pkg-&gt;PUBLIC_METHODS) {
+        ThrowCodeError('unknown_method', { method =&gt; $self-&gt;_bz_method_name });
+    }
+
</ins><span class="cx">     # This is the best time to do login checks.
</span><span class="cx">     $self-&gt;handle_login();
</span><span class="cx"> 
</span><span class="lines">@@ -581,3 +603,25 @@
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla::WebService&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item response
+
+=item response_header
+
+=item cgi
+
+=item retrieve_json_from_get
+
+=item create_json_coder
+
+=item type
+
+=item handle_login
+
+=item datetime_format_outbound
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bug.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bug.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bug.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,179 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Bug;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Bug;
+
+BEGIN {
+    *Bugzilla::WebService::Bug::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/bug$}, {
+            GET  =&gt; {
+                method =&gt; 'search',
+            },
+            POST =&gt; {
+                method =&gt; 'create',
+                status_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/bug/$}, {
+            GET =&gt; {
+                method =&gt; 'get'
+            }
+        },
+        qr{^/bug/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                }
+            },
+            PUT =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                }
+            }
+        },
+        qr{^/bug/([^/]+)/comment$}, {
+            GET  =&gt; {
+                method =&gt; 'comments',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                }
+            },
+            POST =&gt; {
+                method =&gt; 'add_comment',
+                params =&gt; sub {
+                    return { id =&gt; $_[0] };
+                },
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/bug/comment/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'comments',
+                params =&gt; sub {
+                    return { comment_ids =&gt; [ $_[0] ] };
+                }
+            }
+        },
+        qr{^/bug/comment/tags/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'search_comment_tags',
+                params =&gt; sub {
+                    return { query =&gt; $_[0] };
+                },
+            },
+        },
+        qr{^/bug/comment/([^/]+)/tags$}, {
+            PUT =&gt; {
+                method =&gt; 'update_comment_tags',
+                params =&gt; sub {
+                    return { comment_id =&gt; $_[0] };
+                },
+            },
+        },
+        qr{^/bug/([^/]+)/history$}, {
+            GET =&gt; {
+                method =&gt; 'history',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                },
+            }
+        },
+        qr{^/bug/([^/]+)/attachment$}, {
+            GET  =&gt; {
+                method =&gt; 'attachments',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                }
+            },
+            POST =&gt; {
+                method =&gt; 'add_attachment',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                },
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/bug/attachment/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'attachments',
+                params =&gt; sub {
+                    return { attachment_ids =&gt; [ $_[0] ] };
+                }
+            },
+            PUT =&gt; {
+                method =&gt; 'update_attachment',
+                params =&gt; sub {
+                    return { ids =&gt; [ $_[0] ] };
+                }
+            }
+        },
+        qr{^/field/bug$}, {
+            GET =&gt; {
+                method =&gt; 'fields',
+            }
+        },
+        qr{^/field/bug/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'fields',
+                params =&gt; sub {
+                    my $value = $_[0];
+                    my $param = 'names';
+                    $param = 'ids' if $value =~ /^\d+$/;
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        },
+        qr{^/field/bug/([^/]+)/values$}, {
+            GET =&gt; {
+                method =&gt; 'legal_values',
+                params =&gt; sub {
+                    return { field =&gt; $_[0] };
+                }
+            }
+        },
+        qr{^/field/bug/([^/]+)/([^/]+)/values$}, {
+            GET =&gt; {
+                method =&gt; 'legal_values',
+                params =&gt; sub {
+                    return { field      =&gt; $_[0],
+                             product_id =&gt; $_[1] };
+                }
+            }
+        },
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::Bug - The REST API for creating,
+changing, and getting the details of bugs.
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to file a new bug in Bugzilla,
+or get information about bugs that have already been filed.
+
+See L&lt;Bugzilla::WebService::Bug&gt; for more details on how to use this part of
+the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugUserLastVisitpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::BugUserLastVisit;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+BEGIN {
+    *Bugzilla::WebService::BugUserLastVisit::rest_resources = \&amp;_rest_resources;
+}
+
+sub _rest_resources {
+    return [
+        # bug-id
+        qr{^/bug_user_last_visit/(\d+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    return { ids =&gt; [$_[0]] };
+                },
+            },
+            POST =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    return { ids =&gt; [$_[0]] };
+                },
+            },
+        },
+    ];
+}
+
+1;
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::BugUserLastVisit - The
+BugUserLastVisit REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to lookup and update the last time
+a user visited a bug.
+
+See L&lt;Bugzilla::WebService::BugUserLastVisit&gt; for more details on how to use
+this part of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesBugzillapm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bugzilla.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bugzilla.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Bugzilla;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Bugzilla;
+
+BEGIN {
+    *Bugzilla::WebService::Bugzilla::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/version$}, {
+            GET  =&gt; {
+                method =&gt; 'version'
+            }
+        },
+        qr{^/extensions$}, {
+            GET =&gt; {
+                method =&gt; 'extensions'
+            }
+        },
+        qr{^/timezone$}, {
+            GET =&gt; {
+                method =&gt; 'timezone'
+            }
+        },
+        qr{^/time$}, {
+            GET =&gt; {
+                method =&gt; 'time'
+            }
+        },
+        qr{^/last_audit_time$}, {
+            GET =&gt; {
+                method =&gt; 'last_audit_time'
+            }
+        },
+        qr{^/parameters$}, {
+            GET =&gt; {
+                method =&gt; 'parameters'
+            }
+        }
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::WebService::Bugzilla - Global functions for the webservice interface.
+
+=head1 DESCRIPTION
+
+This provides functions that tell you about Bugzilla in general.
+
+See L&lt;Bugzilla::WebService::Bugzilla&gt; for more details on how to use this part
+of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesClassificationpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Classification.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Classification.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Classification.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Classification;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Classification;
+
+BEGIN {
+    *Bugzilla::WebService::Classification::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/classification/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        }
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::Classification - The Classification REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to deal with the available Classifications.
+You will be able to get information about them as well as manipulate them.
+
+See L&lt;Bugzilla::WebService::Classification&gt; for more details on how to use this part
+of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesComponentpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Component.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Component.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Component.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Component;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Component;
+
+use Bugzilla::Error;
+
+BEGIN {
+    *Bugzilla::WebService::Component::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/component$}, {
+            POST =&gt; {
+                method =&gt; 'create',
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::Component - The Component REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you create Components.
+
+See L&lt;Bugzilla::WebService::Component&gt; for more details on how to use this
+part of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesFlagTypepm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/FlagType.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/FlagType.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/FlagType.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::FlagType;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::FlagType;
+
+use Bugzilla::Error;
+
+BEGIN {
+    *Bugzilla::WebService::FlagType::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/flag_type$}, {
+            POST =&gt; {
+                method =&gt; 'create',
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/flag_type/([^/]+)/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    return { product   =&gt; $_[0],
+                             component =&gt; $_[1] };
+                }
+            }
+        },
+        qr{^/flag_type/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    return { product =&gt; $_[0] };
+                }
+            },
+            PUT =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        },
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::FlagType - The Flag Type REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to create and update Flag types.
+
+See L&lt;Bugzilla::WebService::FlagType&gt; for more details on how to use this
+part of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesGrouppm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Group.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Group.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Group.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Group;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Group;
+
+BEGIN {
+    *Bugzilla::WebService::Group::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/group$}, {
+            GET  =&gt; {
+                method =&gt; 'get'
+            },
+            POST =&gt; {
+                method =&gt; 'create',
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/group/([^/]+)$}, {
+            PUT =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        }
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::Group - The REST API for 
+creating, changing, and getting information about Groups.
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to create Groups and
+get information about them.
+
+See L&lt;Bugzilla::WebService::Group&gt; for more details on how to use this part
+of the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesProductpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Product.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Product.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/Product.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::Product;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Product;
+
+use Bugzilla::Error;
+
+BEGIN {
+    *Bugzilla::WebService::Product::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/product_accessible$}, {
+            GET =&gt; {
+                method =&gt; 'get_accessible_products'
+            }
+        },
+        qr{^/product_enterable$}, {
+            GET =&gt; {
+                method =&gt; 'get_enterable_products'
+            }
+        },
+        qr{^/product_selectable$}, {
+            GET =&gt; {
+                method =&gt; 'get_selectable_products'
+            }
+        },
+        qr{^/product$}, {
+            GET  =&gt; {
+                method =&gt; 'get'
+            },
+            POST =&gt; {
+                method =&gt; 'create',
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/product/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            },
+            PUT =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        },
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::Product - The Product REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to list the available Products and
+get information about them.
+
+See L&lt;Bugzilla::WebService::Product&gt; for more details on how to use this part of
+the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTResourcesUserpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/User.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/User.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST/Resources/User.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST::Resources::User;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::User;
+
+BEGIN {
+    *Bugzilla::WebService::User::rest_resources = \&amp;_rest_resources;
+};
+
+sub _rest_resources {
+    my $rest_resources = [
+        qr{^/login$}, {
+            GET =&gt; {
+                method =&gt; 'login'
+            }
+        },
+        qr{^/logout$}, {
+            GET =&gt; {
+                method =&gt; 'logout'
+            }
+        },
+        qr{^/valid_login$}, {
+            GET =&gt; {
+                method =&gt; 'valid_login'
+            }
+        },
+        qr{^/user$}, {
+            GET  =&gt; {
+                method =&gt; 'get'
+            },
+            POST =&gt; {
+                method =&gt; 'create',
+                success_code =&gt; STATUS_CREATED
+            }
+        },
+        qr{^/user/([^/]+)$}, {
+            GET =&gt; {
+                method =&gt; 'get',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            },
+            PUT =&gt; {
+                method =&gt; 'update',
+                params =&gt; sub {
+                    my $param = $_[0] =~ /^\d+$/ ? 'ids' : 'names';
+                    return { $param =&gt; [ $_[0] ] };
+                }
+            }
+        }
+    ];
+    return $rest_resources;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::Webservice::Server::REST::Resources::User - The User Account REST API
+
+=head1 DESCRIPTION
+
+This part of the Bugzilla REST API allows you to get User information as well
+as create User Accounts.
+
+See L&lt;Bugzilla::WebService::User&gt; for more details on how to use this part of
+the REST API.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerRESTpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/REST.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,689 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::WebService::Server::REST;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::WebService::Server::JSONRPC);
+
+use Bugzilla::Constants;
+use Bugzilla::Error;
+use Bugzilla::Hook;
+use Bugzilla::Util qw(correct_urlbase html_quote);
+use Bugzilla::WebService::Constants;
+use Bugzilla::WebService::Util qw(taint_data fix_credentials);
+
+# Load resource modules
+use Bugzilla::WebService::Server::REST::Resources::Bug;
+use Bugzilla::WebService::Server::REST::Resources::Bugzilla;
+use Bugzilla::WebService::Server::REST::Resources::Classification;
+use Bugzilla::WebService::Server::REST::Resources::Component;
+use Bugzilla::WebService::Server::REST::Resources::FlagType;
+use Bugzilla::WebService::Server::REST::Resources::Group;
+use Bugzilla::WebService::Server::REST::Resources::Product;
+use Bugzilla::WebService::Server::REST::Resources::User;
+use Bugzilla::WebService::Server::REST::Resources::BugUserLastVisit;
+
+use List::MoreUtils qw(uniq);
+use Scalar::Util qw(blessed reftype);
+use MIME::Base64 qw(decode_base64);
+
+###########################
+# Public Method Overrides #
+###########################
+
+sub handle {
+    my ($self)  = @_;
+
+    # Determine how the data should be represented. We do this early so
+    # errors will also be returned with the proper content type.
+    # If no accept header was sent or the content types specified were not
+    # matched, we default to the first type in the whitelist.
+    $self-&gt;content_type($self-&gt;_best_content_type(REST_CONTENT_TYPE_WHITELIST()));
+
+    # Using current path information, decide which class/method to
+    # use to serve the request. Throw error if no resource was found
+    # unless we were looking for OPTIONS
+    if (!$self-&gt;_find_resource($self-&gt;cgi-&gt;path_info)) {
+        if ($self-&gt;request-&gt;method eq 'OPTIONS'
+            &amp;&amp; $self-&gt;bz_rest_options)
+        {
+            my $response = $self-&gt;response_header(STATUS_OK, &quot;&quot;);
+            my $options_string = join(', ', @{ $self-&gt;bz_rest_options });
+            $response-&gt;header('Allow' =&gt; $options_string,
+                              'Access-Control-Allow-Methods' =&gt; $options_string);
+            return $self-&gt;response($response);
+        }
+
+        ThrowUserError(&quot;rest_invalid_resource&quot;,
+                       { path   =&gt; $self-&gt;cgi-&gt;path_info,
+                         method =&gt; $self-&gt;request-&gt;method });
+    }
+
+    # Dispatch to the proper module
+    my $class  = $self-&gt;bz_class_name;
+    my ($path) = $class =~ /::([^:]+)$/;
+    $self-&gt;path_info($path);
+    delete $self-&gt;{dispatch_path};
+    $self-&gt;dispatch({ $path =&gt; $class });
+
+    my $params = $self-&gt;_retrieve_json_params;
+
+    fix_credentials($params);
+
+    # Fix includes/excludes for each call
+    rest_include_exclude($params);
+
+    # Set callback name if exists
+    $self-&gt;_bz_callback($params-&gt;{'callback'}) if $params-&gt;{'callback'};
+
+    Bugzilla-&gt;input_params($params);
+
+    # Set the JSON version to 1.1 and the id to the current urlbase
+    # also set up the correct handler method
+    my $obj = {
+        version =&gt; '1.1',
+        id      =&gt; correct_urlbase(),
+        method  =&gt; $self-&gt;bz_method_name,
+        params  =&gt; $params
+    };
+
+    # Execute the handler
+    my $result = $self-&gt;_handle($obj);
+
+    if (!$self-&gt;error_response_header) {
+        return $self-&gt;response(
+            $self-&gt;response_header($self-&gt;bz_success_code || STATUS_OK, $result));
+    }
+
+    $self-&gt;response($self-&gt;error_response_header);
+}
+
+sub response {
+    my ($self, $response) = @_;
+
+    # If we have thrown an error, the 'error' key will exist
+    # otherwise we use 'result'. JSONRPC returns other data
+    # along with the result/error such as version and id which
+    # we will strip off for REST calls.
+    my $content = $response-&gt;content;
+    my $json_data = {};
+    if ($content) {
+        $json_data = $self-&gt;json-&gt;decode($content);
+    }
+
+    my $result = {};
+    if (exists $json_data-&gt;{error}) {
+        $result = $json_data-&gt;{error};
+        $result-&gt;{error} = $self-&gt;type('boolean', 1);
+        $result-&gt;{documentation} = REST_DOC;
+        delete $result-&gt;{'name'}; # Remove JSONRPCError
+    }
+    elsif (exists $json_data-&gt;{result}) {
+        $result = $json_data-&gt;{result};
+    }
+
+    # The result needs to be a valid JSON data structure
+    # and not a undefined or scalar value.
+    if (!ref $result
+        || blessed($result)
+        || (ref $result ne 'HASH' &amp;&amp; ref $result ne 'ARRAY'))
+    {
+        $result = { result =&gt; $result };
+    }
+
+    Bugzilla::Hook::process('webservice_rest_response',
+        { rpc =&gt; $self, result =&gt; \$result, response =&gt; $response });
+
+    # Access Control
+    $response-&gt;header(&quot;Access-Control-Allow-Origin&quot;, &quot;*&quot;);
+    $response-&gt;header(&quot;Access-Control-Allow-Headers&quot;, &quot;origin, content-type, accept, x-requested-with&quot;);
+
+    # ETag support
+    my $etag = $self-&gt;bz_etag;
+    $self-&gt;bz_etag($result) if !$etag;
+
+    # If accessing through web browser, then display in readable format
+    if ($self-&gt;content_type eq 'text/html') {
+        $result = $self-&gt;json-&gt;pretty-&gt;canonical-&gt;allow_nonref-&gt;encode($result);
+
+        my $template = Bugzilla-&gt;template;
+        $content = &quot;&quot;;
+        $template-&gt;process(&quot;rest.html.tmpl&quot;, { result =&gt; $result }, \$content)
+            || ThrowTemplateError($template-&gt;error());
+
+        $response-&gt;content_type('text/html');
+    }
+    else {
+        $content = $self-&gt;json-&gt;encode($result);
+    }
+
+    $response-&gt;content($content);
+
+    $self-&gt;SUPER::response($response);
+}
+
+#######################################
+# Bugzilla::WebService Implementation #
+#######################################
+
+sub handle_login {
+    my $self = shift;
+
+    # If we're being called using GET, we don't allow cookie-based or Env
+    # login, because GET requests can be done cross-domain, and we don't
+    # want private data showing up on another site unless the user
+    # explicitly gives that site their username and password. (This is
+    # particularly important for JSONP, which would allow a remote site
+    # to use private data without the user's knowledge, unless we had this
+    # protection in place.) We do allow this for GET /login as we need to
+    # for Bugzilla::Auth::Persist::Cookie to create a login cookie that we
+    # can also use for Bugzilla_token support. This is OK as it requires
+    # a login and password to be supplied and will fail if they are not
+    # valid for the user.
+    if (!grep($_ eq $self-&gt;request-&gt;method, ('POST', 'PUT'))
+        &amp;&amp; !($self-&gt;bz_class_name eq 'Bugzilla::WebService::User'
+            &amp;&amp; $self-&gt;bz_method_name eq 'login'))
+    {
+        # XXX There's no particularly good way for us to get a parameter
+        # to Bugzilla-&gt;login at this point, so we pass this information
+        # around using request_cache, which is a bit of a hack. The
+        # implementation of it is in Bugzilla::Auth::Login::Stack.
+        Bugzilla-&gt;request_cache-&gt;{'auth_no_automatic_login'} = 1;
+    }
+
+    my $class = $self-&gt;bz_class_name;
+    my $method = $self-&gt;bz_method_name;
+    my $full_method = $class . &quot;.&quot; . $method;
+
+    # Bypass JSONRPC::handle_login
+    Bugzilla::WebService::Server-&gt;handle_login($class, $method, $full_method);
+}
+
+############################
+# Private Method Overrides #
+############################
+
+# We do not want to run Bugzilla::WebService::Server::JSONRPC-&gt;_find_prodedure
+# as it determines the method name differently.
+sub _find_procedure {
+    my $self = shift;
+    if ($self-&gt;isa('JSON::RPC::Server::CGI')) {
+        return JSON::RPC::Server::_find_procedure($self, @_);
+    }
+    else {
+        return JSON::RPC::Legacy::Server::_find_procedure($self, @_);
+    }
+}
+
+sub _argument_type_check {
+    my $self = shift;
+    my $params;
+
+    if ($self-&gt;isa('JSON::RPC::Server::CGI')) {
+        $params = JSON::RPC::Server::_argument_type_check($self, @_);
+    }
+    else {
+        $params = JSON::RPC::Legacy::Server::_argument_type_check($self, @_);
+    }
+
+    # JSON-RPC 1.0 requires all parameters to be passed as an array, so
+    # we just pull out the first item and assume it's an object.
+    my $params_is_array;
+    if (ref $params eq 'ARRAY') {
+        $params = $params-&gt;[0];
+        $params_is_array = 1;
+    }
+
+    taint_data($params);
+
+    # Now, convert dateTime fields on input.
+    my $method = $self-&gt;bz_method_name;
+    my $pkg = $self-&gt;{dispatch_path}-&gt;{$self-&gt;path_info};
+    my @date_fields = @{ $pkg-&gt;DATE_FIELDS-&gt;{$method} || [] };
+    foreach my $field (@date_fields) {
+        if (defined $params-&gt;{$field}) {
+            my $value = $params-&gt;{$field};
+            if (ref $value eq 'ARRAY') {
+                $params-&gt;{$field} =
+                    [ map { $self-&gt;datetime_format_inbound($_) } @$value ];
+            }
+            else {
+                $params-&gt;{$field} = $self-&gt;datetime_format_inbound($value);
+            }
+        }
+    }
+    my @base64_fields = @{ $pkg-&gt;BASE64_FIELDS-&gt;{$method} || [] };
+    foreach my $field (@base64_fields) {
+        if (defined $params-&gt;{$field}) {
+            $params-&gt;{$field} = decode_base64($params-&gt;{$field});
+        }
+    }
+
+    # This is the best time to do login checks.
+    $self-&gt;handle_login();
+
+    # Bugzilla::WebService packages call internal methods like
+    # $self-&gt;_some_private_method. So we have to inherit from
+    # that class as well as this Server class.
+    my $new_class = ref($self) . '::' . $pkg;
+    my $isa_string = 'our @ISA = qw(' . ref($self) . &quot; $pkg)&quot;;
+    eval &quot;package $new_class;$isa_string;&quot;;
+    bless $self, $new_class;
+
+    # Allow extensions to modify the params post login
+    Bugzilla::Hook::process('webservice_rest_request',
+                            { rpc =&gt; $self, params =&gt; $params });
+
+    if ($params_is_array) {
+        $params = [$params];
+    }
+
+    return $params;
+}
+
+###################
+# Utility Methods #
+###################
+
+sub bz_method_name {
+    my ($self, $method) = @_;
+    $self-&gt;{_bz_method_name} = $method if $method;
+    return $self-&gt;{_bz_method_name};
+}
+
+sub bz_class_name {
+    my ($self, $class) = @_;
+    $self-&gt;{_bz_class_name} = $class if $class;
+    return $self-&gt;{_bz_class_name};
+}
+
+sub bz_success_code {
+    my ($self, $value) = @_;
+    $self-&gt;{_bz_success_code} = $value if $value;
+    return $self-&gt;{_bz_success_code};
+}
+
+sub bz_rest_params {
+    my ($self, $params) = @_;
+    $self-&gt;{_bz_rest_params} = $params if $params;
+    return $self-&gt;{_bz_rest_params};
+}
+
+sub bz_rest_options {
+    my ($self, $options) = @_;
+    $self-&gt;{_bz_rest_options} = $options if $options;
+    return $self-&gt;{_bz_rest_options};
+}
+
+sub rest_include_exclude {
+    my ($params) = @_;
+
+    if ($params-&gt;{'include_fields'} &amp;&amp; !ref $params-&gt;{'include_fields'}) {
+        $params-&gt;{'include_fields'} = [ split(/[\s+,]/, $params-&gt;{'include_fields'}) ];
+    }
+    if ($params-&gt;{'exclude_fields'} &amp;&amp; !ref $params-&gt;{'exclude_fields'}) {
+        $params-&gt;{'exclude_fields'} = [ split(/[\s+,]/, $params-&gt;{'exclude_fields'}) ];
+    }
+
+    return $params;
+}
+
+##########################
+# Private Custom Methods #
+##########################
+
+sub _retrieve_json_params {
+    my $self = shift;
+
+    # Make a copy of the current input_params rather than edit directly
+    my $params = {};
+    %{$params} = %{ Bugzilla-&gt;input_params };
+
+    # First add any parameters we were able to pull out of the path
+    # based on the resource regexp and combine with the normal URL
+    # parameters.
+    if (my $rest_params = $self-&gt;bz_rest_params) {
+        foreach my $param (keys %$rest_params) {
+            # If the param does not already exist or if the
+            # rest param is a single value, add it to the
+            # global params.
+            if (!exists $params-&gt;{$param} || !ref $rest_params-&gt;{$param}) {
+                $params-&gt;{$param} = $rest_params-&gt;{$param};
+            }
+            # If rest_param is a list then add any extra values to the list
+            elsif (ref $rest_params-&gt;{$param}) {
+                my @extra_values = ref $params-&gt;{$param}
+                                   ? @{ $params-&gt;{$param} }
+                                   : ($params-&gt;{$param});
+                $params-&gt;{$param}
+                    = [ uniq (@{ $rest_params-&gt;{$param} }, @extra_values) ];
+            }
+        }
+    }
+
+    # Any parameters passed in in the body of a non-GET request will override
+    # any parameters pull from the url path. Otherwise non-unique keys are
+    # combined.
+    if ($self-&gt;request-&gt;method ne 'GET') {
+        my $extra_params = {};
+        # We do this manually because CGI.pm doesn't understand JSON strings.
+        my $json = delete $params-&gt;{'POSTDATA'} || delete $params-&gt;{'PUTDATA'};
+        if ($json) {
+            eval { $extra_params = $self-&gt;json-&gt;decode($json); };
+            if ($@) {
+                ThrowUserError('json_rpc_invalid_params', { err_msg  =&gt; $@ });
+            }
+        }
+
+        # Allow parameters in the query string if request was non-GET.
+        # Note: parameters in query string body override any matching
+        # parameters in the request body.
+        foreach my $param ($self-&gt;cgi-&gt;url_param()) {
+            $extra_params-&gt;{$param} = $self-&gt;cgi-&gt;url_param($param);
+        }
+
+        %{$params} = (%{$params}, %{$extra_params}) if %{$extra_params};
+    }
+
+    return $params;
+}
+
+sub _find_resource {
+    my ($self, $path) = @_;
+
+    # Load in the WebService module from the dispatch map and then call
+    # $module-&gt;rest_resources to get the resources array ref.
+    my $resources = {};
+    foreach my $module (values %{ $self-&gt;{dispatch_path} }) {
+        eval(&quot;require $module&quot;) || die $@;
+        next if !$module-&gt;can('rest_resources');
+        $resources-&gt;{$module} = $module-&gt;rest_resources;
+    }
+
+    Bugzilla::Hook::process('webservice_rest_resources',
+                            { rpc =&gt; $self, resources =&gt; $resources });
+
+    # Use the resources hash from each module loaded earlier to determine
+    # which handler to use based on a regex match of the CGI path.
+    # Also any matches found in the regex will be passed in later to the
+    # handler for possible use.
+    my $request_method = $self-&gt;request-&gt;method;
+
+    my (@matches, $handler_found, $handler_method, $handler_class);
+    foreach my $class (keys %{ $resources }) {
+        # The resource data for each module needs to be
+        # an array ref with an even number of elements
+        # to work correctly.
+        next if (ref $resources-&gt;{$class} ne 'ARRAY'
+                 || scalar @{ $resources-&gt;{$class} } % 2 != 0);
+
+        while (my $regex = shift @{ $resources-&gt;{$class} }) {
+            my $options_data = shift @{ $resources-&gt;{$class} };
+            next if ref $options_data ne 'HASH';
+
+            if (@matches = ($path =~ $regex)) {
+                # If a specific path is accompanied by a OPTIONS request
+                # method, the user is asking for a list of possible request
+                # methods for a specific path.
+                $self-&gt;bz_rest_options([ keys %{ $options_data } ]);
+
+                if ($options_data-&gt;{$request_method}) {
+                    my $resource_data = $options_data-&gt;{$request_method};
+                    $self-&gt;bz_class_name($class);
+
+                    # The method key/value can be a simple scalar method name
+                    # or a anonymous subroutine so we execute it here.
+                    my $method = ref $resource_data-&gt;{method} eq 'CODE'
+                                 ? $resource_data-&gt;{method}-&gt;($self)
+                                 : $resource_data-&gt;{method};
+                    $self-&gt;bz_method_name($method);
+
+                    # Pull out any parameters parsed from the URL path
+                    # and store them for use by the method.
+                    if ($resource_data-&gt;{params}) {
+                        $self-&gt;bz_rest_params($resource_data-&gt;{params}-&gt;(@matches));
+                    }
+
+                    # If a special success code is needed for this particular
+                    # method, then store it for later when generating response.
+                    if ($resource_data-&gt;{success_code}) {
+                        $self-&gt;bz_success_code($resource_data-&gt;{success_code});
+                    }
+                    $handler_found = 1;
+                }
+            }
+            last if $handler_found;
+        }
+        last if $handler_found;
+    }
+
+    return $handler_found;
+}
+
+sub _best_content_type {
+    my ($self, @types) = @_;
+    return ($self-&gt;_simple_content_negotiation(@types))[0] || '*/*';
+}
+
+sub _simple_content_negotiation {
+    my ($self, @types) = @_;
+    my @accept_types = $self-&gt;_get_content_prefs();
+    # Return the types as-is if no accept header sent, since sorting will be a no-op.
+    if (!@accept_types) {
+        return @types;
+    }
+    my $score = sub { $self-&gt;_score_type(shift, @accept_types) };
+    return sort {$score-&gt;($b) &lt;=&gt; $score-&gt;($a)} @types;
+}
+
+sub _score_type {
+    my ($self, $type, @accept_types) = @_;
+    my $score = scalar(@accept_types);
+    for my $accept_type (@accept_types) {
+        return $score if $type eq $accept_type;
+        $score--;
+    }
+    return 0;
+}
+
+sub _get_content_prefs {
+    my $self = shift;
+    my $default_weight = 1;
+    my @prefs;
+
+    # Parse the Accept header, and save type name, score, and position.
+    my @accept_types = split /,/, $self-&gt;cgi-&gt;http('accept') || '';
+    my $order = 0;
+    for my $accept_type (@accept_types) {
+        my ($weight) = ($accept_type =~ /q=(\d\.\d+|\d+)/);
+        my ($name) = ($accept_type =~ m#(\S+/[^;]+)#);
+        next unless $name;
+        push @prefs, { name =&gt; $name, order =&gt; $order++};
+        if (defined $weight) {
+            $prefs[-1]-&gt;{score} = $weight;
+        } else {
+            $prefs[-1]-&gt;{score} = $default_weight;
+            $default_weight -= 0.001;
+        }
+    }
+
+    # Sort the types by score, subscore by order, and pull out just the name
+    @prefs = map {$_-&gt;{name}} sort {$b-&gt;{score} &lt;=&gt; $a-&gt;{score} ||
+                                    $a-&gt;{order} &lt;=&gt; $b-&gt;{order}} @prefs;
+    return @prefs;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+Bugzilla::WebService::Server::REST - The REST Interface to Bugzilla
+
+=head1 DESCRIPTION
+
+This documentation describes things about the Bugzilla WebService that
+are specific to REST. For a general overview of the Bugzilla WebServices,
+see L&lt;Bugzilla::WebService&gt;. The L&lt;Bugzilla::WebService::Server::REST&gt;
+module is a sub-class of L&lt;Bugzilla::WebService::Server::JSONRPC&gt; so any
+method documentation not found here can be viewed in it's POD.
+
+Please note that I&lt;everything&gt; about this REST interface is
+B&lt;EXPERIMENTAL&gt;. If you want a fully stable API, please use the
+C&lt;Bugzilla::WebService::Server::XMLRPC|XML-RPC&gt; interface.
+
+=head1 CONNECTING
+
+The endpoint for the REST interface is the C&lt;rest.cgi&gt; script in
+your Bugzilla installation. For example, if your Bugzilla is at
+C&lt;bugzilla.yourdomain.com&gt;, to access the API and load a bug,
+you would use C&lt;http://bugzilla.yourdomain.com/rest.cgi/bug/35&gt;.
+
+If using Apache and mod_rewrite is installed and enabled, you can
+simplify the endpoint by changing /rest.cgi/ to something like /rest/
+or something similar. So the same example from above would be:
+C&lt;http://bugzilla.yourdomain.com/rest/bug/35&gt; which is simpler to remember.
+
+Add this to your .htaccess file:
+
+  &lt;IfModule mod_rewrite.c&gt;
+    RewriteEngine On
+    RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
+  &lt;/IfModule&gt;
+
+=head1 BROWSING
+
+If the Accept: header of a request is set to text/html (as it is by an
+ordinary web browser) then the API will return the JSON data as a HTML
+page which the browser can display. In other words, you can play with the
+API using just your browser and see results in a human-readable form.
+This is a good way to try out the various GET calls, even if you can't use
+it for POST or PUT.
+
+=head1 DATA FORMAT
+
+The REST API only supports JSON input, and either JSON and JSONP output.
+So objects sent and received must be in JSON format. Basically since
+the REST API is a sub class of the JSONRPC API, you can refer to
+L&lt;JSONRPC|Bugzilla::WebService::Server::JSONRPC&gt; for more information
+on data types that are valid for REST.
+
+On every request, you must set both the &quot;Accept&quot; and &quot;Content-Type&quot; HTTP
+headers to the MIME type of the data format you are using to communicate with
+the API. Content-Type tells the API how to interpret your request, and Accept
+tells it how you want your data back. &quot;Content-Type&quot; must be &quot;application/json&quot;.
+&quot;Accept&quot; can be either that, or &quot;application/javascript&quot; for JSONP - add a &quot;callback&quot;
+parameter to name your callback.
+
+Parameters may also be passed in as part of the query string  for non-GET requests
+and will override any matching parameters in the request body.
+
+=head1 AUTHENTICATION
+
+Along with viewing data as an anonymous user, you may also see private information
+if you have a Bugzilla account by providing your login credentials.
+
+=over
+
+=item Login name and password
+
+Pass in as query parameters of any request:
+
+login=fred@example.com&amp;password=ilovecheese
+
+Remember to URL encode any special characters, which are often seen in passwords and to
+also enable SSL support.
+
+=item Login token
+
+By calling GET /login?login=fred@example.com&amp;password=ilovecheese, you get back
+a C&lt;token&gt; value which can then be passed to each subsequent call as
+authentication. This is useful for third party clients that cannot use cookies
+and do not want to store a user's login and password in the client. You can also
+pass in &quot;token&quot; as a convenience.
+
+=back
+
+=head1 ERRORS
+
+When an error occurs over REST, a hash structure is returned with the key C&lt;error&gt;
+set to C&lt;true&gt;.
+
+The error contents look similar to:
+
+ { &quot;error&quot;: true, &quot;message&quot;: &quot;Some message here&quot;, &quot;code&quot;: 123 }
+
+Every error has a &quot;code&quot;, as described in L&lt;Bugzilla::WebService/ERRORS&gt;.
+Errors with a numeric C&lt;code&gt; higher than 100000 are errors thrown by
+the JSON-RPC library that Bugzilla uses, not by Bugzilla.
+
+=head1 UTILITY FUNCTIONS
+
+=over
+
+=item B&lt;handle&gt;
+
+This method overrides the handle method provided by JSONRPC so that certain
+actions related to REST such as determining the proper resource to use,
+loading query parameters, etc. can be done before the proper WebService
+method is executed.
+
+=item B&lt;response&gt;
+
+This method overrides the response method provided by JSONRPC so that
+the response content can be altered for REST before being returned to
+the client.
+
+=item B&lt;handle_login&gt;
+
+This method determines the proper WebService all to make based on class
+and method name determined earlier. Then calls L&lt;Bugzilla::WebService::Server::handle_login&gt;
+which will attempt to authenticate the client.
+
+=item B&lt;bz_method_name&gt;
+
+The WebService method name that matches the path used by the client.
+
+=item B&lt;bz_class_name&gt;
+
+The WebService class containing the method that matches the path used by the client.
+
+=item B&lt;bz_rest_params&gt;
+
+Each REST resource contains a hash key called C&lt;params&gt; that is a subroutine reference.
+This subroutine will return a hash structure based on matched values from the path
+information that is formatted properly for the WebService method that will be called.
+
+=item B&lt;bz_rest_options&gt;
+
+When a client uses the OPTIONS request method along with a specific path, they are
+requesting the list of request methods that are valid for the path. Such as for the
+path /bug, the valid request methods are GET (search) and POST (create). So the
+client would receive in the response header, C&lt;Access-Control-Allow-Methods: GET, POST&gt;.
+
+=item B&lt;bz_success_code&gt;
+
+Each resource can specify a specific SUCCESS CODE if the operation completes successfully.
+OTherwise STATUS OK (200) is the default returned.
+
+=item B&lt;rest_include_exclude&gt;
+
+Normally the WebService methods required C&lt;include_fields&gt; and C&lt;exclude_fields&gt; to be an
+array of field names. REST allows for the values for these to be instead comma delimited
+string of field names. This method converts the latter into the former so the WebService
+methods will not complain.
+
+=back
+
+=head1 SEE ALSO
+
+L&lt;Bugzilla::WebService&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerXMLRPCpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/XMLRPC.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/XMLRPC.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server/XMLRPC.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Rosie Clarkson &lt;rosie.clarkson@planningportal.gov.uk&gt;
-#                 
-# Portions © Crown copyright 2009 - Rosie Clarkson (development@planningportal.gov.uk) for the Planning Portal
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Server::XMLRPC;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use XMLRPC::Transport::HTTP;
</span><span class="cx"> use Bugzilla::WebService::Server;
</span><span class="cx"> if ($ENV{MOD_PERL}) {
</span><span class="lines">@@ -30,9 +20,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><ins>+use Bugzilla::Error;
+use Bugzilla::Util;
</ins><span class="cx"> 
</span><del>-# Allow WebService methods to call XMLRPC::Lite's type method directly
</del><ins>+use List::MoreUtils qw(none);
+
</ins><span class="cx"> BEGIN {
</span><ins>+    # Allow WebService methods to call XMLRPC::Lite's type method directly
</ins><span class="cx">     *Bugzilla::WebService::type = sub {
</span><span class="cx">         my ($self, $type, $value) = @_;
</span><span class="cx">         if ($type eq 'dateTime') {
</span><span class="lines">@@ -41,8 +35,19 @@
</span><span class="cx">             $value = Bugzilla::WebService::Server-&gt;datetime_format_outbound($value);
</span><span class="cx">             $value =~ s/-//g;
</span><span class="cx">         }
</span><ins>+        elsif ($type eq 'email') {
+            $type = 'string';
+            if (Bugzilla-&gt;params-&gt;{'webservice_email_filter'}) {
+                $value = email_filter($value);
+            }
+        }
</ins><span class="cx">         return XMLRPC::Data-&gt;type($type)-&gt;value($value);
</span><span class="cx">     };
</span><ins>+
+    # Add support for ETags into XMLRPC WebServices
+    *Bugzilla::WebService::bz_etag = sub {
+        return Bugzilla::WebService::Server-&gt;bz_etag($_[1]);
+    };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub initialize {
</span><span class="lines">@@ -56,22 +61,44 @@
</span><span class="cx"> 
</span><span class="cx"> sub make_response {
</span><span class="cx">     my $self = shift;
</span><ins>+    my $cgi = Bugzilla-&gt;cgi;
</ins><span class="cx"> 
</span><ins>+    # Fix various problems with IIS.
+    if ($ENV{'SERVER_SOFTWARE'} =~ /IIS/) {
+        $ENV{CONTENT_LENGTH} = 0;
+        binmode(STDOUT, ':bytes');
+    }
+
</ins><span class="cx">     $self-&gt;SUPER::make_response(@_);
</span><span class="cx"> 
</span><span class="cx">     # XMLRPC::Transport::HTTP::CGI doesn't know about Bugzilla carrying around
</span><span class="cx">     # its cookies in Bugzilla::CGI, so we need to copy them over.
</span><del>-    foreach my $cookie (@{Bugzilla-&gt;cgi-&gt;{'Bugzilla_cookie_list'}}) {
</del><ins>+    foreach my $cookie (@{$cgi-&gt;{'Bugzilla_cookie_list'}}) {
</ins><span class="cx">         $self-&gt;response-&gt;headers-&gt;push_header('Set-Cookie', $cookie);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Copy across security related headers from Bugzilla::CGI
</span><del>-    foreach my $header (split(/[\r\n]+/, Bugzilla-&gt;cgi-&gt;header)) {
</del><ins>+    foreach my $header (split(/[\r\n]+/, $cgi-&gt;header)) {
</ins><span class="cx">         my ($name, $value) = $header =~ /^([^:]+): (.*)/;
</span><span class="cx">         if (!$self-&gt;response-&gt;headers-&gt;header($name)) {
</span><span class="cx">            $self-&gt;response-&gt;headers-&gt;header($name =&gt; $value);
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+
+    # ETag support
+    my $etag = $self-&gt;bz_etag;
+    if (!$etag) {
+        my $data = $self-&gt;response-&gt;as_string;
+        $etag = $self-&gt;bz_etag($data);
+    }
+
+    if ($etag &amp;&amp; $cgi-&gt;check_etag($etag)) {
+        $self-&gt;response-&gt;headers-&gt;push_header('ETag', $etag);
+        $self-&gt;response-&gt;headers-&gt;push_header('status', '304 Not Modified');
+    }
+    elsif ($etag) {
+        $self-&gt;response-&gt;headers-&gt;push_header('ETag', $etag);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub handle_login {
</span><span class="lines">@@ -78,6 +105,16 @@
</span><span class="cx">     my ($self, $classes, $action, $uri, $method) = @_;
</span><span class="cx">     my $class = $classes-&gt;{$uri};
</span><span class="cx">     my $full_method = $uri . &quot;.&quot; . $method;
</span><ins>+    # Only allowed methods to be used from the module's whitelist
+    my $file = $class;
+    $file =~ s{::}{/}g;
+    $file .= &quot;.pm&quot;;
+    require $file;
+    if (none { $_ eq $method } $class-&gt;PUBLIC_METHODS) {
+        ThrowCodeError('unknown_method', { method =&gt; $full_method });
+    }
+
+    $ENV{CONTENT_LENGTH} = 0 if $ENV{'SERVER_SOFTWARE'} =~ /IIS/;
</ins><span class="cx">     $self-&gt;SUPER::handle_login($class, $method, $full_method);
</span><span class="cx">     return;
</span><span class="cx"> }
</span><span class="lines">@@ -87,8 +124,12 @@
</span><span class="cx"> # This exists to validate input parameters (which XMLRPC::Lite doesn't do)
</span><span class="cx"> # and also, in some cases, to more-usefully decode them.
</span><span class="cx"> package Bugzilla::XMLRPC::Deserializer;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-# We can't use &quot;use base&quot; because XMLRPC::Serializer doesn't return
</del><ins>+use warnings;
+
+# We can't use &quot;use parent&quot; because XMLRPC::Serializer doesn't return
</ins><span class="cx"> # a true value.
</span><span class="cx"> use XMLRPC::Lite;
</span><span class="cx"> our @ISA = qw(XMLRPC::Deserializer);
</span><span class="lines">@@ -95,8 +136,18 @@
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::WebService::Constants qw(XMLRPC_CONTENT_TYPE_WHITELIST);
</span><ins>+use Bugzilla::WebService::Util qw(fix_credentials);
</ins><span class="cx"> use Scalar::Util qw(tainted);
</span><span class="cx"> 
</span><ins>+sub new {
+    my $self = shift-&gt;SUPER::new(@_);
+    # Initialise XML::Parser to not expand references to entities, to prevent DoS
+    require XML::Parser;
+    my $parser = XML::Parser-&gt;new( NoExpand =&gt; 1, Handlers =&gt; { Default =&gt; sub {} } );
+    $self-&gt;{_parser}-&gt;parser($parser, $parser);
+    return $self;
+}
+
</ins><span class="cx"> sub deserialize {
</span><span class="cx">     my $self = shift;
</span><span class="cx"> 
</span><span class="lines">@@ -118,7 +169,13 @@
</span><span class="cx">     my $params = $som-&gt;paramsin;
</span><span class="cx">     # This allows positional parameters for Testopia.
</span><span class="cx">     $params = {} if ref $params ne 'HASH';
</span><ins>+
+    # Update the params to allow for several convenience key/values
+    # use for authentication
+    fix_credentials($params);
+
</ins><span class="cx">     Bugzilla-&gt;input_params($params);
</span><ins>+
</ins><span class="cx">     return $som;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -182,7 +239,11 @@
</span><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::XMLRPC::SOM;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use XMLRPC::Lite;
</span><span class="cx"> our @ISA = qw(XMLRPC::SOM);
</span><span class="cx"> use Bugzilla::WebService::Util qw(taint_data);
</span><span class="lines">@@ -205,9 +266,13 @@
</span><span class="cx"> # This package exists to fix a UTF-8 bug in SOAP::Lite.
</span><span class="cx"> # See http://rt.cpan.org/Public/Bug/Display.html?id=32952.
</span><span class="cx"> package Bugzilla::XMLRPC::Serializer;
</span><del>-use Scalar::Util qw(blessed);
</del><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-# We can't use &quot;use base&quot; because XMLRPC::Serializer doesn't return
</del><ins>+use warnings;
+
+use Scalar::Util qw(blessed reftype);
+# We can't use &quot;use parent&quot; because XMLRPC::Serializer doesn't return
</ins><span class="cx"> # a true value.
</span><span class="cx"> use XMLRPC::Lite;
</span><span class="cx"> our @ISA = qw(XMLRPC::Serializer);
</span><span class="lines">@@ -240,8 +305,8 @@
</span><span class="cx">     my $self = shift;
</span><span class="cx">     my ($type, $method, $data) = @_;
</span><span class="cx">     # If the type isn't a successful response we don't want to change the values.
</span><del>-    if ($type eq 'response'){
-        $data = _strip_undefs($data);
</del><ins>+    if ($type eq 'response') {
+        _strip_undefs($data);
</ins><span class="cx">     }
</span><span class="cx">     return $self-&gt;SUPER::envelope($type, $method, $data);
</span><span class="cx"> }
</span><span class="lines">@@ -252,7 +317,9 @@
</span><span class="cx"> # so it cannot be recursed like the other hash type objects.
</span><span class="cx"> sub _strip_undefs {
</span><span class="cx">     my ($initial) = @_;
</span><del>-    if (ref $initial eq &quot;HASH&quot; || (blessed $initial &amp;&amp; $initial-&gt;isa(&quot;HASH&quot;))) {
</del><ins>+    my $type = reftype($initial) or return;
+
+    if ($type eq &quot;HASH&quot;) {
</ins><span class="cx">         while (my ($key, $value) = each(%$initial)) {
</span><span class="cx">             if ( !defined $value
</span><span class="cx">                  || (blessed $value &amp;&amp; $value-&gt;isa('XMLRPC::Data') &amp;&amp; !defined $value-&gt;value) )
</span><span class="lines">@@ -261,11 +328,11 @@
</span><span class="cx">                 delete $initial-&gt;{$key};
</span><span class="cx">             }
</span><span class="cx">             else {
</span><del>-                $initial-&gt;{$key} = _strip_undefs($value);
</del><ins>+                _strip_undefs($value);
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    if (ref $initial eq &quot;ARRAY&quot; || (blessed $initial &amp;&amp; $initial-&gt;isa(&quot;ARRAY&quot;))) {
</del><ins>+    elsif ($type eq &quot;ARRAY&quot;) {
</ins><span class="cx">         for (my $count = 0; $count &lt; scalar @{$initial}; $count++) {
</span><span class="cx">             my $value = $initial-&gt;[$count];
</span><span class="cx">             if ( !defined $value
</span><span class="lines">@@ -276,11 +343,10 @@
</span><span class="cx">                 $count--;
</span><span class="cx">             }
</span><span class="cx">             else {
</span><del>-                $initial-&gt;[$count] = _strip_undefs($value);
</del><ins>+                _strip_undefs($value);
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    return $initial;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub BEGIN {
</span><span class="lines">@@ -382,3 +448,15 @@
</span><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> L&lt;Bugzilla::WebService&gt;
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item make_response
+
+=item initialize
+
+=item handle_login
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceServerpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Server.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,24 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Server;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Util qw(datetime_from);
</span><span class="cx"> 
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><ins>+use Digest::MD5 qw(md5_base64);
</ins><span class="cx"> 
</span><ins>+use Storable qw(freeze);
+
</ins><span class="cx"> sub handle_login {
</span><span class="cx">     my ($self, $class, $method, $full_method) = @_;
</span><span class="cx">     # Throw error if the supplied class does not exist or the method is private
</span><span class="lines">@@ -33,11 +29,15 @@
</span><span class="cx">     return if ($class-&gt;login_exempt($method) 
</span><span class="cx">                and !defined Bugzilla-&gt;input_params-&gt;{Bugzilla_login});
</span><span class="cx">     Bugzilla-&gt;login();
</span><ins>+
+    Bugzilla::Hook::process(
+        'webservice_before_call',
+        { 'method'  =&gt; $method, full_method =&gt; $full_method });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub datetime_format_inbound {
</span><span class="cx">     my ($self, $time) = @_;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $converted = datetime_from($time, Bugzilla-&gt;local_timezone);
</span><span class="cx">     if (!defined $converted) {
</span><span class="cx">         ThrowUserError('illegal_date', { date =&gt; $time });
</span><span class="lines">@@ -63,4 +63,71 @@
</span><span class="cx">     return $time-&gt;iso8601();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# ETag support
+sub bz_etag {
+    my ($self, $data) = @_;
+    my $cache = Bugzilla-&gt;request_cache;
+    if (defined $data) {
+        # Serialize the data if passed a reference
+        local $Storable::canonical = 1;
+        $data = freeze($data) if ref $data;
+
+        # Wide characters cause md5_base64() to die.
+        utf8::encode($data) if utf8::is_utf8($data);
+
+        # Append content_type to the end of the data
+        # string as we want the etag to be unique to
+        # the content_type. We do not need this for
+        # XMLRPC as text/xml is always returned.
+        if (blessed($self) &amp;&amp; $self-&gt;can('content_type')) {
+            $data .= $self-&gt;content_type if $self-&gt;content_type;
+        }
+
+        $cache-&gt;{'bz_etag'} = md5_base64($data);
+    }
+    return $cache-&gt;{'bz_etag'};
+}
+
</ins><span class="cx"> 1;
</span><ins>+
+=head1 NAME
+
+Bugzilla::WebService::Server - Base server class for the WebService API
+
+=head1 DESCRIPTION
+
+Bugzilla::WebService::Server is the base class for the individual WebService API
+servers such as XMLRPC, JSONRPC, and REST. You never actually create a
+Bugzilla::WebService::Server directly, you only make subclasses of it.
+
+=head1 FUNCTIONS
+
+=over
+
+=item C&lt;bz_etag&gt;
+
+This function is used to store an ETag value that will be used when returning
+the data by the different API server modules such as XMLRPC, or REST. The individual
+webservice methods can also set the value earlier in the process if needed such as
+before a unique update token is added. If a value is not set earlier, an etag will
+automatically be created using the returned data except in some cases when an error
+has occurred.
+
+=back
+
+=head1 SEE ALSO
+
+L&lt;Bugzilla::WebService::Server::XMLRPC|XMLRPC&gt;, L&lt;Bugzilla::WebService::Server::JSONRPC|JSONRPC&gt;,
+and L&lt;Bugzilla::WebService::Server::REST|REST&gt;.
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item handle_login
+
+=item datetime_format_outbound
+
+=item datetime_format_inbound
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceUserpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/User.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/User.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/User.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,27 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
-#                 Noura Elhawary &lt;nelhawar@redhat.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::User;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use Bugzilla;
</del><ins>+use parent qw(Bugzilla::WebService);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> use Bugzilla::User;
</span><del>-use Bugzilla::Util qw(trim);
-use Bugzilla::WebService::Util qw(filter validate);
</del><ins>+use Bugzilla::Util qw(trim detaint_natural);
+use Bugzilla::WebService::Util qw(filter filter_wants validate translate params_to_objects);
</ins><span class="cx"> 
</span><ins>+use List::Util qw(first min);
+
</ins><span class="cx"> # Don't need auth to login
</span><span class="cx"> use constant LOGIN_EXEMPT =&gt; {
</span><span class="cx">     login =&gt; 1,
</span><span class="lines">@@ -40,6 +32,28 @@
</span><span class="cx">     get
</span><span class="cx"> );
</span><span class="cx"> 
</span><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    create
+    get
+    login
+    logout
+    offer_account_by_email
+    update
+    valid_login
+);
+
+use constant MAPPED_FIELDS =&gt; {
+    email =&gt; 'login',
+    full_name =&gt; 'name',
+    login_denied_text =&gt; 'disabledtext',
+};
+
+use constant MAPPED_RETURNS =&gt; {
+    login_name =&gt; 'email',
+    realname =&gt; 'full_name',
+    disabledtext =&gt; 'login_denied_text',
+};
+
</ins><span class="cx"> ##############
</span><span class="cx"> # User Login #
</span><span class="cx"> ##############
</span><span class="lines">@@ -46,40 +60,39 @@
</span><span class="cx"> 
</span><span class="cx"> sub login {
</span><span class="cx">     my ($self, $params) = @_;
</span><del>-    my $remember = $params-&gt;{remember};
</del><span class="cx"> 
</span><ins>+    # Check to see if we are already logged in
+    my $user = Bugzilla-&gt;user;
+    if ($user-&gt;id) {
+        return $self-&gt;_login_to_hash($user);
+    }
+
</ins><span class="cx">     # Username and password params are required 
</span><span class="cx">     foreach my $param (&quot;login&quot;, &quot;password&quot;) {
</span><del>-        defined $params-&gt;{$param} 
</del><ins>+        (defined $params-&gt;{$param} || defined $params-&gt;{'Bugzilla_' . $param})
</ins><span class="cx">             || ThrowCodeError('param_required', { param =&gt; $param });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Convert $remember from a boolean 0/1 value to a CGI-compatible one.
-    if (defined($remember)) {
-        $remember = $remember? 'on': '';
-    }
-    else {
-        # Use Bugzilla's default if $remember is not supplied.
-        $remember =
-            Bugzilla-&gt;params-&gt;{'rememberlogin'} eq 'defaulton'? 'on': '';
-    }
-
-    # Make sure the CGI user info class works if necessary.
-    my $input_params = Bugzilla-&gt;input_params;
-    $input_params-&gt;{'Bugzilla_login'} =  $params-&gt;{login};
-    $input_params-&gt;{'Bugzilla_password'} = $params-&gt;{password};
-    $input_params-&gt;{'Bugzilla_remember'} = $remember;
-
-    Bugzilla-&gt;login();
-    return { id =&gt; $self-&gt;type('int', Bugzilla-&gt;user-&gt;id) };
</del><ins>+    $user = Bugzilla-&gt;login();
+    return $self-&gt;_login_to_hash($user);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub logout {
</span><span class="cx">     my $self = shift;
</span><span class="cx">     Bugzilla-&gt;logout;
</span><del>-    return undef;
</del><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub valid_login {
+    my ($self, $params) = @_;
+    defined $params-&gt;{login}
+        || ThrowCodeError('param_required', { param =&gt; 'login' });
+    Bugzilla-&gt;login();
+    if (Bugzilla-&gt;user-&gt;id &amp;&amp; Bugzilla-&gt;user-&gt;login eq $params-&gt;{login}) {
+        return $self-&gt;type('boolean', 1);
+    }
+    return $self-&gt;type('boolean', 0);
+}
+
</ins><span class="cx"> #################
</span><span class="cx"> # User Creation #
</span><span class="cx"> #################
</span><span class="lines">@@ -124,8 +137,10 @@
</span><span class="cx"> # $call = $rpc-&gt;call( 'User.get', { ids =&gt; [1,2,3], 
</span><span class="cx"> #         names =&gt; ['testusera@redhat.com', 'testuserb@redhat.com'] });
</span><span class="cx"> sub get {
</span><del>-    my ($self, $params) = validate(@_, 'names', 'ids');
</del><ins>+    my ($self, $params) = validate(@_, 'names', 'ids', 'match', 'group_ids', 'groups');
</ins><span class="cx"> 
</span><ins>+    Bugzilla-&gt;switch_to_shadow_db();
+
</ins><span class="cx">     defined($params-&gt;{names}) || defined($params-&gt;{ids})
</span><span class="cx">         || defined($params-&gt;{match})
</span><span class="cx">         || ThrowCodeError('params_required', 
</span><span class="lines">@@ -152,11 +167,11 @@
</span><span class="cx">         }
</span><span class="cx">         my $in_group = $self-&gt;_filter_users_by_group(
</span><span class="cx">             \@user_objects, $params);
</span><del>-        @users = map {filter $params, {
</del><ins>+        @users = map { filter $params, {
</ins><span class="cx">                      id        =&gt; $self-&gt;type('int', $_-&gt;id),
</span><del>-                     real_name =&gt; $self-&gt;type('string', $_-&gt;name), 
-                     name      =&gt; $self-&gt;type('string', $_-&gt;login),
-                 }} @$in_group;
</del><ins>+                     real_name =&gt; $self-&gt;type('string', $_-&gt;name),
+                     name      =&gt; $self-&gt;type('email', $_-&gt;login),
+                 } } @$in_group;
</ins><span class="cx"> 
</span><span class="cx">         return { users =&gt; \@users };
</span><span class="cx">     }
</span><span class="lines">@@ -164,7 +179,7 @@
</span><span class="cx">     my $obj_by_ids;
</span><span class="cx">     $obj_by_ids = Bugzilla::User-&gt;new_from_list($params-&gt;{ids}) if $params-&gt;{ids};
</span><span class="cx"> 
</span><del>-    # obj_by_ids are only visible to the user if he can see 
</del><ins>+    # obj_by_ids are only visible to the user if they can see
</ins><span class="cx">     # the otheruser, for non visible otheruser throw an error
</span><span class="cx">     foreach my $obj (@$obj_by_ids) {
</span><span class="cx">         if (Bugzilla-&gt;user-&gt;can_see_user($obj)){
</span><span class="lines">@@ -180,12 +195,17 @@
</span><span class="cx">                                             userid =&gt; $obj-&gt;id});
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     # User Matching
</span><del>-    my $limit;
-    if ($params-&gt;{'maxusermatches'}) {
-        $limit = $params-&gt;{'maxusermatches'} + 1;
</del><ins>+    my $limit = Bugzilla-&gt;params-&gt;{maxusermatches};
+    if ($params-&gt;{limit}) {
+        detaint_natural($params-&gt;{limit})
+            || ThrowCodeError('param_must_be_numeric',
+                              { function =&gt; 'Bugzilla::WebService::User::match',
+                                param    =&gt; 'limit' });
+        $limit = $limit ? min($params-&gt;{limit}, $limit) : $params-&gt;{limit};
</ins><span class="cx">     }
</span><ins>+
</ins><span class="cx">     my $exclude_disabled = $params-&gt;{'include_disabled'} ? 0 : 1;
</span><span class="cx">     foreach my $match_string (@{ $params-&gt;{'match'} || [] }) {
</span><span class="cx">         my $matched = Bugzilla::User::match($match_string, $limit, $exclude_disabled);
</span><span class="lines">@@ -196,36 +216,122 @@
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-   
-    my $in_group = $self-&gt;_filter_users_by_group(
-        \@user_objects, $params); 
-    if (Bugzilla-&gt;user-&gt;in_group('editusers')) {
-        @users =
-            map {filter $params, {
-                id        =&gt; $self-&gt;type('int', $_-&gt;id),
-                real_name =&gt; $self-&gt;type('string', $_-&gt;name),
-                name      =&gt; $self-&gt;type('string', $_-&gt;login),
-                email     =&gt; $self-&gt;type('string', $_-&gt;email),
-                can_login =&gt; $self-&gt;type('boolean', $_-&gt;is_enabled ? 1 : 0),
-                email_enabled     =&gt; $self-&gt;type('boolean', $_-&gt;email_enabled),
-                login_denied_text =&gt; $self-&gt;type('string', $_-&gt;disabledtext),
-            }} @$in_group;
</del><span class="cx"> 
</span><del>-    }    
-    else {
-        @users =
-            map {filter $params, {
-                id        =&gt; $self-&gt;type('int', $_-&gt;id),
-                real_name =&gt; $self-&gt;type('string', $_-&gt;name),
-                name      =&gt; $self-&gt;type('string', $_-&gt;login),
-                email     =&gt; $self-&gt;type('string', $_-&gt;email),
-                can_login =&gt; $self-&gt;type('boolean', $_-&gt;is_enabled ? 1 : 0),
-            }} @$in_group;
</del><ins>+    my $in_group = $self-&gt;_filter_users_by_group(\@user_objects, $params);
+    foreach my $user (@$in_group) {
+        my $user_info = filter $params, {
+            id        =&gt; $self-&gt;type('int', $user-&gt;id),
+            real_name =&gt; $self-&gt;type('string', $user-&gt;name),
+            name      =&gt; $self-&gt;type('email', $user-&gt;login),
+            email     =&gt; $self-&gt;type('email', $user-&gt;email),
+            can_login =&gt; $self-&gt;type('boolean', $user-&gt;is_enabled ? 1 : 0),
+        };
+
+        if (Bugzilla-&gt;user-&gt;in_group('editusers')) {
+            $user_info-&gt;{email_enabled}     = $self-&gt;type('boolean', $user-&gt;email_enabled);
+            $user_info-&gt;{login_denied_text} = $self-&gt;type('string', $user-&gt;disabledtext);
+        }
+
+        if (Bugzilla-&gt;user-&gt;id == $user-&gt;id) {
+            if (filter_wants($params, 'saved_searches')) {
+                $user_info-&gt;{saved_searches} = [
+                    map { $self-&gt;_query_to_hash($_) } @{ $user-&gt;queries }
+                ];
+            }
+            if (filter_wants($params, 'saved_reports')) {
+                $user_info-&gt;{saved_reports}  = [
+                    map { $self-&gt;_report_to_hash($_) } @{ $user-&gt;reports }
+                ];
+            }
+        }
+
+        if (filter_wants($params, 'groups')) {
+            if (Bugzilla-&gt;user-&gt;id == $user-&gt;id || Bugzilla-&gt;user-&gt;in_group('editusers')) {
+                $user_info-&gt;{groups} = [
+                    map { $self-&gt;_group_to_hash($_) } @{ $user-&gt;groups }
+                ];
+            }
+            else {
+                $user_info-&gt;{groups} = $self-&gt;_filter_bless_groups($user-&gt;groups);
+            }
+        }
+
+        push(@users, $user_info);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return { users =&gt; \@users };
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+###############
+# User Update #
+###############
+
+sub update {
+    my ($self, $params) = @_;
+
+    my $dbh = Bugzilla-&gt;dbh;
+
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+
+    # Reject access if there is no sense in continuing.
+    $user-&gt;in_group('editusers')
+        || ThrowUserError(&quot;auth_failure&quot;, {group  =&gt; &quot;editusers&quot;,
+                                           action =&gt; &quot;edit&quot;,
+                                           object =&gt; &quot;users&quot;});
+
+    defined($params-&gt;{names}) || defined($params-&gt;{ids})
+        || ThrowCodeError('params_required', 
+               { function =&gt; 'User.update', params =&gt; ['ids', 'names'] });
+
+    my $user_objects = params_to_objects($params, 'Bugzilla::User');
+
+    my $values = translate($params, MAPPED_FIELDS);
+
+    # We delete names and ids to keep only new values to set.
+    delete $values-&gt;{names};
+    delete $values-&gt;{ids};
+
+    $dbh-&gt;bz_start_transaction();
+    foreach my $user (@$user_objects){
+        $user-&gt;set_all($values);
+    }
+
+    my %changes;
+    foreach my $user (@$user_objects){
+        my $returned_changes = $user-&gt;update();
+        $changes{$user-&gt;id} = translate($returned_changes, MAPPED_RETURNS);    
+    }
+    $dbh-&gt;bz_commit_transaction();
+
+    my @result;
+    foreach my $user (@$user_objects) {
+        my %hash = (
+            id      =&gt; $user-&gt;id,
+            changes =&gt; {},
+        );
+
+        foreach my $field (keys %{ $changes{$user-&gt;id} }) {
+            my $change = $changes{$user-&gt;id}-&gt;{$field};
+            # We normalize undef to an empty string, so that the API
+            # stays consistent for things that can become empty.
+            $change-&gt;[0] = '' if !defined $change-&gt;[0];
+            $change-&gt;[1] = '' if !defined $change-&gt;[1];
+            # We also flatten arrays (used by groups and blessed_groups)
+            $change-&gt;[0] = join(',', @{$change-&gt;[0]}) if ref $change-&gt;[0];
+            $change-&gt;[1] = join(',', @{$change-&gt;[1]}) if ref $change-&gt;[1];
+
+            $hash{changes}{$field} = {
+                removed =&gt; $self-&gt;type('string', $change-&gt;[0]),
+                added   =&gt; $self-&gt;type('string', $change-&gt;[1]) 
+            };
+        }
+
+        push(@result, \%hash);
+    }
+
+    return { users =&gt; \@result };
+}
+
</ins><span class="cx"> sub _filter_users_by_group {
</span><span class="cx">     my ($self, $users, $params) = @_;
</span><span class="cx">     my ($group_ids, $group_names) = @$params{qw(group_ids groups)};
</span><span class="lines">@@ -234,20 +340,22 @@
</span><span class="cx">     return $users if (!$group_ids and !$group_names);
</span><span class="cx"> 
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><ins>+    my (@groups, %groups);
</ins><span class="cx"> 
</span><del>-    my @groups = map { Bugzilla::Group-&gt;check({ id =&gt; $_ }) } 
-                     @{ $group_ids || [] };
-
</del><ins>+    if ($group_ids) {
+        @groups = map { Bugzilla::Group-&gt;check({ id =&gt; $_ }) } @$group_ids;
+        $groups{$_-&gt;id} = $_ foreach @groups;
+    }
</ins><span class="cx">     if ($group_names) {
</span><span class="cx">         foreach my $name (@$group_names) {
</span><span class="cx">             my $group = Bugzilla::Group-&gt;check({ name =&gt; $name, _error =&gt; 'invalid_group_name' });
</span><span class="cx">             $user-&gt;in_group($group) || ThrowUserError('invalid_group_name', { name =&gt; $name });
</span><del>-            push(@groups, $group);
</del><ins>+            $groups{$group-&gt;id} = $group;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    @groups = values %groups;
</ins><span class="cx"> 
</span><del>-    my @in_group = grep { $self-&gt;_user_in_any_group($_, \@groups) }
-                        @$users;
</del><ins>+    my @in_group = grep { $self-&gt;_user_in_any_group($_, \@groups) } @$users;
</ins><span class="cx">     return \@in_group;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -259,6 +367,58 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub _filter_bless_groups {
+    my ($self, $groups) = @_;
+    my $user = Bugzilla-&gt;user;
+
+    my @filtered_groups;
+    foreach my $group (@$groups) {
+        next unless $user-&gt;can_bless($group-&gt;id);
+        push(@filtered_groups, $self-&gt;_group_to_hash($group));
+    }
+
+    return \@filtered_groups;
+}
+
+sub _group_to_hash {
+    my ($self, $group) = @_;
+    my $item = {
+        id          =&gt; $self-&gt;type('int', $group-&gt;id), 
+        name        =&gt; $self-&gt;type('string', $group-&gt;name), 
+        description =&gt; $self-&gt;type('string', $group-&gt;description), 
+    };
+    return $item;
+}
+
+sub _query_to_hash {
+    my ($self, $query) = @_;
+    my $item = {
+        id    =&gt; $self-&gt;type('int', $query-&gt;id),
+        name  =&gt; $self-&gt;type('string', $query-&gt;name),
+        query =&gt; $self-&gt;type('string', $query-&gt;url),
+    };
+    return $item;
+}
+
+sub _report_to_hash {
+    my ($self, $report) = @_;
+    my $item = {
+        id    =&gt; $self-&gt;type('int', $report-&gt;id),
+        name  =&gt; $self-&gt;type('string', $report-&gt;name),
+        query =&gt; $self-&gt;type('string', $report-&gt;query),
+    };
+    return $item;
+}
+
+sub _login_to_hash {
+    my ($self, $user) = @_;
+    my $item = { id =&gt; $self-&gt;type('int', $user-&gt;id) };
+    if ($user-&gt;{_login_token}) {
+        $item-&gt;{'token'} = $user-&gt;id . &quot;-&quot; . $user-&gt;{_login_token};
+    }
+    return $item;
+}
+
</ins><span class="cx"> 1;
</span><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="lines">@@ -277,11 +437,19 @@
</span><span class="cx"> See L&lt;Bugzilla::WebService&gt; for a description of how parameters are passed,
</span><span class="cx"> and what B&lt;STABLE&gt;, B&lt;UNSTABLE&gt;, and B&lt;EXPERIMENTAL&gt; mean.
</span><span class="cx"> 
</span><ins>+Although the data input and output is the same for JSONRPC, XMLRPC and REST,
+the directions for how to access the data via REST is noted in each method
+where applicable.
+
</ins><span class="cx"> =head1 Logging In and Out
</span><span class="cx"> 
</span><ins>+These method are now deprecated, and will be removed in the release after
+Bugzilla 5.0. The correct way of use these REST and RPC calls is noted in
+L&lt;Bugzilla::WebService&gt;
+
</ins><span class="cx"> =head2 login
</span><span class="cx"> 
</span><del>-B&lt;STABLE&gt;
</del><ins>+B&lt;DEPRECATED&gt;
</ins><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><span class="lines">@@ -295,26 +463,23 @@
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;login&gt; (string) - The user's login name. 
</del><ins>+=item C&lt;login&gt; (string) - The user's login name.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;password&gt; (string) - The user's password.
</span><span class="cx"> 
</span><del>-=item C&lt;remember&gt; (bool) B&lt;Optional&gt; - if the cookies returned by the
-call to login should expire with the session or not.  In order for
-this option to have effect the Bugzilla server must be configured to
-allow the user to set this option - the Bugzilla parameter
-I&lt;rememberlogin&gt; must be set to &quot;defaulton&quot; or
-&quot;defaultoff&quot;. Addionally, the client application must implement
-management of cookies across sessions.
</del><ins>+=item C&lt;restrict_login&gt; (bool) B&lt;Optional&gt; - If set to a true value,
+the token returned by this method will only be valid from the IP address
+which called this method.
</ins><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =item B&lt;Returns&gt;
</span><span class="cx"> 
</span><del>-On success, a hash containing one item, C&lt;id&gt;, the numeric id of the
-user that was logged in.  A set of http cookies is also sent with the
-response.  These cookies must be sent along with any future requests
-to the webservice, for the duration of the session.
</del><ins>+On success, a hash containing two items, C&lt;id&gt;, the numeric id of the
+user that was logged in, and a C&lt;token&gt; which can be passed in
+the parameters as authentication in other calls. The token can be sent
+along with any future requests to the webservice, for the duration of the
+session, i.e. till L&lt;User.logout|/logout&gt; is called.
</ins><span class="cx"> 
</span><span class="cx"> =item B&lt;Errors&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -324,15 +489,15 @@
</span><span class="cx"> 
</span><span class="cx"> The username does not exist, or the password is wrong.
</span><span class="cx"> 
</span><del>-=item 301 (Account Disabled)
</del><ins>+=item 301 (Login Disabled)
</ins><span class="cx"> 
</span><del>-The account has been disabled.  A reason may be specified with the
-error.
</del><ins>+The ability to login with this account has been disabled.  A reason may be
+specified with the error.
</ins><span class="cx"> 
</span><span class="cx"> =item 305 (New Password Required)
</span><span class="cx"> 
</span><span class="cx"> The current password is correct, but the user is asked to change
</span><del>-his password.
</del><ins>+their password.
</ins><span class="cx"> 
</span><span class="cx"> =item 50 (Param Required)
</span><span class="cx"> 
</span><span class="lines">@@ -340,11 +505,26 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=item B&lt;History&gt;
+
+=over
+
+=item C&lt;remember&gt; was removed in Bugzilla B&lt;5.0&gt; as this method no longer
+creates a login cookie.
+
+=item C&lt;restrict_login&gt; was added in Bugzilla B&lt;5.0&gt;.
+
+=item C&lt;token&gt; was added in Bugzilla B&lt;4.4.3&gt;.
+
+=item This function will be removed in the release after Bugzilla 5.0, in favour of API keys.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=back
+
</ins><span class="cx"> =head2 logout
</span><span class="cx"> 
</span><del>-B&lt;STABLE&gt;
</del><ins>+B&lt;DEPRECATED&gt;
</ins><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><span class="lines">@@ -360,8 +540,54 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=head1 Account Creation
</del><ins>+=head2 valid_login
</ins><span class="cx"> 
</span><ins>+B&lt;DEPRECATED&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+This method will verify whether a client's cookies or current login
+token is still valid or have expired. A valid username must be provided
+as well that matches.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;login&gt;
+
+The login name that matches the provided cookies or token.
+
+=item C&lt;token&gt;
+
+(string) Persistent login token current being used for authentication (optional).
+Cookies passed by client will be used before the token if both provided.
+
+=back
+
+=item B&lt;Returns&gt;
+
+Returns true/false depending on if the current cookies or token are valid
+for the provided username.
+
+=item B&lt;Errors&gt; (none)
+
+=item B&lt;History&gt;
+
+=over
+
+=item Added in Bugzilla B&lt;5.0&gt;.
+
+=item This function will be removed in the release after Bugzilla 5.0, in favour of API keys.
+
+=back
+
+=back
+
+=head1 Account Creation and Modification
+
</ins><span class="cx"> =head2 offer_account_by_email
</span><span class="cx"> 
</span><span class="cx"> B&lt;STABLE&gt;
</span><span class="lines">@@ -419,6 +645,13 @@
</span><span class="cx"> You must be logged in and have the C&lt;editusers&gt; privilege in order to
</span><span class="cx"> call this function.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+POST /rest/user
+
+The params to include in the POST body as well as the returned data format,
+are the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> =over
</span><span class="lines">@@ -462,10 +695,157 @@
</span><span class="cx"> 
</span><span class="cx"> =item Error 503 (Password Too Long) removed in Bugzilla B&lt;3.6&gt;.
</span><span class="cx"> 
</span><ins>+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+=head2 update 
+
+B&lt;EXPERIMENTAL&gt;
+
+=over
+
+=item B&lt;Description&gt;
+
+Updates user accounts in Bugzilla.
+
+=item B&lt;REST&gt;
+
+PUT /rest/user/&lt;user_id_or_name&gt;
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. The C&lt;ids&gt; and C&lt;names&gt; params are overridden as they
+are pulled from the URL path.
+
+=item B&lt;Params&gt;
+
+=over
+
+=item C&lt;ids&gt;
+
+C&lt;array&gt; Contains ids of user to update.
+
+=item C&lt;names&gt;
+
+C&lt;array&gt; Contains email/login of user to update.
+
+=item C&lt;full_name&gt;
+
+C&lt;string&gt; The new name of the user.
+
+=item C&lt;email&gt;
+
+C&lt;string&gt; The email of the user. Note that email used to login to bugzilla.
+Also note that you can only update one user at a time when changing the 
+login name / email. (An error will be thrown if you try to update this field 
+for multiple users at once.)
+
+=item C&lt;password&gt;
+
+C&lt;string&gt; The password of the user.
+
+=item C&lt;email_enabled&gt;
+
+C&lt;boolean&gt; A boolean value to enable/disable sending bug-related mail to the user.
+
+=item C&lt;login_denied_text&gt;
+
+C&lt;string&gt; A text field that holds the reason for disabling a user from logging
+into bugzilla, if empty then the user account is enabled otherwise it is
+disabled/closed.
+
+=item C&lt;groups&gt;
+
+C&lt;hash&gt; These specify the groups that this user is directly a member of.
+To set these, you should pass a hash as the value. The hash may contain
+the following fields:
+
+=over
+
+=item C&lt;add&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. The group ids or group names
+that the user should be added to.
+
+=item C&lt;remove&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. The group ids or group names
+that the user should be removed from.
+
+=item C&lt;set&gt; An array of C&lt;int&gt;s or C&lt;string&gt;s. An exact set of group ids
+and group names that the user should be a member of. NOTE: This does not
+remove groups from the user where the person making the change does not
+have the bless privilege for.
+
+If you specify C&lt;set&gt;, then C&lt;add&gt; and C&lt;remove&gt; will be ignored. A group in
+both the C&lt;add&gt; and C&lt;remove&gt; list will be added. Specifying a group that the
+user making the change does not have bless rights will generate an error.
+
+=back
+
+=item C&lt;bless_groups&gt;
+
+C&lt;hash&gt; - This is the same as groups, but affects what groups a user
+has direct membership to bless that group. It takes the same inputs as
+groups.
+
+=back
+
+=item B&lt;Returns&gt;
+
+A C&lt;hash&gt; with a single field &quot;users&quot;. This points to an array of hashes
+with the following fields:
+
+=over
+
+=item C&lt;id&gt;
+
+C&lt;int&gt; The id of the user that was updated.
+
+=item C&lt;changes&gt;
+
+C&lt;hash&gt; The changes that were actually done on this user. The keys are
+the names of the fields that were changed, and the values are a hash
+with two keys:
+
+=over
+
+=item C&lt;added&gt;
+
+C&lt;string&gt; The values that were added to this field,
+possibly a comma-and-space-separated list if multiple values were added.
+
+=item C&lt;removed&gt;
+
+C&lt;string&gt; The values that were removed from this field, possibly a 
+comma-and-space-separated list if multiple values were removed.
+
+=back
+
+=back
+
+=item B&lt;Errors&gt;
+
+=over
+
+=item 51 (Bad Login Name)
+
+You passed an invalid login name in the &quot;names&quot; array.
+
+=item 304 (Authorization Required)
+
+Logged-in users are not authorized to edit other users.
+
+=back
+
+=item B&lt;History&gt;
+
+=over
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
+=back
+
+=back
+
</ins><span class="cx"> =head1 User Info
</span><span class="cx"> 
</span><span class="cx"> =head2 get
</span><span class="lines">@@ -478,6 +858,18 @@
</span><span class="cx"> 
</span><span class="cx"> Gets information about user accounts in Bugzilla.
</span><span class="cx"> 
</span><ins>+=item B&lt;REST&gt;
+
+To get information about a single user:
+
+GET /rest/user/&lt;user_id_or_name&gt;
+
+To search for users by name, group using URL params same as below:
+
+GET /rest/user
+
+The returned data format is the same as below.
+
</ins><span class="cx"> =item B&lt;Params&gt;
</span><span class="cx"> 
</span><span class="cx"> B&lt;Note&gt;: At least one of C&lt;ids&gt;, C&lt;names&gt;, or C&lt;match&gt; must be specified.
</span><span class="lines">@@ -510,9 +902,6 @@
</span><span class="cx"> contains any one of the specified strings. Users that you cannot see will
</span><span class="cx"> not be included in the returned list.
</span><span class="cx"> 
</span><del>-Some Bugzilla installations have user-matching turned off, in which
-case you will only be returned exact matches.
-
</del><span class="cx"> Most installations have a limit on how many matches are returned for
</span><span class="cx"> each string, which defaults to 1000 but can be changed by the Bugzilla
</span><span class="cx"> administrator.
</span><span class="lines">@@ -522,6 +911,13 @@
</span><span class="cx"> addresses from Bugzilla, and also to enforce the user visibility
</span><span class="cx"> restrictions that are implemented on some Bugzillas.)
</span><span class="cx"> 
</span><ins>+=item C&lt;limit&gt; (int)
+
+Limit the number of users matched by the C&lt;match&gt; parameter. If value
+is greater than the system limit, the system limit will be used. This
+parameter is only used when user matching using the C&lt;match&gt; parameter
+is being performed.
+
</ins><span class="cx"> =item C&lt;group_ids&gt; (array)
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;groups&gt; (array)
</span><span class="lines">@@ -581,10 +977,79 @@
</span><span class="cx"> into bugzilla, if empty then the user account is enabled. Otherwise it is 
</span><span class="cx"> disabled/closed.
</span><span class="cx"> 
</span><ins>+=item groups
+
+C&lt;array&gt; An array of group hashes the user is a member of. If the currently
+logged in user is querying their own account or is a member of the 'editusers'
+group, the array will contain all the groups that the user is a
+member of. Otherwise, the array will only contain groups that the logged in
+user can bless. Each hash describes the group and contains the following items:
+
+=over
+
+=item id
+
+C&lt;int&gt; The group id
+
+=item name
+
+C&lt;string&gt; The name of the group
+
+=item description
+
+C&lt;string&gt; The description for the group
+
+=back
+
+=item saved_searches
+
+C&lt;array&gt; An array of hashes, each of which represents a user's saved search and has
+the following keys:
+
+=over
+
+=item id
+
+C&lt;int&gt; An integer id uniquely identifying the saved search.
+
+=item name
+
+C&lt;string&gt; The name of the saved search.
+
+=item query
+
+C&lt;string&gt; The CGI parameters for the saved search.
+
+=back
+
+=item saved_reports
+
+C&lt;array&gt; An array of hashes, each of which represents a user's saved report and has
+the following keys:
+
+=over
+
+=item id
+
+C&lt;int&gt; An integer id uniquely identifying the saved report.
+
+=item name
+
+C&lt;string&gt; The name of the saved report.
+
+=item query
+
+C&lt;string&gt; The CGI parameters for the saved report.
+
+=back
+
</ins><span class="cx"> B&lt;Note&gt;: If you are not logged in to Bugzilla when you call this function, you
</span><span class="cx"> will only be returned the C&lt;id&gt;, C&lt;name&gt;, and C&lt;real_name&gt; items. If you are
</span><span class="cx"> logged in and not in editusers group, you will only be returned the C&lt;id&gt;, C&lt;name&gt;, 
</span><del>-C&lt;real_name&gt;, C&lt;email&gt;, and C&lt;can_login&gt; items.
</del><ins>+C&lt;real_name&gt;, C&lt;email&gt;, C&lt;can_login&gt;, and C&lt;groups&gt; items. The groups returned are
+filtered based on your permission to bless each group.
+The C&lt;saved_searches&gt; and C&lt;saved_reports&gt; items are only returned if you are
+querying your own account, even if you are in the editusers group.
</ins><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><span class="lines">@@ -597,6 +1062,10 @@
</span><span class="cx"> You passed an invalid login name in the &quot;names&quot; array or a bad
</span><span class="cx"> group ID in the C&lt;group_ids&gt; argument.
</span><span class="cx"> 
</span><ins>+=item 52 (Invalid Parameter)
+
+The value used must be an integer greater than zero.
+
</ins><span class="cx"> =item 304 (Authorization Required)
</span><span class="cx"> 
</span><span class="cx"> You are logged in, but you are not authorized to see one of the users you
</span><span class="lines">@@ -622,12 +1091,17 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;group_ids&gt; and C&lt;groups&gt; were added in Bugzilla B&lt;4.0&gt;.
</span><span class="cx"> 
</span><del>-=item C&lt;include_disabled&gt; added in Bugzilla B&lt;4.0&gt;. Default behavior 
-for C&lt;match&gt; has changed to only returning enabled accounts.
</del><ins>+=item C&lt;include_disabled&gt; was added in Bugzilla B&lt;4.0&gt;. Default
+behavior for C&lt;match&gt; was changed to only return enabled accounts.
</ins><span class="cx"> 
</span><span class="cx"> =item Error 804 has been added in Bugzilla 4.0.9 and 4.2.4. It's now
</span><span class="cx"> illegal to pass a group name you don't belong to.
</span><span class="cx"> 
</span><ins>+=item C&lt;groups&gt;, C&lt;saved_searches&gt;, and C&lt;saved_reports&gt; were added
+in Bugzilla B&lt;4.4&gt;.
+
+=item REST API call added in Bugzilla B&lt;5.0&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =back
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServiceUtilpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Util.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Util.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService/Util.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,63 +1,189 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2008
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::WebService::Util;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use Bugzilla::Flag;
+use Bugzilla::FlagType;
+use Bugzilla::Error;
+
+use Storable qw(dclone);
+use List::MoreUtils qw(any none);
+
+use parent qw(Exporter);
+
</ins><span class="cx"> # We have to &quot;require&quot;, not &quot;use&quot; this, because otherwise it tries to
</span><span class="cx"> # use features of Test::More during import().
</span><span class="cx"> require Test::Taint;
</span><span class="cx"> 
</span><span class="cx"> our @EXPORT_OK = qw(
</span><ins>+    extract_flags
</ins><span class="cx">     filter
</span><span class="cx">     filter_wants
</span><span class="cx">     taint_data
</span><span class="cx">     validate
</span><ins>+    translate
+    params_to_objects
+    fix_credentials
</ins><span class="cx"> );
</span><span class="cx"> 
</span><del>-sub filter ($$) {
-    my ($params, $hash) = @_;
</del><ins>+sub extract_flags {
+    my ($flags, $bug, $attachment) = @_;
+    my (@new_flags, @old_flags);
+
+    my $flag_types    = $attachment ? $attachment-&gt;flag_types : $bug-&gt;flag_types;
+    my $current_flags = $attachment ? $attachment-&gt;flags : $bug-&gt;flags;
+
+    # Copy the user provided $flags as we may call extract_flags more than
+    # once when editing multiple bugs or attachments.
+    my $flags_copy = dclone($flags);
+
+    foreach my $flag (@$flags_copy) {
+        my $id      = $flag-&gt;{id};
+        my $type_id = $flag-&gt;{type_id};
+
+        my $new  = delete $flag-&gt;{new};
+        my $name = delete $flag-&gt;{name};
+
+        if ($id) {
+            my $flag_obj = grep($id == $_-&gt;id, @$current_flags);
+            $flag_obj || ThrowUserError('object_does_not_exist',
+                                        { class =&gt; 'Bugzilla::Flag', id =&gt; $id });
+        }
+        elsif ($type_id) {
+            my $type_obj = grep($type_id == $_-&gt;id, @$flag_types);
+            $type_obj || ThrowUserError('object_does_not_exist',
+                                        { class =&gt; 'Bugzilla::FlagType', id =&gt; $type_id });
+            if (!$new) {
+                my @flag_matches = grep($type_id == $_-&gt;type-&gt;id, @$current_flags);
+                @flag_matches &gt; 1 &amp;&amp; ThrowUserError('flag_not_unique',
+                                                     { value =&gt; $type_id });
+                if (!@flag_matches) {
+                    delete $flag-&gt;{id};
+                }
+                else {
+                    delete $flag-&gt;{type_id};
+                    $flag-&gt;{id} = $flag_matches[0]-&gt;id;
+                }
+            }
+        }
+        elsif ($name) {
+            my @type_matches = grep($name eq $_-&gt;name, @$flag_types);
+            @type_matches &gt; 1 &amp;&amp; ThrowUserError('flag_type_not_unique',
+                                                { value =&gt; $name });
+            @type_matches || ThrowUserError('object_does_not_exist',
+                                            { class =&gt; 'Bugzilla::FlagType', name =&gt; $name });
+            if ($new) {
+                delete $flag-&gt;{id};
+                $flag-&gt;{type_id} = $type_matches[0]-&gt;id;
+            }
+            else {
+                my @flag_matches = grep($name eq $_-&gt;type-&gt;name, @$current_flags);
+                @flag_matches &gt; 1 &amp;&amp; ThrowUserError('flag_not_unique', { value =&gt; $name });
+                if (@flag_matches) {
+                    $flag-&gt;{id} = $flag_matches[0]-&gt;id;
+                }
+                else {
+                    delete $flag-&gt;{id};
+                    $flag-&gt;{type_id} = $type_matches[0]-&gt;id;
+                }
+            }
+        }
+
+        if ($flag-&gt;{id}) {
+            push(@old_flags, $flag);
+        }
+        else {
+            push(@new_flags, $flag);
+        }
+    }
+
+    return (\@old_flags, \@new_flags);
+}
+
+sub filter($$;$$) {
+    my ($params, $hash, $types, $prefix) = @_;
</ins><span class="cx">     my %newhash = %$hash;
</span><span class="cx"> 
</span><span class="cx">     foreach my $key (keys %$hash) {
</span><del>-        delete $newhash{$key} if !filter_wants($params, $key);
</del><ins>+        delete $newhash{$key} if !filter_wants($params, $key, $types, $prefix);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return \%newhash;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub filter_wants ($$) {
-    my ($params, $field) = @_;
</del><ins>+sub filter_wants($$;$$) {
+    my ($params, $field, $types, $prefix) = @_;
+
+    # Since this is operation is resource intensive, we will cache the results
+    # This assumes that $params-&gt;{*_fields} doesn't change between calls
+    my $cache = Bugzilla-&gt;request_cache-&gt;{filter_wants} ||= {};
+    $field = &quot;${prefix}.${field}&quot; if $prefix;
+
+    if (exists $cache-&gt;{$field}) {
+        return $cache-&gt;{$field};
+    }
+
+    # Mimic old behavior if no types provided
+    my %field_types = map { $_ =&gt; 1 } (ref $types ? @$types : ($types || 'default'));
+
</ins><span class="cx">     my %include = map { $_ =&gt; 1 } @{ $params-&gt;{'include_fields'} || [] };
</span><span class="cx">     my %exclude = map { $_ =&gt; 1 } @{ $params-&gt;{'exclude_fields'} || [] };
</span><span class="cx"> 
</span><del>-    if (defined $params-&gt;{include_fields}) {
-        return 0 if !$include{$field};
</del><ins>+    my %include_types;
+    my %exclude_types;
+
+    # Only return default fields if nothing is specified
+    $include_types{default} = 1 if !%include;
+
+    # Look for any field types requested
+    foreach my $key (keys %include) {
+        next if $key !~ /^_(.*)$/;
+        $include_types{$1} = 1;
+        delete $include{$key};
</ins><span class="cx">     }
</span><del>-    if (defined $params-&gt;{exclude_fields}) {
-        return 0 if $exclude{$field};
</del><ins>+    foreach my $key (keys %exclude) {
+        next if $key !~ /^_(.*)$/;
+        $exclude_types{$1} = 1;
+        delete $exclude{$key};
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return 1;
</del><ins>+    # Explicit inclusion/exclusion
+    return $cache-&gt;{$field} = 0 if $exclude{$field};
+    return $cache-&gt;{$field} = 1 if $include{$field};
+
+    # If the user has asked to include all or exclude all
+    return $cache-&gt;{$field} = 0 if $exclude_types{'all'};
+    return $cache-&gt;{$field} = 1 if $include_types{'all'};
+
+    # If the user has not asked for any fields specifically or if the user has asked
+    # for one or more of the field's types (and not excluded them)
+    foreach my $type (keys %field_types) {
+        return $cache-&gt;{$field} = 0 if $exclude_types{$type};
+        return $cache-&gt;{$field} = 1 if $include_types{$type};
+    }
+
+    my $wants = 0;
+    if ($prefix) {
+        # Include the field if the parent is include (and this one is not excluded)
+        $wants = 1 if $include{$prefix};
+    }
+    else {
+        # We want to include this if one of the sub keys is included
+        my $key = $field . '.';
+        my $len = length($key);
+        $wants = 1 if grep { substr($_, 0, $len) eq $key  } keys %include;
+    }
+
+    return $cache-&gt;{$field} = $wants;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub taint_data {
</span><span class="lines">@@ -77,8 +203,9 @@
</span><span class="cx">             # Making something a hash key always untaints it, in Perl.
</span><span class="cx">             # However, we need to validate our argument names in some way.
</span><span class="cx">             # We know that all hash keys passed in to the WebService will 
</span><del>-            # match \w+, so we delete any key that doesn't match that.
-            if ($key !~ /^\w+$/) {
</del><ins>+            # match \w+, contain '.' or '-', so we delete any key that
+            # doesn't match that.
+            if ($key !~ /^[\w\.\-]+$/) {
</ins><span class="cx">                 delete $item-&gt;{$key};
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="lines">@@ -93,15 +220,20 @@
</span><span class="cx">     # sent any parameters at all, and we're getting @keys where
</span><span class="cx">     # $params should be.
</span><span class="cx">     return ($self, undef) if (defined $params and !ref $params);
</span><del>-    
</del><ins>+
+    my @id_params = qw(ids comment_ids);
</ins><span class="cx">     # If @keys is not empty then we convert any named 
</span><span class="cx">     # parameters that have scalar values to arrayrefs
</span><span class="cx">     # that match.
</span><span class="cx">     foreach my $key (@keys) {
</span><span class="cx">         if (exists $params-&gt;{$key}) {
</span><del>-            $params-&gt;{$key} = ref $params-&gt;{$key} 
-                              ? $params-&gt;{$key} 
-                              : [ $params-&gt;{$key} ];
</del><ins>+            $params-&gt;{$key} = [ $params-&gt;{$key} ] unless ref $params-&gt;{$key};
+
+            if (any { $key eq $_ } @id_params) {
+                my $ids = $params-&gt;{$key};
+                ThrowCodeError('param_scalar_array_required', { param =&gt; $key })
+                  unless ref($ids) eq 'ARRAY' &amp;&amp; none { ref $_ } @$ids;
+            }
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -108,6 +240,56 @@
</span><span class="cx">     return ($self, $params);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub translate {
+    my ($params, $mapped) = @_;
+    my %changes;
+    while (my ($key,$value) = each (%$params)) {
+        my $new_field = $mapped-&gt;{$key} || $key;
+        $changes{$new_field} = $value;
+    }
+    return \%changes;
+}
+
+sub params_to_objects {
+    my ($params, $class) = @_;
+    my (@objects, @objects_by_ids);
+
+    @objects = map { $class-&gt;check($_) } 
+        @{ $params-&gt;{names} } if $params-&gt;{names};
+
+    @objects_by_ids = map { $class-&gt;check({ id =&gt; $_ }) } 
+        @{ $params-&gt;{ids} } if $params-&gt;{ids};
+
+    push(@objects, @objects_by_ids);
+    my %seen;
+    @objects = grep { !$seen{$_-&gt;id}++ } @objects;
+    return \@objects;
+}
+
+sub fix_credentials {
+    my ($params) = @_;
+    # Allow user to pass in login=foo&amp;password=bar as a convenience
+    # even if not calling GET /login. We also do not delete them as
+    # GET /login requires &quot;login&quot; and &quot;password&quot;.
+    if (exists $params-&gt;{'login'} &amp;&amp; exists $params-&gt;{'password'}) {
+        $params-&gt;{'Bugzilla_login'}    = delete $params-&gt;{'login'};
+        $params-&gt;{'Bugzilla_password'} = delete $params-&gt;{'password'};
+    }
+    # Allow user to pass api_key=12345678 as a convenience which becomes
+    # &quot;Bugzilla_api_key&quot; which is what the auth code looks for.
+    if (exists $params-&gt;{api_key}) {
+        $params-&gt;{Bugzilla_api_key} = delete $params-&gt;{api_key};
+    }
+    # Allow user to pass token=12345678 as a convenience which becomes
+    # &quot;Bugzilla_token&quot; which is what the auth code looks for.
+    if (exists $params-&gt;{'token'}) {
+        $params-&gt;{'Bugzilla_token'} = delete $params-&gt;{'token'};
+    }
+
+    # Allow extensions to modify the credential data before login
+    Bugzilla::Hook::process('webservice_fix_credentials', { params =&gt; $params });
+}
+
</ins><span class="cx"> __END__
</span><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="lines">@@ -136,6 +318,13 @@
</span><span class="cx"> this will remove any keys that are I&lt;not&gt; in C&lt;include_fields&gt; and then remove
</span><span class="cx"> any keys that I&lt;are&gt; in C&lt;exclude_fields&gt;.
</span><span class="cx"> 
</span><ins>+An optional third option can be passed that prefixes the field name to allow
+filtering of data two or more levels deep.
+
+For example, if you want to filter out the C&lt;id&gt; key/value in components returned
+by Product.get, you would use the value C&lt;component.id&gt; in your C&lt;exclude_fields&gt;
+list.
+
</ins><span class="cx"> =head2 filter_wants
</span><span class="cx"> 
</span><span class="cx"> Returns C&lt;1&gt; if a filter would preserve the specified field when passing
</span><span class="lines">@@ -147,3 +336,39 @@
</span><span class="cx"> methods. Currently it converts listed parameters into an array reference
</span><span class="cx"> if the client only passed a single scalar value. It modifies the parameters
</span><span class="cx"> hash in place so other parameters should be unaltered.
</span><ins>+
+=head2 translate
+
+WebService methods frequently take parameters with different names than
+the ones that we use internally in Bugzilla. This function takes a hashref
+that has field names for keys and returns a hashref with those keys renamed
+according to the mapping passed in with the second parameter (which is also
+a hashref).
+
+=head2 params_to_objects
+
+Creates objects of the type passed in as the second parameter, using the
+parameters passed to a WebService method (the first parameter to this function).
+Helps make life simpler for WebService methods that internally create objects
+via both &quot;ids&quot; and &quot;names&quot; fields. Also de-duplicates objects that were loaded
+by both &quot;ids&quot; and &quot;names&quot;. Returns an arrayref of objects.
+
+=head2 fix_credentials
+
+Allows for certain parameters related to authentication such as Bugzilla_login,
+Bugzilla_password, and Bugzilla_token to have shorter named equivalents passed in.
+This function converts the shorter versions to their respective internal names.
+
+=head2 extract_flags
+
+Subroutine that takes a list of hashes that are potential flag changes for
+both bugs and attachments. Then breaks the list down into two separate lists
+based on if the change is to add a new flag or to update an existing flag.
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item taint_data
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWebServicepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/WebService.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/WebService.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/WebService.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This is the base class for $self in WebService method calls. For the 
</span><span class="cx"> # actual RPC server, see Bugzilla::WebService::Server and its subclasses.
</span><span class="cx"> package Bugzilla::WebService;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Bugzilla::WebService::Server;
</span><span class="cx"> 
</span><span class="cx"> # Used by the JSON-RPC server to convert incoming date fields apprpriately.
</span><span class="lines">@@ -33,6 +27,10 @@
</span><span class="cx"> # Methods that can modify data MUST not be listed here.
</span><span class="cx"> use constant READ_ONLY =&gt; ();
</span><span class="cx"> 
</span><ins>+# Whitelist of methods that a client is allowed to access when making
+# an API call.
+use constant PUBLIC_METHODS =&gt; ();
+
</ins><span class="cx"> sub login_exempt {
</span><span class="cx">     my ($class, $method) = @_;
</span><span class="cx">     return $class-&gt;LOGIN_EXEMPT-&gt;{$method};
</span><span class="lines">@@ -52,15 +50,20 @@
</span><span class="cx"> with Bugzilla. It provides various methods in various modules.
</span><span class="cx"> 
</span><span class="cx"> You can interact with this API via
</span><del>-L&lt;XML-RPC|Bugzilla::WebService::Server::XMLRPC&gt; or
-L&lt;JSON-RPC|Bugzilla::WebService::Server::JSONRPC&gt;.
</del><ins>+L&lt;XML-RPC|Bugzilla::WebService::Server::XMLRPC&gt;,
+L&lt;JSON-RPC|Bugzilla::WebService::Server::JSONRPC&gt; or
+L&lt;REST|Bugzilla::WebService::Server::REST&gt;.
</ins><span class="cx"> 
</span><span class="cx"> =head1 CALLING METHODS
</span><span class="cx"> 
</span><del>-Methods are grouped into &quot;packages&quot;, like C&lt;Bug&gt; for 
</del><ins>+Methods are grouped into &quot;packages&quot;, like C&lt;Bug&gt; for
</ins><span class="cx"> L&lt;Bugzilla::WebService::Bug&gt;. So, for example,
</span><span class="cx"> L&lt;Bugzilla::WebService::Bug/get&gt;, is called as C&lt;Bug.get&gt;.
</span><span class="cx"> 
</span><ins>+For REST, the &quot;package&quot; is more determined by the path
+used to access the resource. See each relevant method
+for specific details on how to access via REST.
+
</ins><span class="cx"> =head1 PARAMETERS
</span><span class="cx"> 
</span><span class="cx"> The Bugzilla API takes the following various types of parameters:
</span><span class="lines">@@ -79,6 +82,11 @@
</span><span class="cx"> 
</span><span class="cx"> A string. May be null.
</span><span class="cx"> 
</span><ins>+=item C&lt;email&gt;
+
+A string representing an email address. This value, when returned, 
+may be filtered based on if the user is logged in or not. May be null.
+
</ins><span class="cx"> =item C&lt;dateTime&gt;
</span><span class="cx"> 
</span><span class="cx"> A date/time. Represented differently in different interfaces to this API.
</span><span class="lines">@@ -131,17 +139,23 @@
</span><span class="cx"> 
</span><span class="cx"> =head1 LOGGING IN
</span><span class="cx"> 
</span><del>-There are various ways to log in:
</del><ins>+Some methods do not require you to log in. An example of this is Bug.get.
+However, authenticating yourself allows you to see non public information. For
+example, a bug that is not publicly visible.
</ins><span class="cx"> 
</span><ins>+There are two ways to authenticate yourself:
+
</ins><span class="cx"> =over
</span><span class="cx"> 
</span><del>-=item C&lt;User.login&gt;
</del><ins>+=item C&lt;Bugzilla_api_key&gt;
</ins><span class="cx"> 
</span><del>-You can use L&lt;Bugzilla::WebService::User/login&gt; to log in as a Bugzilla 
-user. This issues standard HTTP cookies that you must then use in future
-calls, so your client must be capable of receiving and transmitting
-cookies.
</del><ins>+B&lt;Added in Bugzilla 5.0&gt;
</ins><span class="cx"> 
</span><ins>+You can specify C&lt;Bugzilla_api_key&gt; as an argument to any WebService method, and
+you will be logged in as that user if the key is correct, and has not been
+revoked. You can set up an API key by using the 'API Key' tab in the
+Preferences pages.
+
</ins><span class="cx"> =item C&lt;Bugzilla_login&gt; and C&lt;Bugzilla_password&gt;
</span><span class="cx"> 
</span><span class="cx"> B&lt;Added in Bugzilla 3.6&gt;
</span><span class="lines">@@ -160,20 +174,43 @@
</span><span class="cx"> =item C&lt;Bugzilla_restrictlogin&gt; (boolean) - Optional. If true,
</span><span class="cx"> then your login will only be valid for your IP address.
</span><span class="cx"> 
</span><del>-=item C&lt;Bugzilla_rememberlogin&gt; (boolean) - Optional. If true,
-then the cookie sent back to you with the method response will
-not expire.
</del><ins>+=back
</ins><span class="cx"> 
</span><ins>+The C&lt;Bugzilla_restrictlogin&gt; option is only used when you have also
+specified C&lt;Bugzilla_login&gt; and C&lt;Bugzilla_password&gt;. This value will be
+deprecated in the release after Bugzilla 5.0 and you will be required to
+pass the Bugzilla_login and Bugzilla_password for every call.
+
+For REST, you may also use the C&lt;login&gt; and C&lt;password&gt; variable
+names instead of C&lt;Bugzilla_login&gt; and C&lt;Bugzilla_password&gt; as a
+convenience. You may also use C&lt;token&gt; instead of C&lt;Bugzilla_token&gt;.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><del>-The C&lt;Bugzilla_restrictlogin&gt; and C&lt;Bugzilla_rememberlogin&gt; options
-are only used when you have also specified C&lt;Bugzilla_login&gt; and 
-C&lt;Bugzilla_password&gt;.
</del><ins>+There are also two deprecreated methods of authentications. This will be
+removed in the version after Bugzilla 5.0.
</ins><span class="cx"> 
</span><del>-Note that Bugzilla will return HTTP cookies along with the method
-response when you use these arguments (just like the C&lt;User.login&gt; method
-above).
</del><ins>+=over
</ins><span class="cx"> 
</span><ins>+=item C&lt;User.login&gt;
+
+You can use L&lt;Bugzilla::WebService::User/login&gt; to log in as a Bugzilla
+user. This issues a token that you must then use in future calls.
+
+=item C&lt;Bugzilla_token&gt;
+
+B&lt;Added in Bugzilla 4.4.3&gt;
+
+You can specify C&lt;Bugzilla_token&gt; as argument to any WebService method,
+and you will be logged in as that user if the token is correct. This is
+the token returned when calling C&lt;User.login&gt; mentioned above.
+
+An error is thrown if you pass an invalid token and you will need to log
+in again to get a new token.
+
+Token support was added in Bugzilla B&lt;5.0&gt; and support for login cookies
+has been dropped for security reasons.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head1 STABLE, EXPERIMENTAL, and UNSTABLE
</span><span class="lines">@@ -268,6 +305,9 @@
</span><span class="cx"> 
</span><span class="cx">   { users =&gt; [{ id =&gt; 1, name =&gt; 'user@domain.com' }] }
</span><span class="cx"> 
</span><ins>+Note for REST, C&lt;include_fields&gt; may instead be a comma delimited string
+for GET type requests.
+
</ins><span class="cx"> =item C&lt;exclude_fields&gt;
</span><span class="cx"> 
</span><span class="cx"> C&lt;array&gt; An array of strings, representing the (case-sensitive) names of
</span><span class="lines">@@ -277,6 +317,13 @@
</span><span class="cx"> If you specify all the fields, then this function will return empty
</span><span class="cx"> hashes.
</span><span class="cx"> 
</span><ins>+Some RPC calls support specifying sub fields. If an RPC call states that
+it support sub field restrictions, you can restrict what information is
+returned within the first field. For example, if you call Product.get
+with an include_fields of components.name, then only the component name
+would be returned (and nothing else). You can include the main field,
+and exclude a sub field.
+
</ins><span class="cx"> Invalid field names are ignored.
</span><span class="cx"> 
</span><span class="cx"> Specifying fields here overrides C&lt;include_fields&gt;, so if you specify a
</span><span class="lines">@@ -290,8 +337,39 @@
</span><span class="cx"> 
</span><span class="cx">   { users =&gt; [{ id =&gt; 1, real_name =&gt; 'John Smith' }] }
</span><span class="cx"> 
</span><ins>+Note for REST, C&lt;exclude_fields&gt; may instead be a comma delimited string
+for GET type requests.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><ins>+There are several shortcut identifiers to ask for only certain groups of
+fields to be returned or excluded.
+
+=over
+
+=item C&lt;_all&gt;
+
+All possible fields are returned if C&lt;_all&gt; is specified in C&lt;include_fields&gt;.
+
+=item C&lt;_default&gt;
+
+These fields are returned if C&lt;include_fields&gt; is empty or C&lt;_default&gt;
+is specified. All fields described in the documentation are returned
+by default unless specified otherwise.
+
+=item C&lt;_extra&gt;
+
+These fields are not returned by default and need to be manually specified
+in C&lt;include_fields&gt; either by field name, or using C&lt;_extra&gt;.
+
+=item C&lt;_custom&gt;
+
+Only custom fields are returned if C&lt;_custom&gt; is specified in C&lt;include_fields&gt;.
+This is normally specific to bug objects and not relevant for other returned
+objects.
+
+=back
+
</ins><span class="cx"> =head1 SEE ALSO
</span><span class="cx"> 
</span><span class="cx"> =head2 Server Types
</span><span class="lines">@@ -304,7 +382,7 @@
</span><span class="cx"> 
</span><span class="cx"> =back
</span><span class="cx"> 
</span><del>-=head2 WebService Methods
</del><ins>+=head2 WebService Modules
</ins><span class="cx"> 
</span><span class="cx"> =over
</span><span class="cx"> 
</span><span class="lines">@@ -312,6 +390,12 @@
</span><span class="cx"> 
</span><span class="cx"> =item L&lt;Bugzilla::WebService::Bugzilla&gt;
</span><span class="cx"> 
</span><ins>+=item L&lt;Bugzilla::WebService::Classification&gt;
+
+=item L&lt;Bugzilla::WebService::FlagType&gt;
+
+=item L&lt;Bugzilla::WebService::Component&gt;
+
</ins><span class="cx"> =item L&lt;Bugzilla::WebService::Group&gt;
</span><span class="cx"> 
</span><span class="cx"> =item L&lt;Bugzilla::WebService::Product&gt;
</span><span class="lines">@@ -319,3 +403,11 @@
</span><span class="cx"> =item L&lt;Bugzilla::WebService::User&gt;
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item login_exempt
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWhineQuerypm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Query.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Query.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Query.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Eric Black.
-# Portions created by the Initial Developer are Copyright (C) 2009 
-# Eric Black. All Rights Reserved.
-#
-# Contributor(s): Eric Black &lt;black.eric@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Whine::Query;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Search::Saved;
</span><span class="lines">@@ -134,3 +123,11 @@
</span><span class="cx"> The title of this object as it appears in the user forms and emails.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item eventid
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWhineSchedulepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Schedule.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Schedule.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Whine/Schedule.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Eric Black.
-# Portions created by the Initial Developer are Copyright (C) 2009 
-# Eric Black. All Rights Reserved.
-#
-# Contributor(s): Eric Black &lt;black.eric@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Whine::Schedule;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Whine::Schedule;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span><span class="cx"> #############
</span><span class="lines">@@ -168,3 +157,11 @@
</span><span class="cx"> for the L&lt;Bugzilla::User&gt; in L&lt;/mailto&gt;.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item eventid
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillaWhinepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla/Whine.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla/Whine.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/Whine.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Eric Black.
-# Portions created by the Initial Developer are Copyright (C) 2010 
-# Eric Black. All Rights Reserved.
-#
-# Contributor(s): Eric Black &lt;black.eric@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+package Bugzilla::Whine;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-package Bugzilla::Whine;
</del><ins>+use parent qw(Bugzilla::Object);
</ins><span class="cx"> 
</span><del>-use base qw(Bugzilla::Object);
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::User;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 A. Karl Kornel &lt;karl@kornel.name&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> # We want any compile errors to get to the browser, if possible.
</span><span class="cx"> BEGIN {
</span><span class="lines">@@ -35,23 +20,24 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-use Bugzilla::Config;
-use Bugzilla::Constants;
</del><span class="cx"> use Bugzilla::Auth;
</span><span class="cx"> use Bugzilla::Auth::Persist::Cookie;
</span><span class="cx"> use Bugzilla::CGI;
</span><ins>+use Bugzilla::Config;
+use Bugzilla::Constants;
+use Bugzilla::DB;
+use Bugzilla::Error;
</ins><span class="cx"> use Bugzilla::Extension;
</span><del>-use Bugzilla::DB;
</del><ins>+use Bugzilla::Field;
+use Bugzilla::Flag;
</ins><span class="cx"> use Bugzilla::Install::Localconfig qw(read_localconfig);
</span><del>-use Bugzilla::Install::Requirements qw(OPTIONAL_MODULES);
-use Bugzilla::Install::Util qw(init_console);
</del><ins>+use Bugzilla::Install::Requirements qw(OPTIONAL_MODULES have_vers);
+use Bugzilla::Install::Util qw(init_console include_languages);
+use Bugzilla::Memcached;
</ins><span class="cx"> use Bugzilla::Template;
</span><ins>+use Bugzilla::Token;
</ins><span class="cx"> use Bugzilla::User;
</span><del>-use Bugzilla::Error;
</del><span class="cx"> use Bugzilla::Util;
</span><del>-use Bugzilla::Field;
-use Bugzilla::Flag;
-use Bugzilla::Token;
</del><span class="cx"> 
</span><span class="cx"> use File::Basename;
</span><span class="cx"> use File::Spec::Functions;
</span><span class="lines">@@ -84,7 +70,7 @@
</span><span class="cx"> # Global Code
</span><span class="cx"> #####################################################################
</span><span class="cx"> 
</span><del>-# $::SIG{__DIE__} = i_am_cgi() ? \&amp;CGI::Carp::confess : \&amp;Carp::confess;
</del><ins>+#$::SIG{__DIE__} = i_am_cgi() ? \&amp;CGI::Carp::confess : \&amp;Carp::confess;
</ins><span class="cx"> 
</span><span class="cx"> # Note that this is a raw subroutine, not a method, so $class isn't available.
</span><span class="cx"> sub init_page {
</span><span class="lines">@@ -96,11 +82,28 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (${^TAINT}) {
</span><ins>+        my $path = '';
+        if (ON_WINDOWS) {
+            # On Windows, these paths are tainted, preventing
+            # File::Spec::Win32-&gt;tmpdir from using them. But we need
+            # a place to temporary store attachments which are uploaded.
+            foreach my $temp (qw(TMPDIR TMP TEMP WINDIR)) {
+                trick_taint($ENV{$temp}) if $ENV{$temp};
+            }
+            # Some DLLs used by Strawberry Perl are also in c\bin,
+            # see https://rt.cpan.org/Public/Bug/Display.html?id=99104
+            if (!ON_ACTIVESTATE) {
+                my $c_path = $path = dirname($^X);
+                $c_path =~ s/\bperl\b(?=\\bin)/c/;
+                $path .= &quot;;$c_path&quot;;
+                trick_taint($path);
+            }
+        }
</ins><span class="cx">         # Some environment variables are not taint safe
</span><span class="cx">         delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
</span><span class="cx">         # Some modules throw undefined errors (notably File::Spec::Win32) if
</span><span class="cx">         # PATH is undefined.
</span><del>-        $ENV{'PATH'} = '';
</del><ins>+        $ENV{'PATH'} = $path;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Because this function is run live from perl &quot;use&quot; commands of
</span><span class="lines">@@ -136,8 +139,8 @@
</span><span class="cx">     #
</span><span class="cx">     # This code must go here. It cannot go anywhere in Bugzilla::CGI, because
</span><span class="cx">     # it uses Template, and that causes various dependency loops.
</span><del>-    if (Bugzilla-&gt;params-&gt;{&quot;shutdownhtml&quot;}
-        &amp;&amp; !grep { $_ eq $script } SHUTDOWNHTML_EXEMPT)
</del><ins>+    if (!grep { $_ eq $script } SHUTDOWNHTML_EXEMPT
+        and Bugzilla-&gt;params-&gt;{'shutdownhtml'})
</ins><span class="cx">     {
</span><span class="cx">         # Allow non-cgi scripts to exit silently (without displaying any
</span><span class="cx">         # message), if desired. At this point, no DBI call has been made
</span><span class="lines">@@ -180,10 +183,8 @@
</span><span class="cx">             print Bugzilla-&gt;cgi-&gt;header(-status =&gt; 503, 
</span><span class="cx">                 -retry_after =&gt; SHUTDOWNHTML_RETRY_AFTER);
</span><span class="cx">         }
</span><del>-        my $t_output;
-        $template-&gt;process(&quot;global/message.$extension.tmpl&quot;, $vars, \$t_output)
</del><ins>+        $template-&gt;process(&quot;global/message.$extension.tmpl&quot;, $vars)
</ins><span class="cx">             || ThrowTemplateError($template-&gt;error);
</span><del>-        print $t_output . &quot;\n&quot;;
</del><span class="cx">         exit;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -193,9 +194,7 @@
</span><span class="cx"> #####################################################################
</span><span class="cx"> 
</span><span class="cx"> sub template {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{template} ||= Bugzilla::Template-&gt;create();
-    return $class-&gt;request_cache-&gt;{template};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{template} ||= Bugzilla::Template-&gt;create();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub template_inner {
</span><span class="lines">@@ -203,9 +202,7 @@
</span><span class="cx">     my $cache = $class-&gt;request_cache;
</span><span class="cx">     my $current_lang = $cache-&gt;{template_current_lang}-&gt;[0];
</span><span class="cx">     $lang ||= $current_lang || '';
</span><del>-    $class-&gt;request_cache-&gt;{&quot;template_inner_$lang&quot;}
-        ||= Bugzilla::Template-&gt;create(language =&gt; $lang);
-    return $class-&gt;request_cache-&gt;{&quot;template_inner_$lang&quot;};
</del><ins>+    return $cache-&gt;{&quot;template_inner_$lang&quot;} ||= Bugzilla::Template-&gt;create(language =&gt; $lang);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> our $extension_packages;
</span><span class="lines">@@ -240,7 +237,7 @@
</span><span class="cx">         foreach my $package (@{ OPTIONAL_MODULES() }) {
</span><span class="cx">             foreach my $f (@{ $package-&gt;{feature} }) {
</span><span class="cx">                 $feature_map-&gt;{$f} ||= [];
</span><del>-                push(@{ $feature_map-&gt;{$f} }, $package-&gt;{module});
</del><ins>+                push(@{ $feature_map-&gt;{$f} }, $package);
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">         $cache-&gt;{feature_map} = $feature_map;
</span><span class="lines">@@ -251,13 +248,8 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $success = 1;
</span><del>-    foreach my $module (@{ $feature_map-&gt;{$feature} }) {
-        # We can't use a string eval and &quot;use&quot; here (it kills Template-Toolkit,
-        # see https://rt.cpan.org/Public/Bug/Display.html?id=47929), so we have
-        # to do a block eval.
-        $module =~ s{::}{/}g;
-        $module .= &quot;.pm&quot;;
-        eval { require $module; 1; } or $success = 0;
</del><ins>+    foreach my $package (@{ $feature_map-&gt;{$feature} }) {
+        have_vers($package) or $success = 0;
</ins><span class="cx">     }
</span><span class="cx">     $cache-&gt;{feature}-&gt;{$feature} = $success;
</span><span class="cx">     return $success;
</span><span class="lines">@@ -264,9 +256,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub cgi {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{cgi} ||= new Bugzilla::CGI();
-    return $class-&gt;request_cache-&gt;{cgi};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{cgi} ||= new Bugzilla::CGI();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub input_params {
</span><span class="lines">@@ -286,21 +276,15 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub localconfig {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{localconfig} ||= read_localconfig();
-    return $class-&gt;request_cache-&gt;{localconfig};
</del><ins>+    return $_[0]-&gt;process_cache-&gt;{localconfig} ||= read_localconfig();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub params {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{params} ||= Bugzilla::Config::read_param_file();
-    return $class-&gt;request_cache-&gt;{params};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{params} ||= Bugzilla::Config::read_param_file();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub user {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{user} ||= new Bugzilla::User;
-    return $class-&gt;request_cache-&gt;{user};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{user} ||= new Bugzilla::User;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub set_user {
</span><span class="lines">@@ -309,8 +293,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sudoer {
</span><del>-    my $class = shift;    
-    return $class-&gt;request_cache-&gt;{sudoer};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{sudoer};
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub sudo_request {
</span><span class="lines">@@ -388,6 +371,12 @@
</span><span class="cx">         $class-&gt;set_user($authenticated_user);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if ($class-&gt;sudoer) {
+        $class-&gt;sudoer-&gt;update_last_seen_date();
+    } else {
+        $class-&gt;user-&gt;update_last_seen_date();
+    }
+
</ins><span class="cx">     return $class-&gt;user;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -426,38 +415,40 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub job_queue {
</span><del>-    my $class = shift;
</del><span class="cx">     require Bugzilla::JobQueue;
</span><del>-    $class-&gt;request_cache-&gt;{job_queue} ||= Bugzilla::JobQueue-&gt;new();
-    return $class-&gt;request_cache-&gt;{job_queue};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{job_queue} ||= Bugzilla::JobQueue-&gt;new();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub dbh {
</span><del>-    my $class = shift;
</del><span class="cx">     # If we're not connected, then we must want the main db
</span><del>-    $class-&gt;request_cache-&gt;{dbh} ||= $class-&gt;dbh_main;
-
-    return $class-&gt;request_cache-&gt;{dbh};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{dbh} ||= $_[0]-&gt;dbh_main;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub dbh_main {
</span><del>-    my $class = shift;
-    $class-&gt;request_cache-&gt;{dbh_main} ||= Bugzilla::DB::connect_main();
-    return $class-&gt;request_cache-&gt;{dbh_main};
</del><ins>+    return $_[0]-&gt;request_cache-&gt;{dbh_main} ||= Bugzilla::DB::connect_main();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub languages {
</span><del>-    my $class = shift;
</del><span class="cx">     return Bugzilla::Install::Util::supported_languages();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub current_language {
+    return $_[0]-&gt;request_cache-&gt;{current_language} ||= (include_languages())[0];
+}
+
</ins><span class="cx"> sub error_mode {
</span><span class="cx">     my ($class, $newval) = @_;
</span><span class="cx">     if (defined $newval) {
</span><span class="cx">         $class-&gt;request_cache-&gt;{error_mode} = $newval;
</span><span class="cx">     }
</span><del>-    return $class-&gt;request_cache-&gt;{error_mode}
-        || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE);
</del><ins>+
+    # XXX - Once we require Perl 5.10.1, this test can be replaced by //.
+    if (exists $class-&gt;request_cache-&gt;{error_mode}) {
+        return $class-&gt;request_cache-&gt;{error_mode};
+    }
+    else {
+        return (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # This is used only by Bugzilla::Error to throw errors.
</span><span class="lines">@@ -490,6 +481,9 @@
</span><span class="cx">         elsif ($newval == USAGE_MODE_TEST) {
</span><span class="cx">             $class-&gt;error_mode(ERROR_MODE_TEST);
</span><span class="cx">         }
</span><ins>+        elsif ($newval == USAGE_MODE_REST) {
+            $class-&gt;error_mode(ERROR_MODE_REST);
+        }
</ins><span class="cx">         else {
</span><span class="cx">             ThrowCodeError('usage_mode_invalid',
</span><span class="cx">                            {'invalid_usage_mode', $newval});
</span><span class="lines">@@ -496,8 +490,14 @@
</span><span class="cx">         }
</span><span class="cx">         $class-&gt;request_cache-&gt;{usage_mode} = $newval;
</span><span class="cx">     }
</span><del>-    return $class-&gt;request_cache-&gt;{usage_mode}
-        || (i_am_cgi()? USAGE_MODE_BROWSER : USAGE_MODE_CMDLINE);
</del><ins>+
+    # XXX - Once we require Perl 5.10.1, this test can be replaced by //.
+    if (exists $class-&gt;request_cache-&gt;{usage_mode}) {
+        return $class-&gt;request_cache-&gt;{usage_mode};
+    }
+    else {
+        return (i_am_cgi()? USAGE_MODE_BROWSER : USAGE_MODE_CMDLINE);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub installation_mode {
</span><span class="lines">@@ -547,6 +547,11 @@
</span><span class="cx">     return $class-&gt;dbh_main;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub is_shadow_db {
+    my $class = shift;
+    return $class-&gt;request_cache-&gt;{dbh} != $class-&gt;dbh_main;
+}
+
</ins><span class="cx"> sub fields {
</span><span class="cx">     my ($class, $criteria) = @_;
</span><span class="cx">     $criteria ||= {};
</span><span class="lines">@@ -615,13 +620,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub local_timezone {
</span><del>-    my $class = shift;
-
-    if (!defined $class-&gt;request_cache-&gt;{local_timezone}) {
-        $class-&gt;request_cache-&gt;{local_timezone} =
-          DateTime::TimeZone-&gt;new(name =&gt; 'local');
-    }
-    return $class-&gt;request_cache-&gt;{local_timezone};
</del><ins>+    return $_[0]-&gt;process_cache-&gt;{local_timezone}
+             ||= DateTime::TimeZone-&gt;new(name =&gt; 'local');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # This creates the request cache for non-mod_perl installations.
</span><span class="lines">@@ -642,19 +642,49 @@
</span><span class="cx">     return $_request_cache;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub clear_request_cache {
+    $_request_cache = {};
+    if ($ENV{MOD_PERL}) {
+        require Apache2::RequestUtil;
+        my $request = eval { Apache2::RequestUtil-&gt;request };
+        if ($request) {
+            my $pnotes = $request-&gt;pnotes;
+            delete @$pnotes{(keys %$pnotes)};
+        }
+    }
+}
+
+# This is a per-process cache.  Under mod_cgi it's identical to the
+# request_cache.  When using mod_perl, items in this cache live until the
+# worker process is terminated.
+our $_process_cache = {};
+
+sub process_cache {
+    return $_process_cache;
+}
+
+# This is a memcached wrapper, which provides cross-process and cross-system
+# caching.
+sub memcached {
+    return $_[0]-&gt;process_cache-&gt;{memcached} ||= Bugzilla::Memcached-&gt;_new();
+}
+
</ins><span class="cx"> # Private methods
</span><span class="cx"> 
</span><span class="cx"> # Per-process cleanup. Note that this is a plain subroutine, not a method,
</span><span class="cx"> # so we don't have $class available.
</span><span class="cx"> sub _cleanup {
</span><del>-    my $main   = Bugzilla-&gt;request_cache-&gt;{dbh_main};
-    my $shadow = Bugzilla-&gt;request_cache-&gt;{dbh_shadow};
</del><ins>+    my $cache = Bugzilla-&gt;request_cache;
+    my $main = $cache-&gt;{dbh_main};
+    my $shadow = $cache-&gt;{dbh_shadow};
</ins><span class="cx">     foreach my $dbh ($main, $shadow) {
</span><span class="cx">         next if !$dbh;
</span><span class="cx">         $dbh-&gt;bz_rollback_transaction() if $dbh-&gt;bz_in_transaction;
</span><span class="cx">         $dbh-&gt;disconnect;
</span><span class="cx">     }
</span><del>-    undef $_request_cache;
</del><ins>+    my $smtp = $cache-&gt;{smtp};
+    $smtp-&gt;disconnect if $smtp;
+    clear_request_cache();
</ins><span class="cx"> 
</span><span class="cx">     # These are both set by CGI.pm but need to be undone so that
</span><span class="cx">     # Apache can actually shut down its children if it needs to.
</span><span class="lines">@@ -745,7 +775,7 @@
</span><span class="cx"> processing a template, use this. Also use it if you want to specify
</span><span class="cx"> the language to use. If no argument is passed, it uses the last
</span><span class="cx"> language set. If the argument is &quot;&quot; (empty string), the language is
</span><del>-reset to the current one (the one used by Bugzilla-&gt;template).
</del><ins>+reset to the current one (the one used by C&lt;Bugzilla-E&lt;gt&gt;template&gt;).
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;cgi&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -775,10 +805,10 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;user&gt;
</span><span class="cx"> 
</span><del>-C&lt;undef&gt; if there is no currently logged in user or if the login code has not
-yet been run.  If an sudo session is in progress, the C&lt;Bugzilla::User&gt;
-corresponding to the person who is being impersonated.  If no session is in
-progress, the current C&lt;Bugzilla::User&gt;.
</del><ins>+Default C&lt;Bugzilla::User&gt; object if there is no currently logged in user or
+if the login code has not yet been run.  If an sudo session is in progress,
+the C&lt;Bugzilla::User&gt; corresponding to the person who is being impersonated.
+If no session is in progress, the current C&lt;Bugzilla::User&gt;.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;set_user&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -822,7 +852,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;logout_user($user)&gt;
</span><span class="cx"> 
</span><del>-Logs out the specified user (invalidating all his sessions), taking a
</del><ins>+Logs out the specified user (invalidating all their sessions), taking a
</ins><span class="cx"> Bugzilla::User instance.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;logout_by_id($id)&gt;
</span><span class="lines">@@ -863,8 +893,8 @@
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;error_mode&gt;
</span><span class="cx"> 
</span><del>-Call either C&lt;Bugzilla-&gt;error_mode(Bugzilla::Constants::ERROR_MODE_DIE)&gt;
-or C&lt;Bugzilla-&gt;error_mode(Bugzilla::Constants::ERROR_MODE_DIE_SOAP_FAULT)&gt; to
</del><ins>+Call either C&lt;Bugzilla-E&lt;gt&gt;error_mode(Bugzilla::Constants::ERROR_MODE_DIE)&gt;
+or C&lt;Bugzilla-E&lt;gt&gt;error_mode(Bugzilla::Constants::ERROR_MODE_DIE_SOAP_FAULT)&gt; to
</ins><span class="cx"> change this flag's default of C&lt;Bugzilla::Constants::ERROR_MODE_WEBPAGE&gt; and to
</span><span class="cx"> indicate that errors should be passed to error mode specific error handlers
</span><span class="cx"> rather than being sent to a browser and finished with an exit().
</span><span class="lines">@@ -873,24 +903,24 @@
</span><span class="cx"> on errors, making it easier for you to catch them.
</span><span class="cx"> (Remember to reset the error mode to its previous value afterwards, though.)
</span><span class="cx"> 
</span><del>-C&lt;Bugzilla-&gt;error_mode&gt; will return the current state of this flag.
</del><ins>+C&lt;Bugzilla-E&lt;gt&gt;error_mode&gt; will return the current state of this flag.
</ins><span class="cx"> 
</span><del>-Note that C&lt;Bugzilla-&gt;error_mode&gt; is being called by C&lt;Bugzilla-&gt;usage_mode&gt; on
</del><ins>+Note that C&lt;Bugzilla-E&lt;gt&gt;error_mode&gt; is being called by C&lt;Bugzilla-E&lt;gt&gt;usage_mode&gt; on
</ins><span class="cx"> usage mode changes.
</span><span class="cx"> 
</span><span class="cx"> =item C&lt;usage_mode&gt;
</span><span class="cx"> 
</span><del>-Call either C&lt;Bugzilla-&gt;usage_mode(Bugzilla::Constants::USAGE_MODE_CMDLINE)&gt;
-or C&lt;Bugzilla-&gt;usage_mode(Bugzilla::Constants::USAGE_MODE_XMLRPC)&gt; near the
</del><ins>+Call either C&lt;Bugzilla-E&lt;gt&gt;usage_mode(Bugzilla::Constants::USAGE_MODE_CMDLINE)&gt;
+or C&lt;Bugzilla-E&lt;gt&gt;usage_mode(Bugzilla::Constants::USAGE_MODE_XMLRPC)&gt; near the
</ins><span class="cx"> beginning of your script to change this flag's default of
</span><span class="cx"> C&lt;Bugzilla::Constants::USAGE_MODE_BROWSER&gt; and to indicate that Bugzilla is
</span><span class="cx"> being called in a non-interactive manner.
</span><span class="cx"> 
</span><span class="cx"> This influences error handling because on usage mode changes, C&lt;usage_mode&gt;
</span><del>-calls C&lt;Bugzilla-&gt;error_mode&gt; to set an error mode which makes sense for the
</del><ins>+calls C&lt;Bugzilla-E&lt;gt&gt;error_mode&gt; to set an error mode which makes sense for the
</ins><span class="cx"> usage mode.
</span><span class="cx"> 
</span><del>-C&lt;Bugzilla-&gt;usage_mode&gt; will return the current state of this flag.
</del><ins>+C&lt;Bugzilla-E&lt;gt&gt;usage_mode&gt; will return the current state of this flag.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;installation_mode&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -915,6 +945,10 @@
</span><span class="cx"> Currently installed languages.
</span><span class="cx"> Returns a reference to a list of RFC 1766 language tags of installed languages.
</span><span class="cx"> 
</span><ins>+=item C&lt;current_language&gt;
+
+The currently active language.
+
</ins><span class="cx"> =item C&lt;switch_to_shadow_db&gt;
</span><span class="cx"> 
</span><span class="cx"> Switch from using the main database to using the shadow database.
</span><span class="lines">@@ -923,11 +957,17 @@
</span><span class="cx"> 
</span><span class="cx"> Change the database object to refer to the main database.
</span><span class="cx"> 
</span><ins>+=item C&lt;is_shadow_db&gt;
+
+Returns true if the currently active database is the shadow database.
+Returns false if a the currently active database is the man database, or if a
+shadow database is not configured or enabled.
+
</ins><span class="cx"> =item C&lt;params&gt;
</span><span class="cx"> 
</span><del>-The current Parameters of Bugzilla, as a hashref. If C&lt;data/params&gt;
-does not exist, then we return an empty hashref. If C&lt;data/params&gt;
-is unreadable or is not valid perl, we C&lt;die&gt;.
</del><ins>+The current Parameters of Bugzilla, as a hashref. If C&lt;data/params.json&gt;
+does not exist, then we return an empty hashref. If C&lt;data/params.json&gt;
+is unreadable or is not valid, we C&lt;die&gt;.
</ins><span class="cx"> 
</span><span class="cx"> =item C&lt;local_timezone&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -947,3 +987,99 @@
</span><span class="cx"> of features, see C&lt;OPTIONAL_MODULES&gt; in C&lt;Bugzilla::Install::Requirements&gt;.
</span><span class="cx"> 
</span><span class="cx"> =back
</span><ins>+
+=head1 B&lt;CACHING&gt;
+
+Bugzilla has several different caches available which provide different
+capabilities and lifetimes.
+
+The keys of all caches are unregulated; use of prefixes is suggested to avoid
+collisions.
+
+=over
+
+=item B&lt;Request Cache&gt;
+
+The request cache is a hashref which supports caching any perl variable for the
+duration of the current request. At the end of the current request the contents
+of this cache are cleared.
+
+Examples of its use include caching objects to avoid re-fetching the same data
+from the database, and passing data between otherwise unconnected parts of
+Bugzilla.
+
+=over
+
+=item C&lt;request_cache&gt;
+
+Returns a hashref which can be checked and modified to store any perl variable
+for the duration of the current request.
+
+=item C&lt;clear_request_cache&gt;
+
+Removes all entries from the C&lt;request_cache&gt;.
+
+=back
+
+=item B&lt;Process Cache&gt;
+
+The process cache is a hashref which support caching of any perl variable. If
+Bugzilla is configured to run using Apache mod_perl, the contents of this cache
+are persisted across requests for the lifetime of the Apache worker process
+(which varies depending on the SizeLimit configuration in mod_perl.pl).
+
+If Bugzilla isn't running under mod_perl, the process cache's contents are
+cleared at the end of the request.
+
+The process cache is only suitable for items which never change while Bugzilla
+is running (for example the path where Bugzilla is installed).
+
+=over
+
+=item C&lt;process_cache&gt;
+
+Returns a hashref which can be checked and modified to store any perl variable
+for the duration of the current process (mod_perl) or request (mod_cgi).
+
+=back
+
+=item B&lt;Memcached&gt;
+
+If Memcached is installed and configured, Bugzilla can use it to cache data
+across requests and between webheads. Unlike the request and process caches,
+only scalars, hashrefs, and arrayrefs can be stored in Memcached.
+
+Memcached integration is only required for large installations of Bugzilla -- if
+you have multiple webheads then configuring Memcached is recommended.
+
+=over
+
+=item C&lt;memcached&gt;
+
+Returns a C&lt;Bugzilla::Memcached&gt; object. An object is always returned even if
+Memcached is not available.
+
+See the documentation for the C&lt;Bugzilla::Memcached&gt; module for more
+information.
+
+=back
+
+=back
+
+=head1 B&lt;Methods in need of POD&gt;
+
+=over
+
+=item init_page
+
+=item extensions
+
+=item logout_user_by_id
+
+=item localconfig
+
+=item active_custom_fields
+
+=item has_flags
+
+=back
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/ChangeLog (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/ChangeLog        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/ChangeLog        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,7 @@
</span><ins>+2017-03-21  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Upgrade to Bugzilla 5.0.3.
+
</ins><span class="cx"> 2017-02-01  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Patch Details: EWS Bubbles wrap on Patch Details page
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgLICENSE"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/LICENSE (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/LICENSE                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/LICENSE        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,373 @@
</span><ins>+Mozilla Public License Version 2.0
+==================================
+
+1. Definitions
+--------------
+
+1.1. &quot;Contributor&quot;
+    means each individual or legal entity that creates, contributes to
+    the creation of, or owns Covered Software.
+
+1.2. &quot;Contributor Version&quot;
+    means the combination of the Contributions of others (if any) used
+    by a Contributor and that particular Contributor's Contribution.
+
+1.3. &quot;Contribution&quot;
+    means Covered Software of a particular Contributor.
+
+1.4. &quot;Covered Software&quot;
+    means Source Code Form to which the initial Contributor has attached
+    the notice in Exhibit A, the Executable Form of such Source Code
+    Form, and Modifications of such Source Code Form, in each case
+    including portions thereof.
+
+1.5. &quot;Incompatible With Secondary Licenses&quot;
+    means
+
+    (a) that the initial Contributor has attached the notice described
+        in Exhibit B to the Covered Software; or
+
+    (b) that the Covered Software was made available under the terms of
+        version 1.1 or earlier of the License, but not also under the
+        terms of a Secondary License.
+
+1.6. &quot;Executable Form&quot;
+    means any form of the work other than Source Code Form.
+
+1.7. &quot;Larger Work&quot;
+    means a work that combines Covered Software with other material, in 
+    a separate file or files, that is not Covered Software.
+
+1.8. &quot;License&quot;
+    means this document.
+
+1.9. &quot;Licensable&quot;
+    means having the right to grant, to the maximum extent possible,
+    whether at the time of the initial grant or subsequently, any and
+    all of the rights conveyed by this License.
+
+1.10. &quot;Modifications&quot;
+    means any of the following:
+
+    (a) any file in Source Code Form that results from an addition to,
+        deletion from, or modification of the contents of Covered
+        Software; or
+
+    (b) any new file in Source Code Form that contains any Covered
+        Software.
+
+1.11. &quot;Patent Claims&quot; of a Contributor
+    means any patent claim(s), including without limitation, method,
+    process, and apparatus claims, in any patent Licensable by such
+    Contributor that would be infringed, but for the grant of the
+    License, by the making, using, selling, offering for sale, having
+    made, import, or transfer of either its Contributions or its
+    Contributor Version.
+
+1.12. &quot;Secondary License&quot;
+    means either the GNU General Public License, Version 2.0, the GNU
+    Lesser General Public License, Version 2.1, the GNU Affero General
+    Public License, Version 3.0, or any later versions of those
+    licenses.
+
+1.13. &quot;Source Code Form&quot;
+    means the form of the work preferred for making modifications.
+
+1.14. &quot;You&quot; (or &quot;Your&quot;)
+    means an individual or a legal entity exercising rights under this
+    License. For legal entities, &quot;You&quot; includes any entity that
+    controls, is controlled by, or is under common control with You. For
+    purposes of this definition, &quot;control&quot; means (a) the power, direct
+    or indirect, to cause the direction or management of such entity,
+    whether by contract or otherwise, or (b) ownership of more than
+    fifty percent (50%) of the outstanding shares or beneficial
+    ownership of such entity.
+
+2. License Grants and Conditions
+--------------------------------
+
+2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+    Licensable by such Contributor to use, reproduce, make available,
+    modify, display, perform, distribute, and otherwise exploit its
+    Contributions, either on an unmodified basis, with Modifications, or
+    as part of a Larger Work; and
+
+(b) under Patent Claims of such Contributor to make, use, sell, offer
+    for sale, have made, import, and otherwise transfer either its
+    Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+(a) for any code that a Contributor has removed from Covered Software;
+    or
+
+(b) for infringements caused by: (i) Your and any other third party's
+    modifications of Covered Software, or (ii) the combination of its
+    Contributions with other software (except as part of its Contributor
+    Version); or
+
+(c) under Patent Claims infringed by Covered Software in the absence of
+    its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+3. Responsibilities
+-------------------
+
+3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+(a) such Covered Software must also be made available in Source Code
+    Form, as described in Section 3.1, and You must inform recipients of
+    the Executable Form how they can obtain a copy of such Source Code
+    Form by reasonable means in a timely manner, at a charge no more
+    than the cost of distribution to the recipient; and
+
+(b) You may distribute such Executable Form under the terms of this
+    License, or sublicense it under different terms, provided that the
+    license for the Executable Form does not attempt to limit or alter
+    the recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+---------------------------------------------------
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: (a) comply with
+the terms of this License to the maximum extent possible; and (b)
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+5. Termination
+--------------
+
+5.1. The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated (a) provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and (b) on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+************************************************************************
+*                                                                      *
+*  6. Disclaimer of Warranty                                           *
+*  -------------------------                                           *
+*                                                                      *
+*  Covered Software is provided under this License on an &quot;as is&quot;       *
+*  basis, without warranty of any kind, either expressed, implied, or  *
+*  statutory, including, without limitation, warranties that the       *
+*  Covered Software is free of defects, merchantable, fit for a        *
+*  particular purpose or non-infringing. The entire risk as to the     *
+*  quality and performance of the Covered Software is with You.        *
+*  Should any Covered Software prove defective in any respect, You     *
+*  (not any Contributor) assume the cost of any necessary servicing,   *
+*  repair, or correction. This disclaimer of warranty constitutes an   *
+*  essential part of this License. No use of any Covered Software is   *
+*  authorized under this License except under this disclaimer.         *
+*                                                                      *
+************************************************************************
+
+************************************************************************
+*                                                                      *
+*  7. Limitation of Liability                                          *
+*  --------------------------                                          *
+*                                                                      *
+*  Under no circumstances and under no legal theory, whether tort      *
+*  (including negligence), contract, or otherwise, shall any           *
+*  Contributor, or anyone who distributes Covered Software as          *
+*  permitted above, be liable to You for any direct, indirect,         *
+*  special, incidental, or consequential damages of any character      *
+*  including, without limitation, damages for lost profits, loss of    *
+*  goodwill, work stoppage, computer failure or malfunction, or any    *
+*  and all other commercial damages or losses, even if such party      *
+*  shall have been informed of the possibility of such damages. This   *
+*  limitation of liability shall not apply to liability for death or   *
+*  personal injury resulting from such party's negligence to the       *
+*  extent applicable law prohibits such limitation. Some               *
+*  jurisdictions do not allow the exclusion or limitation of           *
+*  incidental or consequential damages, so this exclusion and          *
+*  limitation may not apply to You.                                    *
+*                                                                      *
+************************************************************************
+
+8. Litigation
+-------------
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+9. Miscellaneous
+----------------
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+---------------------------
+
+10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+-------------------------------------------
+
+  This Source Code Form is subject to the terms of the Mozilla Public
+  License, v. 2.0. If a copy of the MPL was not distributed with this
+  file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - &quot;Incompatible With Secondary Licenses&quot; Notice
+---------------------------------------------------------
+
+  This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  defined by the Mozilla Public License, v. 2.0.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgREADME"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/README (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/README        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/README        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,92 +1,54 @@
</span><del>-What is Bugzilla?
-=================
-Bugzilla is a free bug-tracking system that is developed by an active
-community of volunteers in the Mozilla community. You can install and
-use it without having to pay any license fee.
</del><ins>+Bugzilla
+========
</ins><span class="cx"> 
</span><del>-Minimum requirements
-====================
-It can be installed on Windows, Mac OS X, Linux and other Unix flavors.
-Bugzilla is written in Perl, meaning that Perl must be installed on your system.
-You will also need a web server as well as a DB server (see below).
</del><ins>+Bugzilla is free and open source web-based bug-tracking software that is
+developed by an active group of volunteers in the Mozilla community, and used
+by thousands of projects and companies around the world. It can be installed on
+Linux and other flavors of Unix, Windows or Mac OS X.
</ins><span class="cx"> 
</span><del>-Installation &amp; Upgrading
-========================
-The documentation to install, upgrade, configure and use Bugzilla can be found
-in different formats:
-* docs/en/html/Bugzilla-Guide.html (HTML version)
-* docs/en/txt/Bugzilla-Guide.txt (text version)
-* docs/en/pdf/Bugzilla-Guide.pdf (PDF version)
</del><ins>+You can try Bugzilla out using our testing installation:
+https://landfill.bugzilla.org/bugzilla-tip/
</ins><span class="cx"> 
</span><del>-If the documentation is missing, you can get it online by visiting
-http://www.bugzilla.org/docs/ from where you can select the documentation
-corresponding to the Bugzilla version you are installing.
</del><ins>+Documentation
+=============
</ins><span class="cx"> 
</span><del>-Bugzilla Quick Start Guide
-==========================
-(or, how to get Bugzilla up and running in 10 steps)
-Christian Reis &lt;kiko@async.com.br&gt;
</del><ins>+Bugzilla's comprehensive documentation, including installation instructions,
+can be found here:
+http://www.bugzilla.org/docs/
</ins><span class="cx"> 
</span><del>-This express installation guide is for &quot;normal&quot; Bugzilla installations,
-which means a Linux or Unix system on which Apache, Perl, MySQL or PostgreSQL
-and a Sendmail compatible MTA are available. For other configurations, please
-see the &quot;Installing Bugzilla&quot; section of the Bugzilla Guide in the docs/ directory.
</del><ins>+Reporting Bugs
+==============
</ins><span class="cx"> 
</span><del>-1. Decide from which URL and directory under your webserver root you
-   will be serving the Bugzilla webpages.
</del><ins>+Report bugs here:
+https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla
</ins><span class="cx"> 
</span><del>-2. Unpack the distribution into the chosen directory (there is no copying or
-   installation involved).
</del><ins>+(Please do not file test bugs in this installation of Bugzilla.)
</ins><span class="cx"> 
</span><del>-3. Run ./checksetup.pl, look for unsolved requirements, and install them.
-   You can run checksetup as many times as necessary to check if
-   everything required has been installed.
</del><ins>+Mailing Lists
+=============
</ins><span class="cx"> 
</span><del>-   These will usually include assorted Perl modules, MySQL or PostgreSQL,
-   and a MTA.
</del><ins>+Development:
+https://www.mozilla.org/en-US/about/forums/#dev-apps-bugzilla
</ins><span class="cx"> 
</span><del>-   After a successful dependency check, checksetup should complain that
-   localconfig needs to be edited.
</del><ins>+Support:
+https://www.mozilla.org/en-US/about/forums/#support-bugzilla
</ins><span class="cx"> 
</span><del>-4. Edit the localconfig file, in particular the $webservergroup and
-   $db_* variables. In particular, $db_name and $db_user will define
-   your database setup in step 5.
</del><ins>+IRC
+===
</ins><span class="cx"> 
</span><del>-5. Create a user permission for the name supplied as $db_user with
-   read/write access to the database whose name is given by $db_name.
</del><ins>+You can often find Bugzilla developers on IRC:
+irc://irc.mozilla.org/bugzilla
</ins><span class="cx"> 
</span><del>-   If you are not familiar with MySQL permissions, it's a good idea to
-   use the mysql_setpermission script that is installed with the MySQL
-   distribution, and be sure to read Bugzilla Security - MySQL section
-   in the Bugzilla Guide or PostgreSQL documentation.
</del><ins>+License
+=======
</ins><span class="cx"> 
</span><del>-6. Run checksetup.pl once more; if all goes well, it should set up the
-   Bugzilla database for you. If not, return to step 5.
</del><ins>+This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this
+file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> 
</span><del>-   checksetup.pl should ask you, this time, for the administrator's
-   email address and password. These will be used for the initial
-   Bugzilla administrator account.
</del><ins>+This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-7. Configure Apache (or install and configure, if you don't have it up
-   yet) to point to the Bugzilla directory. You can choose between
-   mod_cgi and mod_perl. The Bugzilla documentation has detailed information
-   for both modes.
-
-8. Visit the URL you chose for Bugzilla. Your browser should display the
-   default Bugzilla home page. You should then log in as the
-   administrator by following the &quot;Log in&quot; link and supplying the
-   account information you provided in step 6.
-
-9. Visit the &quot;Parameters&quot; page, as suggested by the page displayed to you.
-   Set up the relevant parameters for your local setup.
-
-10. That's it. If anything unexpected comes up:
-
-    - read the error message carefully,
-    - backtrack through the steps above,
-    - check the official installation guide.
-
-Support and installation questions should be directed to the
-support-bugzilla@lists.mozilla.org mailing list.
-
-Further support information is at http://www.bugzilla.org/support/
</del><ins>+However, this is all only relevant to you if you want to modify the code and
+redistribute it. As with all open source software, there are no restrictions
+on running it, or on modifying it for your own purposes.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgadmincgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/admin.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/admin.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/admin.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (C) 2007
-# Frédéric Buclin. All Rights Reserved.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -33,16 +22,7 @@
</span><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span><del>-$user-&gt;in_group('admin')
-  || $user-&gt;in_group('tweakparams')
-  || $user-&gt;in_group('editusers')
-  || $user-&gt;can_bless
-  || (Bugzilla-&gt;params-&gt;{'useclassification'} &amp;&amp; $user-&gt;in_group('editclassifications'))
-  || $user-&gt;in_group('editcomponents')
-  || scalar(@{$user-&gt;get_products_by_permission('editcomponents')})
-  || $user-&gt;in_group('creategroups')
-  || $user-&gt;in_group('editkeywords')
-  || $user-&gt;in_group('bz_canusewhines')
</del><ins>+$user-&gt;can_administer
</ins><span class="cx">   || ThrowUserError('auth_failure', {action =&gt; 'access', object =&gt; 'administrative_pages'});
</span><span class="cx"> 
</span><span class="cx"> $template-&gt;process('admin/admin.html.tmpl')
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgattachmentcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/attachment.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/attachment.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/attachment.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,40 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Daniel Raichle &lt;draichle@gmx.net&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Alexander J. Vincent &lt;ajvincent@juno.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Greg Hendricks &lt;ghendricks@novell.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -47,13 +21,12 @@
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Bug;
</span><del>-use Bugzilla::Field;
</del><span class="cx"> use Bugzilla::Attachment;
</span><span class="cx"> use Bugzilla::Attachment::PatchReader;
</span><span class="cx"> use Bugzilla::Token;
</span><del>-use Bugzilla::Keyword;
</del><span class="cx"> 
</span><span class="cx"> use Encode qw(encode find_encoding);
</span><ins>+use Encode::MIME::Header; # Required to alter Encode::Encoding{'MIME-Q'}.
</ins><span class="cx"> #if WEBKIT_CHANGES
</span><span class="cx"> use Apache2::SubProcess ();
</span><span class="cx"> use Apache2::RequestUtil ();
</span><span class="lines">@@ -67,10 +40,6 @@
</span><span class="cx"> local our $template = Bugzilla-&gt;template;
</span><span class="cx"> local our $vars = {};
</span><span class="cx"> 
</span><del>-################################################################################
-# Main Body Execution
-################################################################################
-
</del><span class="cx"> # All calls to this script should contain an &quot;action&quot; variable whose
</span><span class="cx"> # value determines what the user wants to do.  The code below checks
</span><span class="cx"> # the value of that variable and runs the appropriate code. If none is
</span><span class="lines">@@ -194,7 +163,7 @@
</span><span class="cx">                           { attach_id =&gt; scalar $cgi-&gt;param($param) });
</span><span class="cx">   
</span><span class="cx">     # Make sure the attachment exists in the database.
</span><del>-    my $attachment = new Bugzilla::Attachment($attach_id)
</del><ins>+    my $attachment = new Bugzilla::Attachment({ id =&gt; $attach_id, cache =&gt; 1 })
</ins><span class="cx">         || ThrowUserError(&quot;invalid_attach_id&quot;, { attach_id =&gt; $attach_id });
</span><span class="cx"> 
</span><span class="cx">     return $attachment if ($dont_validate_access || check_can_access($attachment));
</span><span class="lines">@@ -206,7 +175,7 @@
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><span class="cx">     # Make sure the user is authorized to access this attachment's bug.
</span><del>-    Bugzilla::Bug-&gt;check($attachment-&gt;bug_id);
</del><ins>+    Bugzilla::Bug-&gt;check({ id =&gt; $attachment-&gt;bug_id, cache =&gt; 1 });
</ins><span class="cx">     if ($attachment-&gt;isprivate &amp;&amp; $user-&gt;id != $attachment-&gt;attacher-&gt;id 
</span><span class="cx">         &amp;&amp; !$user-&gt;is_insider) 
</span><span class="cx">     {
</span><span class="lines">@@ -242,20 +211,6 @@
</span><span class="cx">   return $format;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Validates context of a diff/interdiff. Will throw an error if the context
-# is not number, &quot;file&quot; or &quot;patch&quot;. Returns the validated, detainted context.
-sub validateContext
-{
-  my $context = $cgi-&gt;param('context') || &quot;patch&quot;;
-  if ($context ne &quot;file&quot; &amp;&amp; $context ne &quot;patch&quot;) {
-      my $orig_context = $context;
-      detaint_natural($context)
-        || ThrowUserError(&quot;invalid_context&quot;, { context =&gt; $orig_context });
-  }
-
-  return $context;
-}
-
</del><span class="cx"> # Gets the attachment object(s) generated by validateID, while ensuring
</span><span class="cx"> # attachbase and token authentication is used when required.
</span><span class="cx"> sub get_attachment {
</span><span class="lines">@@ -444,10 +399,9 @@
</span><span class="cx">         $old_attachment = validateID('oldid');
</span><span class="cx">         $new_attachment = validateID('newid');
</span><span class="cx">     }
</span><del>-    my $context = validateContext();
</del><span class="cx"> 
</span><span class="cx">     Bugzilla::Attachment::PatchReader::process_interdiff(
</span><del>-        $old_attachment, $new_attachment, $format, $context);
</del><ins>+        $old_attachment, $new_attachment, $format);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if WEBKIT_CHANGES
</span><span class="lines">@@ -456,7 +410,6 @@
</span><span class="cx">     # Retrieve and validate parameters
</span><span class="cx">     my $attachment = validateID();
</span><span class="cx">     my $format = validateFormat('html', 'raw');
</span><del>-    my $context = validateContext();
</del><span class="cx"> 
</span><span class="cx">     # If it is not a patch, view normally.
</span><span class="cx">     if (!$attachment-&gt;ispatch) {
</span><span class="lines">@@ -488,7 +441,6 @@
</span><span class="cx">     # Retrieve and validate parameters
</span><span class="cx">     my $format = validateFormat('html', 'raw');
</span><span class="cx">     my $attachment = $format eq 'raw' ? get_attachment() : validateID();
</span><del>-    my $context = validateContext();
</del><span class="cx"> 
</span><span class="cx">     # If it is not a patch, view normally.
</span><span class="cx">     if (!$attachment-&gt;ispatch) {
</span><span class="lines">@@ -496,7 +448,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Bugzilla::Attachment::PatchReader::process_diff($attachment, $format, $context);
</del><ins>+    Bugzilla::Attachment::PatchReader::process_diff($attachment, $format);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Display all attachments for a given bug in a series of IFRAMEs within one
</span><span class="lines">@@ -503,10 +455,9 @@
</span><span class="cx"> # HTML page.
</span><span class="cx"> sub viewall {
</span><span class="cx">     # Retrieve and validate parameters
</span><del>-    my $bug = Bugzilla::Bug-&gt;check(scalar $cgi-&gt;param('bugid'));
-    my $bugid = $bug-&gt;id;
</del><ins>+    my $bug = Bugzilla::Bug-&gt;check({ id =&gt; scalar $cgi-&gt;param('bugid'), cache =&gt; 1 });
</ins><span class="cx"> 
</span><del>-    my $attachments = Bugzilla::Attachment-&gt;get_attachments_by_bug($bugid);
</del><ins>+    my $attachments = Bugzilla::Attachment-&gt;get_attachments_by_bug($bug);
</ins><span class="cx">     # Ignore deleted attachments.
</span><span class="cx">     @$attachments = grep { $_-&gt;datasize } @$attachments;
</span><span class="cx"> 
</span><span class="lines">@@ -528,40 +479,51 @@
</span><span class="cx"> 
</span><span class="cx"> # Display a form for entering a new attachment.
</span><span class="cx"> sub enter {
</span><del>-  # Retrieve and validate parameters
-  my $bug = Bugzilla::Bug-&gt;check(scalar $cgi-&gt;param('bugid'));
-  my $bugid = $bug-&gt;id;
-  Bugzilla::Attachment-&gt;_check_bug($bug);
-  my $dbh = Bugzilla-&gt;dbh;
-  my $user = Bugzilla-&gt;user;
</del><ins>+    # Retrieve and validate parameters
+    my $bug = Bugzilla::Bug-&gt;check(scalar $cgi-&gt;param('bugid'));
+    my $bugid = $bug-&gt;id;
+    Bugzilla::Attachment-&gt;_check_bug($bug);
+    my $dbh = Bugzilla-&gt;dbh;
+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><del>-  # Retrieve the attachments the user can edit from the database and write
-  # them into an array of hashes where each hash represents one attachment.
-  my $canEdit = &quot;&quot;;
-  if (!$user-&gt;in_group('editbugs', $bug-&gt;product_id)) {
-      $canEdit = &quot;AND submitter_id = &quot; . $user-&gt;id;
-  }
-  my $attach_ids = $dbh-&gt;selectcol_arrayref(&quot;SELECT attach_id FROM attachments
-                                             WHERE bug_id = ? AND isobsolete = 0 $canEdit
-                                             ORDER BY attach_id&quot;, undef, $bugid);
</del><ins>+    # Retrieve the attachments the user can edit from the database and write
+    # them into an array of hashes where each hash represents one attachment.
+  
+    my ($can_edit, $not_private) = ('', '');
+    if (!$user-&gt;in_group('editbugs', $bug-&gt;product_id)) {
+        $can_edit = &quot;AND submitter_id = &quot; . $user-&gt;id;
+    }
+    if (!$user-&gt;is_insider) {
+        $not_private = &quot;AND isprivate = 0&quot;;
+    }
+    my $attach_ids = $dbh-&gt;selectcol_arrayref(
+        &quot;SELECT attach_id
+           FROM attachments
+          WHERE bug_id = ?
+                AND isobsolete = 0
+                $can_edit $not_private
+       ORDER BY attach_id&quot;,
+         undef, $bugid);
</ins><span class="cx"> 
</span><del>-  # Define the variables and functions that will be passed to the UI template.
-  $vars-&gt;{'bug'} = $bug;
-  $vars-&gt;{'attachments'} = Bugzilla::Attachment-&gt;new_from_list($attach_ids);
</del><ins>+    # Define the variables and functions that will be passed to the UI template.
+    $vars-&gt;{'bug'} = $bug;
+    $vars-&gt;{'attachments'} = Bugzilla::Attachment-&gt;new_from_list($attach_ids);
</ins><span class="cx"> 
</span><del>-  my $flag_types = Bugzilla::FlagType::match({'target_type'  =&gt; 'attachment',
-                                              'product_id'   =&gt; $bug-&gt;product_id,
-                                              'component_id' =&gt; $bug-&gt;component_id});
-  $vars-&gt;{'flag_types'} = $flag_types;
-  $vars-&gt;{'any_flags_requesteeble'} =
-    grep { $_-&gt;is_requestable &amp;&amp; $_-&gt;is_requesteeble } @$flag_types;
-  $vars-&gt;{'token'} = issue_session_token('create_attachment');
</del><ins>+    my $flag_types = Bugzilla::FlagType::match({
+        'target_type'  =&gt; 'attachment',
+        'product_id'   =&gt; $bug-&gt;product_id,
+        'component_id' =&gt; $bug-&gt;component_id
+    });
+    $vars-&gt;{'flag_types'} = $flag_types;
+    $vars-&gt;{'any_flags_requesteeble'} =
+        grep { $_-&gt;is_requestable &amp;&amp; $_-&gt;is_requesteeble } @$flag_types;
+    $vars-&gt;{'token'} = issue_session_token('create_attachment');
</ins><span class="cx"> 
</span><del>-  print $cgi-&gt;header();
</del><ins>+    print $cgi-&gt;header();
</ins><span class="cx"> 
</span><del>-  # Generate and return the UI (HTML page) from the appropriate template.
-  $template-&gt;process(&quot;attachment/create.html.tmpl&quot;, $vars)
-    || ThrowTemplateError($template-&gt;error());
</del><ins>+    # Generate and return the UI (HTML page) from the appropriate template.
+    $template-&gt;process(&quot;attachment/create.html.tmpl&quot;, $vars)
+      || ThrowTemplateError($template-&gt;error());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Insert a new attachment into the database.
</span><span class="lines">@@ -616,7 +578,6 @@
</span><span class="cx">     my ($flags, $new_flags) = Bugzilla::Flag-&gt;extract_flags_from_cgi(
</span><span class="cx">                                   $bug, $attachment, $vars, SKIP_REQUESTEE_ON_ERROR);
</span><span class="cx">     $attachment-&gt;set_flags($flags, $new_flags);
</span><del>-    $attachment-&gt;update($timestamp);
</del><span class="cx"> 
</span><span class="cx">     # Insert a comment about the new attachment into the database.
</span><span class="cx">     my $comment = $cgi-&gt;param('comment');
</span><span class="lines">@@ -625,43 +586,50 @@
</span><span class="cx">                                   type =&gt; CMT_ATTACHMENT_CREATED,
</span><span class="cx">                                   extra_data =&gt; $attachment-&gt;id });
</span><span class="cx"> 
</span><del>-  # Assign the bug to the user, if they are allowed to take it
-  my $owner = &quot;&quot;;
-  if ($cgi-&gt;param('takebug') &amp;&amp; $user-&gt;in_group('editbugs', $bug-&gt;product_id)) {
-      # When taking a bug, we have to follow the workflow.
-      my $bug_status = $cgi-&gt;param('bug_status') || '';
-      ($bug_status) = grep {$_-&gt;name eq $bug_status} @{$bug-&gt;status-&gt;can_change_to};
</del><ins>+    # Assign the bug to the user, if they are allowed to take it
+    my $owner = &quot;&quot;;
+    if ($cgi-&gt;param('takebug') &amp;&amp; $user-&gt;in_group('editbugs', $bug-&gt;product_id)) {
+        # When taking a bug, we have to follow the workflow.
+        my $bug_status = $cgi-&gt;param('bug_status') || '';
+        ($bug_status) = grep { $_-&gt;name eq $bug_status }
+                        @{ $bug-&gt;status-&gt;can_change_to };
</ins><span class="cx"> 
</span><del>-      if ($bug_status &amp;&amp; $bug_status-&gt;is_open
-          &amp;&amp; ($bug_status-&gt;name ne 'UNCONFIRMED' 
-              || $bug-&gt;product_obj-&gt;allows_unconfirmed))
-      {
-          $bug-&gt;set_bug_status($bug_status-&gt;name);
-          $bug-&gt;clear_resolution();
-      }
-      # Make sure the person we are taking the bug from gets mail.
-      $owner = $bug-&gt;assigned_to-&gt;login;
-      $bug-&gt;set_assigned_to($user);
-  }
-  $bug-&gt;update($timestamp);
</del><ins>+        if ($bug_status &amp;&amp; $bug_status-&gt;is_open
+            &amp;&amp; ($bug_status-&gt;name ne 'UNCONFIRMED'
+                || $bug-&gt;product_obj-&gt;allows_unconfirmed))
+        {
+            $bug-&gt;set_bug_status($bug_status-&gt;name);
+            $bug-&gt;clear_resolution();
+        }
+        # Make sure the person we are taking the bug from gets mail.
+        $owner = $bug-&gt;assigned_to-&gt;login;
+        $bug-&gt;set_assigned_to($user);
+    }
</ins><span class="cx"> 
</span><del>-  $dbh-&gt;bz_commit_transaction;
</del><ins>+    $bug-&gt;add_cc($user) if $cgi-&gt;param('addselfcc');
+    $bug-&gt;update($timestamp);
</ins><span class="cx"> 
</span><del>-  # Define the variables and functions that will be passed to the UI template.
-  $vars-&gt;{'attachment'} = $attachment;
-  # We cannot reuse the $bug object as delta_ts has eventually been updated
-  # since the object was created.
-  $vars-&gt;{'bugs'} = [new Bugzilla::Bug($bugid)];
-  $vars-&gt;{'header_done'} = 1;
-  $vars-&gt;{'contenttypemethod'} = $cgi-&gt;param('contenttypemethod');
</del><ins>+    # We have to update the attachment after updating the bug, to ensure new
+    # comments are available.
+    $attachment-&gt;update($timestamp);
</ins><span class="cx"> 
</span><del>-  my $recipients =  { 'changer' =&gt; $user, 'owner' =&gt; $owner };
-  $vars-&gt;{'sent_bugmail'} = Bugzilla::BugMail::Send($bugid, $recipients);
</del><ins>+    $dbh-&gt;bz_commit_transaction;
</ins><span class="cx"> 
</span><del>-  print $cgi-&gt;header();
-  # Generate and return the UI (HTML page) from the appropriate template.
-  $template-&gt;process(&quot;attachment/created.html.tmpl&quot;, $vars)
-    || ThrowTemplateError($template-&gt;error());
</del><ins>+    # Define the variables and functions that will be passed to the UI template.
+    $vars-&gt;{'attachment'} = $attachment;
+    # We cannot reuse the $bug object as delta_ts has eventually been updated
+    # since the object was created.
+    $vars-&gt;{'bugs'} = [new Bugzilla::Bug($bugid)];
+    $vars-&gt;{'header_done'} = 1;
+    $vars-&gt;{'contenttypemethod'} = $cgi-&gt;param('contenttypemethod');
+
+    my $recipients = { 'changer' =&gt; $user, 'owner' =&gt; $owner };
+    $vars-&gt;{'sent_bugmail'} = Bugzilla::BugMail::Send($bugid, $recipients);
+
+    print $cgi-&gt;header();
+    # Generate and return the UI (HTML page) from the appropriate template.
+    $template-&gt;process(&quot;attachment/created.html.tmpl&quot;, $vars)
+        || ThrowTemplateError($template-&gt;error());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Displays a form for editing attachment properties.
</span><span class="lines">@@ -670,39 +638,37 @@
</span><span class="cx"> # Validations are done later when the user submits changes.
</span><span class="cx"> sub edit {
</span><span class="cx"> #if WEBKIT_CHANGES
</span><del>-  my ($template_name) = @_;
-  $template_name = $template_name || &quot;edit&quot;;
</del><ins>+    my ($template_name) = @_;
+    $template_name = $template_name || &quot;edit&quot;;
</ins><span class="cx"> #endif // WEBKIT_CHANGES
</span><span class="cx"> 
</span><del>-  my $attachment = validateID();
</del><ins>+    my $attachment = validateID();
</ins><span class="cx"> 
</span><del>-  my $bugattachments =
-      Bugzilla::Attachment-&gt;get_attachments_by_bug($attachment-&gt;bug_id);
-  # We only want attachment IDs.
-  @$bugattachments = map { $_-&gt;id } @$bugattachments;
</del><ins>+    my $bugattachments =
+        Bugzilla::Attachment-&gt;get_attachments_by_bug($attachment-&gt;bug);
</ins><span class="cx"> 
</span><del>-  my $any_flags_requesteeble =
-    grep { $_-&gt;is_requestable &amp;&amp; $_-&gt;is_requesteeble } @{$attachment-&gt;flag_types};
-  # Useful in case a flagtype is no longer requestable but a requestee
-  # has been set before we turned off that bit.
-  $any_flags_requesteeble ||= grep { $_-&gt;requestee_id } @{$attachment-&gt;flags};
-  $vars-&gt;{'any_flags_requesteeble'} = $any_flags_requesteeble;
-  $vars-&gt;{'attachment'} = $attachment;
-  $vars-&gt;{'attachments'} = $bugattachments;
</del><ins>+    my $any_flags_requesteeble = grep { $_-&gt;is_requestable &amp;&amp; $_-&gt;is_requesteeble }
+                                 @{ $attachment-&gt;flag_types };
+    # Useful in case a flagtype is no longer requestable but a requestee
+    # has been set before we turned off that bit.
+    $any_flags_requesteeble ||= grep { $_-&gt;requestee_id } @{ $attachment-&gt;flags };
+    $vars-&gt;{'any_flags_requesteeble'} = $any_flags_requesteeble;
+    $vars-&gt;{'attachment'} = $attachment;
+    $vars-&gt;{'attachments'} = $bugattachments;
</ins><span class="cx"> 
</span><span class="cx"> #if WEBKIT_CHANGES
</span><del>-  if ($attachment-&gt;ispatch) {
-      my $quotedpatch = $attachment-&gt;data;
-      $quotedpatch =~ s/^/&gt; /mg;
-      $vars-&gt;{'quotedpatch'} = $quotedpatch;
-  }
</del><ins>+    if ($attachment-&gt;ispatch) {
+        my $quotedpatch = $attachment-&gt;data;
+        $quotedpatch =~ s/^/&gt; /mg;
+        $vars-&gt;{'quotedpatch'} = $quotedpatch;
+    }
</ins><span class="cx"> #endif // WEBKIT_CHANGES
</span><span class="cx"> 
</span><del>-  print $cgi-&gt;header();
</del><ins>+    print $cgi-&gt;header();
</ins><span class="cx"> 
</span><del>-  # Generate and return the UI (HTML page) from the appropriate template.
-  $template-&gt;process(&quot;attachment/$template_name.html.tmpl&quot;, $vars) # WEBKIT_CHANGES
-    || ThrowTemplateError($template-&gt;error());
</del><ins>+    # Generate and return the UI (HTML page) from the appropriate template.
+    $template-&gt;process(&quot;attachment/${template_name}.html.tmpl&quot;, $vars) # WEBKIT_CHANGES
+        || ThrowTemplateError($template-&gt;error());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Updates an attachment record. Only users with &quot;editbugs&quot; privileges,
</span><span class="lines">@@ -719,7 +685,7 @@
</span><span class="cx">     my $attachment = validateID();
</span><span class="cx">     my $bug = $attachment-&gt;bug;
</span><span class="cx">     $attachment-&gt;_check_bug;
</span><del>-    my $can_edit = $attachment-&gt;validate_can_edit($bug-&gt;product_id);
</del><ins>+    my $can_edit = $attachment-&gt;validate_can_edit;
</ins><span class="cx"> 
</span><span class="cx">     if ($can_edit) {
</span><span class="cx">         $attachment-&gt;set_description(scalar $cgi-&gt;param('description'));
</span><span class="lines">@@ -736,8 +702,7 @@
</span><span class="cx">         if ($delta_ts &amp;&amp; $delta_ts ne $modification_time) {
</span><span class="cx">             datetime_from($delta_ts)
</span><span class="cx">               or ThrowCodeError('invalid_timestamp', { timestamp =&gt; $delta_ts });
</span><del>-            ($vars-&gt;{'operations'}) =
-              Bugzilla::Bug::GetBugActivity($bug-&gt;id, $attachment-&gt;id, $delta_ts);
</del><ins>+            ($vars-&gt;{'operations'}) = $bug-&gt;get_activity($attachment-&gt;id, $delta_ts);
</ins><span class="cx"> 
</span><span class="cx">             # If the modification date changed but there is no entry in
</span><span class="cx">             # the activity table, this means someone commented only.
</span><span class="lines">@@ -772,15 +737,44 @@
</span><span class="cx">                                       extra_data =&gt; $attachment-&gt;id });
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    $bug-&gt;add_cc($user) if $cgi-&gt;param('addselfcc');
+
+    my ($flags, $new_flags) =
+      Bugzilla::Flag-&gt;extract_flags_from_cgi($bug, $attachment, $vars);
+
</ins><span class="cx">     if ($can_edit) {
</span><del>-        my ($flags, $new_flags) =
-          Bugzilla::Flag-&gt;extract_flags_from_cgi($bug, $attachment, $vars);
</del><span class="cx">         $attachment-&gt;set_flags($flags, $new_flags);
</span><span class="cx">     }
</span><ins>+    # Requestees can set flags targetted to them, even if they cannot
+    # edit the attachment. Flag setters can edit their own flags too.
+    elsif (scalar @$flags) {
+        my %flag_list = map { $_-&gt;{id} =&gt; $_ } @$flags;
+        my $flag_objs = Bugzilla::Flag-&gt;new_from_list([keys %flag_list]);
</ins><span class="cx"> 
</span><ins>+        my @editable_flags;
+        foreach my $flag_obj (@$flag_objs) {
+            if ($flag_obj-&gt;setter_id == $user-&gt;id
+                || ($flag_obj-&gt;requestee_id &amp;&amp; $flag_obj-&gt;requestee_id == $user-&gt;id))
+            {
+                push(@editable_flags, $flag_list{$flag_obj-&gt;id});
+            }
+        }
+
+        if (scalar @editable_flags) {
+            $attachment-&gt;set_flags(\@editable_flags, []);
+            # Flag changes must be committed.
+            $can_edit = 1;
+        }
+    }
+
</ins><span class="cx">     # Figure out when the changes were made.
</span><span class="cx">     my $timestamp = $dbh-&gt;selectrow_array('SELECT LOCALTIMESTAMP(0)');
</span><span class="cx"> 
</span><ins>+    # Commit the comment, if any.
+    # This has to happen before updating the attachment, to ensure new comments
+    # are available to $attachment-&gt;update.
+    $bug-&gt;update($timestamp);
+
</ins><span class="cx">     if ($can_edit) {
</span><span class="cx">         my $changes = $attachment-&gt;update($timestamp);
</span><span class="cx">         # If there are changes, we updated delta_ts in the DB. We have to
</span><span class="lines">@@ -788,9 +782,6 @@
</span><span class="cx">         $bug-&gt;{delta_ts} = $timestamp if scalar(keys %$changes);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Commit the comment, if any.
-    $bug-&gt;update($timestamp);
-
</del><span class="cx">     # Commit the transaction now that we are finished updating the database.
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><span class="lines">@@ -846,7 +837,6 @@
</span><span class="cx">         # The token is valid. Delete the content of the attachment.
</span><span class="cx">         my $msg;
</span><span class="cx">         $vars-&gt;{'attachment'} = $attachment;
</span><del>-        $vars-&gt;{'date'} = $date;
</del><span class="cx">         $vars-&gt;{'reason'} = clean_text($cgi-&gt;param('reason') || '');
</span><span class="cx"> 
</span><span class="cx">         $template-&gt;process(&quot;attachment/delete_reason.txt.tmpl&quot;, $vars, \$msg)
</span><span class="lines">@@ -855,10 +845,6 @@
</span><span class="cx">         # Paste the reason provided by the admin into a comment.
</span><span class="cx">         $bug-&gt;add_comment($msg);
</span><span class="cx"> 
</span><del>-        # If the attachment is stored locally, remove it.
-        if (-e $attachment-&gt;_get_local_filename) {
-            unlink $attachment-&gt;_get_local_filename;
-        }
</del><span class="cx">         $attachment-&gt;remove_from_db();
</span><span class="cx"> 
</span><span class="cx">         # Now delete the token.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgbuglistcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/buglist.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/buglist.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/buglist.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Stephan Niemz  &lt;st.n@gmx.net&gt;
-#                 Andreas Franke &lt;afranke@mathweb.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -42,10 +20,8 @@
</span><span class="cx"> use Bugzilla::Search::Quicksearch;
</span><span class="cx"> use Bugzilla::Search::Recent;
</span><span class="cx"> use Bugzilla::Search::Saved;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::Product;
</span><del>-use Bugzilla::Keyword;
</del><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="lines">@@ -56,7 +32,6 @@
</span><span class="cx"> my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="cx"> my $vars = {};
</span><del>-my $buffer = $cgi-&gt;query_string();
</del><span class="cx"> 
</span><span class="cx"> # We have to check the login here to get the correct footer if an error is
</span><span class="cx"> # thrown and to prevent a logged out user to use QuickSearch if 'requirelogin'
</span><span class="lines">@@ -63,11 +38,13 @@
</span><span class="cx"> # is turned 'on'.
</span><span class="cx"> my $user = Bugzilla-&gt;login();
</span><span class="cx"> 
</span><ins>+$cgi-&gt;redirect_search_url();
+
+my $buffer = $cgi-&gt;query_string();
</ins><span class="cx"> if (length($buffer) == 0) {
</span><span class="cx">     ThrowUserError(&quot;buglist_parameters_required&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$cgi-&gt;redirect_search_url();
</del><span class="cx"> 
</span><span class="cx"> # Determine whether this is a quicksearch query.
</span><span class="cx"> my $searchstring = $cgi-&gt;param('quicksearch');
</span><span class="lines">@@ -111,13 +88,6 @@
</span><span class="cx">     $cgi-&gt;param('ctype', &quot;atom&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# An agent is a program that automatically downloads and extracts data
-# on its user's behalf.  If this request comes from an agent, we turn off
-# various aspects of bug list functionality so agent requests succeed
-# and coexist nicely with regular user requests.  Currently the only agent
-# we know about is Firefox's microsummary feature.
-my $agent = ($cgi-&gt;http('X-Moz') &amp;&amp; $cgi-&gt;http('X-Moz') =~ /\bmicrosummary\b/);
-
</del><span class="cx"> # Determine the format in which the user would like to receive the output.
</span><span class="cx"> # Uses the default format if the user did not specify an output format;
</span><span class="cx"> # otherwise validates the user's choice against the list of available formats.
</span><span class="lines">@@ -129,21 +99,17 @@
</span><span class="cx"> # the bug list as HTML and they have not disabled it by adding &amp;serverpush=0
</span><span class="cx"> # to the URL.
</span><span class="cx"> #
</span><del>-# Server push is a Netscape 3+ hack incompatible with MSIE, Lynx, and others. 
-# Even Communicator 4.51 has bugs with it, especially during page reload.
-# http://www.browsercaps.org used as source of compatible browsers.
-# Safari (WebKit) does not support it, despite a UA that says otherwise (bug 188712)
-# MSIE 5+ supports it on Mac (but not on Windows) (bug 190370)
-#
</del><ins>+# Server push is compatible with Gecko-based browsers and Opera, but not with
+# MSIE, Lynx or Safari (bug 441496).
+
</ins><span class="cx"> my $serverpush =
</span><span class="cx">   $format-&gt;{'extension'} eq &quot;html&quot;
</span><span class="cx">     &amp;&amp; exists $ENV{'HTTP_USER_AGENT'} 
</span><del>-      &amp;&amp; $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ 
-        &amp;&amp; (($ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/) || ($ENV{'HTTP_USER_AGENT'} =~ /MSIE 5.*Mac_PowerPC/))
</del><ins>+      &amp;&amp; $ENV{'HTTP_USER_AGENT'} =~ /(Mozilla.[3-9]|Opera)/
+        &amp;&amp; $ENV{'HTTP_USER_AGENT'} !~ /compatible/i
</ins><span class="cx">           &amp;&amp; $ENV{'HTTP_USER_AGENT'} !~ /(?:WebKit|Trident|KHTML)/
</span><del>-            &amp;&amp; !$agent
-              &amp;&amp; !defined($cgi-&gt;param('serverpush'))
-                || $cgi-&gt;param('serverpush');
</del><ins>+            &amp;&amp; !defined($cgi-&gt;param('serverpush'))
+              || $cgi-&gt;param('serverpush');
</ins><span class="cx"> 
</span><span class="cx"> my $order = $cgi-&gt;param('order') || &quot;&quot;;
</span><span class="cx"> 
</span><span class="lines">@@ -295,10 +261,10 @@
</span><span class="cx">     my %legal_groups;
</span><span class="cx"> 
</span><span class="cx">     foreach my $product_name (@$product_names) {
</span><del>-        my $product = new Bugzilla::Product({name =&gt; $product_name});
</del><ins>+        my $product = Bugzilla::Product-&gt;new({name =&gt; $product_name, cache =&gt; 1});
</ins><span class="cx"> 
</span><span class="cx">         foreach my $gid (keys %{$product-&gt;group_controls}) {
</span><del>-            # The user can only edit groups he belongs to.
</del><ins>+            # The user can only edit groups they belong to.
</ins><span class="cx">             next unless $user-&gt;in_group_id($gid);
</span><span class="cx"> 
</span><span class="cx">             # The user has no control on groups marked as NA or MANDATORY.
</span><span class="lines">@@ -315,23 +281,37 @@
</span><span class="cx">     return [values %legal_groups];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub _close_standby_message {
-    my ($contenttype, $disposition, $serverpush) = @_;
-    my $cgi = Bugzilla-&gt;cgi;
</del><ins>+sub _get_common_flag_types {
+    my $component_ids = shift;
+    my $user = Bugzilla-&gt;user;
</ins><span class="cx"> 
</span><del>-    # Close the &quot;please wait&quot; page, then open the buglist page
-    if ($serverpush) {
-        print $cgi-&gt;multipart_end();
-        print $cgi-&gt;multipart_start(-type                =&gt; $contenttype,
-                                    -content_disposition =&gt; $disposition);
</del><ins>+    # Get all the different components in the bug list
+    my $components = Bugzilla::Component-&gt;new_from_list($component_ids);
+    my %flag_types;
+    my @flag_types_ids;
+    foreach my $component (@$components) {
+        foreach my $flag_type (@{$component-&gt;flag_types-&gt;{'bug'}}) {
+            push @flag_types_ids, $flag_type-&gt;id;
+            $flag_types{$flag_type-&gt;id} = $flag_type;
+        }
</ins><span class="cx">     }
</span><del>-    else {
-        print $cgi-&gt;header(-type                =&gt; $contenttype,
-                           -content_disposition =&gt; $disposition);
</del><ins>+
+    # We only want flags that appear in all components
+    my %common_flag_types;
+    foreach my $id (keys %flag_types) {
+        my $flag_type_count = scalar grep { $_ == $id } @flag_types_ids;
+        $common_flag_types{$id} = $flag_types{$id}
+            if $flag_type_count == scalar @$components;
</ins><span class="cx">     }
</span><ins>+
+    # We only show flags that a user can request.
+    my @show_flag_types
+        = grep { $user-&gt;can_request_flag($_) } values %common_flag_types;
+    my $any_flags_requesteeble = grep { $_-&gt;is_requesteeble } @show_flag_types;
+
+    return(\@show_flag_types, $any_flags_requesteeble);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> ################################################################################
</span><span class="cx"> # Command Execution
</span><span class="cx"> ################################################################################
</span><span class="lines">@@ -359,17 +339,10 @@
</span><span class="cx"> # if available.  We have to do this now, even though we return HTTP headers 
</span><span class="cx"> # at the end, because the fact that there is a remembered query gets 
</span><span class="cx"> # forgotten in the process of retrieving it.
</span><del>-my @time = localtime(time());
-my $date = sprintf &quot;%04d-%02d-%02d&quot;, 1900+$time[5],$time[4]+1,$time[3];
-my $filename = &quot;bugs-$date.$format-&gt;{extension}&quot;;
</del><ins>+my $disp_prefix = &quot;bugs&quot;;
</ins><span class="cx"> if ($cmdtype eq &quot;dorem&quot; &amp;&amp; $remaction =~ /^run/) {
</span><del>-    $filename = $cgi-&gt;param('namedcmd') . &quot;-$date.$format-&gt;{extension}&quot;;
-    # Remove white-space from the filename so the user cannot tamper
-    # with the HTTP headers.
-    $filename =~ s/\s/_/g;
</del><ins>+    $disp_prefix = $cgi-&gt;param('namedcmd');
</ins><span class="cx"> }
</span><del>-$filename =~ s/\\/\\\\/g; # escape backslashes
-$filename =~ s/&quot;/\\&quot;/g; # escape quotes
</del><span class="cx"> 
</span><span class="cx"> # Take appropriate action based on user's request.
</span><span class="cx"> if ($cmdtype eq &quot;dorem&quot;) {  
</span><span class="lines">@@ -382,7 +355,7 @@
</span><span class="cx">         # so that it can be modified easily.
</span><span class="cx">         $vars-&gt;{'searchname'} = $cgi-&gt;param('namedcmd');
</span><span class="cx">         if (!$cgi-&gt;param('sharer_id') ||
</span><del>-            $cgi-&gt;param('sharer_id') == Bugzilla-&gt;user-&gt;id) {
</del><ins>+            $cgi-&gt;param('sharer_id') == $user-&gt;id) {
</ins><span class="cx">             $vars-&gt;{'searchtype'} = &quot;saved&quot;;
</span><span class="cx">             $vars-&gt;{'search_id'} = $query_id;
</span><span class="cx">         }
</span><span class="lines">@@ -429,7 +402,7 @@
</span><span class="cx">         ($buffer, $query_id) = LookupNamedQuery(scalar $cgi-&gt;param(&quot;namedcmd&quot;),
</span><span class="cx">                                                 $user-&gt;id);
</span><span class="cx">         if ($query_id) {
</span><del>-            # Make sure the user really wants to delete his saved search.
</del><ins>+            # Make sure the user really wants to delete their saved search.
</ins><span class="cx">             my $token = $cgi-&gt;param('token');
</span><span class="cx">             check_hash_token($token, [$query_id, $qname]);
</span><span class="cx"> 
</span><span class="lines">@@ -442,6 +415,7 @@
</span><span class="cx">             $dbh-&gt;do('DELETE FROM namedquery_group_map
</span><span class="cx">                             WHERE namedquery_id = ?',
</span><span class="cx">                      undef, $query_id);
</span><ins>+            Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'namedqueries', id =&gt; $query_id });
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         # Now reset the cached queries
</span><span class="lines">@@ -475,52 +449,19 @@
</span><span class="cx">         my $new_query = $cgi-&gt;param('newquery');
</span><span class="cx">         my $token = $cgi-&gt;param('token');
</span><span class="cx">         check_hash_token($token, ['savedsearch']);
</span><del>-        # If list_of_bugs is true, we are adding/removing tags to/from
-        # individual bugs.
-        if ($cgi-&gt;param('list_of_bugs')) {
-            # We add/remove tags based on the action choosen.
-            my $action = trim($cgi-&gt;param('action') || '');
-            $action =~ /^(add|remove)$/
-              || ThrowUserError('unknown_action', {action =&gt; $action});
-
-            my $method = &quot;${action}_tag&quot;;
-
-            # If no new tag name has been given, use the selected one.
-            $query_name ||= $cgi-&gt;param('oldqueryname')
-              or ThrowUserError('no_tag_to_edit', {action =&gt; $action});
-
-            my @buglist;
-            # Validate all bug IDs before editing tags in any of them.
-            foreach my $bug_id (split(/[\s,]+/, $cgi-&gt;param('bug_ids'))) {
-                next unless $bug_id;
-                push(@buglist, Bugzilla::Bug-&gt;check($bug_id));
-            }
-
-            foreach my $bug (@buglist) {
-                $bug-&gt;$method($query_name);
-            }
-
-            $vars-&gt;{'message'} = 'tag_updated';
-            $vars-&gt;{'action'} = $action;
-            $vars-&gt;{'tag'} = $query_name;
-            $vars-&gt;{'buglist'} = [map { $_-&gt;id } @buglist];
</del><ins>+        my $existed_before = InsertNamedQuery($query_name, $new_query, 1);
+        if ($existed_before) {
+            $vars-&gt;{'message'} = &quot;buglist_updated_named_query&quot;;
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><del>-            my $existed_before = InsertNamedQuery($query_name, $new_query, 1);
-            if ($existed_before) {
-                $vars-&gt;{'message'} = &quot;buglist_updated_named_query&quot;;
-            }
-            else {
-                $vars-&gt;{'message'} = &quot;buglist_new_named_query&quot;;
-            }
</del><ins>+            $vars-&gt;{'message'} = &quot;buglist_new_named_query&quot;;
+        }
+        $vars-&gt;{'queryname'} = $query_name;
</ins><span class="cx"> 
</span><del>-            # Make sure to invalidate any cached query data, so that the footer is
-            # correctly displayed
-            $user-&gt;flush_queries_cache();
</del><ins>+        # Make sure to invalidate any cached query data, so that the footer is
+        # correctly displayed
+        $user-&gt;flush_queries_cache();
</ins><span class="cx"> 
</span><del>-            $vars-&gt;{'queryname'} = $query_name;
-        }
-
</del><span class="cx">         print $cgi-&gt;header();
</span><span class="cx">         $template-&gt;process(&quot;global/message.html.tmpl&quot;, $vars)
</span><span class="cx">           || ThrowTemplateError($template-&gt;error());
</span><span class="lines">@@ -589,12 +530,10 @@
</span><span class="cx"> 
</span><span class="cx"> # Remove the timetracking columns if they are not a part of the group
</span><span class="cx"> # (happens if a user had access to time tracking and it was revoked/disabled)
</span><del>-if (!Bugzilla-&gt;user-&gt;is_timetracker) {
-   @displaycolumns = grep($_ ne 'estimated_time', @displaycolumns);
-   @displaycolumns = grep($_ ne 'remaining_time', @displaycolumns);
-   @displaycolumns = grep($_ ne 'actual_time', @displaycolumns);
-   @displaycolumns = grep($_ ne 'percentage_complete', @displaycolumns);
-   @displaycolumns = grep($_ ne 'deadline', @displaycolumns);
</del><ins>+if (!$user-&gt;is_timetracker) {
+   foreach my $tt_field (TIMETRACKING_FIELDS) {
+       @displaycolumns = grep($_ ne $tt_field, @displaycolumns);
+   }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Remove the relevance column if the user is not doing a fulltext search.
</span><span class="lines">@@ -602,7 +541,6 @@
</span><span class="cx">     @displaycolumns = grep($_ ne 'relevance', @displaycolumns);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> ################################################################################
</span><span class="cx"> # Select Column Determination
</span><span class="cx"> ################################################################################
</span><span class="lines">@@ -643,10 +581,14 @@
</span><span class="cx"> # has for modifying the bugs.
</span><span class="cx"> if ($dotweak) {
</span><span class="cx">     push(@selectcolumns, &quot;bug_status&quot;) if !grep($_ eq 'bug_status', @selectcolumns);
</span><ins>+    push(@selectcolumns, &quot;bugs.component_id&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if ($format-&gt;{'extension'} eq 'ics') {
</span><span class="cx">     push(@selectcolumns, &quot;opendate&quot;) if !grep($_ eq 'opendate', @selectcolumns);
</span><ins>+    if (Bugzilla-&gt;params-&gt;{'timetrackinggroup'}) {
+        push(@selectcolumns, &quot;deadline&quot;) if !grep($_ eq 'deadline', @selectcolumns);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if ($format-&gt;{'extension'} eq 'atom') {
</span><span class="lines">@@ -697,71 +639,41 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+my @order_columns;
</ins><span class="cx"> if ($order) {
</span><span class="cx">     # Convert the value of the &quot;order&quot; form field into a list of columns
</span><span class="cx">     # by which to sort the results.
</span><span class="cx">     ORDER: for ($order) {
</span><span class="cx">         /^Bug Number$/ &amp;&amp; do {
</span><del>-            $order = &quot;bug_id&quot;;
</del><ins>+            @order_columns = (&quot;bug_id&quot;);
</ins><span class="cx">             last ORDER;
</span><span class="cx">         };
</span><span class="cx">         /^Importance$/ &amp;&amp; do {
</span><del>-            $order = &quot;priority,bug_severity&quot;;
</del><ins>+            @order_columns = (&quot;priority&quot;, &quot;bug_severity&quot;);
</ins><span class="cx">             last ORDER;
</span><span class="cx">         };
</span><span class="cx">         /^Assignee$/ &amp;&amp; do {
</span><del>-            $order = &quot;assigned_to,bug_status,priority,bug_id&quot;;
</del><ins>+            @order_columns = (&quot;assigned_to&quot;, &quot;bug_status&quot;, &quot;priority&quot;,
+                              &quot;bug_id&quot;);
</ins><span class="cx">             last ORDER;
</span><span class="cx">         };
</span><span class="cx">         /^Last Changed$/ &amp;&amp; do {
</span><del>-            $order = &quot;changeddate,bug_status,priority,assigned_to,bug_id&quot;;
</del><ins>+            @order_columns = (&quot;changeddate&quot;, &quot;bug_status&quot;, &quot;priority&quot;,
+                              &quot;assigned_to&quot;, &quot;bug_id&quot;);
</ins><span class="cx">             last ORDER;
</span><span class="cx">         };
</span><span class="cx">         do {
</span><del>-            my (@order, @invalid_fragments);
-
-            # A custom list of columns.  Make sure each column is valid.
-            foreach my $fragment (split(/,/, $order)) {
-                $fragment = trim($fragment);
-                next unless $fragment;
-                my ($column_name, $direction) = split_order_term($fragment);
-                $column_name = translate_old_column($column_name);
-
-                # Special handlings for certain columns
-                next if $column_name eq 'relevance' &amp;&amp; !$fulltext;
-                                
-                if (exists $columns-&gt;{$column_name}) {
-                    $direction = &quot; $direction&quot; if $direction;
-                    push(@order, &quot;$column_name$direction&quot;);
-                }
-                else {
-                    push(@invalid_fragments, $fragment);
-                }
-            }
-            if (scalar @invalid_fragments) {
-                $vars-&gt;{'message'} = 'invalid_column_name';
-                $vars-&gt;{'invalid_fragments'} = \@invalid_fragments;
-            }
-
-            $order = join(&quot;,&quot;, @order);
-            # Now that we have checked that all columns in the order are valid,
-            # detaint the order string.
-            trick_taint($order) if $order;
</del><ins>+            # A custom list of columns. Bugzilla::Search will validate items.
+            @order_columns = split(/\s*,\s*/, $order);
</ins><span class="cx">         };
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (!$order) {
</del><ins>+if (!scalar @order_columns) {
</ins><span class="cx">     # DEFAULT
</span><del>-    $order = &quot;bug_status,priority,assigned_to,bug_id&quot;;
</del><ins>+    @order_columns = (&quot;bug_status&quot;, &quot;priority&quot;, &quot;assigned_to&quot;, &quot;bug_id&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-my @orderstrings = split(/,\s*/, $order);
-
-if ($fulltext and grep { /^relevance/ } @orderstrings) {
-    $vars-&gt;{'message'} = 'buglist_sorted_by_relevance'
-}
-
</del><span class="cx"> # In the HTML interface, by default, we limit the returned results,
</span><span class="cx"> # which speeds up quite a few searches where people are really only looking
</span><span class="cx"> # for the top results.
</span><span class="lines">@@ -773,11 +685,20 @@
</span><span class="cx"> # Generate the basic SQL query that will be used to generate the bug list.
</span><span class="cx"> my $search = new Bugzilla::Search('fields' =&gt; \@selectcolumns, 
</span><span class="cx">                                   'params' =&gt; scalar $params-&gt;Vars,
</span><del>-                                  'order'  =&gt; \@orderstrings,
</del><ins>+                                  'order'  =&gt; \@order_columns,
</ins><span class="cx">                                   'sharer' =&gt; $sharer_id);
</span><del>-my $query = $search-&gt;sql;
-$vars-&gt;{'search_description'} = $search-&gt;search_description;
</del><span class="cx"> 
</span><ins>+$order = join(',', $search-&gt;order);
+
+if (scalar @{$search-&gt;invalid_order_columns}) {
+    $vars-&gt;{'message'} = 'invalid_column_name';
+    $vars-&gt;{'invalid_fragments'} = $search-&gt;invalid_order_columns;
+}
+
+if ($fulltext and grep { /^relevance/ } $search-&gt;order) {
+    $vars-&gt;{'message'} = 'buglist_sorted_by_relevance'
+}
+
</ins><span class="cx"> # We don't want saved searches and other buglist things to save
</span><span class="cx"> # our default limit.
</span><span class="cx"> $params-&gt;delete('limit') if $vars-&gt;{'default_limited'};
</span><span class="lines">@@ -786,21 +707,6 @@
</span><span class="cx"> # Query Execution
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><del>-if ($cgi-&gt;param('debug')
-    &amp;&amp; Bugzilla-&gt;params-&gt;{debug_group}
-    &amp;&amp; $user-&gt;in_group(Bugzilla-&gt;params-&gt;{debug_group})
-) {
-    $vars-&gt;{'debug'} = 1;
-    $vars-&gt;{'query'} = $query;
-    # Explains are limited to admins because you could use them to figure
-    # out how many hidden bugs are in a particular product (by doing
-    # searches and looking at the number of rows the explain says it's
-    # examining).
-    if (Bugzilla-&gt;user-&gt;in_group('admin')) {
-        $vars-&gt;{'query_explain'} = $dbh-&gt;bz_explain($query);
-    }
-}
-
</del><span class="cx"> # Time to use server push to display an interim message to the user until
</span><span class="cx"> # the query completes and we can display the bug list.
</span><span class="cx"> if ($serverpush) {
</span><span class="lines">@@ -833,9 +739,28 @@
</span><span class="cx"> $::SIG{PIPE} = 'DEFAULT';
</span><span class="cx"> 
</span><span class="cx"> # Execute the query.
</span><del>-my $buglist_sth = $dbh-&gt;prepare($query);
-$buglist_sth-&gt;execute();
</del><ins>+my ($data, $extra_data) = $search-&gt;data;
+$vars-&gt;{'search_description'} = $search-&gt;search_description;
</ins><span class="cx"> 
</span><ins>+if ($cgi-&gt;param('debug')
+    &amp;&amp; Bugzilla-&gt;params-&gt;{debug_group}
+    &amp;&amp; $user-&gt;in_group(Bugzilla-&gt;params-&gt;{debug_group})
+) {
+    $vars-&gt;{'debug'} = 1;
+    $vars-&gt;{'queries'} = $extra_data;
+    my $query_time = 0;
+    $query_time += $_-&gt;{'time'} foreach @$extra_data;
+    $vars-&gt;{'query_time'} = $query_time;
+    # Explains are limited to admins because you could use them to figure
+    # out how many hidden bugs are in a particular product (by doing
+    # searches and looking at the number of rows the explain says it's
+    # examining).
+    if ($user-&gt;in_group('admin')) {
+        foreach my $query (@$extra_data) {
+            $query-&gt;{explain} = $dbh-&gt;bz_explain($query-&gt;{sql});
+        }
+    }
+}
</ins><span class="cx"> 
</span><span class="cx"> ################################################################################
</span><span class="cx"> # Results Retrieval
</span><span class="lines">@@ -859,15 +784,17 @@
</span><span class="cx">                   'time_present' =&gt; ($estimated_time || $remaining_time ||
</span><span class="cx">                                      $actual_time || $percentage_complete),
</span><span class="cx">                 };
</span><del>-    
</del><ins>+
</ins><span class="cx"> my $bugowners = {};
</span><span class="cx"> my $bugproducts = {};
</span><ins>+my $bugcomponentids = {};
+my $bugcomponents = {};
</ins><span class="cx"> my $bugstatuses = {};
</span><span class="cx"> my @bugidlist;
</span><span class="cx"> 
</span><span class="cx"> my @bugs; # the list of records
</span><span class="cx"> 
</span><del>-while (my @row = $buglist_sth-&gt;fetchrow_array()) {
</del><ins>+foreach my $row (@$data) {
</ins><span class="cx">     my $bug = {}; # a record
</span><span class="cx"> 
</span><span class="cx">     # Slurp the row of data into the record.
</span><span class="lines">@@ -874,7 +801,7 @@
</span><span class="cx">     # The second from last column in the record is the number of groups
</span><span class="cx">     # to which the bug is restricted.
</span><span class="cx">     foreach my $column (@selectcolumns) {
</span><del>-        $bug-&gt;{$column} = shift @row;
</del><ins>+        $bug-&gt;{$column} = shift @$row;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Process certain values further (i.e. date format conversion).
</span><span class="lines">@@ -894,6 +821,8 @@
</span><span class="cx">     # Record the assignee, product, and status in the big hashes of those things.
</span><span class="cx">     $bugowners-&gt;{$bug-&gt;{'assigned_to'}} = 1 if $bug-&gt;{'assigned_to'};
</span><span class="cx">     $bugproducts-&gt;{$bug-&gt;{'product'}} = 1 if $bug-&gt;{'product'};
</span><ins>+    $bugcomponentids-&gt;{$bug-&gt;{'bugs.component_id'}} = 1 if $bug-&gt;{'bugs.component_id'};
+    $bugcomponents-&gt;{$bug-&gt;{'component'}} = 1 if $bug-&gt;{'component'};
</ins><span class="cx">     $bugstatuses-&gt;{$bug-&gt;{'bug_status'}} = 1 if $bug-&gt;{'bug_status'};
</span><span class="cx"> 
</span><span class="cx">     $bug-&gt;{'secure_mode'} = undef;
</span><span class="lines">@@ -957,7 +886,6 @@
</span><span class="cx"> 
</span><span class="cx"> $vars-&gt;{'bugs'} = \@bugs;
</span><span class="cx"> $vars-&gt;{'buglist'} = \@bugidlist;
</span><del>-$vars-&gt;{'buglist_joined'} = join(',', @bugidlist);
</del><span class="cx"> $vars-&gt;{'columns'} = $columns;
</span><span class="cx"> $vars-&gt;{'displaycolumns'} = \@displaycolumns;
</span><span class="cx"> 
</span><span class="lines">@@ -979,10 +907,10 @@
</span><span class="cx"> $vars-&gt;{'caneditbugs'} = 1;
</span><span class="cx"> $vars-&gt;{'time_info'} = $time_info;
</span><span class="cx"> 
</span><del>-if (!Bugzilla-&gt;user-&gt;in_group('editbugs')) {
</del><ins>+if (!$user-&gt;in_group('editbugs')) {
</ins><span class="cx">     foreach my $product (keys %$bugproducts) {
</span><del>-        my $prod = new Bugzilla::Product({name =&gt; $product});
-        if (!Bugzilla-&gt;user-&gt;in_group('editbugs', $prod-&gt;id)) {
</del><ins>+        my $prod = Bugzilla::Product-&gt;new({name =&gt; $product, cache =&gt; 1});
+        if (!$user-&gt;in_group('editbugs', $prod-&gt;id)) {
</ins><span class="cx">             $vars-&gt;{'caneditbugs'} = 0;
</span><span class="cx">             last;
</span><span class="cx">         }
</span><span class="lines">@@ -990,7 +918,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> my @bugowners = keys %$bugowners;
</span><del>-if (scalar(@bugowners) &gt; 1 &amp;&amp; Bugzilla-&gt;user-&gt;in_group('editbugs')) {
</del><ins>+if (scalar(@bugowners) &gt; 1 &amp;&amp; $user-&gt;in_group('editbugs')) {
</ins><span class="cx">     my $suffix = Bugzilla-&gt;params-&gt;{'emailsuffix'};
</span><span class="cx">     map(s/$/$suffix/, @bugowners) if $suffix;
</span><span class="cx">     my $bugowners = join(&quot;,&quot;, @bugowners);
</span><span class="lines">@@ -1001,7 +929,10 @@
</span><span class="cx"> # the list more compact.
</span><span class="cx"> $vars-&gt;{'splitheader'} = $cgi-&gt;cookie('SPLITHEADER') ? 1 : 0;
</span><span class="cx"> 
</span><del>-$vars-&gt;{'quip'} = GetQuip();
</del><ins>+if ($user-&gt;settings-&gt;{'display_quips'}-&gt;{'value'} eq 'on') {
+    $vars-&gt;{'quip'} = GetQuip();
+}
+
</ins><span class="cx"> $vars-&gt;{'currenttime'} = localtime(time());
</span><span class="cx"> 
</span><span class="cx"> # See if there's only one product in all the results (or only one product
</span><span class="lines">@@ -1009,24 +940,37 @@
</span><span class="cx"> my @products = keys %$bugproducts;
</span><span class="cx"> my $one_product;
</span><span class="cx"> if (scalar(@products) == 1) {
</span><del>-    $one_product = new Bugzilla::Product({ name =&gt; $products[0] });
</del><ins>+    $one_product = Bugzilla::Product-&gt;new({ name =&gt; $products[0], cache =&gt; 1 });
</ins><span class="cx"> }
</span><span class="cx"> # This is used in the &quot;Zarroo Boogs&quot; case.
</span><span class="cx"> elsif (my @product_input = $cgi-&gt;param('product')) {
</span><span class="cx">     if (scalar(@product_input) == 1 and $product_input[0] ne '') {
</span><del>-        $one_product = new Bugzilla::Product({ name =&gt; $product_input[0] });
</del><ins>+        $one_product = Bugzilla::Product-&gt;new({ name =&gt; $product_input[0], cache =&gt; 1 });
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> # We only want the template to use it if the user can actually 
</span><span class="cx"> # enter bugs against it.
</span><del>-if ($one_product &amp;&amp; Bugzilla-&gt;user-&gt;can_enter_product($one_product)) {
</del><ins>+if ($one_product &amp;&amp; $user-&gt;can_enter_product($one_product)) {
</ins><span class="cx">     $vars-&gt;{'one_product'} = $one_product;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# See if there's only one component in all the results (or only one component
+# that we searched for), which allows us to provide more helpful links.
+my @components = keys %$bugcomponents;
+my $one_component;
+if (scalar(@components) == 1) {
+    $vars-&gt;{one_component} = $components[0];
+}
+# This is used in the &quot;Zarroo Boogs&quot; case.
+elsif (my @component_input = $cgi-&gt;param('component')) {
+    if (scalar(@component_input) == 1 and $component_input[0] ne '') {
+        $vars-&gt;{one_component}= $cgi-&gt;param('component');
+    }
+}
+
</ins><span class="cx"> # The following variables are used when the user is making changes to multiple bugs.
</span><span class="cx"> if ($dotweak &amp;&amp; scalar @bugs) {
</span><span class="cx">     if (!$vars-&gt;{'caneditbugs'}) {
</span><del>-        _close_standby_message('text/html', 'inline', $serverpush);
</del><span class="cx">         ThrowUserError('auth_failure', {group  =&gt; 'editbugs',
</span><span class="cx">                                         action =&gt; 'modify',
</span><span class="cx">                                         object =&gt; 'multiple_bugs'});
</span><span class="lines">@@ -1038,7 +982,7 @@
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('buglist_mass_change');
</span><span class="cx">     Bugzilla-&gt;switch_to_shadow_db();
</span><span class="cx"> 
</span><del>-    $vars-&gt;{'products'} = Bugzilla-&gt;user-&gt;get_enterable_products;
</del><ins>+    $vars-&gt;{'products'} = $user-&gt;get_enterable_products;
</ins><span class="cx">     $vars-&gt;{'platforms'} = get_legal_field_values('rep_platform');
</span><span class="cx">     $vars-&gt;{'op_sys'} = get_legal_field_values('op_sys');
</span><span class="cx">     $vars-&gt;{'priorities'} = get_legal_field_values('priority');
</span><span class="lines">@@ -1045,6 +989,9 @@
</span><span class="cx">     $vars-&gt;{'severities'} = get_legal_field_values('bug_severity');
</span><span class="cx">     $vars-&gt;{'resolutions'} = get_legal_field_values('resolution');
</span><span class="cx"> 
</span><ins>+    ($vars-&gt;{'flag_types'}, $vars-&gt;{any_flags_requesteeble})
+        = _get_common_flag_types([keys %$bugcomponentids]);
+
</ins><span class="cx">     # Convert bug statuses to their ID.
</span><span class="cx">     my @bug_statuses = map {$dbh-&gt;quote($_)} keys %$bugstatuses;
</span><span class="cx">     my $bug_status_ids =
</span><span class="lines">@@ -1084,10 +1031,47 @@
</span><span class="cx">         $vars-&gt;{'versions'} = [map($_-&gt;name, grep($_-&gt;is_active, @{ $one_product-&gt;versions }))];
</span><span class="cx">         $vars-&gt;{'components'} = [map($_-&gt;name, grep($_-&gt;is_active, @{ $one_product-&gt;components }))];
</span><span class="cx">         if (Bugzilla-&gt;params-&gt;{'usetargetmilestone'}) {
</span><del>-            $vars-&gt;{'targetmilestones'} = [map($_-&gt;name, grep($_-&gt;is_active,  
</del><ins>+            $vars-&gt;{'milestones'} = [map($_-&gt;name, grep($_-&gt;is_active,
</ins><span class="cx">                                                @{ $one_product-&gt;milestones }))];
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    else {
+        # We will only show the values at are active in all products.
+        my %values = ();
+        my @fields = ('components', 'versions');
+        if (Bugzilla-&gt;params-&gt;{'usetargetmilestone'}) {
+            push @fields, 'milestones';
+        }
+
+        # Go through each product and count the number of times each field
+        # is used
+        foreach my $product_name (@products) {
+            my $product = Bugzilla::Product-&gt;new({name =&gt; $product_name, cache =&gt; 1});
+            foreach my $field (@fields) {
+                my $list = $product-&gt;$field;
+                foreach my $item (@$list) {
+                    ++$values{$field}{$item-&gt;name} if $item-&gt;is_active;
+                }
+            }
+        }
+
+        # Now we get the list of each field and see which values have
+        # $product_count (i.e. appears in every product)
+        my $product_count = scalar(@products);
+        foreach my $field (@fields) {
+            my @values = grep { $values{$field}{$_} == $product_count } keys %{$values{$field}};
+            if (scalar @values) {
+                @{$vars-&gt;{$field}} = $field eq 'version'
+                    ? sort { vers_cmp(lc($a), lc($b)) } @values
+                    : sort { lc($a) cmp lc($b) } @values
+            }
+
+            # Do we need to show a warning about limited visiblity?
+            if (@values != scalar keys %{$values{$field}}) {
+                $vars-&gt;{excluded_values} = 1;
+            }
+        }
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # If we're editing a stored query, use the existing query name as default for
</span><span class="lines">@@ -1107,7 +1091,7 @@
</span><span class="cx"> my $contenttype;
</span><span class="cx"> my $disposition = &quot;inline&quot;;
</span><span class="cx"> 
</span><del>-if ($format-&gt;{'extension'} eq &quot;html&quot; &amp;&amp; !$agent) {
</del><ins>+if ($format-&gt;{'extension'} eq &quot;html&quot;) {
</ins><span class="cx">     my $list_id = $cgi-&gt;param('list_id') || $cgi-&gt;param('regetlastlist');
</span><span class="cx">     my $search = $user-&gt;save_last_search(
</span><span class="cx">         { bugs =&gt; \@bugidlist, order =&gt; $order, vars =&gt; $vars, list_id =&gt; $list_id });
</span><span class="lines">@@ -1133,11 +1117,8 @@
</span><span class="cx">     $vars-&gt;{'human'} = $cgi-&gt;param('human');
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Suggest a name for the bug list if the user wants to save it as a file.
-$disposition .= &quot;; filename=\&quot;$filename\&quot;&quot;;
</del><ins>+$cgi-&gt;close_standby_message($contenttype, $disposition, $disp_prefix, $format-&gt;{'extension'});
</ins><span class="cx"> 
</span><del>-_close_standby_message($contenttype, $disposition, $serverpush);
-
</del><span class="cx"> ################################################################################
</span><span class="cx"> # Content Generation
</span><span class="cx"> ################################################################################
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgbugzilladtd"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/bugzilla.dtd (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/bugzilla.dtd        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/bugzilla.dtd        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,107 +0,0 @@
</span><del>-&lt;!ELEMENT bugzilla (bug+)&gt;
-&lt;!ATTLIST bugzilla
-          version CDATA #REQUIRED
-          urlbase CDATA #REQUIRED
-          maintainer CDATA #REQUIRED
-          exporter CDATA #IMPLIED
-&gt;
-&lt;!ELEMENT bug (bug_id, (alias?, creation_ts, short_desc, delta_ts, reporter_accessible, 
-    cclist_accessible, classification_id, classification, product, component, 
-    version, rep_platform, op_sys, bug_status, resolution?, dup_id?, see_also*, 
-    bug_file_loc?, status_whiteboard?, keywords*, priority, bug_severity, 
-    target_milestone?, dependson*, blocked*, everconfirmed, reporter, assigned_to, 
-    cc*, (estimated_time, remaining_time, actual_time, deadline?)?, qa_contact?, 
-    votes?, token?, group*, flag*, long_desc*, attachment*)?)&gt;
-&lt;!ATTLIST bug
-          error (NotFound | NotPermitted | InvalidBugId) #IMPLIED
-&gt;
-&lt;!ELEMENT bug_id (#PCDATA)&gt;
-&lt;!ELEMENT alias (#PCDATA)&gt;
-&lt;!ELEMENT reporter_accessible (#PCDATA)&gt;
-&lt;!ELEMENT cclist_accessible (#PCDATA)&gt;
-&lt;!ELEMENT exporter (#PCDATA)&gt;
-&lt;!ELEMENT urlbase (#PCDATA)&gt;
-&lt;!ELEMENT bug_status (#PCDATA)&gt;
-&lt;!ELEMENT classification_id (#PCDATA)&gt;
-&lt;!ELEMENT classification (#PCDATA)&gt;
-&lt;!ELEMENT product (#PCDATA)&gt;
-&lt;!ELEMENT priority (#PCDATA)&gt;
-&lt;!ELEMENT version (#PCDATA)&gt;
-&lt;!ELEMENT rep_platform (#PCDATA)&gt;
-&lt;!ELEMENT assigned_to (#PCDATA)&gt;
-&lt;!ATTLIST assigned_to 
-          name CDATA #REQUIRED
-&gt;
-&lt;!ELEMENT delta_ts (#PCDATA)&gt;
-&lt;!ELEMENT component (#PCDATA)&gt;
-&lt;!ELEMENT reporter (#PCDATA)&gt;
-&lt;!ATTLIST reporter
-          name CDATA #REQUIRED
-&gt;
-&lt;!ELEMENT target_milestone (#PCDATA)&gt;
-&lt;!ELEMENT bug_severity (#PCDATA)&gt;
-&lt;!ELEMENT creation_ts (#PCDATA)&gt;
-&lt;!ELEMENT qa_contact (#PCDATA)&gt;
-&lt;!ATTLIST qa_contact
-          name CDATA #REQUIRED
-&gt;
-&lt;!ELEMENT status_whiteboard (#PCDATA)&gt;
-&lt;!ELEMENT op_sys (#PCDATA)&gt;
-&lt;!ELEMENT resolution (#PCDATA)&gt;
-&lt;!ELEMENT dup_id (#PCDATA)&gt;
-&lt;!ELEMENT bug_file_loc (#PCDATA)&gt;
-&lt;!ELEMENT short_desc (#PCDATA)&gt;
-&lt;!ELEMENT keywords (#PCDATA)&gt;
-&lt;!ELEMENT dependson (#PCDATA)&gt;
-&lt;!ELEMENT blocked (#PCDATA)&gt;
-&lt;!ELEMENT everconfirmed (#PCDATA)&gt;
-&lt;!ELEMENT cc (#PCDATA)&gt;
-&lt;!ELEMENT see_also (#PCDATA)&gt;
-&lt;!ELEMENT votes (#PCDATA)&gt;
-&lt;!ELEMENT token (#PCDATA)&gt;
-&lt;!ELEMENT group (#PCDATA)&gt;
-&lt;!ATTLIST group
-          id CDATA #REQUIRED
-&gt;
-&lt;!ELEMENT estimated_time (#PCDATA)&gt;
-&lt;!ELEMENT remaining_time (#PCDATA)&gt;
-&lt;!ELEMENT actual_time (#PCDATA)&gt;
-&lt;!ELEMENT deadline (#PCDATA)&gt;
-&lt;!ELEMENT long_desc (commentid, attachid?, who, bug_when, work_time?, thetext)&gt;
-&lt;!ATTLIST long_desc
-          isprivate (0|1) #REQUIRED
-&gt;
-&lt;!ELEMENT commentid (#PCDATA)&gt;
-&lt;!ELEMENT who (#PCDATA)&gt;
-&lt;!ATTLIST who
-          name CDATA #REQUIRED
-&gt;
-&lt;!ELEMENT bug_when (#PCDATA)&gt;
-&lt;!ELEMENT work_time (#PCDATA)&gt;
-&lt;!ELEMENT thetext (#PCDATA)&gt;
-&lt;!ELEMENT attachment (attachid, date, delta_ts, desc, filename, type, size, attacher, token?, data?, flag*)&gt;
-&lt;!ATTLIST attachment
-          isobsolete (0|1) #REQUIRED
-          ispatch (0|1) #REQUIRED
-          isprivate (0|1) #REQUIRED
-&gt;
-&lt;!ELEMENT attacher (#PCDATA)&gt;
-&lt;!ELEMENT attachid (#PCDATA)&gt;
-&lt;!ELEMENT date (#PCDATA)&gt;
-&lt;!ELEMENT desc (#PCDATA)&gt;
-&lt;!ELEMENT filename (#PCDATA)&gt;
-&lt;!ELEMENT type (#PCDATA)&gt;
-&lt;!ELEMENT size (#PCDATA)&gt;
-&lt;!ELEMENT data (#PCDATA)&gt;
-&lt;!ATTLIST data
-          encoding (base64) #IMPLIED
-&gt;
-&lt;!ELEMENT flag EMPTY&gt;
-&lt;!ATTLIST flag
-          name CDATA #REQUIRED
-          id CDATA #REQUIRED
-          type_id CDATA #REQUIRED 
-          status CDATA #REQUIRED
-          setter CDATA #REQUIRED
-          requestee CDATA #IMPLIED
-&gt;
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgchartcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/chart.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/chart.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/chart.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,10 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # Glossary:
</span><span class="cx"> # series:   An individual, defined set of data plotted over time.
</span><span class="lines">@@ -43,7 +27,10 @@
</span><span class="cx"> # Bonus:
</span><span class="cx"> # Offer subscription when you get a &quot;series already exists&quot; error?
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -53,7 +40,6 @@
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Chart;
</span><span class="cx"> use Bugzilla::Series;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><span class="cx"> # For most scripts we don't make $cgi and $template global variables. But
</span><span class="lines">@@ -68,7 +54,7 @@
</span><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="cx"> if (!Bugzilla-&gt;feature('new_charts')) {
</span><del>-    ThrowCodeError('feature_disabled', { feature =&gt; 'new_charts' });
</del><ins>+    ThrowUserError('feature_disabled', { feature =&gt; 'new_charts' });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Go back to query.cgi if we are adding a boolean chart parameter.
</span><span class="lines">@@ -81,7 +67,7 @@
</span><span class="cx"> 
</span><span class="cx"> my $action = $cgi-&gt;param('action');
</span><span class="cx"> my $series_id = $cgi-&gt;param('series_id');
</span><del>-$vars-&gt;{'doc_section'} = 'reporting.html#charts';
</del><ins>+$vars-&gt;{'doc_section'} = 'using/reports-and-charts.html#charts';
</ins><span class="cx"> 
</span><span class="cx"> # Because some actions are chosen by buttons, we can't encode them as the value
</span><span class="cx"> # of the action param, because that value is localization-dependent. So, we
</span><span class="lines">@@ -285,12 +271,12 @@
</span><span class="cx"> 
</span><span class="cx">     if (defined($vars-&gt;{'width'})) {
</span><span class="cx">        (detaint_natural($vars-&gt;{'width'}) &amp;&amp; $vars-&gt;{'width'} &gt; 0)
</span><del>-         || ThrowCodeError(&quot;invalid_dimensions&quot;);
</del><ins>+         || ThrowUserError(&quot;invalid_dimensions&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (defined($vars-&gt;{'height'})) {
</span><span class="cx">        (detaint_natural($vars-&gt;{'height'}) &amp;&amp; $vars-&gt;{'height'} &gt; 0)
</span><del>-         || ThrowCodeError(&quot;invalid_dimensions&quot;);
</del><ins>+         || ThrowUserError(&quot;invalid_dimensions&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # The equivalent of 2000 square seems like a very reasonable maximum size.
</span><span class="lines">@@ -307,6 +293,7 @@
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'category'} = Bugzilla::Chart::getVisibleSeries();
</span><span class="cx">     $vars-&gt;{'default'} = $series;
</span><ins>+    $vars-&gt;{'message'} = 'series_updated' if $vars-&gt;{'changes_saved'};
</ins><span class="cx"> 
</span><span class="cx">     print $cgi-&gt;header();
</span><span class="cx">     $template-&gt;process(&quot;reports/edit-series.html.tmpl&quot;, $vars)
</span><span class="lines">@@ -318,16 +305,15 @@
</span><span class="cx">     $vars-&gt;{'chart'} = new Bugzilla::Chart($cgi);
</span><span class="cx"> 
</span><span class="cx">     my $format = $template-&gt;get_format(&quot;reports/chart&quot;, &quot;&quot;, scalar($cgi-&gt;param('ctype')));
</span><ins>+    $format-&gt;{'ctype'} = 'text/html' if $cgi-&gt;param('debug');
</ins><span class="cx"> 
</span><del>-    # Debugging PNGs is a pain; we need to be able to see the error messages
-    if ($cgi-&gt;param('debug')) {
-        print $cgi-&gt;header();
-        $vars-&gt;{'chart'}-&gt;dump();
-    }
-
</del><ins>+    $cgi-&gt;set_dated_content_disp('inline', 'chart', $format-&gt;{extension});
</ins><span class="cx">     print $cgi-&gt;header($format-&gt;{'ctype'});
</span><span class="cx">     disable_utf8() if ($format-&gt;{'ctype'} =~ /^image\//);
</span><span class="cx"> 
</span><ins>+    # Debugging PNGs is a pain; we need to be able to see the error messages
+    $vars-&gt;{'chart'}-&gt;dump() if $cgi-&gt;param('debug');
+
</ins><span class="cx">     $template-&gt;process($format-&gt;{'template'}, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgchecksetuppl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/checksetup.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/checksetup.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/checksetup.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,40 +1,10 @@
</span><del>-#!/bin/env perl
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is Holger
-# Schurig. Portions created by Holger Schurig are
-# Copyright (C) 1999 Holger Schurig. All
-# Rights Reserved.
-#
-# Contributor(s): Holger Schurig &lt;holgerschurig@nikocity.de&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Zach Lipton  &lt;zach@zachlipton.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Tobias Burnus &lt;burnus@net-b.de&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Dave Lawrence &lt;dkl@redhat.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 A. Karl Kornel &lt;karl@kornel.name&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This file has detailed POD docs, do &quot;perldoc checksetup.pl&quot; to see them.
</span><span class="cx"> 
</span><span class="lines">@@ -42,15 +12,18 @@
</span><span class="cx"> # Initialization
</span><span class="cx"> ######################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use 5.008001;
</del><ins>+use warnings;
+
</ins><span class="cx"> use File::Basename;
</span><ins>+BEGIN { chdir dirname($0); }
+use lib qw(. lib);
+
</ins><span class="cx"> use Getopt::Long qw(:config bundling);
</span><span class="cx"> use Pod::Usage;
</span><span class="cx"> use Safe;
</span><span class="cx"> 
</span><del>-BEGIN { chdir dirname($0); }
-use lib qw(. lib);
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Requirements;
</span><span class="cx"> use Bugzilla::Install::Util qw(install_string get_version_and_os 
</span><span class="lines">@@ -81,14 +54,14 @@
</span><span class="cx"> my $silent = $answers_file &amp;&amp; !$switch{'verbose'};
</span><span class="cx"> 
</span><span class="cx"> print(install_string('header', get_version_and_os()) . &quot;\n&quot;) unless $silent;
</span><del>-exit if $switch{'version'};
</del><ins>+exit 0 if $switch{'version'};
</ins><span class="cx"> # Check required --MODULES--
</span><span class="cx"> my $module_results = check_requirements(!$silent);
</span><span class="cx"> Bugzilla::Install::Requirements::print_module_instructions(
</span><span class="cx">     $module_results, !$silent);
</span><del>-exit if !$module_results-&gt;{pass};
</del><ins>+exit 1 if !$module_results-&gt;{pass};
</ins><span class="cx"> # Break out if checking the modules is all we have been asked to do.
</span><del>-exit if $switch{'check-modules'};
</del><ins>+exit 0 if $switch{'check-modules'};
</ins><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="cx"> # Load Bugzilla Modules
</span><span class="lines">@@ -137,7 +110,7 @@
</span><span class="cx"> 
</span><span class="cx"> # At this point, localconfig is defined and is readable. So we know
</span><span class="cx"> # everything we need to create the DB. We have to create it early,
</span><del>-# because some data required to populate data/params is stored in the DB.
</del><ins>+# because some data required to populate data/params.json is stored in the DB.
</ins><span class="cx"> 
</span><span class="cx"> Bugzilla::DB::bz_check_requirements(!$silent);
</span><span class="cx"> Bugzilla::DB::bz_create_database() if $lc_hash-&gt;{'db_check'};
</span><span class="lines">@@ -236,6 +209,9 @@
</span><span class="cx"> # Final checks
</span><span class="cx"> ###########################################################################
</span><span class="cx"> 
</span><ins>+# Clear all keys from Memcached
+Bugzilla-&gt;memcached-&gt;clear_all();
+
</ins><span class="cx"> # Check if the default parameter for urlbase is still set, and if so, give
</span><span class="cx"> # notification that they should go and visit editparams.cgi 
</span><span class="cx"> if (Bugzilla-&gt;params-&gt;{'urlbase'} eq '') {
</span><span class="lines">@@ -389,7 +365,7 @@
</span><span class="cx"> 
</span><span class="cx"> =item 9
</span><span class="cx"> 
</span><del>-Updates the system parameters (stored in F&lt;data/params&gt;), using
</del><ins>+Updates the system parameters (stored in F&lt;data/params.json&gt;), using
</ins><span class="cx"> L&lt;Bugzilla::Config/update_params&gt;.
</span><span class="cx"> 
</span><span class="cx"> =item 10
</span><span class="lines">@@ -482,8 +458,6 @@
</span><span class="cx">  $answer{'ADMIN_PASSWORD'} = 'fooey';
</span><span class="cx">  $answer{'ADMIN_REALNAME'} = 'Joel Peshkin';
</span><span class="cx"> 
</span><del>- $answer{'SMTP_SERVER'} = 'mail.mydomain.net';
-
</del><span class="cx">  $answer{'NO_PAUSE'} = 1
</span><span class="cx"> 
</span><span class="cx"> C&lt;NO_PAUSE&gt; means &quot;never stop and prompt the user to hit Enter to continue,
</span><span class="lines">@@ -523,4 +497,3 @@
</span><span class="cx"> L&lt;Bugzilla::DB/CONNECTION&gt;
</span><span class="cx"> 
</span><span class="cx"> =back
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcleanbuguserlastvisitpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/clean-bug-user-last-visit.pl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/clean-bug-user-last-visit.pl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/clean-bug-user-last-visit.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+=head1 NAME
+
+clean-bug-user-last-visit.pl
+
+=head1 DESCRIPTION
+
+This utility script cleans out entries from the bug_user_last_visit table that
+are older than (a configurable) number of days.
+
+It takes no arguments and produces no output except in the case of errors.
+
+=cut
+
+use 5.10.1;
+use strict;
+use warnings;
+use lib qw(. lib);
+
+use Bugzilla;
+use Bugzilla::Constants;
+
+Bugzilla-&gt;usage_mode(USAGE_MODE_CMDLINE);
+
+my $dbh = Bugzilla-&gt;dbh;
+my $sql = 'DELETE FROM bug_user_last_visit WHERE last_visit_ts &lt; '
+  . $dbh-&gt;sql_date_math('NOW()',
+                        '-',
+                        Bugzilla-&gt;params-&gt;{last_visit_keep_days},
+                        'DAY');
+$dbh-&gt;do($sql);
</ins><span class="cx">Property changes on: trunk/Websites/bugs.webkit.org/clean-bug-user-last-visit.pl
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<ins>+*
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkWebsitesbugswebkitorgcolchangecgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/colchange.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/colchange.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/colchange.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Pascal Held &lt;paheld@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -32,7 +18,6 @@
</span><span class="cx"> use Bugzilla::CGI;
</span><span class="cx"> use Bugzilla::Search::Saved;
</span><span class="cx"> use Bugzilla::Error;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><span class="cx"> use Storable qw(dclone);
</span><span class="lines">@@ -40,10 +25,10 @@
</span><span class="cx"> # Maps parameters that control columns to the names of columns.
</span><span class="cx"> use constant COLUMN_PARAMS =&gt; {
</span><span class="cx">     'useclassification'   =&gt; ['classification'],
</span><del>-    'usebugaliases'       =&gt; ['alias'],
</del><span class="cx">     'usetargetmilestone'  =&gt; ['target_milestone'],
</span><span class="cx">     'useqacontact'        =&gt; ['qa_contact', 'qa_contact_realname'],
</span><span class="cx">     'usestatuswhiteboard' =&gt; ['status_whiteboard'],
</span><ins>+    'timetrackinggroup'   =&gt; ['deadline'],
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # We only show these columns if an object of this type exists in the
</span><span class="lines">@@ -53,7 +38,7 @@
</span><span class="cx">     'Bugzilla::Keyword' =&gt; 'keywords',
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;login();
</del><ins>+my $user = Bugzilla-&gt;login();
</ins><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -77,7 +62,7 @@
</span><span class="cx">     delete $columns-&gt;{$column} if !$class-&gt;any_exist;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (!Bugzilla-&gt;user-&gt;is_timetracker) {
</del><ins>+if (!$user-&gt;is_timetracker) {
</ins><span class="cx">     foreach my $column (TIMETRACKING_FIELDS) {
</span><span class="cx">         delete $columns-&gt;{$column};
</span><span class="cx">     }
</span><span class="lines">@@ -138,7 +123,7 @@
</span><span class="cx">     $vars-&gt;{'message'} = &quot;change_columns&quot;;
</span><span class="cx"> 
</span><span class="cx">     if ($cgi-&gt;param('save_columns_for_search')
</span><del>-        &amp;&amp; defined $search &amp;&amp; $search-&gt;user-&gt;id == Bugzilla-&gt;user-&gt;id) 
</del><ins>+        &amp;&amp; defined $search &amp;&amp; $search-&gt;user-&gt;id == $user-&gt;id)
</ins><span class="cx">     {
</span><span class="cx">         my $params = new Bugzilla::CGI($search-&gt;url);
</span><span class="cx">         $params-&gt;param('columnlist', join(&quot;,&quot;, @collist));
</span><span class="lines">@@ -188,7 +173,7 @@
</span><span class="cx"> 
</span><span class="cx"> my $search;
</span><span class="cx"> if (defined $cgi-&gt;param('query_based_on')) {
</span><del>-    my $searches = Bugzilla-&gt;user-&gt;queries;
</del><ins>+    my $searches = $user-&gt;queries;
</ins><span class="cx">     my ($search) = grep($_-&gt;name eq $cgi-&gt;param('query_based_on'), @$searches);
</span><span class="cx"> 
</span><span class="cx">     if ($search) {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcollectstatspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/collectstats.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/collectstats.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/collectstats.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;,
-#                 Harrison Page &lt;harrison@netscape.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Richard Walters &lt;rwalters@qualcomm.com&gt;
-#                 Jean-Sebastien Guay &lt;jean_seb@hybride.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Getopt::Long qw(:config bundling);
</span><span class="lines">@@ -56,6 +40,10 @@
</span><span class="cx"> my $datadir = bz_locations()-&gt;{'datadir'};
</span><span class="cx"> my $graphsdir = bz_locations()-&gt;{'graphsdir'};
</span><span class="cx"> 
</span><ins>+# We use a dummy product instance with ID 0, representing all products
+my $product_all = {id =&gt; 0, name =&gt; '-All-'};
+bless($product_all, 'Bugzilla::Product');
+
</ins><span class="cx"> # Tidy up after graphing module
</span><span class="cx"> my $cwd = Cwd::getcwd();
</span><span class="cx"> if (chdir($graphsdir)) {
</span><span class="lines">@@ -138,7 +126,7 @@
</span><span class="cx"> my $tstart = time;
</span><span class="cx"> 
</span><span class="cx"> my @myproducts = Bugzilla::Product-&gt;get_all;
</span><del>-unshift(@myproducts, &quot;-All-&quot;);
</del><ins>+unshift(@myproducts, $product_all);
</ins><span class="cx"> 
</span><span class="cx"> my $dir = &quot;$datadir/mining&quot;;
</span><span class="cx"> if (!-d $dir) {
</span><span class="lines">@@ -158,7 +146,7 @@
</span><span class="cx"> 
</span><span class="cx"> my $tend = time;
</span><span class="cx"> # Uncomment the following line for performance testing.
</span><del>-#print &quot;Total time taken &quot; . delta_time($tstart, $tend) . &quot;\n&quot;;
</del><ins>+#say &quot;Total time taken &quot; . delta_time($tstart, $tend);
</ins><span class="cx"> 
</span><span class="cx"> CollectSeriesData();
</span><span class="cx"> 
</span><span class="lines">@@ -167,18 +155,8 @@
</span><span class="cx">     my $product = shift;
</span><span class="cx">     my $when = localtime (time);
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-    my $product_id;
</del><span class="cx"> 
</span><del>-    if (ref $product) {
-        $product_id = $product-&gt;id;
-        $product = $product-&gt;name;
-    }
-
-    # NB: Need to mangle the product for the filename, but use the real
-    # product name in the query
-    my $file_product = $product;
-    $file_product =~ s/\//-/gs;
-    my $file = join '/', $dir, $file_product;
</del><ins>+    my $file = join '/', $dir, $product-&gt;id;
</ins><span class="cx">     my $exists = -f $file;
</span><span class="cx"> 
</span><span class="cx">     # if the file exists, get the old status and resolution list for that product.
</span><span class="lines">@@ -204,7 +182,7 @@
</span><span class="cx">     my $status_sql = q{SELECT COUNT(*) FROM bugs WHERE bug_status = ?};
</span><span class="cx">     my $reso_sql   = q{SELECT COUNT(*) FROM bugs WHERE resolution = ?};
</span><span class="cx"> 
</span><del>-    if ($product ne '-All-') {
</del><ins>+    if ($product-&gt;id) {
</ins><span class="cx">         $status_sql .= q{ AND product_id = ?};
</span><span class="cx">         $reso_sql   .= q{ AND product_id = ?};
</span><span class="cx">     }
</span><span class="lines">@@ -215,13 +193,13 @@
</span><span class="cx">     my @values ;
</span><span class="cx">     foreach my $status (@statuses) {
</span><span class="cx">         @values = ($status);
</span><del>-        push (@values, $product_id) if ($product ne '-All-');
</del><ins>+        push (@values, $product-&gt;id) if ($product-&gt;id);
</ins><span class="cx">         my $count = $dbh-&gt;selectrow_array($sth_status, undef, @values);
</span><span class="cx">         push(@row, $count);
</span><span class="cx">     }
</span><span class="cx">     foreach my $resolution (@resolutions) {
</span><span class="cx">         @values = ($resolution);
</span><del>-        push (@values, $product_id) if ($product ne '-All-');
</del><ins>+        push (@values, $product-&gt;id) if ($product-&gt;id);
</ins><span class="cx">         my $count = $dbh-&gt;selectrow_array($sth_reso, undef, @values);
</span><span class="cx">         push(@row, $count);
</span><span class="cx">     }
</span><span class="lines">@@ -228,6 +206,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!$exists || scalar(@data)) {
</span><span class="cx">         my $fields = join('|', ('DATE', @statuses, @resolutions));
</span><ins>+        my $product_name = $product-&gt;name;
</ins><span class="cx">         print DATA &lt;&lt;FIN;
</span><span class="cx"> # Bugzilla Daily Bug Stats
</span><span class="cx"> #
</span><span class="lines">@@ -234,7 +213,7 @@
</span><span class="cx"> # Do not edit me! This file is generated.
</span><span class="cx"> #
</span><span class="cx"> # fields: $fields
</span><del>-# Product: $product
</del><ins>+# Product: $product_name
</ins><span class="cx"> # Created: $when
</span><span class="cx"> FIN
</span><span class="cx">     }
</span><span class="lines">@@ -303,24 +282,14 @@
</span><span class="cx">     my $when = localtime(time());
</span><span class="cx">     my $tstart = time();
</span><span class="cx"> 
</span><del>-    # NB: Need to mangle the product for the filename, but use the real
-    # product name in the query
-    if (ref $product) {
-        $product = $product-&gt;name;
-    }
-    my $file_product = $product;
-    $file_product =~ s/\//-/gs;
-    my $file = join '/', $dir, $file_product;
</del><ins>+    my $file = join '/', $dir, $product-&gt;id;
</ins><span class="cx"> 
</span><span class="cx">     my $and_product = &quot;&quot;;
</span><del>-    my $from_product = &quot;&quot;;
</del><span class="cx"> 
</span><span class="cx">     my @values = ();
</span><del>-    if ($product ne '-All-') {
-        $and_product = q{ AND products.name = ?};
-        $from_product = q{ INNER JOIN products 
-                          ON bugs.product_id = products.id};
-        push (@values, $product);
</del><ins>+    if ($product-&gt;id) {
+        $and_product = q{ AND product_id = ?};
+        push (@values, $product-&gt;id);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Determine the start date from the date the first bug in the
</span><span class="lines">@@ -330,7 +299,7 @@
</span><span class="cx">                 $dbh-&gt;sql_to_days('creation_ts') . q{ AS start_day, } .
</span><span class="cx">                 $dbh-&gt;sql_to_days('current_date') . q{ AS end_day, } . 
</span><span class="cx">                 $dbh-&gt;sql_to_days(&quot;'1970-01-01'&quot;) . 
</span><del>-                 qq{ FROM bugs $from_product 
</del><ins>+                 qq{ FROM bugs
</ins><span class="cx">                    WHERE } . $dbh-&gt;sql_to_days('creation_ts') . 
</span><span class="cx">                          qq{ IS NOT NULL $and_product 
</span><span class="cx">                 ORDER BY start_day } . $dbh-&gt;sql_limit(1);
</span><span class="lines">@@ -340,8 +309,9 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (open DATA, &quot;&gt;$file&quot;) {
</del><ins>+    if (open DATA, &quot;&gt;&quot;, $file) {
</ins><span class="cx">         my $fields = join('|', ('DATE', @statuses, @resolutions));
</span><ins>+        my $product_name = $product-&gt;name;
</ins><span class="cx">         print DATA &lt;&lt;FIN;
</span><span class="cx"> # Bugzilla Daily Bug Stats
</span><span class="cx"> #
</span><span class="lines">@@ -348,7 +318,7 @@
</span><span class="cx"> # Do not edit me! This file is generated.
</span><span class="cx"> #
</span><span class="cx"> # fields: $fields
</span><del>-# Product: $product
</del><ins>+# Product: $product_name
</ins><span class="cx"> # Created: $when
</span><span class="cx"> FIN
</span><span class="cx">         # For each day, generate a line of statistics.
</span><span class="lines">@@ -357,12 +327,13 @@
</span><span class="cx">         for (my $day = $start + 1; $day &lt;= $end; $day++) {
</span><span class="cx">             # Some output feedback
</span><span class="cx">             my $percent_done = ($day - $start - 1) * 100 / $total_days;
</span><del>-            printf &quot;\rRegenerating $product \[\%.1f\%\%]&quot;, $percent_done;
</del><ins>+            printf &quot;\rRegenerating %s \[\%.1f\%\%]&quot;, $product_name,
+                                                     $percent_done;
</ins><span class="cx"> 
</span><span class="cx">             # Get a list of bugs that were created the previous day, and
</span><span class="cx">             # add those bugs to the list of bugs for this product.
</span><span class="cx">             $query = qq{SELECT bug_id 
</span><del>-                          FROM bugs $from_product 
</del><ins>+                          FROM bugs
</ins><span class="cx">                          WHERE bugs.creation_ts &lt; } . 
</span><span class="cx">                          $dbh-&gt;sql_from_days($day - 1) . 
</span><span class="cx">                          q{ AND bugs.creation_ts &gt;= } . 
</span><span class="lines">@@ -405,8 +376,8 @@
</span><span class="cx"> 
</span><span class="cx">         # Finish up output feedback for this product.
</span><span class="cx">         my $tend = time;
</span><del>-        print &quot;\rRegenerating $product \[100.0\%] - &quot; .
-            delta_time($tstart, $tend) . &quot;\n&quot;;
</del><ins>+        say &quot;\rRegenerating &quot; . $product_name . ' [100.0%] - ' .
+            delta_time($tstart, $tend);
</ins><span class="cx"> 
</span><span class="cx">         close DATA;
</span><span class="cx">     }
</span><span class="lines">@@ -504,8 +475,7 @@
</span><span class="cx">                                               'fields' =&gt; [&quot;bug_id&quot;],
</span><span class="cx">                                               'allow_unlimited' =&gt; 1,
</span><span class="cx">                                               'user'   =&gt; $user);
</span><del>-            my $sql = $search-&gt;sql;
-            $data = $shadow_dbh-&gt;selectall_arrayref($sql);
</del><ins>+            $data = $search-&gt;data;
</ins><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         if (!$@) {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgconfigcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/config.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/config.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/config.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frank Becker &lt;Frank@Frank-Becker.de&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -44,15 +25,16 @@
</span><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_OPTIONAL);
</span><span class="cx"> my $cgi  = Bugzilla-&gt;cgi;
</span><span class="cx"> 
</span><ins>+# Get data from the shadow DB as they don't change very often.
+Bugzilla-&gt;switch_to_shadow_db;
+
</ins><span class="cx"> # If the 'requirelogin' parameter is on and the user is not
</span><span class="cx"> # authenticated, return empty fields.
</span><span class="cx"> if (Bugzilla-&gt;params-&gt;{'requirelogin'} &amp;&amp; !$user-&gt;id) {
</span><span class="cx">     display_data();
</span><ins>+    exit;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Get data from the shadow DB as they don't change very often.
-Bugzilla-&gt;switch_to_shadow_db;
-
</del><span class="cx"> # Pass a bunch of Bugzilla configuration to the templates.
</span><span class="cx"> my $vars = {};
</span><span class="cx"> $vars-&gt;{'priority'}  = get_legal_field_values('priority');
</span><span class="lines">@@ -59,7 +41,7 @@
</span><span class="cx"> $vars-&gt;{'severity'}  = get_legal_field_values('bug_severity');
</span><span class="cx"> $vars-&gt;{'platform'}  = get_legal_field_values('rep_platform');
</span><span class="cx"> $vars-&gt;{'op_sys'}    = get_legal_field_values('op_sys');
</span><del>-$vars-&gt;{'keyword'}    = [map($_-&gt;name, Bugzilla::Keyword-&gt;get_all)];
</del><ins>+$vars-&gt;{'keywords'}  = [Bugzilla::Keyword-&gt;get_all];
</ins><span class="cx"> $vars-&gt;{'resolution'} = get_legal_field_values('resolution');
</span><span class="cx"> $vars-&gt;{'status'}    = get_legal_field_values('bug_status');
</span><span class="cx"> $vars-&gt;{'custom_fields'} =
</span><span class="lines">@@ -84,6 +66,18 @@
</span><span class="cx"> # We set the 2nd argument to 1 to also preload flag types.
</span><span class="cx"> Bugzilla::Product::preload($vars-&gt;{'products'}, 1);
</span><span class="cx"> 
</span><ins>+if (Bugzilla-&gt;params-&gt;{'useclassification'}) {
+    my $class = {};
+    # Get all classifications with at least one selectable product.
+    foreach my $product (@{$vars-&gt;{'products'}}) {
+        $class-&gt;{$product-&gt;classification_id} ||= $product-&gt;classification;
+    }
+    my @classifications = sort {$a-&gt;sortkey &lt;=&gt; $b-&gt;sortkey
+        || lc($a-&gt;name) cmp lc($b-&gt;name)} (values %$class);
+    $vars-&gt;{'class_names'} = $class;
+    $vars-&gt;{'classifications'} = \@classifications;
+}
+
</ins><span class="cx"> # Allow consumers to specify whether or not they want flag data.
</span><span class="cx"> if (defined $cgi-&gt;param('flags')) {
</span><span class="cx">     $vars-&gt;{'show_flags'} = $cgi-&gt;param('flags');
</span><span class="lines">@@ -107,9 +101,23 @@
</span><span class="cx"> # Generate a list of fields that can be queried.
</span><span class="cx"> my @fields = @{Bugzilla::Field-&gt;match({obsolete =&gt; 0})};
</span><span class="cx"> # Exclude fields the user cannot query.
</span><del>-if (!Bugzilla-&gt;user-&gt;is_timetracker) {
-    @fields = grep { $_-&gt;name !~ /^(estimated_time|remaining_time|work_time|percentage_complete|deadline)$/ } @fields;
</del><ins>+if (!$user-&gt;is_timetracker) {
+    foreach my $tt_field (TIMETRACKING_FIELDS) {
+        @fields = grep { $_-&gt;name ne $tt_field } @fields;
+    }
</ins><span class="cx"> }
</span><ins>+
+my %FIELD_PARAMS = (
+    classification    =&gt; 'useclassification',
+    target_milestone  =&gt; 'usetargetmilestone',
+    qa_contact        =&gt; 'useqacontact',
+    status_whiteboard =&gt; 'usestatuswhiteboard',
+    see_also          =&gt; 'use_see_also',
+);
+foreach my $field (@fields) {
+    my $param = $FIELD_PARAMS{$field-&gt;name};
+    $field-&gt;{is_active} =  Bugzilla-&gt;params-&gt;{$param} if $param;
+}
</ins><span class="cx"> $vars-&gt;{'field'} = \@fields;
</span><span class="cx"> 
</span><span class="cx"> display_data($vars);
</span><span class="lines">@@ -136,31 +144,13 @@
</span><span class="cx">     utf8::encode($digest_data) if utf8::is_utf8($digest_data);
</span><span class="cx">     my $digest = md5_base64($digest_data);
</span><span class="cx"> 
</span><del>-    # ETag support.
-    my $if_none_match = $cgi-&gt;http('If-None-Match') || &quot;&quot;;
-    my $found304;
-    my @if_none = split(/[\s,]+/, $if_none_match);
-    foreach my $if_none (@if_none) {
-        # remove quotes from begin and end of the string
-        $if_none =~ s/^\&quot;//g;
-        $if_none =~ s/\&quot;$//g;
-        if ($if_none eq $digest or $if_none eq '*') {
-            # leave the loop after the first match
-            $found304 = $if_none;
-            last;
-        }
-    }

-   if ($found304) {
-        print $cgi-&gt;header(-type =&gt; 'text/html',
-                           -ETag =&gt; $found304,
</del><ins>+    if ($cgi-&gt;check_etag($digest)) {
+        print $cgi-&gt;header(-ETag   =&gt; $digest,
</ins><span class="cx">                            -status =&gt; '304 Not Modified');
</span><ins>+        exit;
</ins><span class="cx">     }
</span><del>-    else {
-        # Return HTTP headers.
-        print $cgi-&gt;header (-ETag =&gt; $digest,
-                            -type =&gt; $format-&gt;{'ctype'});
-        print $output;
-    }
-    exit;
</del><ins>+
+    print $cgi-&gt;header (-ETag =&gt; $digest,
+                        -type =&gt; $format-&gt;{'ctype'});
+    print $output;
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribhtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribBugzillapm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/contrib/Bugzilla.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/Bugzilla.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/contrib/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+package Bugzilla;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+#######################################################################
+# The goal of this tiny module is to let Bugzilla packagers of        #
+# various Linux distributions easily specify the path to the Bugzilla #
+# modules without having to edit each *.cgi script manually to fix    #
+# the | use lib qw(. lib) | line.                                     #
+#                                                                     #
+# If the real Bugzilla.pm module and the Bugzilla/ directory are in   #
+# the same directory as *.cgi scripts (which is the default), then    #
+# this module is useless and has no effect.                           #
+# If the real Bugzilla.pm module and other Bugzilla/*.pm modules are  #
+# moved elsewhere, then the *.cgi scripts will call this module which #
+# will give them the location of the Bugzilla modules.                #
+#######################################################################
+#                                                                     #
+# IMPORTANT NOTE: This module must be in a place where Perl will find #
+# it by default, e.g. in /usr/lib/perl5/vendor_perl/5.x.y/.           #
+#                                                                     #
+#######################################################################
+#                                                                     #
+# Specify the path to the real Bugzilla.pm file in BZ_ROOT_DIR.       #
+# Some Linux distros may set it to '/usr/share/bugzilla/lib'.         #
+#                                                                     #
+# Specify the path to the Bugzilla lib/ directory in BZ_LIB_DIR.      #
+# If your Linux distro doesn't use it, make it point to BZ_ROOT_DIR.  #
+#                                                                     #
+#######################################################################
+
+use constant BZ_ROOT_DIR =&gt; '/usr/share/bugzilla/lib';
+use constant BZ_LIB_DIR =&gt; BZ_ROOT_DIR . '/lib';
+
+#######################################################################
+#   DO NOT EDIT THE CODE BELOW, UNLESS YOU KNOW WHAT YOU ARE DOING!!  #
+#######################################################################
+
+use lib (BZ_ROOT_DIR, BZ_LIB_DIR);
+
+# Now load the real Bugzilla.pm file.
+BEGIN { my $bugzilla = BZ_ROOT_DIR . '/Bugzilla.pm'; require $bugzilla; }
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribREADME"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/README (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/README        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/README        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -20,10 +20,6 @@
</span><span class="cx">              cmdline/ -- Various commands for querying your Bugzilla 
</span><span class="cx">                          installation.
</span><span class="cx"> 
</span><del>-       cvs-update.pl --  Script to keep a record of all CVS updates made 
-                         from a given directory. The log is useful when
-                         changes need to be backed out.
-
</del><span class="cx">             jb2bz.py --  Script to import bugs from JitterBug to Bugzilla.
</span><span class="cx"> 
</span><span class="cx">       merge-users.pl --  Script to merge two user accounts. The activities
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbugzillaqueuerhel"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.rhel (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.rhel        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.rhel        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><span class="cx"> #!/bin/bash
</span><del>-# 
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+
</ins><span class="cx"> # bugzilla-queue This starts, stops, and restarts the Bugzilla jobqueue.pl
</span><span class="cx"> #                 daemon, which manages sending queued mail and possibly
</span><span class="cx"> #                 other queued tasks in the future.
</span><span class="lines">@@ -63,7 +70,7 @@
</span><span class="cx"> start ()
</span><span class="cx"> {
</span><span class="cx">     if [ -f &quot;$PIDFILE&quot; ]; then
</span><del>-        checkpid `cat $PIDFILE` &amp;&amp; return 0
</del><ins>+        checkpid `cat $PIDFILE` &amp;&amp; return 2
</ins><span class="cx">     fi
</span><span class="cx">     echo -n &quot;Starting $NAME: &quot;
</span><span class="cx">     touch $PIDFILE
</span><span class="lines">@@ -78,7 +85,7 @@
</span><span class="cx"> 
</span><span class="cx"> stop ()
</span><span class="cx"> {
</span><del>-    [ -f /var/lock/subsys/$NAME ] || return 0
</del><ins>+    [ -f /var/lock/subsys/$NAME ] || return 2
</ins><span class="cx">     echo -n &quot;Killing $NAME: &quot;
</span><span class="cx">     killproc $NAME
</span><span class="cx">     echo
</span><span class="lines">@@ -93,7 +100,7 @@
</span><span class="cx"> 
</span><span class="cx"> condrestart ()
</span><span class="cx"> {
</span><del>-    [ -e /var/lock/subsys/$NAME ] &amp;&amp; restart || return 0
</del><ins>+    [ -e /var/lock/subsys/$NAME ] &amp;&amp; restart || return 2
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -103,7 +110,7 @@
</span><span class="cx">     status) $BIN -p $PIDFILE -n $NAME check; RETVAL=$?;;
</span><span class="cx">     restart) restart; RETVAL=$? ;;
</span><span class="cx">     condrestart) condrestart; RETVAL=$? ;;
</span><del>-    *) usage ; RETVAL=2 ;;
</del><ins>+    *) usage ;;
</ins><span class="cx"> esac
</span><span class="cx"> 
</span><span class="cx"> exit $RETVAL
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbugzillaqueuesuse"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.suse (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.suse        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bugzilla-queue.suse        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><span class="cx"> #!/bin/bash
</span><del>-# 
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+
</ins><span class="cx"> # bugzilla-queue This starts, stops, and restarts the Bugzilla jobqueue.pl
</span><span class="cx"> #                 daemon, which manages sending queued mail and possibly
</span><span class="cx"> #                 other queued tasks in the future.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbugzillasubmitbugzillasubmit"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><del>-#!/usr/bin/env python 
</del><ins>+#!/usr/bin/env python
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+
</ins><span class="cx"> # bugzilla-submit: a command-line script to post bugs to a Bugzilla instance
</span><span class="cx"> #
</span><span class="cx"> # Authors: Christian Reis &lt;kiko@async.com.br&gt;
</span><span class="lines">@@ -298,4 +305,3 @@
</span><span class="cx">                  'form_name'         : 'enter_bug'})
</span><span class="cx"> 
</span><span class="cx">     submit_bug_POST(bugzilla, data)
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbugzillasubmitbugzillasubmitxml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit.xml (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit.xml        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bugzilla-submit/bugzilla-submit.xml        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,4 +1,11 @@
</span><span class="cx"> &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
</span><ins>+&lt;!-- This Source Code Form is subject to the terms of the Mozilla Public
+     License, v. 2.0. If a copy of the MPL was not distributed with this
+     file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+     This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+     defined by the Mozilla Public License, v. 2.0.
+--&gt;
</ins><span class="cx"> &lt;!DOCTYPE refentry PUBLIC 
</span><span class="cx">    &quot;-//OASIS//DTD DocBook XML V4.1.2//EN&quot;
</span><span class="cx">    &quot;docbook/docbookx.dtd&quot;&gt;
</span><span class="lines">@@ -218,4 +225,3 @@
</span><span class="cx"> &amp;lt;esr@thyrsus.com&amp;gt;.&lt;/para&gt; 
</span><span class="cx"> &lt;/refsect1&gt; 
</span><span class="cx"> &lt;/refentry&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbz_webservice_demopl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bz_webservice_demo.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bz_webservice_demo.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bz_webservice_demo.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,10 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the “License”); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an “AS
-# IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Mads Bondo Dydensborg &lt;mbd@dbc.dk&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -28,13 +18,15 @@
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(lib);
</span><span class="cx"> use Getopt::Long;
</span><span class="cx"> use Pod::Usage;
</span><span class="cx"> use File::Basename qw(dirname);
</span><span class="cx"> use File::Spec;
</span><del>-use HTTP::Cookies;
</del><span class="cx"> use XMLRPC::Lite;
</span><span class="cx"> 
</span><span class="cx"> # If you want, say “use Bugzilla::WebService::Constants” here to get access
</span><span class="lines">@@ -46,7 +38,8 @@
</span><span class="cx"> my $Bugzilla_uri;
</span><span class="cx"> my $Bugzilla_login;
</span><span class="cx"> my $Bugzilla_password;
</span><del>-my $Bugzilla_remember;
</del><ins>+my $Bugzilla_restrict;
+my $Bugzilla_token;
</ins><span class="cx"> my $bug_id;
</span><span class="cx"> my $product_name;
</span><span class="cx"> my $create_file_name;
</span><span class="lines">@@ -55,12 +48,13 @@
</span><span class="cx"> my $private;
</span><span class="cx"> my $work_time;
</span><span class="cx"> my $fetch_extension_info = 0;
</span><ins>+my $debug;
</ins><span class="cx"> 
</span><span class="cx"> GetOptions('help|h|?'       =&gt; \$help,
</span><span class="cx">            'uri=s'          =&gt; \$Bugzilla_uri,
</span><span class="cx">            'login:s'        =&gt; \$Bugzilla_login,
</span><span class="cx">            'password=s'     =&gt; \$Bugzilla_password,
</span><del>-           'rememberlogin!' =&gt; \$Bugzilla_remember,
</del><ins>+           'restrictlogin!' =&gt; \$Bugzilla_restrict,
</ins><span class="cx">            'bug_id:s'       =&gt; \$bug_id,
</span><span class="cx">            'product_name:s' =&gt; \$product_name,
</span><span class="cx">            'create:s'       =&gt; \$create_file_name,
</span><span class="lines">@@ -68,7 +62,8 @@
</span><span class="cx">            'comment:s'      =&gt; \$add_comment,
</span><span class="cx">            'private:i'      =&gt; \$private,
</span><span class="cx">            'worktime:f'     =&gt; \$work_time,
</span><del>-           'extension_info'    =&gt; \$fetch_extension_info
</del><ins>+           'extension_info' =&gt; \$fetch_extension_info,
+           'debug'          =&gt; \$debug
</ins><span class="cx">           ) or pod2usage({'-verbose' =&gt; 0, '-exitval' =&gt; 1});
</span><span class="cx"> 
</span><span class="cx"> =head1 OPTIONS
</span><span class="lines">@@ -94,14 +89,14 @@
</span><span class="cx"> 
</span><span class="cx"> Bugzilla password. Specify this together with B&lt;--login&gt; in order to log in.
</span><span class="cx"> 
</span><del>-=item --rememberlogin
</del><ins>+=item --restrictlogin
</ins><span class="cx"> 
</span><del>-Gives access to Bugzilla's &quot;Bugzilla_remember&quot; option.
-Specify this option while logging in to do the same thing as ticking the
-C&lt;Bugzilla_remember&gt; box on Bugilla's log in form.
</del><ins>+Gives access to Bugzilla's &quot;Bugzilla_restrictlogin&quot; option.
+Specify this option while logging in to restrict the login token to be
+only valid from the IP address which called
</ins><span class="cx"> Don't specify this option to do the same thing as unchecking the box.
</span><span class="cx"> 
</span><del>-See Bugzilla's rememberlogin parameter for details.
</del><ins>+See Bugzilla's restrictlogin parameter for details.
</ins><span class="cx"> 
</span><span class="cx"> =item --bug_id
</span><span class="cx"> 
</span><span class="lines">@@ -140,6 +135,10 @@
</span><span class="cx"> If specified on the command line, the script returns the information about the
</span><span class="cx"> extensions that are installed.
</span><span class="cx"> 
</span><ins>+=item --debug
+
+Enable tracing at the debug level of XMLRPC requests and responses.
+
</ins><span class="cx"> =back
</span><span class="cx"> 
</span><span class="cx"> =head1 DESCRIPTION
</span><span class="lines">@@ -155,17 +154,6 @@
</span><span class="cx"> # We will use this variable for function call results.
</span><span class="cx"> my $result;
</span><span class="cx"> 
</span><del>-# Open our cookie jar. We save it into a file so that we may re-use cookies
-# to avoid the need of logging in every time. You're encouraged, but not
-# required, to do this in your applications, too.
-# Cookies are only saved if Bugzilla's rememberlogin parameter is set to one of
-#    - on
-#    - defaulton (and you didn't pass 0 as third parameter to User.login)
-#    - defaultoff (and you passed 1 as third parameter to User.login)
-my $cookie_jar =
-    new HTTP::Cookies('file' =&gt; File::Spec-&gt;catdir(dirname($0), 'cookies.txt'),
-                      'autosave' =&gt; 1);
-
</del><span class="cx"> =head2 Initialization
</span><span class="cx"> 
</span><span class="cx"> Using the XMLRPC::Lite class, you set up a proxy, as shown in this script.
</span><span class="lines">@@ -174,9 +162,18 @@
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><del>-my $proxy = XMLRPC::Lite-&gt;proxy($Bugzilla_uri,
-                                'cookie_jar' =&gt; $cookie_jar);
</del><ins>+my $proxy = XMLRPC::Lite-&gt;proxy($Bugzilla_uri);
</ins><span class="cx"> 
</span><ins>+=head2 Debugging
+
+Enable tracing at the debug level of XMLRPC requests and responses if requested.
+
+=cut
+
+if ($debug) {
+   $proxy-&gt;import(+trace =&gt; 'debug');
+}
+
</ins><span class="cx"> =head2 Checking Bugzilla's version
</span><span class="cx"> 
</span><span class="cx"> To make sure the Bugzilla you're connecting to supports the methods you wish to
</span><span class="lines">@@ -199,25 +196,6 @@
</span><span class="cx"> _die_on_fault($soapresult);
</span><span class="cx"> print 'Bugzilla\'s timezone is ' . $soapresult-&gt;result()-&gt;{timezone} . &quot;.\n&quot;;
</span><span class="cx"> 
</span><del>-=head2 Getting Extension Information
-
-Returns all the information any extensions have decided to provide to the webservice.
-
-=cut
-
-if ($fetch_extension_info) {
-    $soapresult = $proxy-&gt;call('Bugzilla.extensions');
-    _die_on_fault($soapresult);
-    my $extensions = $soapresult-&gt;result()-&gt;{extensions};
-    foreach my $extensionname (keys(%$extensions)) {
-        print &quot;Extension '$extensionname' information\n&quot;;
-        my $extension = $extensions-&gt;{$extensionname};
-        foreach my $data (keys(%$extension)) {
-            print '  ' . $data . ' =&gt; ' . $extension-&gt;{$data} . &quot;\n&quot;;
-        }
-    }
-}
-
</del><span class="cx"> =head2 Logging In and Out
</span><span class="cx"> 
</span><span class="cx"> =head3 Using Bugzilla's Environment Authentication
</span><span class="lines">@@ -232,12 +210,10 @@
</span><span class="cx"> Use the C&lt;User.login&gt; and C&lt;User.logout&gt; calls to log in and out, as shown
</span><span class="cx"> in this script.
</span><span class="cx"> 
</span><del>-The C&lt;Bugzilla_remember&gt; parameter is optional.
-If omitted, Bugzilla's defaults apply (as specified by its C&lt;rememberlogin&gt;
</del><ins>+The C&lt;Bugzilla_restrictlogin&gt; parameter is optional.
+If omitted, Bugzilla's defaults apply (as specified by its C&lt;restrictlogin&gt;
</ins><span class="cx"> parameter).
</span><span class="cx"> 
</span><del>-Bugzilla hands back cookies you'll need to pass along during your work calls.
-
</del><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> if (defined($Bugzilla_login)) {
</span><span class="lines">@@ -244,9 +220,10 @@
</span><span class="cx">     if ($Bugzilla_login ne '') {
</span><span class="cx">         # Log in.
</span><span class="cx">         $soapresult = $proxy-&gt;call('User.login',
</span><del>-                                   { login =&gt; $Bugzilla_login, 
</del><ins>+                                   { login =&gt; $Bugzilla_login,
</ins><span class="cx">                                      password =&gt; $Bugzilla_password,
</span><del>-                                     remember =&gt; $Bugzilla_remember } );
</del><ins>+                                     restrict_login =&gt; $Bugzilla_restrict } );
+        $Bugzilla_token = $soapresult-&gt;result-&gt;{token};
</ins><span class="cx">         _die_on_fault($soapresult);
</span><span class="cx">         print &quot;Login successful.\n&quot;;
</span><span class="cx">     }
</span><span class="lines">@@ -258,17 +235,34 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+=head2 Getting Extension Information
+
+Returns all the information any extensions have decided to provide to the webservice.
+
+=cut
+
+if ($fetch_extension_info) {
+    $soapresult = $proxy-&gt;call('Bugzilla.extensions', {token =&gt; $Bugzilla_token});
+    _die_on_fault($soapresult);
+    my $extensions = $soapresult-&gt;result()-&gt;{extensions};
+    foreach my $extensionname (keys(%$extensions)) {
+        print &quot;Extension '$extensionname' information\n&quot;;
+        my $extension = $extensions-&gt;{$extensionname};
+        foreach my $data (keys(%$extension)) {
+            print '  ' . $data . ' =&gt; ' . $extension-&gt;{$data} . &quot;\n&quot;;
+        }
+    }
+}
+
</ins><span class="cx"> =head2 Retrieving Bug Information
</span><span class="cx"> 
</span><span class="cx"> Call C&lt;Bug.get&gt; with the ID of the bug you want to know more of.
</span><del>-The call will return a C&lt;Bugzilla::Bug&gt; object. 
</del><ins>+The call will return a C&lt;Bugzilla::Bug&gt; object.
</ins><span class="cx"> 
</span><del>-Note: You can also use &quot;Bug.get_bugs&quot; for compatibility with Bugzilla 3.0 API.
-
</del><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> if ($bug_id) {
</span><del>-    $soapresult = $proxy-&gt;call('Bug.get', { ids =&gt; [$bug_id] });
</del><ins>+    $soapresult = $proxy-&gt;call('Bug.get', { ids =&gt; [$bug_id], token =&gt; $Bugzilla_token});
</ins><span class="cx">     _die_on_fault($soapresult);
</span><span class="cx">     $result = $soapresult-&gt;result;
</span><span class="cx">     my $bug = $result-&gt;{bugs}-&gt;[0];
</span><span class="lines">@@ -293,7 +287,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> if ($product_name) {
</span><del>-    $soapresult = $proxy-&gt;call('Product.get', {'names' =&gt; [$product_name]});
</del><ins>+    $soapresult = $proxy-&gt;call('Product.get', {'names' =&gt; [$product_name], token =&gt; $Bugzilla_token});
</ins><span class="cx">     _die_on_fault($soapresult);
</span><span class="cx">     $result = $soapresult-&gt;result()-&gt;{'products'}-&gt;[0];
</span><span class="cx"> 
</span><span class="lines">@@ -319,7 +313,7 @@
</span><span class="cx"> =head2 Creating A Bug
</span><span class="cx"> 
</span><span class="cx"> Call C&lt;Bug.create&gt; with the settings read from the file indicated on
</span><del>-the command line. The file must contain a valid anonymous hash to use 
</del><ins>+the command line. The file must contain a valid anonymous hash to use
</ins><span class="cx"> as argument for the call to C&lt;Bug.create&gt;.
</span><span class="cx"> The call will return a hash with a bug id for the newly created bug.
</span><span class="cx"> 
</span><span class="lines">@@ -326,7 +320,9 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> if ($create_file_name) {
</span><del>-    $soapresult = $proxy-&gt;call('Bug.create', do &quot;$create_file_name&quot; );
</del><ins>+    my $bug_fields = do &quot;$create_file_name&quot;;
+    $bug_fields-&gt;{Bugzilla_token} = $Bugzilla_token;
+    $soapresult = $proxy-&gt;call('Bug.create', \%$bug_fields);
</ins><span class="cx">     _die_on_fault($soapresult);
</span><span class="cx">     $result = $soapresult-&gt;result;
</span><span class="cx"> 
</span><span class="lines">@@ -350,7 +346,7 @@
</span><span class="cx"> =cut
</span><span class="cx"> 
</span><span class="cx"> if ($legal_field_values) {
</span><del>-    $soapresult = $proxy-&gt;call('Bug.legal_values', {field =&gt; $legal_field_values} );
</del><ins>+    $soapresult = $proxy-&gt;call('Bug.legal_values', {field =&gt; $legal_field_values, token =&gt; $Bugzilla_token} );
</ins><span class="cx">     _die_on_fault($soapresult);
</span><span class="cx">     $result = $soapresult-&gt;result;
</span><span class="cx"> 
</span><span class="lines">@@ -368,7 +364,7 @@
</span><span class="cx"> if ($add_comment) {
</span><span class="cx">     if ($bug_id) {
</span><span class="cx">         $soapresult = $proxy-&gt;call('Bug.add_comment', {id =&gt; $bug_id,
</span><del>-            comment =&gt; $add_comment, private =&gt; $private, work_time =&gt; $work_time});
</del><ins>+            comment =&gt; $add_comment, private =&gt; $private, work_time =&gt; $work_time, token =&gt; $Bugzilla_token});
</ins><span class="cx">         _die_on_fault($soapresult);
</span><span class="cx">         print &quot;Comment added.\n&quot;;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribbzdbcopypl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/bzdbcopy.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/bzdbcopy.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/bzdbcopy.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006 
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -261,4 +252,3 @@
</span><span class="cx"> The C&lt;SOURCE&gt; settings are for the database you're copying from, and 
</span><span class="cx"> the C&lt;TARGET&gt; settings are for the database you're copying to. The 
</span><span class="cx"> C&lt;DB_TYPE&gt; is the name of a DB driver from the F&lt;Bugzilla/DB/&gt; directory.
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinebugcount"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/bugcount (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/bugcount        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/bugcount        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><span class="cx"> #!/bin/sh
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> thisdir=`dirname &quot;$0&quot;`
</span><span class="cx"> bugids=`$thisdir/bugids &quot;$@&quot;`
</span><span class="cx"> if test &quot;$?&quot; != &quot;0&quot;; then echo &quot;$bugids&quot; 1&gt;&amp;2; exit 1; fi
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinebugids"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/bugids (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/bugids        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/bugids        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><span class="cx"> #!/bin/sh
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is 
-# Andreas Franke &lt;afranke@mathweb.org&gt;.
-# Corporation. Portions created by Andreas Franke are
-# Copyright (C) 2001,2005 Andreas Franke. All
-# Rights Reserved.
-#
-# Contributor(s): 
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> thisdir=`dirname &quot;$0&quot;`
</span><span class="cx"> buglist=&quot;$thisdir/buglist&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinebuglist"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/buglist (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/buglist        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/buglist        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><span class="cx"> #!/bin/sh
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is 
-# Andreas Franke &lt;afranke@mathweb.org&gt;.
-# Corporation. Portions created by Andreas Franke are
-# Copyright (C) 2001,2005 Andreas Franke. All
-# Rights Reserved.
-#
-# Contributor(s): 
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> defaultcolumnlist=&quot;severity priority platform status resolution target_milestone status_whiteboard keywords summaryfull&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinebugs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/bugs (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/bugs        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/bugs        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><span class="cx"> #!/bin/sh
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> thisdir=`dirname &quot;$0&quot;`
</span><span class="cx"> bugids=`$thisdir/bugids &quot;$@&quot;` || echo &quot;$bugids&quot; 1&gt;&amp;2 &amp;&amp; exit 1
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinebugslink"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/bugslink (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/bugslink        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/bugslink        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,8 +1,14 @@
</span><span class="cx"> #!/bin/sh
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> thisdir=`dirname &quot;$0&quot;`
</span><span class="cx"> bugids=`$thisdir/bugids &quot;$@&quot;` || echo &quot;$bugids&quot; 1&gt;&amp;2 &amp;&amp; exit 1
</span><span class="cx"> 
</span><span class="cx"> bugids=`echo &quot;$bugids&quot; | sed -e 's/ /\,/g'`
</span><span class="cx"> echo &quot;https://bugzilla.mozilla.org/buglist.cgi?ctype=html&amp;bug_id=$bugids&quot;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinemakequery"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/makequery (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/makequery        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/makequery        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><span class="cx"> #!/bin/sh
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is 
-# Andreas Franke &lt;afranke@mathweb.org&gt;.
-# Corporation. Portions created by Andreas Franke are
-# Copyright (C) 2001,2005 Andreas Franke. All
-# Rights Reserved.
-#
-# Contributor(s): 
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> conf=&quot;`dirname $0`/query.conf&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcmdlinequeryconf"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/cmdline/query.conf (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cmdline/query.conf        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cmdline/query.conf        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is 
-# Andreas Franke &lt;afranke@mathweb.org&gt;.
-# Corporation. Portions created by Andreas Franke are
-# Copyright (C) 2001 Andreas Franke. All
-# Rights Reserved.
-#
-# Contributor(s): 
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #
</span><span class="cx"> # This is `query.conf', the config file for `buglist'.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribconsolepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/console.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/console.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/console.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,13 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the &quot;License&quot;); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS IS&quot; basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is the National Aeronautics
-# and Space Administration of the United States Government.
-# Portions created by the Initial Developer are Copyright (C) 2010
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): Jesse Clark &lt;jjclark1982@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use warnings;
+
</ins><span class="cx"> use File::Basename;
</span><span class="cx"> BEGIN { chdir dirname($0) . &quot;/..&quot;; }
</span><span class="cx"> use lib qw(. lib);
</span><span class="lines">@@ -65,7 +53,7 @@
</span><span class="cx"> 
</span><span class="cx"> # p: print as a single string (normal behavior puts list items on separate lines)
</span><span class="cx"> sub p {
</span><del>-    local $^W=0; # suppress possible undefined var message 
</del><ins>+    no warnings; # suppress possible undefined var message 
</ins><span class="cx">     print(@_, &quot;\n&quot;);
</span><span class="cx">     return ();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribconvertworkflowpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/convert-workflow.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/convert-workflow.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/convert-workflow.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -164,6 +154,7 @@
</span><span class="cx">     $dbh-&gt;do('UPDATE products SET allows_unconfirmed = 1');
</span><span class="cx"> }
</span><span class="cx"> $dbh-&gt;bz_commit_transaction();
</span><ins>+Bugzilla-&gt;memcached-&gt;clear_all();
</ins><span class="cx"> 
</span><span class="cx"> print &lt;&lt;END;
</span><span class="cx"> Done. There are some things you may want to fix, now:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribcvsupdatepl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/contrib/cvs-update.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/cvs-update.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/cvs-update.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,51 +0,0 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
-#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
-
-# Keep a record of all cvs updates made from a given directory.
-#
-# Later, if changes need to be backed out, look at the log file
-# and run the cvs command with the date that you want to back
-# out to. (Probably the second to last entry).
-
-# Because this script lives in contrib, you may want to
-#   ln -s contrib/cvs-update.pl cvs-update.pl
-# from your bugzilla install directory so you can run
-# the script easily from there (./cvs-update.pl)
-
-#DATE=`date +%e/%m/%Y\ %k:%M:%S\ %Z`
-
-my ($second, $minute, $hour, $day, $month, $year) = gmtime;
-my $date = sprintf(&quot;%04d-%02d-%02d %d:%02d:%02dZ&quot;,
-                   $year+1900, $month+1, $day, $hour, $minute, $second);
-my $cmd = &quot;cvs -q update -dP&quot;;
-open LOG, &quot;&gt;&gt;cvs-update.log&quot; or die(&quot;Couldn't open cvs update log!&quot;);
-print LOG &quot;$cmd -D \&quot;$date\&quot;\n&quot;;
-close LOG;
-system(&quot;$cmd -A&quot;);
-
-# sample log file
-#cvs update -P -D &quot;11/04/2000 20:22:08 PDT&quot;
-#cvs update -P -D &quot;11/05/2000 20:22:22 PDT&quot;
-#cvs update -P -D &quot;11/07/2000 20:26:29 PDT&quot;
-#cvs update -P -D &quot;11/08/2000 20:27:10 PDT&quot;
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribextensionconvertpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/extension-convert.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/extension-convert.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/extension-convert.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><ins>+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -81,6 +70,8 @@
</span><span class="cx"> my $config_pm = &lt;&lt;END;
</span><span class="cx"> package Bugzilla::Extension::$extension_name;
</span><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use constant NAME =&gt; '$extension_name';
</span><span class="cx"> $install_requirements
</span><span class="cx"> __PACKAGE__-&gt;NAME;
</span><span class="lines">@@ -89,8 +80,10 @@
</span><span class="cx"> my $extension_pm = &lt;&lt;END;
</span><span class="cx"> package Bugzilla::Extension::$extension_name;
</span><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Extension);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Extension);
+
</ins><span class="cx"> $modules
</span><span class="cx"> 
</span><span class="cx"> our \$VERSION = '$version';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribfixpermspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/fixperms.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/fixperms.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/fixperms.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><ins>+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribjb2bzpy"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/jb2bz.py (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/jb2bz.py        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/jb2bz.py        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx"> Share and enjoy.
</span><span class="cx"> &quot;&quot;&quot;
</span><span class="cx"> 
</span><del>-import rfc822, mimetools, multifile, mimetypes
</del><ins>+import rfc822, mimetools, multifile, mimetypes, email.utils
</ins><span class="cx"> import sys, re, glob, StringIO, os, stat, time
</span><span class="cx"> import MySQLdb, getopt
</span><span class="cx"> 
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx">     reply = open(fname, &quot;r&quot;)
</span><span class="cx">     msg = rfc822.Message(reply)
</span><span class="cx">     new_note['text'] = &quot;%s\n%s&quot; % (msg['From'], msg.fp.read())
</span><del>-    new_note['timestamp'] = rfc822.parsedate_tz(msg['Date'])
</del><ins>+    new_note['timestamp'] = email.utils.parsedate_tz(msg['Date'])
</ins><span class="cx">     current[&quot;notes&quot;].append(new_note)
</span><span class="cx"> 
</span><span class="cx"> def add_notes(current):
</span><span class="lines">@@ -129,17 +129,16 @@
</span><span class="cx"> 
</span><span class="cx"> def process_mime_body(current, file, submsg):
</span><span class="cx">     data = StringIO.StringIO()
</span><del>-    mimetools.decode(file, data, submsg.getencoding())
-    current['description'] = data.getvalue()
</del><ins>+    try:
+        mimetools.decode(file, data, submsg.getencoding())
+        current['description'] = data.getvalue()
+    except:
+        return
</ins><span class="cx"> 
</span><del>-
-
</del><span class="cx"> def process_text_plain(msg, current):
</span><del>-    print &quot;Processing: %d&quot; % current['number']
</del><span class="cx">     current['description'] = msg.fp.read()
</span><span class="cx"> 
</span><span class="cx"> def process_multi_part(file, msg, current):
</span><del>-    print &quot;Processing: %d&quot; % current['number']
</del><span class="cx">     mf = multifile.MultiFile(file)
</span><span class="cx">     mf.push(msg.getparam(&quot;boundary&quot;))
</span><span class="cx">     while mf.next():
</span><span class="lines">@@ -160,17 +159,31 @@
</span><span class="cx">     current['date-reported'] = ()
</span><span class="cx">     current['short-description'] = ''
</span><span class="cx">     
</span><ins>+    print &quot;Processing: %d&quot; % current['number']
+
</ins><span class="cx">     file = open(filename, &quot;r&quot;)
</span><ins>+    create_date = os.fstat(file.fileno())
</ins><span class="cx">     msg = mimetools.Message(file)
</span><span class="cx"> 
</span><span class="cx">     msgtype = msg.gettype()
</span><span class="cx"> 
</span><span class="cx">     add_notes(current)
</span><del>-    current['date-reported'] = rfc822.parsedate_tz(msg['Date'])
-    current['short-description'] = msg['Subject']
</del><ins>+    current['date-reported'] = email.utils.parsedate_tz(msg['Date'])
+    if current['date-reported'] is None:
+       current['date-reported'] = time.gmtime(create_date[stat.ST_MTIME])
</ins><span class="cx"> 
</span><ins>+    if current['date-reported'][0] &lt; 1900:
+       current['date-reported'] = time.gmtime(create_date[stat.ST_MTIME])
+
+    if msg.getparam('Subject') is not None: 
+        current['short-description'] = msg['Subject']
+    else:
+        current['short-description'] = &quot;Unknown&quot;
+
</ins><span class="cx">     if msgtype[:5] == 'text/':
</span><span class="cx">         process_text_plain(msg, current)
</span><ins>+    elif msgtype[:5] == 'text':
+        process_text_plain(msg, current)
</ins><span class="cx">     elif msgtype[:10] == &quot;multipart/&quot;:
</span><span class="cx">         process_multi_part(file, msg, current)
</span><span class="cx">     else:
</span><span class="lines">@@ -200,62 +213,79 @@
</span><span class="cx">     # the resolution will need to be set manually
</span><span class="cx">     resolution=&quot;&quot;
</span><span class="cx"> 
</span><del>-    db = MySQLdb.connect(db='bugs',user='root',host='localhost')
</del><ins>+    db = MySQLdb.connect(db='bugs',user='root',host='localhost',passwd='password')
</ins><span class="cx">     cursor = db.cursor()
</span><span class="cx"> 
</span><del>-    cursor.execute( &quot;INSERT INTO bugs SET &quot; \
-                    &quot;bug_id=%s,&quot; \
-                    &quot;bug_severity='normal',&quot;  \
-                    &quot;bug_status=%s,&quot; \
-                    &quot;creation_ts=%s,&quot;  \
-                    &quot;delta_ts=%s,&quot;  \
-                    &quot;short_desc=%s,&quot; \
-                    &quot;product=%s,&quot; \
-                    &quot;rep_platform='All',&quot; \
-                    &quot;assigned_to=%s,&quot;
-                    &quot;reporter=%s,&quot; \
-                    &quot;version=%s,&quot;  \
-                    &quot;component=%s,&quot;  \
-                    &quot;resolution=%s&quot;,
-                    [ current['number'],
-                      bug_status,
-                      time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
-                      time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
-                      current['short-description'],
-                      product,
-                      reporter,
-                      reporter,
-                      version,
-                      component,
-                      resolution] )
-
-    # This is the initial long description associated with the bug report
-    cursor.execute( &quot;INSERT INTO longdescs VALUES (%s,%s,%s,%s)&quot;,
-                    [ current['number'],
-                      reporter,
-                      time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
-                      current['description'] ] )
-
-    # Add whatever notes are associated with this defect
-    for n in current['notes']:
-        cursor.execute( &quot;INSERT INTO longdescs VALUES (%s,%s,%s,%s)&quot;,
-                        [current['number'],
-                         reporter,
-                         time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, n['timestamp'][:9]),
-                         n['text']])
-
-    # add attachments associated with this defect
-    for a in current['attachments']:
-        cursor.execute( &quot;INSERT INTO attachments SET &quot; \
-                        &quot;bug_id=%s, creation_ts=%s, description='', mimetype=%s,&quot; \
-                        &quot;filename=%s, submitter_id=%s&quot;,
</del><ins>+    try:
+        cursor.execute( &quot;INSERT INTO bugs SET &quot; \
+                        &quot;bug_id=%s,&quot; \
+                        &quot;bug_severity='normal',&quot;  \
+                        &quot;bug_status=%s,&quot; \
+                        &quot;creation_ts=%s,&quot;  \
+                        &quot;delta_ts=%s,&quot;  \
+                        &quot;short_desc=%s,&quot; \
+                        &quot;product_id=%s,&quot; \
+                        &quot;rep_platform='All',&quot; \
+                        &quot;assigned_to=%s,&quot; \
+                        &quot;reporter=%s,&quot; \
+                        &quot;version=%s,&quot;  \
+                        &quot;component_id=%s,&quot;  \
+                        &quot;resolution=%s&quot;,
</ins><span class="cx">                         [ current['number'],
</span><ins>+                          bug_status,
</ins><span class="cx">                           time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
</span><del>-                          a[1], a[0], reporter ])
-        cursor.execute( &quot;INSERT INTO attach_data SET &quot; \
-                        &quot;id=LAST_INSERT_ID(), thedata=%s&quot;,
-                        [ a[2] ])
</del><ins>+                          time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
+                          current['short-description'],
+                          product,
+                          reporter,
+                          reporter,
+                          version,
+                          component,
+                          resolution] )
+    
+        # This is the initial long description associated with the bug report
+        cursor.execute( &quot;INSERT INTO longdescs SET &quot; \
+                        &quot;bug_id=%s,&quot; \
+                        &quot;who=%s,&quot; \
+                        &quot;bug_when=%s,&quot; \
+                        &quot;thetext=%s&quot;,
+                        [ current['number'],
+                          reporter,
+                          time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
+                          current['description'] ] )
+    
+        # Add whatever notes are associated with this defect
+        for n in current['notes']:
+                            cursor.execute( &quot;INSERT INTO longdescs SET &quot; \
+                            &quot;bug_id=%s,&quot; \
+                            &quot;who=%s,&quot; \
+                            &quot;bug_when=%s,&quot; \
+                            &quot;thetext=%s&quot;,
+                            [current['number'],
+                             reporter,
+                             time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, n['timestamp'][:9]),
+                             n['text']])
+    
+        # add attachments associated with this defect
+        for a in current['attachments']:
+            cursor.execute( &quot;INSERT INTO attachments SET &quot; \
+                            &quot;bug_id=%s, creation_ts=%s, description='', mimetype=%s,&quot; \
+                            &quot;filename=%s, submitter_id=%s&quot;,
+                            [ current['number'],
+                              time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, current['date-reported'][:9]),
+                              a[1], a[0], reporter ])
+            cursor.execute( &quot;INSERT INTO attach_data SET &quot; \
+                            &quot;id=LAST_INSERT_ID(), thedata=%s&quot;,
+                            [ a[2] ])
</ins><span class="cx"> 
</span><ins>+    except MySQLdb.IntegrityError, message:
+        errorcode = message[0]
+        if errorcode == 1062: # duplicate
+            return
+        else:
+            raise
+
+    cursor.execute(&quot;COMMIT&quot;)
</ins><span class="cx">     cursor.close()
</span><span class="cx">     db.close()
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribmergeuserspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/merge-users.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/merge-users.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/merge-users.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> =head1 NAME
</span><span class="cx"> 
</span><span class="lines">@@ -160,6 +147,25 @@
</span><span class="cx"> $dbh-&gt;do('DELETE FROM logincookies WHERE userid = ?', undef, $old_id);
</span><span class="cx"> $dbh-&gt;do('DELETE FROM tokens WHERE userid = ?', undef, $old_id);
</span><span class="cx"> 
</span><ins>+# Special care needs to be done with bug_user_last_visit table as the
+# source user and destination user may have visited the same bug id at one time.
+# In this case we remove the one with the oldest timestamp.
+my $dupe_ids = $dbh-&gt;selectcol_arrayref(&quot;
+    SELECT earlier.id
+      FROM bug_user_last_visit as earlier
+           INNER JOIN bug_user_last_visit as later
+           ON (earlier.user_id != later.user_id
+               AND earlier.last_visit_ts &lt; later.last_visit_ts
+               AND earlier.bug_id = later.bug_id)
+     WHERE (earlier.user_id = ? OR earlier.user_id = ?)
+           AND (later.user_id = ? OR later.user_id = ?)&quot;,
+    undef, $old_id, $new_id, $old_id, $new_id);
+
+if (@$dupe_ids) {
+    $dbh-&gt;do(&quot;DELETE FROM bug_user_last_visit WHERE &quot; .
+             $dbh-&gt;sql_in('id', $dupe_ids));
+}
+
</ins><span class="cx"> # Migrate records from old user to new user.
</span><span class="cx"> foreach my $table (keys %changes) {
</span><span class="cx">     foreach my $column_list (@{ $changes{$table} }) {
</span><span class="lines">@@ -237,4 +243,9 @@
</span><span class="cx"> # Commit the transaction
</span><span class="cx"> $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><ins>+# It's complex to determine which items now need to be flushed from memcached.
+# As user merge is expected to be a rare event, we just flush the entire cache
+# when users are merged.
+Bugzilla-&gt;memcached-&gt;clear_all();
+
</ins><span class="cx"> print &quot;Done.\n&quot;;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribmysqldwatcherpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/mysqld-watcher.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/mysqld-watcher.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/mysqld-watcher.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,17 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code is the Bugzilla Bug Tracking System.
-# 
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 2000 Netscape Communications Corporation.  All
-# Rights Reserved.
-# 
-# Contributor(s): Dan Mosedale &lt;dmose@mozilla.org&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # mysqld-watcher.pl - a script that watches the running instance of
</span><span class="cx"> # mysqld and kills off any long-running SELECTs against the shadow_db
</span><span class="cx"> # 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> # some configurables: 
</span><span class="cx"> 
</span><span class="lines">@@ -75,7 +63,7 @@
</span><span class="cx">              &amp;&amp; $F[8] =~ /(select|SELECT)/      # only kill a select
</span><span class="cx">              &amp;&amp; !defined($long-&gt;{$F[1]}) )      # haven't seen this one already
</span><span class="cx">         {
</span><del>-            $long-&gt;{$F[1]} = \@F;
</del><ins>+            $long-&gt;{$F[1]} = \@F;
</ins><span class="cx">             system(&quot;/opt/mysql/bin/mysqladmin&quot;, &quot;kill&quot;, $F[1]);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -114,4 +102,3 @@
</span><span class="cx">     #
</span><span class="cx">     sendEmail($mail_from, $mail_to, &quot;long running MySQL thread(s) killed&quot;, $message);
</span><span class="cx"> }
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribnewyuish"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/new-yui.sh (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/new-yui.sh        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/new-yui.sh        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,5 +1,12 @@
</span><span class="cx"> #!/bin/sh
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+
</ins><span class="cx"> # Updates the version of YUI used by Bugzilla. Just pass the path to 
</span><span class="cx"> # an unzipped yui release directory, like:
</span><span class="cx"> #
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribrecodepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/recode.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/recode.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/recode.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -42,8 +32,10 @@
</span><span class="cx"> # For certain tables, we can't automatically determine their Primary Key.
</span><span class="cx"> # So, we specify it here as a string.
</span><span class="cx"> use constant SPECIAL_KEYS =&gt; {
</span><ins>+    # bugs_activity since 4.4 has a unique primary key added
</ins><span class="cx">     bugs_activity     =&gt; 'bug_id,bug_when,fieldid',
</span><span class="cx">     profile_setting   =&gt; 'user_id,setting_name',
</span><ins>+    # profiles_activity since 4.4 has a unique primary key added
</ins><span class="cx">     profiles_activity =&gt; 'userid,profiles_when,fieldid',
</span><span class="cx">     setting_value     =&gt; 'name,value',
</span><span class="cx">     # longdescs didn't used to have a PK, before 2.20.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribsendbugmailpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/sendbugmail.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/sendbugmail.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/sendbugmail.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-#                    sendbugmail.pl
-#
-# Nick Barnes, Ravenbrook Limited, 2004-04-01.
-#
-# Bugzilla email script for Bugzilla 2.17.4 and later.  Invoke this to send
-# bugmail for a bug which has been changed directly in the database.
-# This uses Bugzilla's own BugMail facility, and will email the
-# users associated with the bug.  Replaces the old &quot;processmail&quot;
-# script.
-# 
-# Usage: perl -T contrib/sendbugmail.pl bug_id user_email
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -22,7 +20,7 @@
</span><span class="cx"> my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx"> sub usage {
</span><del>-    print STDERR &quot;Usage: $0 bug_id user_email\n&quot;;
</del><ins>+    say STDERR &quot;Usage: $0 bug_id user_email&quot;;
</ins><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -36,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> # Validate the bug number.
</span><span class="cx"> if (!($bugnum =~ /^(\d+)$/)) {
</span><del>-  print STDERR &quot;Bug number \&quot;$bugnum\&quot; not numeric.\n&quot;;
</del><ins>+  say STDERR &quot;Bug number \&quot;$bugnum\&quot; not numeric.&quot;;
</ins><span class="cx">   usage();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -46,7 +44,7 @@
</span><span class="cx">                                  undef, $bugnum);
</span><span class="cx"> 
</span><span class="cx"> if (!$id) {
</span><del>-  print STDERR &quot;Bug number $bugnum does not exist.\n&quot;;
</del><ins>+  say STDERR &quot;Bug number $bugnum does not exist.&quot;;
</ins><span class="cx">   usage();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -53,12 +51,12 @@
</span><span class="cx"> # Validate the changer address.
</span><span class="cx"> my $match = Bugzilla-&gt;params-&gt;{'emailregexp'};
</span><span class="cx"> if ($changer !~ /$match/) {
</span><del>-    print STDERR &quot;Changer \&quot;$changer\&quot; doesn't match email regular expression.\n&quot;;
</del><ins>+    say STDERR &quot;Changer \&quot;$changer\&quot; doesn't match email regular expression.&quot;;
</ins><span class="cx">     usage();
</span><span class="cx"> }
</span><span class="cx"> my $changer_user = new Bugzilla::User({ name =&gt; $changer });
</span><span class="cx"> unless ($changer_user) {
</span><del>-    print STDERR &quot;\&quot;$changer\&quot; is not a valid user.\n&quot;;
</del><ins>+    say STDERR &quot;\&quot;$changer\&quot; is not a valid user.&quot;;
</ins><span class="cx">     usage();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -67,28 +65,17 @@
</span><span class="cx"> 
</span><span class="cx"> # Report the results.
</span><span class="cx"> my $sent = scalar(@{$outputref-&gt;{sent}});
</span><del>-my $excluded = scalar(@{$outputref-&gt;{excluded}});
</del><span class="cx"> 
</span><span class="cx"> if ($sent) {
</span><del>-    print &quot;email sent to $sent recipients:\n&quot;;
</del><ins>+    say &quot;email sent to $sent recipients:&quot;;
</ins><span class="cx"> } else {
</span><del>-    print &quot;No email sent.\n&quot;;
</del><ins>+    say &quot;No email sent.&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> foreach my $sent (@{$outputref-&gt;{sent}}) {
</span><del>-  print &quot;  $sent\n&quot;;
</del><ins>+  say &quot;  $sent&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ($excluded) {
-    print &quot;$excluded recipients excluded:\n&quot;;
-} else {
-    print &quot;No recipients excluded.\n&quot;;
-}
-
-foreach my $excluded (@{$outputref-&gt;{excluded}}) {
-  print &quot;  $excluded\n&quot;;
-}
-
</del><span class="cx"> # This document is copyright (C) 2004 Perforce Software, Inc.  All rights
</span><span class="cx"> # reserved.
</span><span class="cx"> # 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribsendunsentbugmailpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/sendunsentbugmail.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/sendunsentbugmail.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/sendunsentbugmail.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -32,36 +19,28 @@
</span><span class="cx"> my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx"> my $list = $dbh-&gt;selectcol_arrayref(
</span><del>-        'SELECT bug_id FROM bugs 
-          WHERE lastdiffed IS NULL
-             OR lastdiffed &lt; delta_ts 
-            AND delta_ts &lt; ' 
</del><ins>+        'SELECT bug_id FROM bugs
+          WHERE (lastdiffed IS NULL OR lastdiffed &lt; delta_ts)
+            AND delta_ts &lt; '
</ins><span class="cx">                 . $dbh-&gt;sql_date_math('NOW()', '-', 30, 'MINUTE') .
</span><span class="cx">      ' ORDER BY bug_id');
</span><span class="cx"> 
</span><span class="cx"> if (scalar(@$list) &gt; 0) {
</span><del>-    print &quot;OK, now attempting to send unsent mail\n&quot;;
-    print scalar(@$list) . &quot; bugs found with possibly unsent mail.\n\n&quot;;
</del><ins>+    say &quot;OK, now attempting to send unsent mail&quot;;
+    say scalar(@$list) . &quot; bugs found with possibly unsent mail.\n&quot;;
</ins><span class="cx">     foreach my $bugid (@$list) {
</span><span class="cx">         my $start_time = time;
</span><del>-        print &quot;Sending mail for bug $bugid...\n&quot;;
</del><ins>+        say &quot;Sending mail for bug $bugid...&quot;;
</ins><span class="cx">         my $outputref = Bugzilla::BugMail::Send($bugid);
</span><span class="cx">         if ($ARGV[0] &amp;&amp; $ARGV[0] eq &quot;--report&quot;) {
</span><del>-          print &quot;Mail sent to:\n&quot;;
-          foreach (sort @{$outputref-&gt;{sent}}) {
-              print $_ . &quot;\n&quot;;
-          }
-          
-          print &quot;Excluded:\n&quot;;
-          foreach (sort @{$outputref-&gt;{excluded}}) {
-              print $_ . &quot;\n&quot;;
-          }
</del><ins>+          say &quot;Mail sent to:&quot;;
+          say $_ foreach (sort @{$outputref-&gt;{sent}});
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><del>-            my ($sent, $excluded) = (scalar(@{$outputref-&gt;{sent}}),scalar(@{$outputref-&gt;{excluded}}));
-            print &quot;$sent mails sent, $excluded people excluded.\n&quot;;
-            print &quot;Took &quot; . (time - $start_time) . &quot; seconds.\n\n&quot;;
-        }    
</del><ins>+            my $sent = scalar @{$outputref-&gt;{sent}};
+            say &quot;$sent mails sent.&quot;;
+            say &quot;Took &quot; . (time - $start_time) . &quot; seconds.\n&quot;;
+        }
</ins><span class="cx">     }
</span><del>-    print &quot;Unsent mail has been sent.\n&quot;;
</del><ins>+    say &quot;Unsent mail has been sent.&quot;;
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcontribsyncLDAPpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/contrib/syncLDAP.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/contrib/syncLDAP.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/contrib/syncLDAP.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the LDAP to Bugzilla User Sync Tool.
-#
-# The Initial Developer of the Original Code is Andreas Höfler.
-# Portions created by Andreas Höfler are Copyright (C) 2003
-# Andreas Höfler. All Rights Reserved.
-#
-# Contributor(s): Andreas Höfler &lt;andreas.hoefler@bearingpoint.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -65,7 +53,7 @@
</span><span class="cx">          print &quot;usage:\n syncLDAP.pl [options]\n\n&quot;;
</span><span class="cx">          print &quot;options:\n&quot;;
</span><span class="cx">          print &quot; -r Readonly, do not make changes to Bugzilla tables\n&quot;;
</span><del>-         print &quot; -d No disable, don't disable users, which are not in LDAP\n&quot;;
</del><ins>+         print &quot; -d No disable, don't disable login by users who are not in LDAP\n&quot;;
</ins><span class="cx">          print &quot; -u No update, don't update users, which have different description in LDAP\n&quot;;
</span><span class="cx">          print &quot; -c No create, don't create users, which are in LDAP but not in Bugzilla\n&quot;;
</span><span class="cx">          print &quot; -q Quiet mode, give less output\n&quot;;
</span><span class="lines">@@ -208,7 +196,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if($quiet == 0) {
</span><del>-   print &quot;\nUsers to disable: \n&quot;;
</del><ins>+   print &quot;\nUsers to disable login for: \n&quot;;
</ins><span class="cx">    while( my ($key, $value) = each(%disable_users) ) {
</span><span class="cx">      print &quot; &quot; . $key . &quot; '&quot; . $value-&gt;{'realname'} . &quot;'\n&quot;;
</span><span class="cx">    }
</span><span class="lines">@@ -235,7 +223,7 @@
</span><span class="cx"> # now do the DB-Update
</span><span class="cx"> ###
</span><span class="cx"> if($readonly == 0) {
</span><del>-   print &quot;Performing DB update:\nPhase 1: disabling not-existing users... &quot; unless $quiet;
</del><ins>+   print &quot;Performing DB update:\nPhase 1: disabling login for users not in LDAP... &quot; unless $quiet;
</ins><span class="cx"> 
</span><span class="cx">    my $sth_disable = $dbh-&gt;prepare(
</span><span class="cx">        'UPDATE profiles
</span><span class="lines">@@ -254,22 +242,15 @@
</span><span class="cx">    
</span><span class="cx">    print &quot;Phase 2: updating existing users... &quot; unless $quiet;
</span><span class="cx"> 
</span><del>-   my $sth_update_login = $dbh-&gt;prepare(
-       'UPDATE profiles
-           SET login_name = ? 
-         WHERE ' . $dbh-&gt;sql_istrcmp('login_name', '?'));
-   my $sth_update_realname = $dbh-&gt;prepare(
-       'UPDATE profiles
-           SET realname = ? 
-         WHERE ' . $dbh-&gt;sql_istrcmp('login_name', '?'));
-
</del><span class="cx">    if($noupdate == 0) {
</span><span class="cx">       while( my ($key, $value) = each(%update_users) ) {
</span><ins>+        my $user = Bugzilla::User-&gt;check($key);
</ins><span class="cx">         if(defined $value-&gt;{'new_login_name'}) {
</span><del>-          $sth_update_login-&gt;execute($value-&gt;{'new_login_name'}, $key);
</del><ins>+          $user-&gt;set_login($value-&gt;{'new_login_name'});
</ins><span class="cx">         } else {
</span><del>-          $sth_update_realname-&gt;execute($value-&gt;{'realname'}, $key);
</del><ins>+          $user-&gt;set_name($value-&gt;{'realname'});
</ins><span class="cx">         }
</span><ins>+        $user-&gt;update();
</ins><span class="cx">       }
</span><span class="cx">       print &quot;done!\n&quot; unless $quiet;
</span><span class="cx">    }
</span><span class="lines">@@ -295,4 +276,3 @@
</span><span class="cx"> {
</span><span class="cx">    print &quot;No changes to DB because readonly mode\n&quot; unless $quiet;
</span><span class="cx"> }
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgcreateaccountcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/createaccount.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/createaccount.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/createaccount.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 David Gardiner &lt;david.gardiner@unisa.edu.au&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +23,7 @@
</span><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_OPTIONAL);
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><del>-my $vars = { doc_section =&gt; 'myaccount.html' };
</del><ins>+my $vars = { doc_section =&gt; 'using/creating-an-account.html' };
</ins><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdatahtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/data/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/data/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/data/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,7 +1,13 @@
</span><del>-# nothing in this directory is retrievable unless overriden by an .htaccess
-# in a subdirectory; the only exception is duplicates.rdf, which is used by
-# duplicates.xul and must be loadable over the web
-deny from all
-&lt;Files duplicates.rdf&gt;
-  allow from all
-&lt;/Files&gt;
</del><ins>+# nothing in this directory is retrievable unless overridden by an .htaccess
+# in a subdirectory
+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdatamail"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/data/mail ( => )</h4>
<pre class="diff"><span>
<span class="info">Deleted: trunk/Websites/bugs.webkit.org/data/params
===================================================================
</span><del>--- trunk/Websites/bugs.webkit.org/data/params        2017-03-21 15:52:28 UTC (rev 214223)
</del><ins>+++ trunk/Websites/bugs.webkit.org/data/params        2017-03-21 16:27:49 UTC (rev 214224)
</ins><span class="lines">@@ -1,102 +0,0 @@
</span><del>-%param = (
-           'LDAPBaseDN' =&gt; '',
-           'LDAPbinddn' =&gt; '',
-           'LDAPfilter' =&gt; '',
-           'LDAPmailattribute' =&gt; 'mail',
-           'LDAPserver' =&gt; '',
-           'LDAPstarttls' =&gt; 0,
-           'LDAPuidattribute' =&gt; 'uid',
-           'RADIUS_NAS_IP' =&gt; '',
-           'RADIUS_email_suffix' =&gt; '',
-           'RADIUS_secret' =&gt; '',
-           'RADIUS_server' =&gt; '',
-           'ajax_user_autocompletion' =&gt; '0',
-           'allow_attachment_deletion' =&gt; '1',
-           'allow_attachment_display' =&gt; '1',
-           'allowbugdeletion' =&gt; '1',
-           'allowemailchange' =&gt; '1',
-           'allowuserdeletion' =&gt; 0,
-           'announcehtml' =&gt; '',
-           'attachment_base' =&gt; 'https://bug-%bugid%-attachments.webkit.org/',
-           'auth_env_email' =&gt; '',
-           'auth_env_id' =&gt; '',
-           'auth_env_realname' =&gt; '',
-           'bonsai_url' =&gt; '',
-           'chartgroup' =&gt; 'editbugs',
-           'commentonchange_resolution' =&gt; 0,
-           'commentonduplicate' =&gt; 0,
-           'confirmuniqueusermatch' =&gt; '0',
-           'cookiedomain' =&gt; '',
-           'cookiepath' =&gt; '/',
-           'createemailregexp' =&gt; '.*',
-           'cvsroot' =&gt; '',
-           'cvsroot_get' =&gt; '',
-           'debug_group' =&gt; 'admin',
-           'default_search_limit' =&gt; '1000',
-           'defaultopsys' =&gt; 'Unspecified',
-           'defaultplatform' =&gt; 'Unspecified',
-           'defaultpriority' =&gt; 'P2',
-           'defaultquery' =&gt; 'bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailcc2=1&amp;emailqa_contact2=1&amp;order=Importance&amp;long_desc_type=substring',
-           'defaultseverity' =&gt; 'Normal',
-           'docs_urlbase' =&gt; 'docs/html/',
-           'duplicate_or_move_bug_status' =&gt; 'RESOLVED',
-           'emailregexp' =&gt; '^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$',
-           'emailregexpdesc' =&gt; 'A legal address must contain exactly one \'@\', and at least one \'.\' after the @.',
-           'emailsuffix' =&gt; '',
-           'globalwatchers' =&gt; '',
-           'inbound_proxies' =&gt; '',
-           'insidergroup' =&gt; '',
-           'letsubmitterchoosemilestone' =&gt; 1,
-           'letsubmitterchoosepriority' =&gt; 1,
-           'lxr_root' =&gt; '',
-           'lxr_url' =&gt; '',
-           'mail_delivery_method' =&gt; 'SMTP',
-           'mailfrom' =&gt; 'bugzilla-daemon@webkit.org',
-           'maintainer' =&gt; 'admin@webkit.org',
-           'makeproductgroups' =&gt; 0,
-           'max_search_results' =&gt; '10000',
-           'maxattachmentsize' =&gt; '20480',
-           'maxlocalattachment' =&gt; '1024',
-           'maxusermatches' =&gt; '1000',
-           'mostfreqthreshold' =&gt; '2',
-           'musthavemilestoneonaccept' =&gt; 0,
-           'mybugstemplate' =&gt; 'buglist.cgi?bug_status=UNCONFIRMED&amp;amp;bug_status=NEW&amp;amp;bug_status=ASSIGNED&amp;amp;bug_status=REOPENED&amp;amp;email1=%userid%&amp;amp;emailtype1=exact&amp;amp;emailassigned_to1=1&amp;amp;emailreporter1=1',
-           'noresolveonopenblockers' =&gt; 0,
-           'password_complexity' =&gt; 'no_constraints',
-           'proxy_url' =&gt; 'http://rpms2.macosforge.org:3128/',
-           'querysharegroup' =&gt; 'editbugs',
-           'quip_list_entry_control' =&gt; 'moderated',
-           'rememberlogin' =&gt; 'on',
-           'requirelogin' =&gt; '0',
-           'search_allow_no_criteria' =&gt; 0,
-           'shadowdb' =&gt; '',
-           'shadowdbhost' =&gt; '',
-           'shadowdbport' =&gt; '3306',
-           'shadowdbsock' =&gt; '',
-           'shutdownhtml' =&gt; '',
-           'smtp_debug' =&gt; '0',
-           'smtp_password' =&gt; '',
-           'smtp_username' =&gt; '',
-           'smtpserver' =&gt; 'bz.apple.com',
-           'ssl_redirect' =&gt; 1,
-           'sslbase' =&gt; 'https://bugs.webkit.org/',
-           'strict_isolation' =&gt; 0,
-           'strict_transport_security' =&gt; 'off',
-           'timetrackinggroup' =&gt; '',
-           'upgrade_notification' =&gt; 'latest_stable_release',
-           'urlbase' =&gt; 'https://bugs.webkit.org/',
-           'use_mailer_queue' =&gt; '1',
-           'use_see_also' =&gt; 1,
-           'usebugaliases' =&gt; '1',
-           'useclassification' =&gt; 0,
-           'usemenuforusers' =&gt; '0',
-           'useqacontact' =&gt; 0,
-           'user_info_class' =&gt; 'CGI',
-           'user_verify_class' =&gt; 'DB',
-           'usestatuswhiteboard' =&gt; '0',
-           'usetargetmilestone' =&gt; 0,
-           'usevisibilitygroups' =&gt; 0,
-           'utf8' =&gt; '1',
-           'webdotbase' =&gt; 'http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%',
-           'whinedays' =&gt; 7
-         );
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdataparamsjson"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/data/params.json (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/data/params.json                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/data/params.json        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,104 @@
</span><ins>+{
+   &quot;LDAPBaseDN&quot; : &quot;&quot;,
+   &quot;LDAPbinddn&quot; : &quot;&quot;,
+   &quot;LDAPfilter&quot; : &quot;&quot;,
+   &quot;LDAPmailattribute&quot; : &quot;mail&quot;,
+   &quot;LDAPserver&quot; : &quot;&quot;,
+   &quot;LDAPstarttls&quot; : &quot;0&quot;,
+   &quot;LDAPuidattribute&quot; : &quot;uid&quot;,
+   &quot;RADIUS_NAS_IP&quot; : &quot;&quot;,
+   &quot;RADIUS_email_suffix&quot; : &quot;&quot;,
+   &quot;RADIUS_secret&quot; : &quot;&quot;,
+   &quot;RADIUS_server&quot; : &quot;&quot;,
+   &quot;ajax_user_autocompletion&quot; : &quot;0&quot;,
+   &quot;allow_attachment_deletion&quot; : &quot;1&quot;,
+   &quot;allow_attachment_display&quot; : &quot;1&quot;,
+   &quot;allowbugdeletion&quot; : &quot;1&quot;,
+   &quot;allowemailchange&quot; : &quot;1&quot;,
+   &quot;allowuserdeletion&quot; : &quot;0&quot;,
+   &quot;announcehtml&quot; : &quot;&quot;,
+   &quot;attachment_base&quot; : &quot;https://bug-%bugid%-attachments.webkit.org/&quot;,
+   &quot;auth_env_email&quot; : &quot;&quot;,
+   &quot;auth_env_id&quot; : &quot;&quot;,
+   &quot;auth_env_realname&quot; : &quot;&quot;,
+   &quot;chartgroup&quot; : &quot;editbugs&quot;,
+   &quot;collapsed_comment_tags&quot; : &quot;obsolete, spam&quot;,
+   &quot;comment_taggers_group&quot; : &quot;editbugs&quot;,
+   &quot;commentonchange_resolution&quot; : &quot;0&quot;,
+   &quot;commentonduplicate&quot; : &quot;0&quot;,
+   &quot;confirmuniqueusermatch&quot; : &quot;0&quot;,
+   &quot;cookiedomain&quot; : &quot;&quot;,
+   &quot;cookiepath&quot; : &quot;/&quot;,
+   &quot;createemailregexp&quot; : &quot;.*&quot;,
+   &quot;debug_group&quot; : &quot;admin&quot;,
+   &quot;default_search_limit&quot; : &quot;1000&quot;,
+   &quot;defaultopsys&quot; : &quot;Unspecified&quot;,
+   &quot;defaultplatform&quot; : &quot;Unspecified&quot;,
+   &quot;defaultpriority&quot; : &quot;P2&quot;,
+   &quot;defaultquery&quot; : &quot;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailcc2=1&amp;emailqa_contact2=1&amp;order=Importance&amp;long_desc_type=substring&quot;,
+   &quot;defaultseverity&quot; : &quot;Normal&quot;,
+   &quot;duplicate_or_move_bug_status&quot; : &quot;RESOLVED&quot;,
+   &quot;emailregexp&quot; : &quot;^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$&quot;,
+   &quot;emailregexpdesc&quot; : &quot;A legal address must contain exactly one '@', and at least one '.' after the @.&quot;,
+   &quot;emailsuffix&quot; : &quot;&quot;,
+   &quot;font_file&quot; : &quot;&quot;,
+   &quot;globalwatchers&quot; : &quot;&quot;,
+   &quot;inbound_proxies&quot; : &quot;&quot;,
+   &quot;insidergroup&quot; : &quot;&quot;,
+   &quot;last_visit_keep_days&quot; : &quot;10&quot;,
+   &quot;letsubmitterchoosemilestone&quot; : &quot;1&quot;,
+   &quot;letsubmitterchoosepriority&quot; : &quot;1&quot;,
+   &quot;mail_delivery_method&quot; : &quot;SMTP&quot;,
+   &quot;mailfrom&quot; : &quot;bugzilla-daemon@webkit.org&quot;,
+   &quot;maintainer&quot; : &quot;admin@webkit.org&quot;,
+   &quot;makeproductgroups&quot; : &quot;0&quot;,
+   &quot;max_search_results&quot; : &quot;10000&quot;,
+   &quot;maxattachmentsize&quot; : &quot;20480&quot;,
+   &quot;maxlocalattachment&quot; : &quot;1024&quot;,
+   &quot;maxusermatches&quot; : &quot;1000&quot;,
+   &quot;memcached_namespace&quot; : &quot;bugzilla:&quot;,
+   &quot;memcached_servers&quot; : &quot;&quot;,
+   &quot;musthavemilestoneonaccept&quot; : &quot;0&quot;,
+   &quot;mybugstemplate&quot; : &quot;buglist.cgi?bug_status=UNCONFIRMED&amp;amp;bug_status=NEW&amp;amp;bug_status=ASSIGNED&amp;amp;bug_status=REOPENED&amp;amp;email1=%userid%&amp;amp;emailtype1=exact&amp;amp;emailassigned_to1=1&amp;amp;emailreporter1=1&quot;,
+   &quot;noresolveonopenblockers&quot; : &quot;0&quot;,
+   &quot;or_groups&quot; : &quot;0&quot;,
+   &quot;password_check_on_login&quot; : &quot;1&quot;,
+   &quot;password_complexity&quot; : &quot;no_constraints&quot;,
+   &quot;proxy_url&quot; : &quot;http://rpms2.macosforge.org:3128/&quot;,
+   &quot;querysharegroup&quot; : &quot;editbugs&quot;,
+   &quot;quip_list_entry_control&quot; : &quot;moderated&quot;,
+   &quot;rememberlogin&quot; : &quot;on&quot;,
+   &quot;requirelogin&quot; : &quot;0&quot;,
+   &quot;search_allow_no_criteria&quot; : &quot;0&quot;,
+   &quot;shadowdb&quot; : &quot;&quot;,
+   &quot;shadowdbhost&quot; : &quot;&quot;,
+   &quot;shadowdbport&quot; : &quot;3306&quot;,
+   &quot;shadowdbsock&quot; : &quot;&quot;,
+   &quot;shutdownhtml&quot; : &quot;&quot;,
+   &quot;smtp_debug&quot; : &quot;0&quot;,
+   &quot;smtp_password&quot; : &quot;&quot;,
+   &quot;smtp_ssl&quot; : &quot;0&quot;,
+   &quot;smtp_username&quot; : &quot;&quot;,
+   &quot;smtpserver&quot; : &quot;bz.apple.com&quot;,
+   &quot;ssl_redirect&quot; : &quot;1&quot;,
+   &quot;sslbase&quot; : &quot;https://bugs.webkit.org/&quot;,
+   &quot;strict_isolation&quot; : &quot;0&quot;,
+   &quot;strict_transport_security&quot; : &quot;off&quot;,
+   &quot;timetrackinggroup&quot; : &quot;&quot;,
+   &quot;upgrade_notification&quot; : &quot;latest_stable_release&quot;,
+   &quot;urlbase&quot; : &quot;https://bugs.webkit.org/&quot;,
+   &quot;use_mailer_queue&quot; : &quot;1&quot;,
+   &quot;use_see_also&quot; : &quot;1&quot;,
+   &quot;useclassification&quot; : &quot;0&quot;,
+   &quot;usemenuforusers&quot; : &quot;0&quot;,
+   &quot;useqacontact&quot; : &quot;0&quot;,
+   &quot;user_info_class&quot; : &quot;CGI&quot;,
+   &quot;user_verify_class&quot; : &quot;DB&quot;,
+   &quot;usestatuswhiteboard&quot; : &quot;0&quot;,
+   &quot;usetargetmilestone&quot; : &quot;0&quot;,
+   &quot;usevisibilitygroups&quot; : &quot;0&quot;,
+   &quot;utf8&quot; : &quot;1&quot;,
+   &quot;webdotbase&quot; : &quot;http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%&quot;,
+   &quot;webservice_email_filter&quot; : &quot;0&quot;,
+   &quot;whinedays&quot; : &quot;7&quot;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdescribecomponentscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/describecomponents.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/describecomponents.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/describecomponents.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -29,6 +16,7 @@
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><ins>+use Bugzilla::Classification;
</ins><span class="cx"> use Bugzilla::Product;
</span><span class="cx"> 
</span><span class="cx"> my $user = Bugzilla-&gt;login();
</span><span class="lines">@@ -54,9 +42,9 @@
</span><span class="cx">     # If there is only one product available but the user entered
</span><span class="cx">     # another product name, we display a list with this single
</span><span class="cx">     # product only, to not confuse the user with components of a
</span><del>-    # product he didn't request.
</del><ins>+    # product they didn't request.
</ins><span class="cx">     elsif (scalar(@products) &gt; 1 || $product_name) {
</span><del>-        $vars-&gt;{'classifications'} = [{object =&gt; undef, products =&gt; \@products}];
</del><ins>+        $vars-&gt;{'classifications'} = sort_products_by_classification(\@products);
</ins><span class="cx">         $vars-&gt;{'target'} = &quot;describecomponents.cgi&quot;;
</span><span class="cx">         # If an invalid product name is given, or the user is not
</span><span class="cx">         # allowed to access that product, a message is displayed
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdescribekeywordscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/describekeywords.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/describekeywords.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/describekeywords.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,22 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Terry Weissman.
-# Portions created by Terry Weissman are
-# Copyright (C) 2000 Terry Weissman. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Error;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Keyword;
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;login();
</del><ins>+my $user = Bugzilla-&gt;login();
</ins><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -39,8 +26,10 @@
</span><span class="cx"> Bugzilla-&gt;switch_to_shadow_db;
</span><span class="cx"> 
</span><span class="cx"> $vars-&gt;{'keywords'} = Bugzilla::Keyword-&gt;get_all_with_bug_count();
</span><del>-$vars-&gt;{'caneditkeywords'} = Bugzilla-&gt;user-&gt;in_group(&quot;editkeywords&quot;);
</del><ins>+if (!@{$vars-&gt;{keywords}}) {
+    ThrowUserError(&quot;no_keywords&quot;);
+}
</ins><span class="cx"> 
</span><del>-print Bugzilla-&gt;cgi-&gt;header();
</del><ins>+print $cgi-&gt;header();
</ins><span class="cx"> $template-&gt;process(&quot;reports/keywords.html.tmpl&quot;, $vars)
</span><span class="cx">   || ThrowTemplateError($template-&gt;error());
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsTODO"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/TODO (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/TODO                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/TODO        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+RST files:
+
+* Produce simple style guide and canonicalise usages to follow it
+* Get rid of, or use proper Sphinx markup for, glossary
+
+HTML Output:
+
+* Styling for Cautions and Tips
+* Stop replacement of &quot;--&quot; with em-dash
+* Auto-highlighter thinks # in &quot;bash#&quot; is a comment char
+* Style definition lists to have the term in bold
+* Fix bug lifecycle image original doc link
+
+Topics to cover:
+
+* email_in.pl
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenMakefile"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/Makefile (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/Makefile                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/Makefile        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,158 @@
</span><ins>+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = .
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) rst
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) rst
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+        @echo &quot;Please use \`make &lt;target&gt;' where &lt;target&gt; is one of&quot;
+        @echo &quot;  html       to make standalone HTML files&quot;
+        @echo &quot;  dirhtml    to make HTML files named index.html in directories&quot;
+        @echo &quot;  singlehtml to make a single large HTML file&quot;
+        @echo &quot;  pickle     to make pickle files&quot;
+        @echo &quot;  json       to make JSON files&quot;
+        @echo &quot;  htmlhelp   to make HTML files and a HTML help project&quot;
+        @echo &quot;  qthelp     to make HTML files and a qthelp project&quot;
+        @echo &quot;  devhelp    to make HTML files and a Devhelp project&quot;
+        @echo &quot;  epub       to make an epub&quot;
+        @echo &quot;  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter&quot;
+        @echo &quot;  latexpdf   to make LaTeX files and run them through pdflatex&quot;
+        @echo &quot;  text       to make text files&quot;
+        @echo &quot;  man        to make manual pages&quot;
+        @echo &quot;  texinfo    to make Texinfo files&quot;
+        @echo &quot;  info       to make Texinfo files and run them through makeinfo&quot;
+        @echo &quot;  gettext    to make PO message catalogs&quot;
+        @echo &quot;  changes    to make an overview of all changed/added/deprecated items&quot;
+        @echo &quot;  linkcheck  to check all external links for integrity&quot;
+        @echo &quot;  doctest    to run all doctests embedded in the documentation (if enabled)&quot;
+
+clean:
+        find $(BUILDDIR) -maxdepth 1 -type d -not -name rst -not -name images -not -name . -exec rm -rf {} \;
+
+html:
+        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+        @echo
+        @echo &quot;Build finished. The HTML pages are in $(BUILDDIR)/html.&quot;
+
+dirhtml:
+        $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+        @echo
+        @echo &quot;Build finished. The HTML pages are in $(BUILDDIR)/dirhtml.&quot;
+
+singlehtml:
+        $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+        @echo
+        @echo &quot;Build finished. The HTML page is in $(BUILDDIR)/singlehtml.&quot;
+
+pickle:
+        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+        @echo
+        @echo &quot;Build finished; now you can process the pickle files.&quot;
+
+json:
+        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+        @echo
+        @echo &quot;Build finished; now you can process the JSON files.&quot;
+
+htmlhelp:
+        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+        @echo
+        @echo &quot;Build finished; now you can run HTML Help Workshop with the&quot; \
+              &quot;.hhp project file in $(BUILDDIR)/htmlhelp.&quot;
+
+qthelp:
+        $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+        @echo
+        @echo &quot;Build finished; now you can run &quot;qcollectiongenerator&quot; with the&quot; \
+              &quot;.qhcp project file in $(BUILDDIR)/qthelp, like this:&quot;
+        @echo &quot;# qcollectiongenerator $(BUILDDIR)/qthelp/Bugzilla.qhcp&quot;
+        @echo &quot;To view the help file:&quot;
+        @echo &quot;# assistant -collectionFile $(BUILDDIR)/qthelp/Bugzilla.qhc&quot;
+
+devhelp:
+        $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+        @echo
+        @echo &quot;Build finished.&quot;
+        @echo &quot;To view the help file:&quot;
+        @echo &quot;# mkdir -p $$HOME/.local/share/devhelp/Bugzilla&quot;
+        @echo &quot;# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Bugzilla&quot;
+        @echo &quot;# devhelp&quot;
+
+epub:
+        $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+        @echo
+        @echo &quot;Build finished. The epub file is in $(BUILDDIR)/epub.&quot;
+
+latex:
+        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+        @echo
+        @echo &quot;Build finished; the LaTeX files are in $(BUILDDIR)/latex.&quot;
+        @echo &quot;Run \`make' in that directory to run these through (pdf)latex&quot; \
+              &quot;(use \`make latexpdf' to have that step done automatically).&quot;
+
+latexpdf:
+        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
+        @echo &quot;Running LaTeX files through pdflatex...&quot;
+        $(MAKE) -C $(BUILDDIR)/pdf all-pdf
+        @echo &quot;pdflatex finished; the PDF files are in $(BUILDDIR)/pdf.&quot;
+
+pdf:
+        $(SPHINXBUILD) -b pdf -t enable_rst2pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
+        @echo
+        @echo &quot;Build finished. The PDF file is in $(BUILDDIR)/pdf.&quot;
+
+text:
+        $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/txt
+        @echo
+        @echo &quot;Build finished. The text files are in $(BUILDDIR)/txt.&quot;
+
+man:
+        $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+        @echo
+        @echo &quot;Build finished. The manual pages are in $(BUILDDIR)/man.&quot;
+
+texinfo:
+        $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+        @echo
+        @echo &quot;Build finished. The Texinfo files are in $(BUILDDIR)/texinfo.&quot;
+        @echo &quot;Run \`make' in that directory to run these through makeinfo&quot; \
+              &quot;(use \`make info' here to do that automatically).&quot;
+
+info:
+        $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+        @echo &quot;Running Texinfo files through makeinfo...&quot;
+        make -C $(BUILDDIR)/texinfo info
+        @echo &quot;makeinfo finished; the Info files are in $(BUILDDIR)/texinfo.&quot;
+
+gettext:
+        $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+        @echo
+        @echo &quot;Build finished. The message catalogs are in $(BUILDDIR)/locale.&quot;
+
+changes:
+        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+        @echo
+        @echo &quot;The overview file is in $(BUILDDIR)/changes.&quot;
+
+linkcheck:
+        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+        @echo
+        @echo &quot;Link check complete; look for any errors in the above output &quot; \
+              &quot;or in $(BUILDDIR)/linkcheck/output.txt.&quot;
+
+doctest:
+        $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+        @echo &quot;Testing of doctests in the sources finished, look at the &quot; \
+              &quot;results in $(BUILDDIR)/doctest/output.txt.&quot;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenREADMEdocs"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/README.docs (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/README.docs        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/README.docs        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,155 +0,0 @@
</span><del>-Welcome to the Bugzilla documentation project!
-You'll find these directories and files here:
-
-README.docs        # This README file
-html/                # The compiled HTML docs from XML sources (do not edit)
-txt/                # The compiled text docs from XML sources (do not edit)
-xml/                # The original XML doc sources (edit these)
-
-A note about the XML:
-  The documentation is written in DocBook 4.1.2, and attempts to adhere
-to the LinuxDoc standards where applicable (http://www.tldp.org).
-Please consult &quot;The LDP Author Guide&quot; at tldp.org for details on how
-to set up your personal environment for compiling XML files.
-  If you need to make corrections to typographical errors, or other minor
-editing duties, feel free to use any text editor to make the changes.  XML
-is not rocket science -- simply make sure your text appears between 
-appropriate tags (like &lt;para&gt;This is a paragraph&lt;/para&gt;) and we'll be fine.
-If you are making more extensive changes, please ensure you at least validate
-your XML before checking it in with something like:
-        nsgmls -s $JADE_PUB/xml.dcl Bugzilla-Guide.xml
-
-  When you validate, please validate the master document (Bugzilla-Guide.xml)
-as well as the document you edited to ensure there are no critical errors.
-The following errors are considered &quot;normal&quot; when validating with nsgmls:
-
- DTDDECL catalog entries are not supported
- &quot;DOCTYPE&quot; declaration not allowed in instance
-
-  The reason these occur is that free sgml/xml validators do not yet support
-the DTDDECL catalog entries, and I've included DOCTYPE declarations in
-entities referenced from Bugzilla-Guide.xml so these entities can compile
-individually, if necessary.  I suppose I ought to comment them out at some
-point, but for now they are convenient and don't hurt anything.
-
-  Thanks for taking the time to read these notes and consulting the
-documentation.  Please address comments and questions to the newsgroup:
-news://news.mozilla.org/netscape/public/mozilla/webtools .
-
-==========
-HOW TO SET UP YOUR OWN XML EDITING ENVIRONMENT:
-==========
-
-Trying to set up an XML Docbook editing environment the 
-first time can be a daunting task.
-I use Mandriva Linux, in part, because it has a fully-functional
-XML Docbook editing environment included as part of the
-distribution CD's.  If you have easier instructions for how to
-do this for a particular Linux distribution or platform, please
-let the team know at the mailing list: mozilla-webtools@mozilla.org.
-
-The following text is taken nearly verbatim from
-http://bugzilla.mozilla.org/show_bug.cgi?id=95970, where I gave
-these instructions to someone who wanted the greater manageability
-maintaining a document in Docbook brings:
-
-This is just off the top of my head, but here goes.  Note some of these may 
-NOT be necessary, but I don't think they hurt anything by being installed.
-
-rpms:
-
-openjade
-jadetex
-docbook-dtds
-docbook-style-dsssl
-docbook-style-dsssl-doc
-docbook-utils
-xemacs
-psgml
-sgml-tools
-sgml-common
-
-
-If you're getting these from Red Hat, make sure you get the ones in the
-rawhide area.  The ones in the 7.2 distribution are too old and don't
-include the XML stuff.  The packages distrubuted with Red Hat Linux 8.0 and 9
-and known to work.
-
-Download &quot;ldp.dsl&quot; from the Resources page on tldp.org.  This is the 
-stylesheet I use to get the HTML and text output.  It works well, and has a 
-nice, consistent look with the rest of the linuxdoc documents.  You'll have to 
-adjust the paths in ldp.dsl at the top of the file to reflect the actual 
-locations of your docbook catalog files.  I created a directory, 
-/usr/share/sgml/docbook/ldp, and put the ldp.dsl file there.  I then edited 
-ldp.dsl and changed two lines near the top:
-&lt;!ENTITY docbook.dsl SYSTEM &quot;../dsssl-stylesheets/html/docbook.dsl&quot; CDATA 
-dsssl&gt;
-...and...
-&lt;!ENTITY docbook.dsl SYSTEM &quot;../dsssl-stylesheets/print/docbook.dsl&quot; CDATA
-dsssl&gt;
-
-Note the difference is the top one points to the HTML docbook stylesheet, 
-and the next one points to the PRINT docbook stylesheet.
-
-Also note that modifying ldp.dsl doesn't seem to be needed on Red Hat Linux 9.
-
-  You know, this sure looks awful involved.  Anyway, once you have this in
-place, add to your .bashrc:
-export SGML_CATALOG_FILES=/etc/sgml/catalog
-export LDP_HOME=/usr/share/sgml/docbook/ldp
-export JADE_PUB=/usr/share/doc/openjade-1.3.1/pubtext
-
-or in .tcshrc:
-setenv SGML_CATALOG_FILES /etc/sgml/catalog
-setenv LDP_HOME /usr/share/sgml/docbook/ldp
-setenv JADE_PUB /usr/share/doc/openjade-1.3.1/pubtext
-
-  If you have root access and want to set this up for anyone on your box,
-you can add those lines to /etc/profile for bash users and /etc/csh.login
-for tcsh users.
-
-  Make sure you edit the paths in the above environment variables if those
-folders are anywhere else on your system (for example, the openjade version
-might change if you get a new version at some point).
-
-  I suggest xemacs for editing your XML Docbook documents.  The darn
-thing just works, and generally includes PSGML mode by default.  Not to
-mention you can validate the SGML from right within it without having to
-remember the command-line syntax for nsgml (not that it's that hard
-anyway).  If not, you can download psgml at
-http://www.sourceforge.net/projects/psgml.
-
-  Another good editor is the latest releases of vim and gvim.  Vim will
-recognize DocBook tags and give them a different color than unreconized tags.
-
-==========
-NOTES:
-==========
-
-  Here are the commands I use to maintain this documentation.
-  You MUST have DocBook 4.1.2 set up correctly in order for this to work.
-
-  These commands can be run all at once using the ./makedocs.pl script.
-
-To create HTML documentation:
-bash$ cd html
-bash$ jade -t sgml -i html -d $LDP_HOME/ldp.dsl\#html \
-$JADE_PUB/xml.dcl ../xml/Bugzilla-Guide.xml
-
-To create HTML documentation as a single big HTML file:
-bash$ cd html
-bash$ jade -V nochunks -t sgml -i html -d $LDP_HOME/ldp.dsl\#html \
-$JADE_PUB/xml.dcl ../xml/Bugzilla-Guide.xml &gt;Bugzilla-Guide.html
-
-To create TXT documentation as a single big TXT file:
-bash$ cd txt
-bash$ lynx -dump -nolist ../html/Bugzilla-Guide.html &gt;Bugzilla-Guide.txt
-
-
-Sincerely,
- Matthew P. Barnson
- The Bugzilla &quot;Doc Knight&quot;
- mbarnson@sisna.com
-
- with major edits by Dave Miller &lt;justdave@syndicomm.com&gt; based on
- experience setting this up on the Landfill test server.
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimagesbugzillapng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/images/bugzilla.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/images/bugzilla.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/images/bugzilla.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,58 @@
</span><ins>+\x89PNG
+
++IHDR\xC0E\xA1\xE9ltEXtSoftwareAdobe ImageReadyq\xC9e&lt;&quot;^IDATx\xDA\xEC=X\xD7\xD6g\xB6\xC0.\xB0,HĂ
+b\x8D\xBB&amp;&gt;5\xFAb{֨Q\x93\x98\xE4\xFD\x96\xE4#Qc\x9F1Q\xD4hL\xB1$\xB6\xD8kb{,X\x83ł (\xBDw\xD86\xF3\xDFf\x96\xBB\xC3\xCC\xEE\x9A\xE8{{\xBF\xEF~\xBB\xB3s\xE6\xCE̹\xA7\x9Fs\xEFP\xBFFt\x8A\xD7\xFB\xFC\xD3E\xFD鷴\xB5\xB8I\xC2#;\x8E[9\xA1\xEB\x94\v)\xDB%\xECy\xC0&gt;m\xCD\xD6\xFEk\xC0H\xDC\xDA\xF2ەڊ \xE8\xFBB\xB9\\xFE:{Nbc[{QQ\xCFkpB\xE7zO;;\xBB\x9EZ\xADv1\xFAN\xB2\x9Do\xD9L [{\xE10        \x8FK{\xBA\xB7C\xBD)꿲D\xFF\xA73\x81\x8Dl\xED\xCF\xF0(\x8C\xC0\xF1~u5\xEA\xCD0\xA6h(\xB3ٚ\xAD=w  \xC6\xF4\xF16\xD4'\xF2\xCC%\xF1\xDB\xDAs\xD9d+ ~\xFC;\xEE\xD4r\x96\xE1/\x87ښ\xAD=k+P;\xF6\xCFi\x81\xF3\xA8\xF7\xB2i[\xFBog1F\x88F\xDDj\x87B        G\xDC\xC6\xB6\xF6B\x99@\xD60\x84?\xCF&quot;_\xE8\x981\xB5l\xCD֞k\xA0\xAC vʌV\xA0\xCC\xF8 6F\xB0\xB5J\x88Iy\xDC\xE4j\x8F\xBA v\x87zϤ&quot;l\xC1\xD6^d\xE0\xDB\xF9j;;\xBBZ\xAD\x96\xFE\xEDK𩴹$\x95Jg\xD2\xE7\xD1\xE7at&gt;Z\xC0\xAF\xA0lL`k/\xAC\xFD\x9F\x8A;\xB8
+\xA5rE\x91C5U\x9A%\xEC9\\xAA\xA7 \x9A\xE8        \xD4&amp;&quot;&amp;荎\xBFE\xC7\xC5P\x93c\xB0\x99D\xB6\xF6\xCCM\x94\xA7!\xE5i3\xA7TW\x86҅r\x84\xBD\xBD\xFD?i\x8DF\xF3\xAD\x80$\xA7\xC6p        n\xB2'سmс\xBBGC\xEDd\x9B(\xD8J!l\xAD.M\xF2 \x8A\xA0%8k\xE2H\x94J\xE5|\x99\V\x8C\x88\xFF;\x9E\xA7D\x9B\xEE\xC54\xF1+\xEDz\x81i\xAD\x91-\jkϵ`\xD6\xA0\xB6\x990H\xF2\xBF\xC1J\xFE\xEDP\xBBnHH\x92`ZhG\x80p͑M\xD8\xDAs\xA7L\xAAC\x91\xB3\xDB^&quot;\x95\xF6DĿ L\xD7\xF0\xB3Ƥ\x99n\xB0\xD6\xF4\xB15[\xFB+\x9D`\xDCD\xE9\x80ٻ\x88\xF8#*+*f\xA1c9\xE6\xC4\xE2f\xB5C\x9DC\xF0\xF3        \x94\x80#lk\xB6\xF6\xDC0\xC7R$\xF9\xFFNH\x88f\xBD\xFEgt\\x85\xBA=+\xC99\xED\xA0g?\xF9@\xC89&amp;~\xB3i[{.5c\xFF\x93$\xD9Sa\xAFtQ\xAA\x95\xB2f^\xEA\x9F}\xDC\x9D\xEF=.L+,\xA9\xD8WVV\xBEi\x85̴1`\x9D;\x8F\xF9ۈ\xDF֞+'\x983{\xA4\xAC\xA9\xD3\xCA^\xA1\xB8\xD95\xD4&gt;{\xF3eh\xE2\xEE&gt;. \x91K`\xD3\xE2á\xB8\x92\xFC\xA2\xF2%\x8DT\x8E3\xD0\xEF\xCE\xF1r\xB3s\xBEb\xB5\x82\x8E\xFD\xC4\xED\xFE:7\x9Blk
 +ak\xAA7\x85$?\xADI\xECP\x9F1f@\xFB/\xBE\x99\xD9\xDC\xDA\x86\xA4
+\x98&lt;q&quot; +\xF1\x847@\xAEN\xEF\xAE: \xB3{\x87@\x9F@8\x95\x9E        \xF36_\xBEZZR:izw        +\xC6d}$\xBE\x8Dl\xAD&gt; \xC0\xDF\xE3G(\xF6N\x98a\xB9\xBB\x87Ǥ\xB6-\xDC&gt;ߵp\x90\xB3{\xD8HH,q\x83+?o_oظe8I\xF4\xB0zbGh\xE4
+\xE3&gt;\xFF,\xFC[Gx\xA9\xA7\\xBB\x9Fc\xBF8~:';g*\xA7\x92\xF5\xB4,\xD4\xD9\xE6\xB71\x80\xADեIyD/cM9+\xD1\xF1O~\xA7\xB7s\xF3p\xDD\xCF\xC7c\x8F\x87Z9\xFA\xE0\xE2!\xF6\xAE&gt;A`\xD7z8D,Z ?\xAC^\xE1\xE1ᐓ\x9D        \x97\xEE&lt;\x82\xB8\xB4x-\xC8ztn\x9F\xEC\xB8
+\xAF\xB4lA\xE8\xD8\xCFS\xDD\xE2B|\x8E\xBC\xA2\xBC\xE2wh\xE0\x8E\x9F}\xF6\x99mVm\xCD\xEA\x86'\x9Dd7n\xDC\xE8\UUuI\xD1\xD4 Q/@=O\xA4\xE7Μ5+gL\xBF\xA0M\xE7\xBF\xE1\xF9~pv\xB0\xA9w'H\xCBȄ\xF8\x84D\xE3M\x8A\x8B\x8A@j\xAF\x84y\x8B\x96\xC0'\xDBoB\xB0\xAF+|8\xA6|u\xE0\xD0\xE9ad\x9F \xF8r\xC0\xFF9\xA9\x9Cب\x91\x9Cǜ\xB6fk\xCF,
+\xC48\xB1\x88\xF8;\x85\x85\x85MK\xCFU/[\xBD\x9E\xA4嚽\xB04?^i\xAD\x85Yӻ3\xC7]\x83\xBD\xAA9J\xE1
+i\xB2&amp;\x988eH\x9C\xBFt\xCD\xC0\xD7\xC7 ^\x9F6.\xDF:
+\xAFvn
+Wr\xA0\xC4~\xF8ǀ60{\xF4Kp\xE2\xF7\xB3\xCBJ\xCB&gt;\xC0aʌ?\xC07ߪP\xB3d%Y\xF8\xB45\xF3\xA62\xFEIYX\xA9+ܟ\xEE\x96q\xD2?44t\xE7\xDD{)\xEAa\xE3&gt;\x85\xE2\x92r\xF3\xD80d\xC2?\xC2e0kD\xF7\xDA*ť&quot;\xC2[ sr\x85\xD3їA*\x93%\x91\x83\xDAImZ&quot;\x9F\xC0 &gt;\x9E\xB2\xBAw\xF4\x85Y\xA3:A~V9\x83\x8B\xE9ˏ\x83\xABJ\xD9/7\x94&lt;\xE0#\x85\xBF\xEF\x964,\xFE\xC2M\xBC^ \xE2\xE7\xE3\x9B\x98\xE0\xC1\x80\xAE)˃g\xF83\xE7\x83fiRRR\xA9T\xEA7㣵\x89\x9F\xC8M] a\xE1\xC4\xC1\xC2\xA6\xAF\x82\xAEہڽ1\xE85\x95\xE8:\xC4\x984n4s\xDE\xD9\xD9\xDC\xFC\xDB0\xEF\xEF쨀\xE6\xEE\xF0\xE6\x80P\x98:\xB4l:\xA7Z\xB5\xAB\xEA\x94V\xA3\x99WTXtV\x87!G4~\x95A\xCDޤ\x84\x95҅\x9F\x870\x880\x9E\x8D\xAA\xBB \xC33G\xB8)̧\x94\x8A\xC0\xE0\xA1m        Ç\xD3\xF3\xE6\xFB\x99\xCE\xF3\x88(\xE9\xD5Yp'\xFE\x91elr\x91\xE4a\xEC}A(\xCB`&gt;w~\xB7 ;\x85\x83W\xB3\xD6\xF0\xCF\xD9s`\xF6\xD4\xF1F\x98td\xF7m\xA9\xA0&gt;\xF5\xB50\x88I\xCEg\xA4!f\x8D\xED\xC7VO\xF5\xE9\xD0\xC6\xAB\x87\x
 A7\xC7b\xA5R\xD9\x81+X\xBF@\xC6C\x9A\xB4\xA4\xB8p.iЕ\xA2^\x88z\xEA٨g\xA1\x9E)\xD0\xE9߳*\xCAK\xA3\xD0u\xEF''\xCD=xp8\xC7u\xA5\x90\xEF\x81\xE0\xE1\xBDs\x84\xFD\xE4qʫ\xE8\xB8 \xF5b߅,\xDE\xE8\xF9\xB1\xCB\xCBͦ\xE7\xA2\x9B\x8B\xBA#|\x9F\xFB\xF5׃\xDD8ج\xCC\xF4\xB9\xEC&quot;p
+6\xC0b\xD5&lt;&lt;I\xAB\xC5b\x80W;w=OV2\xD4\xDC\xD2\xA26\xAF\x84qvV \xADtmYMӈ!ڴ\xF0\x82\xA3kނ\xD5;/N^\xF5˹\xAEv\xF6\xF6&quot;'\xFA\xF6-\xD4d\x8Be\x95\x95U2GG\xA7:\xBD\xB0\xBD\xBD&quot;\xC4\x91z\xF3\xE6Nݛ7o&gt;\xB7\xA8\xB0\xE0\xF2\x86+#&gt;\x9A;7        \xAA\xF3\xD4 \x91\xCA\xC1\xA0\xD7\xFD\xCFj\xA9LnLt\x96\x95U\xC8&quot;̎,\xBE UU\xA1\xF3 \xBE\xFB\xF5\xED\xB7}F\xCF\x9A3\xB9\xB8\xD70MM\xB2\x91m\xEAYj\x82$I+#-z\xE8\xA4\x95\xFE \x94f\x9A\x81Do\x93\x9F\x9Be\xD4F-K\xB0\xB8f&gt;$0{B_X9gdPc\xD7\xDDjug\x9E\x94f\xB4\x81\xC1\xA0'\x84WNZ\xDFU*\xA7\xF0Y\xB3f޼\xE9g\x9A\xABjk\x82\x86\x8D\xFFb\xF7H\xAB\xD3H\xCEs!r\x99^\xAF\x97\x88\x8D\xE3\xE0\xA0l\xCB\xE2V\xA1\xD1hdV\xC0\xE1ߚglp\xD4:\xE9OV@\xD76^fa
+^\x81\xBF_yE \xB1sM\xAB'\xA1\xA8B\xD7n\xDF\x95\xB4\\xC0Ą&amp;`bԀN\xB0k\xF9;\xAA\xC6\x8Dv\xB2L\xC0\xA9GFs\xE9tz        I&quot;\xF1@A\x83\xBAD&quot;u5jԷ#F \xF7f\xCD\xC8R\x99\xD1\xD0\xF1_\xD4\xCE\xF7\xA0\xCE'\xCDaa,f\xEE\xF4\x83\xC48\xDC\xB2\xFA\xEBi=զ\xB23\xC00\xFFذh\xE8\xFDA\xEB\xD8\xCCx\xAE&quot;\xFF1h\xB2nâI]\x9C\xDE1\xFB\x86mZz1L0\xF6\xA3\xF5;Љ\xF1\xC5Eű\xAC\x93D\x9E&lt;u\xEA7o/濫\xE2&quot;\x871\xA3G\xFF\xC0\x96\xC8\xC8\x9F\xC9\xE5r\xEAz\x99Lj \x82
+++mݩS\xA7\xF1\xE87'Sl\xDFd\xC1\xFC\xF98\xB8xuI\xB6\xEC2@bRR\x8A\xCA\xD9y\xA9\xA6\xAAJn@Dl4        X=z\xE4p\x8B-\xEF\xA1\xEF^\xBC\xFA\xB5\xC04Qkv\xEC\xD8q&quot;,,,A\xA9P\xBA+4p\xA9\xD0x\xA6\xD9}\xFA\xCE\xD9\xD9ٟzzz\xFEˣ\xF9 \xA0&gt;\xF8\xBB9\xC1a+\xBC+m\xEF\xA3\xF7\x93\xC8\xD0W\xFAuB\xC6w\x8C:AH\x99\xAD+\x{19D305}#\xF7'\xE4de\xD36b%\x8B|\x82\x95\xD8*\xAD\xA6\xEAv-L\xDA+\xFE\x8E&gt;huÕW\xD06\xA5\xA4G\x8F\xEEn'O\x9C\xD8+\x93\xC9T8|^^\xFEu\x9F&amp;Mބ\xEA\xC5\xF8\xDCuz0-\xCC3F\x93\xD0=g\xDDW\xAC\x84\xC4\xEC\xB5f\xAE3\x97\xA7 \xEA0\xD7\xD64\xFE}\xB8H\x9Bf\x86JY8Ԕ\xADHY\xE9\xED\x84\xDE\xED\x8E\xC0\xBB\xF5f\xF1\xCA\xF9X\xF6\xEE\xA6[χ\xEAC\x989@pz\x8E̗\xE8X\x9DO\xA8ӊ0J\xE2\xBF\xC7g5\x9C\xED\xA8\x8E2\xEA2\xFA\x93ĺ\xFD\x8C:\xA9G_\xF50\xA2;\xF8[xp\x90\xBB\xA7LJ\xECd\xE0RH#\xA2\xE9ɩ\xA0\xF3v,\xF2i\xA4]\xBCx)#9\xF9\xFE!&gt;\xBC\x9B\x9B[g,\xEA$\xD4\xED0        %A\x93AwM\xFF\xC6 \xD1\xDAa]ο\x96\xED\xF4wN\xEA\xC90x\xFE\xBD\xE5X8RnΎwNQ\xC7.tO
         \x96\x98Բ\x84\xAC\xC5:@\x9B Ω\xE5\x98F \xAE\xD6\xFAo\xAF\x86[K\xEF\xCF\x8D\x8B\x9A\xFAu4\x81dp%\xA1J*\xB4fa\xAB\x84 \xF7\xC6\xF7\x9D]F\xA1\xCE\xF9\xE4\xE8EH\x8C\xD7,|\xFB8y%a:X\xCD&quot;\x923Ut&quot;jR\xC7NJ\xAB5t,B \xF1\xF7\xEE]hݺ\xF5D\x8C/\xE2\xD1cRD0VM\xB17W(\x95xy\xB8\x94V\xE5\x92&lt;:,\xE7\xF1s\x99\xC0\xA4Q        ~&quot;\xB0g\xE4'\xA6\xAC\xDDT@h\xA3c{.\x9C\xF0g2\xE0\xC4m\xC6d\xC1s-\x84\xB5\xA6\x8D\xBDBaR\xB2\x83=\x8FD\x80\xB8I\xDE&lt;\x89\xAD5\xA9\x9F@I=\xE0\xD4\xF5\xC70\xB2W@C\xD5+\xE9i\x87\xAC&amp;|\x8E\xAA\xC3E\xAC\xA9T\xB3B\xD2\xD7\xDD        tm\xA5:|\xBE*\xBC\xA8\xB0\xE8 F\x9Cd\xE2Ҫ\x8A\x9D nͲ\x9E\x8DN\xA7+\xA3q3=4$d&amp;\xB0\xAA\xAA\xAA;Qg\xCE\xCCE\xF35,,Kф_YQ\x81\xA5W\xF0\xAFW:8xc\xE6`\xC6H\xFD䤤ij\xB5\xBA\x8FB\xA1h\x87|\x94\xA6\xD5\xCE%Y\RRr\x99\xA9V\xAC\yd۶m\xD3\xDFy\xC7y\xF1\xE2\xC5\xCBT*\xD5\xFE=Ξ=;\xB1\xB5\xC1\x83\x89\xFC\x9A\xD0\xFA\xCENtt\xF4͛7\xF1\xF3\xF3\x9B\xC7?\x87^\xED\xEE\xF1\xE3\xC7#ޘ8\xF1:\x98\xFEC(C
 t&quot;s\x813\x8D\xBE\xB6=\x9E\x88\x93\xEFݻ\xB7\xD5K]\xBA\x8C@\xEFN\xEF%qrrb\xCA\xB4Z\xED\xD4\x97\x95\x95\xDDF\xB8\xBA\xF5r\xB7n\xBFb\xDAFǎQ+\xB9V\xF0\x86ſ\xDCbjy\xA4h⧣&gt;\xE8\x93BDOpfv\xB5l`;Y&quot;eͤ6\xCD=\xE0\xD8E).;\x87#߀F\xA0 \x88\x91nT@@\xAB6$\xFFy\xF9\xC94\xEB\xF5        I        \xDA\xF6!\xBD{\xF7\x8CU\x93\x94I\x9A_N
+ϭ\x93\x80\x8D*\xBDv\xED\xFA\x80V\xADZ\xAD∞\xE3\xD6_R;\xAB]\xD1\xFD\xBB゚7~\xFC\xF8ϝ\x9D\xD5*G'\xD5\xA1{\xE4\xE4\xE69!⏐\xDBٷ!\xE0;\xA2q=&lt;=\xED\x85\xC6P(\xDA\xFEm\xE0 ځ\x82iCcY\x89\xC8}k\x95\x9FX\xF9|\x9C\x84\x97gdd.Ab\xA6iX\x9D%d\xB9\x9D\xDD\x9D\xBA{6\xF6\x82\xC2¢\x88\x8B/\xCC:th+t4BZ\xB2^\xBBB\xE9\x9Aû+\xCF&gt;_\xA0\xDA\xD6\x92\xB6\xF7kl\xFF\xEA\xAEg~\xAF&gt;\xAFg\x8F\xF5,\xC3P\xA5|\xD5\xC7dKxS\x95|{\xD1\xCE\xD7\xD7w,\xFE\xE6͛繨\x8FXW*\x85c\xD5\xEC\xFD\x8CjZ\xE4y\xF0\ӓ\x92\x92\xDF        ޏ\xF2\xA6\xE6\xEEKw\x89D\xE2ܳg\xAF\x81\x81\x81\xEF\x88\xC1         \xA8ppphci,K=55\xB5J\xA3\xD1\xCA,\xE0A\x89\x87\xA5-̅\x80+hΈ\xCF\xF4\xF4\x8C%\xCE\xCE\xCE3\xAD}~$L\xFC\xFA\xF6\xED\xB7\xF5ʕ\xAB\xD3؄\x9D{N\xA2^N\xB0\xF1\xC1        G\xB8\x9C\xEC_l\x89i\xB83\xCC&gt;\xCDd+CT?K\xF4\xA4\xDE\xF8\xDB\xC9\xDF SDs\x8Doˉ S\xCE\x9C\x92%Z\xA7-[\xB6\xBE\x9C\x9A\xFAx=2\x81|q\xD8\xF2\xF2\xF2̥K\x97\xD2f\x95\x9AY&amp;\x8EU\x9B$\x8E\xA4&quot;י\xFF\xA6M\x9B7n\xFCi]\x8
 9\x99H&gt;b\xE7\x90 k(\xF1߿\xFFȂ󓑉A\xD4π\xF3\x99:\x93\x85\xE0\x8B\x8B\x8B\x93rssc\x91\xF9Z*t        \x979C\x86 \xF5{\xD6z\xE7h_`ә4\xE8\xDF.\xBAw\xF0i\x98\xC04$EJXǘ\xA8e\xD2\xFC|4\xEE&lt;\xCC&gt;_Q^\xFE\x98\xE7HRtҍo\x97\x94\x9E4\x97\x91\xC6m\xFF\xC8\x91\x8B\xAF]\x8B\xA1\xECk\xF6\xED\xDFw,))\xE9.\xB2\xED\xDD\xF8\xA55\xB1j\xB2F0R\x8B\x9Et9\xA6\x91\x88A\x83\xADB/\xA9\xE6\xC3&quot;\xF6ƭ[q\xE7SSRӥR)٬y3\x9F\xD0\xD0v}\xDC\xDD\xDD;\x89\xBD\xCF\xF6\xEDۿ.--)ڻgO\xF2\xB4\xB7\xDE29\xF7\xF8\xF1\xE3 G\x8E&gt;N\x8FE\xE7BP#h\xFBy\xF8\xF0c\xBC\xBD\xBDMb\xDA\xC8}\xB8߾}X$\x8D\xDB]\xBBv\x9DHHL\x88wppl\xF4\xDAk\xAF\xFD\xDB$B\xB8\xB5T`\xB5\xC0\xC3SFz\xFA\xB9I\x93&amp;\xAE\xBAv\xEDZG\xABW\xAFy        \xF9%\x9F\xE3\xE1mi͈\x88\x887\xD0\xFB\xD7\xCA\xEF48FJ\xBD`\xF5\x81;\xDE\xCE)\xD1@&amp;\xC0`\x8C\xFDO0\xBE\x97!^\xBD\xF7:|\xB3'&amp;\xB9\xB8\xA8h\xE6\xD80?\xA0^        $\xF9\xB3\xBF\xFE\xFA\xAB\xA5kV\xAFN䜦\x91\x91\xD1g
+-5\x8A\x8AK\x84'~\x89\x80\x8Bp#=[\xB6nm\xA7P({\xF0\xE1nܸ\xB1\xAFo\x9F\xDE\xEB\xB00#\xE7\xE8\xEF&gt;|\xE4\xC8(d\xCD\xF8\xFD\xF7޽\xC8F\xBBjEa222&quot;\xE6ͻ\x8C\x8D%ݷ\xFF\xC0p//\xAF09\xB7Y#\x86\xFB\x88\xB5\x99+׮\xFD\x96\xF6\x89\xB0x\xF8\xB7&lt;\x98\x98\xA3\xD6T\x8C\xDE;ef&amp; \xE2\xCF\xC3\x9A\x985k\xE6e\xFFf\xFE\xEB\xFA\xF4\xE9;\x87\xF5\xF2\xF6\xA6\xCB\\xD6c\xCE)\xA6\x98        \x96\xC1\xB5T\x80[\xF7r!,\xC4\xF3)\x98CV\xFA\x93Ʋ\x88\xFD\xD1ɰz\xDF\x90\x9AY\xB8\xBB\xA4\xA4\xE4;\xADF\x9B\xA6놥\xAC
+\xA8\xD7m\x94\x8D\xDF\xEF\xFD7\xF6\x8A\x97-\xFB:s\xEA\xAA        Yx\xDCڱj\x9C\x99\xEB\x98(QhH\xBB^|\x98\xEC쬛,\xF1W\xF0q4\xA0l\xE8\x90!\xDB\xE3\xE2n6m\xDAt\x98\xC0\xD8Z\xBE\xEA\xE0\x81\x83\xD3\xE9\xFA.\x92\xAC\xCE\xD8&quot;\xA6Jc\xF3 Lhw\xFD\xFA+\xDD\xFB\xF7\xEB\xFF~Z \xAE\\xB1\xE2\x8B\xD8\xD8X:\xD1S\xC6ޟ\xC3/e-\xEA2V\xC21\x92\xD1E\xED\xEC\xCD\x94X\x88\xE4%*\xE5\xBF:\xF4{\xEF^}Lh\xE4ڨ3櫘h\xAB\x97BЦ\xD0\xFE\xE8\xB5\x80\x95\xD2\xF9\x82\xB4\xBC\xEA\xBA_wGf՘\xAF\x87\xF9\xEAʹ\x9C\xB8\xF7\xB8N\xA2\xEBO\xC7&gt;\xCE*(\xAE@&amp;O\xC5v$\x9DR8Ʉ1\x80qg\xB9\x86D&lt;&lt;&lt;\xBD\xDA&lt;\xEF\x93\xDBw\xE8\xF8\xC9\xF8qc\xE2\xE1:k\xC7\xE5Ù\xB9\x8Ea\x80Fn\xEE=\xF80gϝ?\xC6J\xFEr\x96+\xB1\x90)m6\xE9N\x9C&lt;\xB9kڴ\xB7\x86\x89\x84|\xE9k+\xA7L\x99\xA6\x8BO\x8C\x91\xA7\x8F\xE6~\xDCb\xD8\xF0\x91Kk\xDF\xFB\xDC\xC6\xC8\xC8\xE5q콹n`i\x84\xA8 ~\xEB\x8B3s\xA0XH\x9B\xCBC0\x82o\xF3\x96m/!\xFB\x88j\xD02\xC4` %:\x9DV&amp;2\xAE\x9C\xE7O\x87\x90Cu7&gt;ӑ\xCC\xFE?\\x
 A3äx\x8BO-@\xE6R\53`L\x90\x96[\xE9\xA8\xFB\xF9\xF9ALbN\xF6Ço\x92Cr殕\x95\x96\xDD\xC96rj \x8CJ@\x9D\xBA\xBB\xB9\x8Cd\x89H\x83\x85\xEA\xE0\xE7M[^\xE9ݻ\xCF\xB5Z\xDD
+\x87\xEFׯ\xC4+\xAF\xBC}\xFA\xF4\xA9,N\xF2\xD6W\x9D\x8B\gL\x94\xD1Q&gt;̆\xF5\xEB\xAEaL^\x8E%︹&quot;\xE7~\xF4\xAFةS\xA7\x89%\x99\x8CZj\xAAp.3f\xAC\xDB̙\xB3W\xD1\xD1$\xFC޷o\xDD\xDA=f\xF4\xA8}\xE3qڇ Y\xCAb\xAE&lt;+\x88\xBB\xE4\xD8\xF1\xFD\xFD\xFD{\xB8\xBA\xB8v\xB3\xB3\xB7\xF7\xADø\xA1\xC4\xD9S)\x86\xCB((̯7/\xB3pWJ\xE1I\x81
+(        \xED\xE8\xDAs\xE9!ZCn\xD4\xB8~\xFD\xFA\x89.]\xBA\xAC\xC7&amp;'v\xBCp\xF5 \xE2Ae&lt; \xAC\xE10S\xA7L\xFE-&lt;\xBC\xFB\xE5]\xBB\xF7m\xA6#*F I\xA4\xAA\x88O\x8CE \xF0=G\xB0\xD6\xABY8\xA3I@\x9A7$!q\xE6\xC3\xFC\xF1Gl\x91H\x99'\xE9\xF7Ք\x95\x95\xC7ӡN\x91,\xABcx
+˞\xDA-\xF9\xF2\xEB\xA5\xF6\xF6\x8A\xB6\xF8}\xD3\xD3\xD3\xCF\xF7\xED\xDBk-\x8B\xA72\xF6O\xD6\xD1\xD7Ⱥ\x88\xEB\xBA\xE1̜\xF3k,+9q2\xAA_HH\xE8r\x93\I\xDD\xD4&gt;N\xF8F+\xF0tv\x87FZ\xE0\xEE\xA3|q\xB3I\xF8qK\xAF\xC1\xE3\xE2\x8C\xC9TC\xFC\xBC'\x94HHN\x8D\xF3\xA4Q9O\x92\xEByeb!5-{=N        k35A\x97/_JOJJ&lt;\xC0\xBF\xC6\xC7\xC7\xE7e&lt;\xC6omH\xCF\xD3\xC3Ո\xDC\xE5\xCBW63s\x9D\xB9P\xA1\xD0RM\x92\xFF?\x84+p\xAD\x9E\x97\xA0B~\xC0\xED\x99*\x95j0?\x848\xFD\x9Di\xCB0\x9FDZ\xC1
+\xFC\xD67\xBCi+\xB6[\xC9\xED\xB7ڷ\xEF\xB0ۚ\\x89\x99\x90-\xF9+O\x89d\xA0+7\x88\x9E\xA6M\x9F&quot;\x8D\xE5P)\xA6\xE3\xA9\xF1*lR\xF0\xC8O\xADu\xBB&quot;/\xAD\xC3\x8A\x93p\xA5c\xA5\xA6\xA6\xC6\xF1\xAFq\xE59L&quot;\xE3b\xA6+\xDDû\xF7\xE8m\x89\xAA\xAA\xAA\xD2\xF9\xE7?\x9A;/P\xC0\xB9$\x85\xB3\x99\xB1\xF1\x8C+~\xE9r\xCCo\x9F^\xBE\xA0l\xFD\xFA#cb~\xCFe\xF1c\xA2%y\x98\xF8 \x80\x91\xFCg\xCEF\xF7G\xCFɇC&gt;afl\xEC\xF5u۷o\x9B=l\xD8\xD0\x8D=uC\xBD\xEA\xFD\xEA\xF2\xACO\xC5\xA2м\xD3;\xBC\xF5\xED\xDD\xD4\xC40\x9A&gt;\x89ZQ\xA9oBE\x81\x8CiyDov\xFB\x91\x982^\xB8\xA6\xC5g\xE6\xDDer\xB9\x814\xAE;/\xD3\xE25n\xC7k&amp;\xE3\xECӤ\xC9K1\xEE⒒xww\xF7&amp;\xF8o={\xF6\xEA\xB2|\xD9W\xD7\xC1\xB4\x92р9}\xD2M\x9B\xB7\xB5\xB7&quot;~n$\xDE}~}ɿY\xB3H\xFE5G\x8FY\x81\xEEu4|\x93I\x8A'\xC5}k炨\x9C\xB1\xEA\xD3ׯ\xE9\x9B|\xB8\xEE\xEB\xD9\xFD\xE5H\xCC\4\xFA\x83'M\xF6\xAE˳&gt; (+c\xCBWdj\xC0\xA9\xA9\xB2\x96\xF9\x93\x96O\xB7\x995\xD2$
+\xC4wj\xA8\x8FCE\x98\xF9$\x82\x82\x82\xC2\xF9\xD7UVVfZ\xF7\x83\xE7\xAFZ\xF9;\xAB)tc\xDA]\x8D\xF9\xE3d\xA2\x84Xp\x82!77'\xDE\xCD\xCD\xEDU\xFCdXX\xFBqݺ\x85\xEF\xBDr\xE5r%\x9B\xB9\xC4\xFF+\x81a\xAEN\x9D\xBBL\xB4\xE0&lt;r\xCC        \xB3f\xE8ѥs\x97\x9F\x90`Q\xE3\xD7 \xA9\xFFӻ\xEF\xBCu\xF7\xA9V\xAEZ\xE3\xDF6$ď\xA1&quot;\x89\x94&quot;$տo\xAFh\x8E(\xCB\xC4\xCAEg+a-\xC11\xB4\xA9T*{\xF2\xE1񯅚\xF5\xB8\xBF#\xEB\xED\xE9C\xAD\xBD?T\x97[֑\xD8\xC9\x90\xD2@\xA2KD=$\xFAX\xF7\xEDB8\x9A\x98 W\xEEfA\xD9\xE3J\xD0#s\x88\xEE\xDAR=\xEC9\x99\xC4h\x88:)\x94z,\xFA4YJ@\xCC\m=W\xA1\xE0&gt;\xBF\xFB~}g\xAF\xC6&gt;\xA3\xF9\xD7d\xA4g\xFC\x81\xD9\xDDdyYE&lt;f\xEC\xD8        \xE3\xC1\xB4\xC4\xC2\xE1\x8D7&amp;7\xB9|\xF9\xFA\xDF&amp;~ = \xFB&lt;F\xE4\xEF۳\xE7$\xFF\xBCT*w\xFAyӶ\xB5={\xF6\xF6b\xC7uĺÙ\xB3\xA75ru+26\x8BK\xFB3&gt;؄\xC6l\x8A\xC3%&amp;$\xFEg\xF8\xEBC\xF6\x80\xE96%\xD2n\xDDz o\xDB&amp;t/݃\x82\xDA\xECk\xBC\xB05\xD2&quot;\xF7\xC4ˤ9\xADAX[\xCDT\x96\xE1\xE4H\xD4|\x98a\xC3F
 xa\xA1Qci\xFAƟ\xB6tm٢\xD5$3\xE3\xE2YkI\xB5\xF1n-\xE12\xB1\xA7՘\x88\x88wT\xF6J\xE8\xDB\xC4t:\xD8\xFC\xCBظ\xF1'X\xF5C48\xD50\x95r\x8C\x9B\xF8&amp; &amp;c\xE0X\xD4#\xA0$\xCE֘@\xF5\xCBJ p\xFD\xDE\xFD\xBFNHMI\x89sR\xA9*\xB4\xF6\xF6\xF6z'G'\xB5\xB7\xB7O/w\x8F1B\xD7]\xBAt\xE1 nz\x95\x94\x96\xD0%&amp;o\x9F&amp;\xBD\x93Sf\xA4\xA7\x9D2\x90d\x81\x87\x87g\xB0\xB3\xB3s7\xE4\xC38\x9B3O֬\xFD\xA1\xAFV\xA3\xCDMLLx\xF8\xC3kO\x9E2퀏O\x93ex\x8EN\xAA\xC0-\xDBv\xFE\xF6\xE4\xC9\xE3\xFDI\x89\x89J\x85\xCE\xCB\xCBۯq\xE3\xC6=\\\Z0\x8C[\xD5\xC7޸\xB3\xC0\xCE޾'_XX\xF8 *\xEA\xF4\xE5ϿX\xD2\xE1B\xA3tp\xD0\xD8\xDB+tH\xE2\x93\x8E\x8EB\xA6\x95#g\xDE        \xDDw\xEDw\xEB\xFAHCVzZڽe_\x99\xC8E\xAA\xC4`I\x8A\xCC&lt;~\xF4\xC8\xF5\xE3Ǐ\xE6\x99S\xAF\xD7g\xFF\xF6ۡg\xA2N\x94\x95׎x-^\xF2\xD5'\xE8\xDD&gt;ݳ{'S\xBD;x\xF0׹\xF3\xE6\x8FmѢ\xE5\xBF\xC4\xF0\xC3\xDD\xE6\xFF\xBDwcBzWPegg/_\xA9g\xA4=\xBD\xB2F\xC9\xCA\xE1\xFB¿ڇ\x80\x8F\x83#\xA4\x97\x97C^\xE7\xCEз/4o\xD6\x90m\xC
 DV\xA6\xC0\xFD3g\xC17&amp;\xA7\xA4\xC0\xBA\xA4B(\xA6 Z^\xB9\x8F\xC0ݻw7\x84\x84\x84D\xB2\x9Br\x9Ez3\xE1h\xA9\xEE\x98\xFA$\xBB\xC1K\xD5222\xCEw\xEB\xDA\xE1c\xD6Q\xA6\x9Dfr\xEB/\xBB\xFA\xF4\xEE\xDDwK]\xC6)))NFNn\xB9\xA7g\xE3\xF6B\xE7\xEF޹\xBDv\xF0\xA0W6\xF6\xEA\xD5G\xBDi\xCB\xF6#\xFC\xA5\x99\xF5i\xFE~\x8D\xE9Ԥ\xF7\xEA\xA9@\x9AbLˀV_&gt;\x851;\xB2s@!\xFCƋ\xC1ݿ\x9F\xBC\xAA\xDF߲s%E\xB0)b\xB0G\x8F\xFC6\xFD\xFD\xF7\xDE&gt;GGp\x89bp\xBF:\xF0\xFE\xCC\xEF]8=-0\xB0\xF5l!\x98\xB2\xB2\xD2D\x83\xC1P\xA4V\xBBt5\xA1X\xBD\xAE 9xN&quot;\xEF \xD8rK\xC6n\xCB\xCB\xCBc\xD6p\xAA\x9Dk\x94\xDA\xF8Z\xC4?\xA7}\xAC\xE8ޕ!~\x9A2}\xA0]|&lt;-[\xC7&amp;O\x82̕+\xE0\xF0\xF8\xF1\x90\xBB\xF8\xDF|\xE3\xA8C\x8Ch\xC2!\xD8! 4T7=J\x80\xBAm\x8B\x87\xEDӰ
+H$Ţg\xCDxw)\x967`\xF2\x93\xDE{\xB6\xB4\xB4䊵\xE3\xD0U\x89\x8B\xCE_l\xEE\x99H\xB6\xC8):\xFA\\xC1\xB6\xAD\x9B\xA7\x8BU2
+W?%[\xF3I[\xB4 \xF8\xB2\xA1\xF8\xC0\xCA\xC9Eö\xC6w\xD6j\xA5&amp;&amp;\x90y\xFCWs\x99\x85\xD33p\x92W\xFB\xF7\xFA\xA9\xAC\xAC\xEC\x9E\x8C\xA3\xA3SkgguW\xFC\xB7G\x8F.**J2\xF3N\xF8rI        \xC3\xB7n\xDDbR\xB4ӧ\x9A.0\xA2m}\x82¶0!\xA40\xBEU\x8C \xA8\xAE[\xABƌ\xF14\xCD\x9D&lt;&lt;\x80LIe&gt;i\xC6\xC0\xE36\x81j5\xAC\xEF\xDE\x82\x95\xA6L\xC0\xDD7**\xEA\xE6\xF8Z\xEB0\x8EsU\x95\xE6N}\xB6\xFE\xA0k`bc\xAF\xAF\xEF\xD6ir3Y\xA8\xC0\xB2\xCEU \xE6G\xBCWRRr\xD5\xD2X\xF9y\xF9\xB1cG\x8F{\xE0\xC0\xDE\xBD\xCEPla;&amp;s\xFB٢\xF9\xEC\xD8\xFE\xCBۅ\x85E1\x96\xC6/..N\x9E0~t\x84\x99\xEDA\x88j\xC2j\xF8\x96(\xA5\xA5\xA5\x89x\xA2\xA2\xA2\xF2\xAE,\xCB\xD0\xC6\xE5\x9B\xE6`\xB1        \xA5\xCAˑ%\xBEU\x8D1\xA71\xE3\xFFޝ\x96\x9B\x9B{\xDA\xD23\xC7ݼ\xF9C\x9F^ݖ\xE5\xE6\xE4&amp;X\xD8F\x85\xC0\x9D`rܸq)H l\xFCh֘&amp;\xA04@蟘PZk\xCC\xE9&amp;H\xFC\xC0\xE5b\x8C\xC1J\xCA4h\xC9\xABdrX\xF1R;PF\xE2\xA7\xEF\xFB\xE0\xC1\x83\x9D\xDF|\xF3M
+\xD4m_H\xE3R\xBC \xD1\xE7\xE6\xD2K\xF5,I5:~\x9C\x9F\x9F{\xEF\xDEݝ/\x9C\x8Fl\xD5\xD2o\xC0\xC8\xE1CֳfW)V\xC0\xE54\x87\xEE\xCBj8\xE1\xD2\xC5\xE89\xC86?TYY\x99\xC1\x8D\x87̝\xA4$uv\xEF\xDA&gt;\xBBSǶ\xFF\xBC~=&amp;\x9B\xD6\xCE6\xFC\xB02'';J\xE8\xA4R\x89 \xE1U~\xBAp^L\x87\xB0\xA0ɇz\x97i\x9CD\xFCy332\xCE\xD1\xCF\xDA\xFA\xED۷\xE2\x8A\xCC$\xD1\xE0ihC\xFA\xFDv\xEE\xF8e        \x9E\x91&gt;y\xE2\xD8\xFCrd\x8F .\xD4!$\xF8&amp;\xC3\xFA\xA8\xD3'#\xC4`eR\x991Qw\xFCؑbpr\x99\x9Csn5\xC8\xC8\xEA\xD2)\xF4\x9F۶n\x8B̭\xAD\xF9\xF9\xD7\xF5Hk\xD2\xCFIG8\xF9~ѧ\x9F \xFD\xEF\xA2\xF1\xF9\xF9\xE7 \xCA\xCA\xCA&lt;#\x82'\xE1J@\xCDJzeVV\xD6R\xE4lMe\x9C\xC1\xABq\xA6ҟ\x96\xF0\x8E\x8E\xE0\xED\xE0hM\x91\x87E\xB2M*)\x83\xD0\xCEظ_\xF2\xB2\xBEZ&lt;\x93i!\xE4\xC7\xED|\xE0\xC8F.P{A:?ID\xF2r\x8C\xF0u\x98\x8A\xE2\xEA\xF7\xF1(\xBE \xDF\xED\xAF7\xE7R|\x97\x8A\x97\x9C\xD3`\xA1N9\xD4\xEC\xC8\xC0%\xE2\xDE\xF3KƎ\x9D\xD0t\xC9\xD2\xE5\xBB\xF9\xA1ې6-G\xB1Yn\xAE\x86\x87\x8B\x80\xE
 1\xB8+4\xABA\xE0+&lt;&lt;+x\xEF\x83',\xB9\\x82\xC3\x8B\xE3\x99\xC3\xBE\xABW\xA6E\x8F\xDC&amp;8~\xB8\xD0+&lt;`\xF0r\xA8\xA9\xC5+\x98\xE7\x95ak\xBD\xBC\xBClٲ\xE5`xx\xF8 wW\x85\xC4`\x90\xD3vm\xD31ꍾ
+ywO%y,Q\xDAQ\xF1\xF1\xF1Ԇ+\xB1\x92a\xEEe\xC0J@\x87\xA9`=;\x8Eɂ\xA8\xFD_\xC4\xFC\xF8\xB5FB\xFFm\xCCU$\xF2\xB7
+!\xCDL\xFA^\xA2\x8F+uƉ\x9C{)/Sτ7ǎ\xA37?\xCE]P\x90\x9F,\xF0.FlR+\xB3\xFExF\x8B=#\xC9^\xAFÈS
+\xA6;]\xE0K\x82\xFD^\xA6[\xD8\xE8x\x82\x8Dc
+\xB9~na\xBCch\x89@\xF9\xBE\xB5 $\xF6^\xC6\xE2Hv1S\xFC4y\xF2d\xBA&quot;1\x8Ew\xD1LZ\xBD\x93ǦD\xC5\xDFk\xA6\xCE&amp;&amp;)p\xE0\x97\xE0DF\x82\xF0\xE9\xFC2 #T\x8F8%\xBC\xF1\xF0\xDA\x82\x971\xDB.\x9C8y\xFAB\xFF\xAF\xF4\xBC\x8C݃\xC0\xC60\x96Y&gt;z\xFA\xAD\xA0\xA0\xE0\xF7\xF9
+\xF6\xE1\x83\xD70\xC2\xD2`\x85lX\xD8\xC7 &gt;+\x82H*@Ԥ\xAC\xDE ,\x9FP\xC5p\xA4\xE3\xE1\x93c
+s\xDB\xC6\xE0\xE3JxB\xD7\xFA\xCC3%\x87\xDA{\xD3&lt;\x8B\xBF)\xE2o\x93\xA1ǐX\x97\xBD\xE1\xF9\xE0\xC0\xFF\xDF3`J\xC02\xFE\x96t?\xCD侁\xBE\x84X&amp;\x91\x8D\xF1?\x8CbDɼ\x88\x85\xEES\xA6\xBEs\x93ֲ\xC8\xBE\x84\xFC\x93\xF8GC\x8E*\x95J\xEDڨQS??\xFF\xD0Ep\xFC\x97\xA7͟\xB0\xD0V#\xB1b\xBFr\xA8\xD9\xC0\xFA=\x81@\xE0]\xF8W+\xF6G$\xA4\x80\xE0\xC3\xFF\xCF23p|Z\xFA\x80cJ&amp;\xF2\xC2:\x91\x89{L@
+Hкd\x81)\x9Ea\xEB\xB6\xCD3a\x88\xC4\xE44J̅a\xCFQ\xAD[\xF9R&lt;\xC2c.| &quot;\xCF\xC1\x98!C\x87\x8F@\xA7]\xE8\xF5\xCFNN\xAA\xC1t\xF7\xF7on\x95k\xA5\xD7\xEB\xCB~\xDA\xF8\xE3&quot;0-\xC7\xCD8\xA8\x87\xF66\xF7\xD7Q\xA4x\xA5\xEAk\xA9V\x87\xB2KX\xC0\xBD\xA5y\xA2\xA1:\x95g,\xF9\xCDi\x80\xEE{\x9D\x90\xFC\x9E\xF7\xD4\xCAϸ֝{\x8F.\xC9d\xB2:o\xB6J\xFF\xBA\xD7~\xF8\xED\xEA7\xD8\xE8\xC1\xD2#&lt;\xE0\xA0!\6\xE8z\x99\x88$\xAD\xAF\xF4\xA8\xF1\x9B\x93
+u\xF0\xC5\xD8ș\xA8N\xE9/s\xAD\xAA\xAA\x8AS*\x9AI$\xB5\xB5'&amp;\xDE۹\xF8\xB3\xF9[cc\xAF\xE5\x80\xE9\xFAac\xE5\xACmC\xEB:L\xC4S\xBB\x97\xF4\xF8\xB9\xC6\xE0\xC0\xA6^&gt;\xE2&gt;#G\x8D\xE9\xEF\xEE\xEE\xA6vqi\x8B\xEC\xFE \xA9\xB4\xA6&lt;\xA2\xB4\xB44\xA9 ?/)##=\xE1\xBBoWE!\xC2\xCF\xD3u\x95\xBC\x85\xF0\xF0?\xC1\x97+c\x80MTX\xFE\xD4F\xF0\xD7`\xF1rn\xF3&amp;9/z\xC1\x8F\x8C\xE0\xEB\xA3\xF9\xA1\xE3g\xFE\xC7r\xFFMMfC\xC1_\xD6\xF0\xB0*`\xDF\xF1]\x98\xF1D\x98X\xDE\x8F\x9E\xD9\xFE\xDD\xD2\xC6/ \xF1sR\xCF1\xE01ns\xDB~\xF3\xBB\xED?\x8E\xEB\xD9\xFE_\x80Ok\xF6\xF2P\xFE\xA2\xCFIEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimagesbzLifecyclexml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/docs/en/images/bzLifecycle.xml (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/images/bzLifecycle.xml        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/images/bzLifecycle.xml        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,4 +1,11 @@
</span><span class="cx"> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
</span><ins>+&lt;!-- This Source Code Form is subject to the terms of the Mozilla Public
+     License, v. 2.0. If a copy of the MPL was not distributed with this
+     file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+     This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+     defined by the Mozilla Public License, v. 2.0.
+--&gt;
</ins><span class="cx"> &lt;dia:diagram xmlns:dia=&quot;http://www.lysator.liu.se/~alla/dia/&quot;&gt;
</span><span class="cx">   &lt;dia:diagramdata&gt;
</span><span class="cx">     &lt;dia:attribute name=&quot;background&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimagescautiongif"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/images/caution.gif (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/images/caution.gif        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/images/caution.gif        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-GIF89a\xC2\xFF\xFF\xFFp\x80\x90\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF!\xF9,K\xBAΰ\xB9 &quot;\x9B\xB4Z0\x85ߘ7hP著s\xA2i6\x82\xAA\xF0F\xE6Gw\xF6\xED\xB2 \x9E\x971^o\xB7\xE1a+\xA4L\xB88͊\x83Ә)bEjFx=Y\xBA\xCF\xD6j*\xFAE\x92\x91;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimagesnotegif"></a>
<div class="binary"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/images/note.gif</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimagestipgif"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/images/tip.gif (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/images/tip.gif        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/images/tip.gif        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,7 +0,0 @@
</span><del>-GIF89a&quot;\xE7R))\xDE\xD6\xC6Z9s\x94scƽ\xB5k11\xDE\xC6\xC6B\x84{\xBD\xB5ks\x94RB\x84BZZR\xEF\xE7筽\x9C\xA5kc\xA5ZB!RR{\xF7޽{Ɯ޵\x94)9Bc1ֵ\x8C{!\xADZ9\x8C{\x8C\xBD\xADƌJ)sRc罌\xD6\xC6\xEF\xEF\x9Csν\xC6!1筌s!B\x84Rc{k{\xD6\xDE\xDEZ9)\xBD\xB5\xB5)!1\x9Ck!!R1!\xBD\x8C\x94sBR\xE7\xDE\xDE\xE7\xAD{\xE7\xD6\xDEέ\xB5\xAD\x94\x84\xAD{c1\x84\xA5\x9CsR9Z\xAD{J!{1\x94cJ\xAD\xB5֌kB\xA5{JBJc\x8CcB\xEFέ\x94k\x8C\xA5kJ\xA5\x84\xAD9)1)B!\x84ޔZ\xD6\xE7\xF7JkscsRJ\xD6\xCE\xD6ֽ\xB5s{\xAD\xEF\xDE\xDE\xD6\xC6\xD6Z\xCE\xCEΥJ!k9!ε\xAD\x84ZJ\xB5\x8C\x84\x84ck\xB5\xB5組\x84\xC6\xC6Ƶsc\xA5c{Zk\x94sB9\xFF\xEF֭\xDE\xEF\xCEƽ\xBDsZε\x9C)9\x9CΜ{\xAD\x8Ck\x84J9\x94\x94\xA5Ɣs\xAD\x9C\xAD΄{ƽ֥\xAD\xC6c\xAD\xBD\xDEkB\x84sޜk9RJZR99\x9C{{\xDE\xEF\x{1D4514}JJR\xAD\xC6\xDE\xDE\xD6\xD6\xDE\xCE\xD6޽\xB5sZB\xBD\xAD\xA5\xBD\x9C\x84J!1\x94\xA5\xF7\x94\x94\xD6B\xEF\xDE֥\x94\x94\x84{cֵ\xAD\xE7\xB5kZ\xB5ΌRJ\xE7\xD6\xCEΜ\x84s\xCE{c1B{)J֔9\xBD\xAD\x9
 4sJ1ֵ\x9C\xBD\x8Css)\xE7\xE7\xDE)1\xE7νR1B\xCE{R\xB5s\x8C\xAD{\x84\xE7\xB5\xDEZ99\xFFޜ9))\xFF\xFF\xFFkk{kZZJ9)1\xAD\x84R\xC6\xE7\xFF\xB5c9\xF7\xF7\xF7\xD6\xE7猌\x84cJRB1!޵\xAD\xD6\xCE\xC6{1!\x9C91\xEF\xEF便\xADƭ\xBD\xA5c)\xEF\xD6\xCE֭\xA5{\xBD\xD6\xE7\xE7\xE7絥B)\xBD\x94k\x94cZ\x8CZ1\xEF\xE7\xDE\xE7\xADR\x84\x9C\xADε\x8C\xBDkJﵜ\xA5kZ\xB5\x84c\xE7Ƶ\xB5\x94\xA5ƌcZkss\x8C\x9CƜ\xA5)sc{ƌ\xA5\xDE\xF7組R\x94Z\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF!\xF9\xFF,&quot;\xFEu\xD8`F\x80a\xFF*\ȰaC]\x9C&amp;\xF8\x
 E2\xB4l\x99.]~\x86\x8Dq\xC8ѡ\xAE\x8A\xCB|-\xFB\xC3)
-DNt\\xF9\xEF\xE3\x9F]*\xA4\xA9 D']\x87\xB0@\x83&amp;\xCBO5M,X\xC6I\xC8\xCBG_\x88(\xFB\xF2\xE6\xE6\xA5?\xBA\xA2\xC0V5\x96E\x85\x84\xBCtɆ5_\xD4ؘ \xE8        Q\x8Að\xC0\xD5 
-\x8A-\x97]Y\xE1\x86.6ld9F䂂?\xA3\xA3\x855D̨!&quot;!eD¾\xC0\xA3NR\xB1b\xADYfv\xD9!.\xE9*\xF5\x88%L\xBA\xE0\xF0O-U\xAF\xDB|I$  @wP]\xE6K\x96\xA0RyH\x95
-Ŋ!IV\xA6\xECH\xD2\xEC@²\xD4\xE6a\xC9\xC5C\x99︠!Md\xABA*\xA0\x87a:=\x9C7\xB9\xA0#K#\x9DH\xBDb\xC1\x92\x91+) ]\xB8B\xAB٘G ԑ\xBC\xC8Ak \x91\xE2\x82 \xB1\xA0b\xC8\x80\xFCRG\xC3 \xD4Jv\\xD0\xC9\x89\xC0B\xD1
-\x82\x854\\xC80\x84\xB0@\xA4\xE2 *_ \xF3\x84&amp;v4\xC9&amp;\xA9p\xB0\xC1,q55\xB2M3\x9Cl\xA2\x8C        \xD6\xE4J\x882\x806tqA%Kv\x84\x87\x88\xFCc\x88 \xC1PQ%Gf\xA9d\xC4 \xF8eGM|DG;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenimageswarninggif"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/images/warning.gif (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/images/warning.gif        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/images/warning.gif        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-GIF89a\xA1\xFF\xFF\xFF\xFF\xFF\xFF\xFF!\xF9,]\x9C\x8F\x91\xED\xB9֛0\xD2\xED}Y\xEE\xD6i\xDFz\xE3\x90        Bv\xA2\x91ʎ\xA9\xBA\x8A\xD8 \xB5I\xCD9l\xE3\xBC\xBF\xA37$\xEA\x80&lt;P\xB2h\x9C\xCCTН4\xA9\xA4E\x9D \xAD\x97CL\xA9KppL\xFE\x86]ݯ;\\x8A\xCB\xF2:ˎ\xCF\xEB;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenmakebat"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/make.bat (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/make.bat                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/make.bat        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,197 @@
</span><ins>+@ECHO OFF
+
+REM Command file for Sphinx documentation
+
+if &quot;%SPHINXBUILD%&quot; == &quot;&quot; (
+        set SPHINXBUILD=sphinx-build
+)
+set BUILDDIR=.
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% rst
+set I18NSPHINXOPTS=%SPHINXOPTS% rst
+if NOT &quot;%PAPER%&quot; == &quot;&quot; (
+        set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+        set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
+)
+
+if &quot;%1&quot; == &quot;&quot; goto help
+
+if &quot;%1&quot; == &quot;help&quot; (
+        :help
+        echo.Please use `make ^&lt;target^&gt;` where ^&lt;target^&gt; is one of
+        echo.  html       to make standalone HTML files
+        echo.  dirhtml    to make HTML files named index.html in directories
+        echo.  singlehtml to make a single large HTML file
+        echo.  pickle     to make pickle files
+        echo.  json       to make JSON files
+        echo.  htmlhelp   to make HTML files and a HTML help project
+        echo.  qthelp     to make HTML files and a qthelp project
+        echo.  devhelp    to make HTML files and a Devhelp project
+        echo.  epub       to make an epub
+        echo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+        echo.  text       to make text files
+        echo.  man        to make manual pages
+        echo.  texinfo    to make Texinfo files
+        echo.  gettext    to make PO message catalogs
+        echo.  changes    to make an overview over all changed/added/deprecated items
+        echo.  linkcheck  to check all external links for integrity
+        echo.  doctest    to run all doctests embedded in the documentation if enabled
+        goto end
+)
+
+if &quot;%1&quot; == &quot;clean&quot; (
+        for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
+        del /q /s %BUILDDIR%\*
+        goto end
+)
+
+if &quot;%1&quot; == &quot;html&quot; (
+        %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;dirhtml&quot; (
+        %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;singlehtml&quot; (
+        %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;pickle&quot; (
+        %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished; now you can process the pickle files.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;json&quot; (
+        %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished; now you can process the JSON files.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;htmlhelp&quot; (
+        %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;qthelp&quot; (
+        %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished; now you can run &quot;qcollectiongenerator&quot; with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+        echo.^&gt; qcollectiongenerator %BUILDDIR%\qthelp\Bugzilla.qhcp
+        echo.To view the help file:
+        echo.^&gt; assistant -collectionFile %BUILDDIR%\qthelp\Bugzilla.ghc
+        goto end
+)
+
+if &quot;%1&quot; == &quot;devhelp&quot; (
+        %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;epub&quot; (
+        %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The epub file is in %BUILDDIR%/epub.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;latex&quot; (
+        %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;text&quot; (
+        %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/txt
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The text files are in %BUILDDIR%/txt.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;man&quot; (
+        %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The manual pages are in %BUILDDIR%/man.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;texinfo&quot; (
+        %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;gettext&quot; (
+        %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;changes&quot; (
+        %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.The overview file is in %BUILDDIR%/changes.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;linkcheck&quot; (
+        %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;doctest&quot; (
+        %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+        if errorlevel 1 exit /b 1
+        echo.
+        echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+        goto end
+)
+
+if &quot;%1&quot; == &quot;pdf&quot; (
+        %SPHINXBUILD% -b pdf -t enable_rst2pdf %ALLSPHINXOPTS% %BUILDDIR%/pdf
+        echo.
+        echo.Build finished. The PDF file is in %BUILDDIR%/pdf
+        goto end
+)
+
+:end
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrel_notestxt"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/docs/en/rel_notes.txt (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rel_notes.txt        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/en/rel_notes.txt        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3028 +0,0 @@
</span><del>-Release Notes for Bugzilla version 3.0 and higher are available in HTML
-format, either on the bugzilla.org website, or in your current installation,
-linked from the index page.
-
-bugzilla.org links for release notes
-------------------------------------
-3.0.2: http://www.bugzilla.org/releases/3.0.2/release-notes.html
-
-***************************************
-*** The Bugzilla 2.22 Release Notes ***
-***************************************
-
-Table of Contents
-*****************
-
-- Introduction
-- Important Updates In This Point Release
-- Minimum Requirements
-    * Perl
-    * For MySQL Users
-    * For PostgreSQL Users
-    * Required Perl Modules
-    * Optional Perl Modules
-- What's New?
-    * Complete PostgreSQL Support
-    * Parameters In Sections
-    * One Codebase, Multiple Databases
-    * UTF-8 for New Installations
-    * Admins Can Impersonate Users
-    * Bug Import and Moving Improvements
-    * Adding Individual Bugs to Saved Searches
-    * Attach URLs
-    * Optional &quot;Strict Isolation&quot; for Groups
-    * &quot;editcomponents&quot; Change
-    * &quot;shutdownhtml&quot; Change
-    * Miscellaneous Improvements
-    * All Changes
-- Deprecated Features
-- Outstanding Issues (&lt;======================== IMPORTANT, PLEASE READ)
-- How to Upgrade From An Older Bugzilla
-    * Steps for Upgrading
-- Code Changes Which May Affect Customizations
-    * CGI.pl is Gone
-    * Other Changes
-- Security Fixes In 2.22 Releases
-- Release Notes for Previous Versions
-
-Introduction
-************
-Bugzilla 2.22 is one of our most polished releases. We did a lot of
-small cleanups to make Bugzilla easier to use and more useful in
-many, many small ways, in addition to adding some major new features.
-
-This document contains the release notes for Bugzilla 2.22.
-In this document, recently added, changed, and removed features
-of Bugzilla are described. If you are upgrading from an older version,
-you will definitely want to read these release notes in detail, so that
-you have an idea of what has changed.
-
-If you are upgrading from a version before 2.20, also read the 2.20 
-release notes (lower in this file) and any previous release notes.
-
-If you are installing a new Bugzilla, you will still want to look over
-the release notes to see if there is any particularly important 
-information that affects your installation.
-
-If you would like to contribute code to Bugzilla, read our 
-Contributor's Guide at:
-
-http://www.bugzilla.org/docs/contributor.html
-
-
-Important Updates In This Point Release
-***************************************
-
-This section describes bugs fixed in releases after the original 2.22
-release.
-
-Version 2.22.2
---------------
-
-+ Make Bugzilla compatible with Template Toolkit 2.15 (bug 357374)
-
-+ Make Bugzilla compatible with versions of MySQL higher than 5.0.25
-  (bug 321645)
-
-+ Sanity Check can now only be run by people with the &quot;admin&quot; privilege.
-  (bug 91761)
-
-Version 2.22.1
---------------
-
-+ When sending mail, Bugzilla could throw the error &quot;Insecure dependency in
-  exec while running with -T switch&quot; (bug 340538).
-
-+ Using the public webdot server (for dependency graphs) should work 
-  again (bug 351243).
-
-+ The &quot;I'm added to or removed from this capacity&quot; email preference
-  wasn't working for new bugs (bug 349852).
-
-+ The original release of 2.22 incorrectly said it required Template-Toolkit
-  version 2.08. In actual fact, Bugzilla requires version 2.10 (bug 351478).
-
-+ votes.cgi would crash if your bug was the one confirming a bug (bug 351300).
-
-+ checksetup.pl now correctly reports if your Template::Plugin::GD module
-  is missing. If missing, it could lead to charts and graphs not working
-  (bug 345389).
-
-+ The &quot;Keyword&quot; field on buglist.cgi was not sorted alphabetically, so
-  it wasn't very useful for sorting (bug 342828).
-
-+ Sendmail will no longer complain about there being a newline in the
-  email address, when Bugzilla sends mail (bug 331365).
-
-+ contrib/bzdbcopy.pl would try to insert an invalid value into the
-  database, unnecessarily (bug 335572).
-
-+ Deleting a bug now correctly deletes its attachments from the database
-  (bug 339667).
-
-
-Minimum Requirements
-********************
-
-Perl
-----
-
-  Perl v5.6.1              (Non-Windows platforms)
-  ActiveState Perl v5.8.1  (Windows only)
-
-  Note that this is the last release of Bugzilla to support perl 5.6.x--
-  future versions will require perl 5.8.
-
-For MySQL Users
----------------
-
-  MySQL v4.0.14                    (changed from 2.20)
-  perl module: DBD::mysql v2.9003  (changed from 2.18)
-
-For PostgreSQL Users
---------------------
-
-  PostgreSQL 7.3.x
-  perl module: DBD::Pg 1.31 (1.41 required for PostgreSQL 8+)
-
-  WARNING: DBD::Pg 1.43 has a bug which causes checksetup.pl to fail
-  and corrupt the database. If you are using DBD::Pg 1.43, either downgrade
-  to 1.41 or upgrade to 1.45 (1.42 and 1.44 seem broken somehow too).
-
-  Note that this is the last release of Bugzilla to support PostgreSQL 7.x.
-  Future versions will require PostgreSQL 8.0 and DBD::Pg 1.45.
-
-Required Perl Modules
----------------------
-
-  AppConfig v1.52
-  CGI v2.93
-  Data::Dumper (any)
-  Date::Format v2.21
-  DBI v1.38
-  File::Spec v0.84
-  File::Temp (any)
-  Template Toolkit v2.10 (changed from 2.20)
-  Text::Wrap v2001.0131
-  Mail::Mailer v1.67     (changed from 2.20)
-  MIME::Base64 v3.01     (new in 2.22)
-  MIME::Parser v5.406    (new in 2.22)
-  Storable (any)
-
-  Note: The SMTP support in Mail::Mailer 1.73 (the most recent version)
-        is broken. The last known working version is 1.67.
-
-Optional Perl Modules
----------------------
-
-  Chart::Base v1.0
-  GD v1.20
-  GD::Graph (any)
-  GD::Text::Align (any)
-  Net::LDAP (any)
-  PatchReader v0.9.4
-  XML::Twig (any)       (new in 2.22)
-  Image::Magick         (new in 2.22)
-
-
-What's New?
-***********
-
-Complete PostgreSQL Support
----------------------------
-Bugzilla 2.20 contained experimental support for PostgreSQL.
-In Bugzilla 2.22, PostgreSQL support is fully complete and stable. Using
-PostgreSQL with Bugzilla should be as stable as using MySQL, and if
-you experience any problems they will be taken as seriously as if you
-were running MySQL.
-
-There are no known remaining major problems with Bugzilla on PostgreSQL.
-All features of Bugzilla have been tested and work.
-
-
-Parameters In Sections
-----------------------
-Long-time users of Bugzilla know that over time the parameter list has
-grown quite large. It has now been split into sections to make it easier
-to use.
-
-
-One Codebase, Multiple Databases
---------------------------------
-There is now limited support for having multiple projects use the
-same Bugzilla codebase, but all have separate databases.
-
-The different projects can have their own templates and their own
-bug database, but all use the same set of Bugzilla code in the same
-directory.
-
-To enable this, set an environment variable called PROJECT when
-calling the Bugzilla CGIs. Then for each project, you can have
-a localconfig.PROJECT (where &quot;PROJECT&quot; is the value of the PROJECT
-environment variable) file for the database parameters, and a 
-template/en/PROJECT directory (where &quot;PROJECT&quot; is the value of the
-PROJECT environment variable)
-
-This feature isn't documented yet, but we hope to have documentation for
-it soon.
-
-
-UTF-8 For New Installations
----------------------------
-If this is the first time you're installing Bugzilla, it will now use
-UTF-8 encoding for all pages, automatically. It will also send emails
-in UTF-8. This eliminates most of the internationalization problems
-users have experienced, as one Bugzilla page may now contain any number
-of languages simultaneously.
-
-If you are upgrading and you want to use UTF-8, just turn on the &quot;utf8&quot;
-Parameter. However, realize that if you have non-UTF-8 data in your 
-Bugzilla, it will appear unreadable. (If you just have ASCII in your
-database, you're safe to turn on the &quot;utf8&quot; parameter, definitely.)
-
-
-Admins Can Impersonate Users
-----------------------------
-User impersonation (think of the su/sudo command on Unix) allows you
-to view pages and perform actions as if you are logged in as someone else,
-without having to know their password.
-
-A user in the new &quot;bz_sudoers&quot; group has the option of &quot;becoming&quot;
-any user in Bugzilla. Once they &quot;become&quot; that user, they *are* that user
-for the rest of the session, until they decide to switch back to being
-themselves.
-
-However, they cannot &quot;become&quot; any user in the &quot;bz_sudo_protect&quot; group.
-This group includes everybody in the &quot;admin&quot; and &quot;bz_sudoers&quot; groups by 
-default.
-
-Any time a user is impersonated, they will get an email notifying them
-who has impersonated them.
-
-
-Bug Import and Moving Improvements
-----------------------------------
-The XML Import script, importxml.pl, has been completely re-written.
-
-It now:
-
-  * Correctly imports the &quot;priority&quot; field
-  * Understands when the &quot;Reporter&quot; or &quot;CC List&quot; security boxes 
-    are unchecked on the bug.
-  * Places bugs in the appropriate groups
-  * Allows attachments to be imported
-  * Is much more forgiving about small problems in the XML
-
-
-Adding Individual Bugs to Saved Searches (Tagging)
---------------------------------------------------
-Users now have the option of adding an individual bug to any
-particular Saved Search. Individual users that disagree with the site
-default can add or remove this feature (which appears as an entry box
-visible in the footer) by changing the General Preferences setting
-called &quot;Enable tags for bugs&quot;.
-
-
-Attach URLs
------------
-Instead of attaching a file, you can now also attach a URL to a bug.
-This will show up just like an attachment on show_bug.cgi, but when
-you click on it, it will take you to the URL.
-
-To enable this, turn on the &quot;allow_attach_url&quot; parameter.
-
-
-Optional &quot;Strict Isolation&quot; for Groups
---------------------------------------
-If you turn on the &quot;strict_isolation&quot; parameter in Bugzilla, you
-will *not* be able to add any user to the CC field (or set them
-as an Assignee or QA Contact) unless that user could normally see
-the bug. That is, you will no longer be able to &quot;accidentally&quot; 
-(or intentionally) give somebody access to a bug that they 
-otherwise couldn't see.
-
-
-&quot;editcomponents&quot; Change
------------------------
-Previously, all users who had &quot;editcomponents&quot; could see every Product,
-using the editcomponents.cgi script. Now, users with &quot;editcomponents&quot;
-can only see Products that they normally have access to.
-
-This restriction also affects editversions.cgi, editmilestones.cgi and
-editproducts.cgi.
-
-
-&quot;shutdownhtml&quot; Change
----------------------
-All of Bugzilla is now affected by the &quot;shutdownhtml&quot; parameter,
-including command-line scripts. checksetup.pl is exempt. Many scripts
-(such as collectstats.pl and whine.pl) will just exit silently when
-&quot;shutdownhtml&quot; is turned on.
-
-
-Miscellaneous Improvements
---------------------------
-
-- Added a frequently-requested user preference for whether or not to go
-  to the next bug in your list after submitting changes to a bug.
-
-- The ability to do relative date searches (like &quot;1d&quot; for &quot;1 day&quot; or &quot;1w&quot;
-  for &quot;1 week&quot;) by hour now, in addition to days and other units of time.
-
-- &quot;Alias&quot; added to the New Bug form, for users with editbugs.
-
-- Users can now actually see the descriptions of flags that you enter
-  in editflagtypes.cgi. The description will appear as a tooltip
-  when a user places their mouse over the flag name on show_bug.cgi.
-
-- Bugzilla will optionally convert BMP attachments into PNGs for you.
-  See the &quot;convert_uncompressed_images&quot; in the &quot;Attachments&quot; section
-  of the Parameters.
-
-- You can now edit the Status Whiteboard when you are changing multiple
-  bugs at once.
-
-- The way that groups work in the database has changed, and large-scale 
-  Bugzilla use with many concurrent users should be much faster, as a 
-  result. (Technical Details: The need for Bugzilla to &quot;derive groups&quot; 
-  has gone away pretty much entirely.)
-
-- Performance improvements on searching attachment information that's not
-  the actual content of the attachment (such as searching the Attachment
-  Description or the Attachment MIME Type)
-
-- You can now specify multiple email addresses, comma-separated, when 
-  setting the requestee of a flag, and it will set the flag once for each
-  of those email addresses
-
-- &quot;Bug Creation Time&quot; is now searchable in the Boolean Charts.
-
-- When you mark a comment on a bug as private, the background color
-  of the comment will change immediately. However, in order for
-  Bugzilla to register that the comment is now private, you still
-  have to &quot;submit&quot; the changes.
-
-- Emails sent from Bugzilla now have &quot;X-Bugzilla-Keywords&quot; and
-  &quot;X-Bugzilla-Severity&quot; by default, containing the information
-  from the related Bugzilla fields.
-
-- You can now change the assignee and QA contact on multiple bugs at
-  once even when those bugs are in different products.
-
-- contrib/merge-users.pl allows you to merge two user accounts. This is
-  particulary useful when a user opened several accounts and only one should
-  be kept. It also lets you merge a deleted account with an existing one.
-
-All Changes
------------
-
-If you'd like to see all the changes between Bugzilla 2.20 and Bugzilla
-2.22, see:
-
-http://tinyurl.com/9p2tm
-
-
-Deprecated Features
-*******************
-
-- This is the last release of Bugzilla to support perl 5.6.x. All future
-  versions of Bugzilla will require at least perl 5.8.
-
-  This is the last release of Bugzilla to support PostgreSQL 7.x. Future
-  releases using PostgreSQL will require PostgreSQL 8.0 and DBD::Pg 1.45.
-
-Outstanding Issues
-******************
-
-- bug 305836: PostgreSQL users: do not use DBD::Pg version 1.43 with 
-  Bugzilla. It has a bug which can corrupt the database. Version 1.41
-  is fine. Version 1.45 or higher is fine too.
-
-- (No Bug Number) VERY IMPORTANT: If you have customized the values in
-  your Status/Resolution field, you must edit checksetup.pl BEFORE YOU
-  RUN IT. Find the line that starts like this:
-
-  bug_status   =&gt; [&quot;UNCONFIRMED&quot;,
-
-  That's where you set the values for the Status field.
-
-  resolution   =&gt; [&quot;&quot;,&quot;FIXED&quot;,
-
-  And that's where you set values for the Resolution field.
-
-  Those are both near line 1826 in checksetup.pl.
-
-  If you forget to do this, you will have to manually edit the &quot;bug_status&quot;
-  and &quot;resolution&quot; tables in the database to contain the correct values.
-
-- bug 276230: The support for restricting access to particular Categories of 
-  New Charts is not complete. You should treat the 'chartgroup' Param as the 
-  only access mechanism available. However, additionally, charts migrated from
-  Old Charts will be restricted to the groups that are marked MANDATORY for 
-  the corresponding Product. There is currently no way to change this 
-  restriction, and the groupings will not be updated if the group configuration
-  for the Product changes.
-
-- bug 37765: If you use the &quot;sendmail&quot; support of Bugzilla,
-  and you use an MTA which is *not* Sendmail (such as Postfix, Exim, etc.)
-  make sure the &quot;sendmailnow&quot; parameter is ON or Bugzilla will not send
-  e-mail correctly.
-
-- bug 69621: If you rename or remove a keyword that is in use on bugs, you will
-  need to rebuild the &quot;keyword cache&quot; by running sanitycheck.cgi and choosing
-  the option to rebuild the cache when it asks. Otherwise keywords may not show
-  up properly in search results.
-
-- (No Bug Number) If you have a lot of non-ASCII data in your Bugzilla (for 
-  example, if you use a translation of Bugzilla), don't enable the XS::Stash
-  option when you install the Template Toolkit, or your Bugzilla installation
-  may become slow. This problem is fixed in a not-yet-released version of the
-  Template Toolkit (after 2.14).
-
-- Bug 99215: Flags are not protected by &quot;mid-air collision&quot; detection.
-  Nor are any attachment changes.
-
-- Bug 89822: When changing multiple bugs at the same time, there is no
-  &quot;mid-air collision&quot; protection.
-
-- bug 322955: The email interface (bug_mail.pl) in the contrib/ directory
-  has not been maintained (as it has no maintainer), and does not work 
-  properly. We hope to have this fixed in our next major release of 
-  Bugzilla; however, any help or contributions in this area are very 
-  welcome.
-
-
-How to Upgrade From An Older Bugzilla
-*************************************
-
-NOTE: Upgrading from a large installation (over 10,000 bugs) running 2.18
-      or before may take a significant amount of time. checksetup will 
-      try to let you know how long it will take, but expect downtime 
-      of an hour or more if you have many bugs, many attachments, 
-      or many users.
-
-Steps for Upgrading
--------------------
-
-1) Read these entire Release Notes, particularly the &quot;Outstanding Issues&quot;
-   and &quot;Security Fixes&quot; sections.
-
-2) View the Sanity Check (sanitycheck.cgi) page on your installation before
-   upgrading. Attempt to fix all warnings that the page produces before
-   you go any further, or you may experience problems during your upgrade.
-
-3) Make a backup of the Bugzilla database before you upgrade, perhaps
-   by using mysqldump. THIS IS VERY IMPORTANT. If anything goes wrong
-   during the upgrade, your installation can be corrupted beyond
-   recovery. Having a backup keeps you safe.
-
-   Example:
-
-      mysqldump -u root -p bugs &gt; bugs-db.sql
-
-4) Replace the files in your installation with the new version of Bugzilla,
-   or you can try to use CVS to upgrade. The bugzilla.org website has 
-   instructions on how to do the actual installation.
-
-   You can also use a brand-new Bugzilla directory, as long as you
-   copy over the old data/ directory and the &quot;localconfig&quot; file to the
-   new installation.
-
-5) Run checksetup.pl after you install the new version.
-
-7) View the Sanity Check page again after you run checksetup.pl.
-
-8) It is recommended that, if possible, you fix any problems you find
-   immediately. Failure to do this may mean that Bugzilla will not work 
-   correctly. Be aware that if the sanity check page contains more errors after
-   an upgrade, it doesn't necessarily mean there are more errors in your 
-   database, as additional tests are added to the sanity check over time, and 
-   it is possible that those errors weren't being checked for in the old 
-   version.
-
-9) This version of Bugzilla contains improvements to the email that
-   Bugzilla sends when a bug is changed. The template for that email 
-   is contained in the &quot;newchangedmail&quot; parameter. If you would like
-   to take advantage of the email enhancements in this version of
-   Bugzilla, reset that parameter to its default. (You can customize
-   it after that again, if you want.)
-
-
-Code Changes Which May Affect Customizations
-********************************************
-
-CGI.pl is Gone
---------------
-The CGI.pl file, which used to contain many global functions, and which
-also contained initialization code for every CGI, is gone. The functions
-have been moved to various places and sometimes renamed.
-
-The initialization code that used to happen inside CGI.pl is now inside
-of Bugzilla.pm. All CGIs must &quot;use Bugzilla&quot; in one way or another. (Some
-CGIs &quot;use Bugzilla&quot; by doing &quot;require globals.pl&quot;.)
-
-
-Deriving Groups No Longer Happens
----------------------------------
-Bugzilla no longer needs to &quot;derive groups&quot; in advance. That is, previously
-Bugzilla used to flatten the group heirarchy into the user_group_map
-table. (That is, show that a user was in every group they were in,
-even if they were only in that group because they belonged to *another*
-group.) Now the table only contains groups that the user is in directly,
-and groups that they are in because of a regexp.
-
-Instead, The Bugzilla::User-&gt;group function determines the groups a user
-is in when called.
-
-We did this because the group derivation was causing a lot of complexity
-in the code, and also deriving the groups was a slow process that 
-frequently had to happen inside of a database lock while sending mail
-or viewing a bug list.
-
-See https://bugzilla.mozilla.org/show_bug.cgi?id=304583 for details.
-
-
-Other Changes
--------------
-
-- The move.pl script's functionality has been merged into process_bug.cgi.
-
-- $::template and $::vars are gone from globals.pl. Instead of $::template,
-  use Bugzilla-&gt;template. Every script creates the $vars variable by itself
-  instead of using a global $::vars variable.
-
-- $::userid is gone. Instead use Bugzilla-&gt;user-&gt;id.
-
-- QuickSearch is now in perl instead of in JavaScript. The code is in
-  Bugzilla/Search/QuickSearch.pm. This makes it much easier to customize,
-  and it also fixes some long-standing issues that QuickSearch had.
-
-- Attachment data is now in the attach_data table. Other information
-  about attachments is still in the &quot;attachments&quot; table.
-
-- Much like the 2.20 release, many functions have been removed from
-  globals.pl and CGI.pl. They were moved elsewhere and renamed.
-  Search RESOLVED bugs in bugzilla.mozilla.org for the old
-  version of the function name, and that will usually show you
-  the bug where we moved the function, allowing you to find out
-  what the new name and location is.
-
-- This is the last release that contains the deprecated
-  SendSQL, SqlQuote, FetchSqlData, MoreSqlData, and FetchOneColumn 
-  functions. Instead, you should use DBI functions. For a very brief 
-  example, see:
-
-  http://www.bugzilla.org/docs/developer.html#sql-sendreceive
-
-
-Security Fixes in 2.22 Releases
-*******************************
-
-A long-standing, well-known security issue is finally resolved in Bugzilla
-2.22: Previously, the &quot;Session ID&quot; of each user could be easily guessed,
-given enough time. This could have allowed an attacker to take over a
-user's account, in certain circumstances. Now, the &quot;Session ID&quot; is totally
-random, resolving this issue. See bug 119524 in bugzilla.mozilla.org for
-details.
-
-If you are very concerned about the security of your Bugzilla installation,
-it would be a very good idea to run the following command on your
-database immediately after upgrading:
-
-TRUNCATE TABLE logincookies;
-
-This is actually safe to do at any time--it just forces a logout of
-every single user, even those with saved sessions. (It invalidates
-every login cookie Bugzilla has ever given out.)
-
-Version 2.22.2
---------------
-
-A Cross-Site Scripting vulnerability is fixed in Bugzilla 2.22.2. You can
-read the details of the fix at:
-
-http://www.bugzilla.org/security/2.20.3/
-
-Version 2.22.1
---------------
-
-The Bugzilla team fixed two Information Leaks and three Cross-Site
-Scripting vulnerabilities that existed in versions of Bugzilla
-prior to 2.22.1. We strongly recommend that you update any 2.22 
-installation to 2.22.1, to be protected from these vulnerabilities.
-
-In addition, we have made an enhancement to security in this version
-of Bugzilla. In previous versions, it was possible for malicious
-users to exploit administrators in certain ways. Although this has
-never happened (to our knowledge) in the real world, we thought it
-was important that we protect administrators from this sort of attack.
-
-You can see details on all the vulnerabilities and enhancements at:
-
-http://www.bugzilla.org/security/2.18.5/
-
-
-Release Notes For Previous Versions
-************************************
-
-***************************************
-*** The Bugzilla 2.20 Release Notes ***
-***************************************
-
-Table of Contents
-*****************
-
-- Introduction
-- Important Updates in this Point Release
-    * Version 2.20.1
-    * Version 2.20.2
-- Minimum Requirements
-    * Perl
-    * For MySQL Users
-    * For PostgreSQL Users
-    * Required Perl Modules
-    * Optional Perl Modules
-- What's New?
-    * Experimental PostgreSQL Support
-    * New User-Interface Color/Style
-    * Higher-Level Categorization of Bugs (above &quot;Product&quot;)
-    * Regular Reports by Email of Complex Queries (&quot;Whining&quot;)
-    * &quot;Environment Variable&quot; Authentication Method
-    * User-List Drop-Down Menus
-    * Server-Side Comment Wrapping
-    * UI for Editing Priority, OS, Platform, and Severity
-    * Bugzilla Queries as RSS
-    * Choice of E-Mail Sending Methods
-    * &quot;User Preferences&quot;
-    * &quot;Large Attachment&quot; Storage
-    * &quot;User Visibility&quot; Controls
-    * Miscellaneous Improvements
-    * All Changes
-- Deprecated Features
-- Outstanding Issues (&lt;======================== IMPORTANT, PLEASE READ)
-- How to Upgrade From An Older Bugzilla
-    * Steps for Upgrading
-- Code Changes Which May Affect Customizations
-    * The New Database-Compatibility Layer
-    * If You Customize Your Database...
-    * Many Functions Renamed
-    * User Preferences
-    * Other Changes
-- Security Fixes In 2.20 Releases
-- Release Notes for Previous Versions
-
-
-Introduction
-************
-
-This document contains the release notes for Bugzilla 2.20.
-In this document, recently added, changed, and removed features
-of Bugzilla are described. If you are upgrading from an older version,
-you will definitely want to read these release notes in detail, so that
-you have an idea of what has changed.
-
-If you are upgrading from a version before 2.18, also read the 2.18 release
-notes (lower in this file) and any previous release notes.
-
-If you are installing a new Bugzilla, you will still want to look over
-the release notes to see if there is any particularly important information
-that affects your installation.
-
-The 2.20 release has had about nine months of development since 2.18, but
-they were nearly the most active nine months in Bugzilla's history. We hope
-that users will appreciate our many external changes, and that Bugzilla
-administators will find that our internal changes make their lives easier.
-
-If you would like to contribute code to Bugzilla, read our 
-Contributor's Guide at:
-
-http://www.bugzilla.org/docs/contributor.html
-
-
-Important Updates In This Point Release
-***************************************
-
-Version 2.20.1
---------------
-
-+ Many PostgreSQL fixes, including fixing whine.pl on Pg 8 
-  (bug 301062) and fixing the --regenerate option of collectstats.pl
-  for all versions of Pg (bug 316971). However, users who want full
-  PostgreSQL support are encouraged to use the 2.22 series, as 
-  certain PostgreSQL bugs were discovered that will not be fixed 
-  in 2.20 (their fixes were too complex).
-
-+ In Bugzilla 2.20, the &quot;administrator&quot; user created by checksetup.pl
-  would not ever be sent email, because their email preferences were
-  left blank. This has been fixed for 2.20.1. However, if you created
-  this administrative user with Bugzilla 2.20, make sure to go back
-  and enable their Email Preferences. (bug 317489)
-
-+ The bzdbcopy.pl script mentioned in these release notes
-  has now actually been checked-in to the 2.20 branch, and so
-  it's included in this release. (bug 291776)
-
-+ When there's only one Classification, you now won't be required
-  to pick a Classification on bug entry. (bug 311489)
-
-+ You can no longer add dependencies on bugs you can't see.
-  (bug 141593)
-
-+ The CC list is included in &quot;New&quot; bug emails, again. (bug 313661)
-
-+ In the original 2.20, certain scripts were not correctly using
-  the &quot;shadow database,&quot; if it was specified. This has been fixed
-  in 2.20.1. (bug 313695)
-
-+ &quot;Saved Searches&quot; that were saved before Bugzilla 2.20, would throw
-  an error if they contained &quot;Days Since Bug Changed.&quot; as part of their
-  criteria. This has been fixed in Bugzilla 2.20.1. (bug 302599)
-
-+ You can now successfully delete a product even when Target Milestones
-  are turned off. (bug 317025)
-
-+ checksetup.pl now correctly pre-compiles templates for languages other
-  than English. (bug 304417)
-
-+ The &quot;All Closed&quot; chart that is created by default in New Charts 
-  now actually represents all closed bugs, and not all bugs in the 
-  product. (bug 300473)
-
-+ CSV bug lists with more than 1000 dates now work properly. (bug 257813)
-
-+ Various bugs with upgrading from previous versions of Bugzilla 
-  have been fixed. (bug 307662, bug 311047, bug 310108)
-
-+ Many, many other bug fixes. See http://www.bugzilla.org/status/changes.html
-  for details on what was fixed between 2.20 and 2.20.1.
-
-
-Version 2.20.2
---------------
-
-+ Adding a new attachment and taking the bug at the same time does not
-  create a referential integrity problem anymore if the bug was marked as
-  a duplicate (bug 332705).
-
-+ Some additional admin links have been added to the sidebar (bug 282613).
-
-+ A new test has been added to our test suite, named 012throwables.t.
-  It will now make sure that all tags used in ThrowUserError() and
-  ThrowCodeError() are defined, and that there are no unused tags (bug 312042).
-
-+ whine.pl now works correctly on MySQL 4.0. MySQL 4.1 is not affected
-  (bug 327348).
-
-+ contrib/merge-users.pl allows you to merge two user accounts. This is
-  especially useful when a user opened several accounts and only one
-  should be kept (bug 188264).
-
-+ The login form on index.cgi again works correctly on a fresh installation
-  (bug 328108).
-
-+ Email preferences are now set correctly when creating a new user account
-  using the ENV method (bug 327355).
-
-
-Minimum Requirements
-********************
-
-Perl
-----
-
-  Perl v5.6.1            (changed from 2.18)  (Non-Windows platforms)
-  ActiveState Perl v5.8.1                     (Windows only)
-
-For MySQL Users
----------------
-
-  MySQL v3.23.41                   (Note: 2.22 will require MySQL 4.x)
-  perl module: DBD::mysql v2.9003  (changed from 2.18)
-
-For PostgreSQL Users       (new in 2.20)
---------------------
-
-  PostgreSQL 7.3.x          (8.x has received less testing)
-  perl module: DBD::Pg 1.31 (1.41 required for PostgreSQL 8+)
-
-Required Perl Modules
----------------------
-
-  AppConfig v1.52
-  CGI v2.93
-  Data::Dumper (any)
-  Date::Format v2.21
-  DBI v1.38              (changed from 2.18)
-  File::Spec v0.84       (changed from 2.18)
-  File::Temp (any)
-  Template Toolkit v2.08
-  Text::Wrap v2001.0131
-  Mail::Mailer 1.65      (new in 2.20)
-  Storable (any)         (new in 2.20)
-
-Optional Perl Modules
----------------------
-
-  Chart::Base v1.0
-  GD v1.20
-  GD::Graph (any)
-  GD::Text::Align (any)
-  Net::LDAP (any)
-  PatchReader v0.9.4
-  XML::Parser (any)
-
-
-What's New?
-***********
-
-Experimental PostgreSQL Support
--------------------------------
-
-In addition to MySQL, Bugzilla now also supports PostgreSQL. PostgreSQL
-support is still somewhat experimental. Although most major features of
-Bugzilla work on PostgreSQL in 2.20, there are probably still a few bugs
-that need to be worked out.
-
-PostgreSQL support in 2.20 is acceptable for smaller production
-environments that don't mind running into a bug or two now and then.
-
-
-New User-Interface Color/Style
-------------------------------
-
-You'll notice that Bugzilla looks a bit nicer, now! We've made a few
-color and style changes to update the overall &quot;feel&quot; of Bugzilla's
-User Inteface. We plan to do even more work on the UI for 2.22.
-
-
-Higher-Level Categorization of Bugs (above &quot;Product&quot;)
------------------------------------------------------
-
-Previous Bugzillas had &quot;Products&quot; that you could file bugs in,
-and &quot;Components&quot; for those products. Now, &quot;Products&quot; can be grouped
-into &quot;Classifications.&quot;
-
-To enable this, a Bugzilla administrator can turn on the 
-&quot;useclassification&quot; parameter, using editparams.cgi.
-
-
-Regular Reports by Email of Complex Queries (&quot;Whining&quot;)
--------------------------------------------------------
-
-You can now tell Bugzilla to do a specific query (or set of queries)
-every X minutes/hours/days, and send you the results by email. This is
-great for keeping track on a daily basis of what's going on in 
-your Bugzilla.
-
-
-&quot;Environment Variable&quot; Authentication Method
---------------------------------------------
-
-You can now tell Bugzilla to accept a certain value passed in from
-Apache as authentication for Bugzilla users. This means that Bugzilla
-now &quot;supports&quot; any type of authentication that Apache supports.
-
-To use this, set the &quot;user_info_class&quot; parameter to &quot;ENV&quot; and, at a 
-minimum, set the &quot;auth_env_email&quot; parameter to the name of the 
-Environment variable that passes the authenticated user (usually 
-&quot;REMOTE_USER&quot;).  If your webserver knows users' real names as well, also
-set the &quot;auth_env_realname&quot; parameter.  If you are using a true 
-single-signon system that assigns an identifier uniquely to an
-individual, even across changes of email address, then set 
-&quot;auth_env_id&quot; to the name of that variable.
-
-
-User-List Drop-Down Menus
--------------------------
-
-Now, anywhere in Bugzilla where you previously had to type in an
-email address by hand, you have the choice of having Bugzilla instead
-display a drop-down menu of users to pick from.
-
-This feature is best for small installations with few users, because
-on large installations the list grows too large to be useful.
-
-To enable the feature, turn on the &quot;usemenuforusers&quot; parameter in
-editparams.cgi.
-
-
-Server-Side Comment Wrapping
-----------------------------
-
-In older Bugzillas, comments were wrapped to 80 characters by the
-user's web browser, and then stored in the database that way. This caused
-problems because some browsers did not wrap comments properly.
-
-Now, Bugzilla stores comments unwrapped and wraps them at display time, so
-all new comments should be properly wrapped. Also, when you upgrade, Bugzilla
-will look for old &quot;mis-wrapped&quot; comments and attempt to wrap them properly.
-
-Lines beginning with the &quot;&gt;&quot; character are assumed to be quotes, and are
-*not* wrapped.
-
-
-UI for Editing Priority, OS, Platform, and Severity
----------------------------------------------------
-
-Bugzilla now has a User Interface for adding and removing values
-from the OS, Platform, Priority, and Severity fields. You can also
-rename values. Any user in the &quot;editcomponents&quot; group can click
-on the &quot;Field Values&quot; link in their page footer to edit these fields.
-
-Also, the default list of choices for OS and Platform for new 
-installations is now much smaller. Old installations will keep 
-the same list they have now.
-
-
-Bugzilla Queries as RSS
------------------------
-
-You can now view a Bugzilla query as valid RSS 1.0. This means that you
-could add a particular query to your RSS aggregator, if you wanted, to
-keep track of changes in Bugzilla.
-
-To see a query as RSS, just click on the &quot;RSS&quot; link on the bottom of
-your query results. Your query must return at least 1 result in order
-for you to see the link.
-
-
-Choice of E-Mail Sending Methods
---------------------------------
-
-Bugzilla now uses perl's Mail::Mailer to send e-mail. This means that
-you have several choices of how Bugzilla can send email. By default, it
-still uses sendmail, but it can also use SMTP, qmail, or send all email
-to a file instead of out to users.
-
-A Bugzilla administrator can change which method is used by setting the
-&quot;mail_delivery_method&quot; parameter in editparams.cgi.
-
-
-&quot;User Preferences&quot;
-------------------
-
-Bugzilla users will now notice a section in their Preferences called
-&quot;General Preferences.&quot; Administrators will notice a new link called
-&quot;User Preferences.&quot;
-
-The Preferences system allows Bugzilla developers to specify arbitrary
-&quot;user preferences&quot; that change the behavior of certain parts of Bugzilla.
-Administrators can control whether or not users are allowed to use these
-preferences, and what the default settings are for a user who is not
-logged in.
-
-The first two preferences that we have implemented are:
-  + &quot;Show a quip at the top of each bug list&quot;
-  + &quot;When viewing a bug, show comments in this order...&quot;
-
-We plan to implement more preferences in the future.
-
-
-&quot;Large Attachment&quot; Storage
---------------------------
-
-Bugzilla can now store very large attachments on disk instead of in the
-database. These attachments can't be searched with Boolean Charts, but
-they also don't take up database space, and they can be deleted individually
-by the admin.
-
-When uploading an attachment, a user chooses if it's a &quot;Big File.&quot; If so,
-it's stored on the disk instead of in the database.
-
-To enable this feature, set the &quot;maxlocalattachmentsize&quot; parameter to
-a non-zero value, in editparams.cgi.
-
-
-&quot;User Visibility&quot; Controls
---------------------------
-
-It is now possible to prevent users from encountering all other users when
-using user-matching or drop-down userlists.  To enable this restriction, 
-enable the &quot;usevisibilitygroups&quot; parameter.  Once this is enabled, each 
-group's permissions will include a new column for &quot;visible.&quot;  The members 
-of any group for which the group being edited is visible will be
-able to user-match this groups's users or see them in dropdown lists.
-
-This does not control who a user can CC on a bug, only who they can 
-see in the user-matching lists or drop-downs.
-
-Miscellaneous Improvements
---------------------------
-
-- Marking an attachment as obsolete will now cancel all pending flag
-  requests for that attachment. That is, any flag that was set to &quot;?&quot;
-  on that attachment will be cleared.
-
-- You can now see which users are &quot;watching&quot; you, on the email 
-  preferences page.
-
-- You can tell Bugzilla to mark certain comments in a different
-  color by adding &quot;&amp;mark=1,2,3,5-7&quot; to the end of the show_bug.cgi URL,
-  where &quot;1,2,3,5-7&quot; means &quot;highlight comment 1, comment 2, comment 3, and
-  comments 5 through 7.&quot;
-
-- &quot;QA Contact&quot; now also appears on the New Bug page, if QA Contacts are
-  enabled on your installation.
-
-- Bugzilla email now has the &quot;In-Reply-To&quot; header added to it, so if
-  you use an email client that supports threads, you can view your
-  Bugzilla email in threads. If you are upgrading to a new version of
-  Bugzilla, and you want this support, please see the instructions at:
-  https://bugzilla.mozilla.org/attachment.cgi?id=172267
-
-- The email preferences system has been slightly updated. You will notice
-  the changes on your Email Preferences page.
-
-- You can now negate individual &quot;boolean charts&quot; (in the 
-  &quot;Advanced Searching&quot; section at the bottom of the &quot;Advanced 
-   Search&quot; page). That is, you can add &quot;NOT&quot; to the front of them.
-
-- You can add the words %assignee%, %reporter%, %user% (yourself), or
-  %qacontact% on the right-hand side of a Boolean Chart. For example, you
-  could make a Boolean Chart which said &quot;Reporter&quot; &quot;does not equal&quot; 
-  &quot;%assignee%&quot;. That would give you all bugs where the Reporter was not
-  the same as the Assignee.
-
-- You can now search Boolean Charts by &quot;commenter.&quot;
-
-- If you have a group with no name, it will be re-named to &quot;group_#&quot; where
-  &quot;#&quot; is the numeric Bugzilla Group ID for that group.
-
-- If you are using time-tracking, you can now see a report of time spent
-  on bugs using summarize_time.cgi.
-
-- If you are using time-tracking, bugzilla will now set &quot;hours remaining&quot;
-  to &quot;0&quot; automatically if you RESOLVE a bug, whether you are in the
-  time-tracking group or not.
-
-
-Deprecated Features
-*******************
-
-- Bugzilla 2.20 is the last Bugzilla version to support MySQL 3.23.x.
-  Starting with Bugzilla 2.22, Bugzilla will require MySQL 4.0.x. This will
-  allow Bugzilla to take advantage of the advanced features of MySQL 4.
-
-
-Outstanding Issues
-******************
-
-- (No Bug Number) VERY IMPORTANT: If you have customized the values in
-  your Status/Resolution field, you must edit checksetup.pl BEFORE YOU
-  RUN IT. Find the line that starts like this:
-
-  bug_status   =&gt; [&quot;UNCONFIRMED&quot;,
-
-  That's where you set the values for the Status field.
-
-  resolution   =&gt; [&quot;&quot;,&quot;FIXED&quot;,
-
-  And that's where you set values for the Resolution field.
-
-  Those are both near line 1826 in checksetup.pl.
-
-  If you forget to do this, you will have to manually edit the &quot;bug_status&quot;
-  and &quot;resolution&quot; tables in the database to contain the correct values.
-
-- bug 37765: VERY IMPORTANT: If you use the &quot;sendmail&quot; support of Bugzilla,
-  and you use an MTA which is *not* Sendmail (such as Postfix, Exim, etc.) 
-  you MUST turn on the &quot;sendmailnow&quot; parameter or Bugzilla will not send 
-  e-mail correctly.
-
-- (No Bug Number) If you close your web browser while the process_bug.cgi
-  or post_bug.cgi screen is running, not all emails will be sent, and
-  the next time that that bug is updated, there will be two updates. This
-  is because of a behavior of Apache that is beyond our control.
-
-- bug 276230: The support for restricting access to particular Categories of 
-  New Charts is not complete. You should treat the 'chartgroup' Param as the 
-  only access mechanism available. However, additionally, charts migrated from
-  Old Charts will be restricted to the groups that are marked MANDATORY for 
-  the corresponding Product. There is currently no way to change this 
-  restriction, and the groupings will not be updated if the group configuration
-  for the Product changes. This will not be fixed in the 2.20 branch.
-
-- bug 69621: If you rename or remove a keyword that is in use on bugs, you will
-  need to rebuild the &quot;keyword cache&quot; by running sanitycheck.cgi and choosing
-  the option to rebuild the cache when it asks. Otherwise keywords may not show
-  up properly in search results.
-
-- (No Bug Number) If you have a lot of non-ASCII data in your Bugzilla (for 
-  example, if you use a translation of Bugzilla), don't enable the XS::Stash
-  option when you install the Template Toolkit, or your Bugzilla installation
-  may become slow. This problem is fixed in a not-yet-released version of the
-  Template Toolkit (after 2.14).
-
-- If at any time you upgraded from a version of Bugzilla between 2.17.4 -
-  2.17.7 to either 2.18rc3 or 2.19.1, you must manually fix your New Charts in
-  order for them to work. See the following link for instructions on how to do
-  this: https://bugzilla.mozilla.org/show_bug.cgi?id=276237#c18
-  If you are using 2.18rc3, but did not upgrade from version 2.17.4 or newer,
-  then you don't need to do this.
-
-- (No Bug Number) If your DBI is really, really old, Bugzilla might fail
-  with a strange error message when you try to run checksetup.pl. Try
-  upgrading your DBI using: perl -MCPAN -e'install DBI'
-
-- Bug 126266: Bugzilla does not use UTF-8 to display pages. This means
-  that if you enter non-ASCII characters into Bugzilla, they may
-  display strangely, or Bugzilla may have other problems. For a workaround,
-  see: http://www.bugzilla.org/docs/tip/html/security-bugzilla.html
-  This has been fixed in the 2.22 series.
-
-- Bug 99215: Flags are not protected by &quot;mid-air collision&quot; detection.
-  Nor are any attachment changes.
-
-- Bug 89822: When changing multiple bugs at the same time, there is no
-  &quot;mid-air collision&quot; protection.
-
-- Bug 285614: importxml.pl may be broken in many different ways.
-  It has been fixed and completely re-written in the 2.22 series.
-
-- (No Bug Number) Note that the email interface (bug_mail.pl) in the 
-  contrib/ directory has not been maintained (as it has no maintainer),
-  and so may not be working properly. Contributions are welcome, if
-  anybody would like to work on it.
-
-
-Upgrading From An Older Bugzilla
-************************************
-
-NOTE: Running checksetup.pl to upgrade a large installation (over 10,000 bugs)
-      may take a significant amount of time. checksetup will try to let
-      you know how long it will take, but expect downtime of an hour or
-      more if you have many bugs, many attachments, or many users.
-
-Steps for Upgrading
--------------------
-
-1) View the Sanity Check (sanitycheck.cgi) page on your installation before
-   upgrading. Attempt to fix all warnings that the page produces before
-   you go any further, or you may experience problems during your upgrade.
-
-2) Make a backup of the  Bugzilla database before you upgrade, perhaps 
-   by using mysqldump.
-
-   Example:
-
-      mysqldump -u root -p --databases bugs &gt; bugs.db.backup
-
-3) Replace the files in your installation with the new version of Bugzilla,
-   or you can try to use CVS to upgrade. The Bugzilla.org website has 
-   instructions on how to do the actual installation.
-
-4) Make sure that you run checksetup.pl after you install the new version.
-
-5) View the Sanity Check page again after you run checksetup.pl.
-
-6) It is recommended that, if possible, you fix any problems you find
-   immediately. Failure to do this may mean that Bugzilla will not work 
-   correctly. Be aware that if the sanity check page contains more errors after
-   an upgrade, it doesn't necessarily mean there are more errors in your 
-   database, as additional tests are added to the sanity check over time, and 
-   it is possible that those errors weren't being checked for in the old 
-   version.
-
-7) If you want threading support on your Bugzilla email (see the 
-   &quot;Miscellaneous Improvements&quot; section above for a description),
-    you need to follow the instructions at:
-    https://bugzilla.mozilla.org/attachment.cgi?id=172267
-
-
-Code Changes Which May Affect Customizations
-********************************************
-
-The New Database-Compatibility Layer
-------------------------------------
-
-For most customizations, this should have no effect. However, you should
-be aware that Bugzilla-&gt;dbh is now an instance of &quot;Bugzilla::DB&quot; instead
-of being a DBI object directly. In fact, it's actually a 
-Bugzilla::DB::Mysql for MySQL users, and a Bugzilla::DB::Pg for 
-PostgreSQL users.
-
-Anything called from $dbh (like $dbh-&gt;bz_last_key) that starts with
-&quot;bz_&quot; or &quot;sql_&quot; is a custom Bugzilla function. Anything *not* starting
-with those two prefixes is a normal DBI function.
-
-Methods whose names start with &quot;sql_&quot; generate a piece of a SQL statement.
-They generate the correct version of the statement for whichever database
-you are using.
-
-Methods whose names start with &quot;bz_&quot; do something directly.
-
-You can see more documentation about this at:
-
-http://www.bugzilla.org/docs/2.20/pod/Bugzilla/DB.pm
-
-
-If You Customize Your Database...
----------------------------------
-
-In order to support multiple databases, we had to do something sort of
-tricky. Bugzilla now stores what it *thinks* the current database schema
-is, in a table called bz_schema.
-
-This means that when checksetup changes the database, it updates the
-bz_schema table. When *you* update the database, without using 
-checksetup to do it, the bz_schema table is *not* updated.
-
-So, if you're going to add/remove a new column/table to Bugzilla, or if you're
-going to change the definition of a column, try to do it by adding code to
-checksetup in the correct place. (It's one of the places where you find
-the word &quot;--TABLE--&quot;.)
-
-You can see the documentation on the $dbh functions used to do this at:
-
-http://www.bugzilla.org/docs/2.20/pod/Bugzilla/DB.pm#schema_modification_methods
-
-
-Many Functions Renamed
-----------------------
-
-We are reorganizing the Bugzilla code so that it can support mod_perl. As
-part of this, we are moving all functions out of globals.pl and CGI.pl, and
-into modules in the Bugzilla/ directory.
-
-Sometimes when we moved them, we also renamed them. The new Bugzilla standard
-is to have functions_named_like_this, instead of FunctionsNamedLikeThis.
-
-So if you were using a FunctionNamedLikeThis that no longer works, try just
-using it as function_named_like_this. If that doesn't work, you may have to
-search for where we put it, and what we renamed it to. Most of the functions
-moved to logical places.
-
-If you really can't find it, search bugzilla.mozilla.org using the name
-of the old function. We usually moved one function per bug, so the new
-name will be somewhere in a bug report.
-
-
-User Preferences
-----------------
-
-Bugzilla now has a &quot;User Preferences&quot; system! These preferences are stored
-in the database, and specified by a Bugzilla developer. The Bugzilla
-developers actually call these &quot;settings,&quot; but we called them &quot;User 
-Preferences&quot; in the UI to make things clearer.
-
-You access a user's settings differently depending on if you are in a
-.cgi file or in a template file:
-
-CGI: Bugzilla-&gt;user-&gt;settings-&gt;{'setting_name'}-&gt;value
-Template: Bugzilla.user.settings.setting_name.value
-
-Where &quot;setting_name&quot; is the name of the setting. You can see the current
-setting names in the &quot;setting&quot; table in the database.
-
-Remember that sometimes you may want to check a user's settings when 
-making a customization.
-
-To see how to add new settings, search for &quot;add_setting&quot; in checksetup.pl.
-Also see the template: template/en/default/global/setting-descs.none.tmpl.
-
-Other Changes
--------------
-
-- The $::unconfirmedstate variable has been replaced by the actual string
-  &quot;UNCONFIRMED&quot; everywhere in Bugzilla code.
-
-- The %::FORM and %::MFORM variables are no longer used to access form
-  data. Instead, use $cgi-&gt;param(). There are many examples of how to do
-  this, all over the Bugzilla code.
-
-- SendSQL() and related calls are deprecated, and the various $dbh methods
-  should be used instead, such as $dbh-&gt;prepare() and $dbh-&gt;execute().
-  Bugzilla-&gt;dbh is the $dbh handle to use. For more information on how
-  to use the $dbh methods, see:  http://search.cpan.org/dist/DBI/DBI.pm
-
-- The $::userid variable will be going away. Use Bugzilla-&gt;user-&gt;id instead.
-
-- All global variables (any that start with $::, @::, or %::) will 
-  be entirely gone by Bugzilla 2.24.
-
-
-Security Fixes in 2.20 Releases
-*******************************
-
-2.20.1
-------
-
-There were three security issues discovered after the release of
-Bugzilla 2.20 that we resolved for Bugzilla 2.20.1. One SQL Injection
-(from an administrator only), one Cross-Site Scripting vulnerability
-(that mostly affects only the user who can exploit it), and one minor,
-extremely specific information leak.
-
-To see details on the vulnerabilities that were fixed, see the 
-Security Advisory at:
-
-http://www.bugzilla.org/security/2.16.10/
-
-
-Release Notes for Previous Versions
-***********************************
-
-*****************************************
-*** The Bugzilla 2.18.x Release Notes ***
-*****************************************
-
-Table of Contents
-*****************
-
-- Introduction
-- Important Updates In This Point Release
-    * Version 2.18.1
-    * Version 2.18.2
-- Requirements
-    * Dependency Requirements
-- What's New?
-    * Generic Reporting
-    * Generic Charting
-    * Request System
-    * Enterprise Group Support
-    * User Wildcard Matching
-    * Support for &quot;Insiders&quot;
-    * Time Tracking
-    * Authentication module/LDAP improvements
-    * Improved localization support
-    * Patch Viewer
-    * Comment Reply Links
-    * Full-Text Search
-    * Email Address Munging
-    * Simple Search
-    * Miscellaneous Improvements
-    * All Changes
-- What's Changed?
-    * Flag Names
-    * New Saved Search User Interface
-    * Rules for changing fields
-- Removed Features
-- Code Changes Which May Affect Customizations
-- Recommended Practice for the Upgrade
-    * Note About Upgrading From MySQL With ISAM Tables
-    * Steps for Upgrading
-- Outstanding Issues (&lt;======================== IMPORTANT, PLEASE READ)
-- Security Fixes In 2.18 Releases
-- Detailed Version-To-Version Release Notes
-
-
-Introduction
-************
-
-This document contains the release notes for Bugzilla 2.18 and
-the bugfix releases after 2.18. In this document, recently added,
-changed, and removed features of Bugzilla are described.
-
-The 2.18 release is our current stable series, containing the results
-of over two years of hard and dedicated work by volunteers all over 
-the world under the lead of Dave Miller.
-
-
-Important Updates In This Point Release
-***************************************
-
-There are usually many other bug fixes than those listed below,
-but the below fixes are the ones that we thought System Administrators
-would like to specifically know about.
-
-To see a listing of all changes in this release, you can use the
-table available at:
-
-http://www.bugzilla.org/status/changes.html
-
-Version 2.18.1
---------------
-
-+ You can now enter a negative time for &quot;Hours Worked&quot;
-  in the time-tracking area. (Bug 271276)
-
-+ The BugMail.pm customization required for Windows (as
-  described in the Bugzilla Guide) now actually works. (Bug 280911)
-
-+ Users who were using Bugzilla 2.8 can now successfully upgrade
-  to 2.18.1 (they couldn't upgrade to 2.18). (Bug 283403)
-
-+ Dependency mails are now properly sent during a mass-change of bugs.
-  (Bug 178157)
-
-
-Version 2.18.2
---------------
-
-+ You can now create accounts with createaccount.cgi even
-  when the &quot;requirelogin&quot; parameter is turned on. (Bug 294778)
-
-+ Bugs that are in disabled groups may not show a padlock
-  on the bug list, or may otherwise behave strangely. You
-  can now fix this using sanitycheck.cgi. (Bug 277454)
-
-+ If sendmail dies while you are marking a bug 
-  as a duplicate, the duplicates table will no longer become 
-  corrupted. (Bug 225042)
-
-
-Requirements
-************
-
-Dependency Requirements
------------------------
-
-Minimum software requirements:
-
-  MySQL v3.23.41         (changed from 2.16)
-  Perl v5.6.0            (changed from 2.16)  (Non-Windows platforms)
-  ActiveState Perl v5.8.1                     (Windows only)
-
-Required Perl modules:
-
-  AppConfig v1.52
-  CGI v2.93              (new since 2.16)    (changed from 2.17.7)
-  Data::Dumper (any)
-  Date::Format v2.21     (changed from 2.16)
-  DBI v1.36              (changed from 2.16)    (changed from 2.17.7)
-  DBD::mysql v2.1010     (changed from 2.16)
-  File::Spec v0.82
-  File::Temp (any)
-  Template Toolkit v2.08 (changed from 2.16)
-  Text::Wrap v2001.0131
-
-Optional Perl modules:
-
-  Chart::Base v1.0       (changed from 2.16) (changed from 2.17.7)
-  GD v1.20               (changed from 2.16)
-  GD::Graph (any)        (new since 2.16)
-  GD::Text::Align (any)  (new since 2.16)
-  Net::LDAP (any)        (new since 2.16)
-  PatchReader v0.9.4     (new since 2.16)    (changed from 2.17.7)
-  XML::Parser (any)
-
-
-What's New?
-***********
-
-Generic Reporting
------------------
-
-Bugzilla has a new mechanism for generating reports of the current state of
-the bug database.  It has two related parts: a table-based view, and several
-graphical views.
-
-The table-based view allows you to specify an x, y and z (multiple tables of
-data) axis to plot, and then restrict the bugs plotted using the standard
-query form.  You can view the resulting data as an HTML or CSV export (e.g.:
-for importing into a spreadsheet).
-
-There are also bar, line and pie charts, which are defined in a very similar
-way.  These views may be more appropriate for particular data types, and are
-suitable for saving and then putting into presentations or web pages.
-
-
-Generic Charting
-----------------
-
-Bugzilla has a new mechanism for generating charts (graphs over time) of any
-arbitrary search. This is known as &quot;New Charts.&quot; Legacy data from the previous
-charting mechanism (&quot;Old Charts&quot;) is migrated into the &quot;New Charts&quot; when you
-upgrade. The Old Charts mechanism remains, but is deprecated and will be 
-removed in a future version of Bugzilla.
-
-Individual users can see/create charts as long as they are a member of the 
-group specified in the Param 'chartgroup'. Data can be collected for 
-personal charts every seven days (or a longer period, as set by the user). 
-Charts created by an administrator can be made public (visible to all). Data 
-is collected for administrator charts every day (or a longer period, as set 
-by the admin).
-
-The data is collected by the collectstats.pl script, which an administrator 
-will need to arrange to be run once every day (see the manual). Chart data can
-be plotted in a number of different ways, and different data sets can be
-plotted on the same graph for comparison.
-
-Please see the Known Bugs section for some important limitations relating to
-access controls on charts.
-
-
-Request System
----------------
-
-The Request System (RS) is a set of enhancements that adds powerful flag
-(superset of the old attachment status) features to the bugs.
-
-RS allows for four states: off, granted, denied, and (optionally) requested,
-where &quot;granted&quot; is the equivalent of &quot;on&quot;. These additions mean it is no
-longer necessary to define a status to negate another status (e.g.
-&quot;needs-work&quot; to negate &quot;has-review&quot;) because negation is built into each
-status via the status' &quot;denied&quot; state.  Bug statuses: Previously only
-attachments could have these kinds of statuses. RS enables them for bugs as
-well. This feature can be used to request and grant/deny certain properties
-for a bug, such as inclusion for a specific milestone or approval for checkin.
-This way, Bugzilla supports the natural decision-making process in your
-organization.
-
-- Requests: Flags can now optionally be made requestable, which means users
-  can ask other users to set them. When a user requests a flag, Bugzilla
-  emails the requestee and adds the request to a browsable queue so both the
-  requester and the requestee can keep track of its status. Once the
-  requestee fulfills the request by setting the flag to either granted or
-  denied, Bugzilla emails the requestee and removes the request from the
-  queue.  This feature supports workflow like the mozilla.org code review
-  and milestone approval processes, whereby code is peer reviewed before
-  being committed and patches get approved by product release managers for
-  inclusion in specific product releases.
-
-- Product/component specificity: Previously flags were product-specific, and
-  if you wanted the same flag for multiple products you had to define
-  multiple flags with the same name. Flags are now
-  product/component-specific, and a single flag can be enabled or disabled
-  for multiple product/component combinations via inclusions and exclusions
-  lists. Flags are enabled for all combinations on their inclusions list
-  except those that appear on their exclusions list.
-
-
-Enterprise Group Support
-------------------------
-
-Bugzilla is no longer limited to 55 access control groups. Administrators can
-define an arbitrary number of access groups composed of individual users or
-other groups.  The groups can be configured via the web interface to achieve a
-wide variety of access control policies. See the documentation section on
-'Groups And Group Controls' for details.
-
-
-User Wildcard Matching
-----------------------
-
-Sites can now enable the use of wildcards and substrings in bug entry and
-editing forms. If the user enters an incomplete username, he'll get a list of
-users that matched the given username.
-
-
-Support for &quot;Insiders&quot;
-----------------------
-
-If the 'insidergroup' parameter is defined, a specific group of users can be
-designated insiders who can designate comments and attachments as private to
-other insiders. These comments and attachments will be invisible to other
-users who are not members of the insiders group even if the bugs to which they
-apply are visible. Other insiders will see the comments and attachments with a
-visual tinting indicating that they are private.
-
-
-Time Tracking
--------------
-
-Controls for tracking time spent fixing bugs are included in the bug form for
-members of the group specified by the 'timetrackinggroup' parameter. Any time
-comments are added to the bug, members of the time tracking group can add an
-amount of time they spent, and it's figured into the total and displayed at
-the top of the bug. Shown in the bug are your original estimate, the amount of
-time spent so far, the revised estimate of how much time is remaining, and
-your gain/loss on the original estimate.
-
-
-Authentication module/LDAP improvements
----------------------------------------
-
-Bugzilla's authentication mechanisms have been modularized, making pluggable
-authentication schemes for Bugzilla a reality. Both the existing database and
-LDAP systems were ported as part of modularization process. Additionally, the
-CGI portion of the backend was redesigned to allow for authentication from
-other sources, including (theoretically) email, which will help Bug 94850.
-
-As part of this conversion, LDAP logins now use Perl's standard Net::LDAP
-module, which has no external library dependencies.
-
-
-Improved localization support
------------------------------
-
-Bugzilla administrators can now configure which languages are supported by
-their installations and automatically serve correct, localized content to
-users based on the HTTP 'Accept-Language' header sent from users' browsers.
-
-There are currently localized templates available for: Arabic, Belarusian,
-Chinese, French, German, Italian, Korean, Portuguese (Brazil) Spanish (Spain
-or Mexico) and Russian.  These localized template packs are third-party
-contributions, may only be available for specific versions, and may not be
-supported in the future. (http://www.bugzilla.org/download/#localizations)
-
-
-Patch Viewer
-------------
-
-Viewing and reviewing patches in Bugzilla is often difficult due to lack of
-context, improper format and the inherent readability issues that raw patches
-present. Patch Viewer is an enhancement to Bugzilla designed to fix that by
-offering increased context, linking to sections, and integrating with Bonsai,
-LXR and CVS.
-
-
-Comment Reply Links
--------------------
-
-In Edit Bug, each bug comment now includes a convenient (reply) link that
-quotes the comment text into the textarea. This feature is only enabled in
-Javascript-capable browsers, but causes no inconvenience to other user agents.
-
-
-Full-Text Search
-----------------
-
-It is now possible to query the Bugzilla database using full-text searching,
-which spans comments and summaries, and which searches for substrings and stem
-variations of the search term. Basically, it's like using Google.
-
-
-Email Address Munging
----------------------
-
-The fact that raw email addresses are displayed in Bugzilla makes it trivial
-for bots that spamharvest to spider through Bugzilla, in particular, through
-Bugzilla's buglists. This change adds HTML obfuscation of email addresses as
-they appear in the Bugzilla web pages.
-
-
-Google-like Bug Search
-----------------------
-
-Bugzilla now includes a very simple, Google-like &quot;Find a Specific Bug&quot; page,
-in addition to its advanced search page.
-
-
-Miscellaneous Improvements
---------------------------
-
-- The &quot;Assigned To&quot; field on the new bug page is now prefilled with the default
-  component owner.
-
-- A bug alias column is now available in the buglist page.
-
-- Lists of bugs containing errors in the sanity check page now have a &quot;view as
-  buglist&quot; link in addition to the individual bug links.
-
-- Autolinkification Page - It's now possible to apply Bugzilla's comment
-  hyperlinking algorithm to any text you like. This should be useful for status
-  updates and other web pages which give lists of bugs. The bug links created
-  include the subject, status and resolution of the bug as a tooltip.
-
-- There are more &lt;link&gt; tags on the links toolbar for navigating quickly between
-  different areas.
-
-- Buglists are now available as comma-separated value files (CSV) and JavaScript
-  (JS) as well as HTML and RDF.
-
-- Keywords and dependencies can now be entered during initial bug entry.
-
-- A CSS id signature unique to each Bugzilla installation is now added to the
-  &lt;body&gt; tag on Bugzilla pages to allow custom end-user CSS to explicitly affect
-  Bugzilla.
-
-- Perl's path has been changed to a normal /usr/bin/perl from the original
-  legacy &quot;bonsaitools&quot; path specifier.
-
-- A new &quot;always-require-login&quot; parameter allows administrators to require a
-  login before being able to view any page, except the front page.
-
-- A developer may add an attachment, and also reassign a bug to himself as part
-  of that single action.
-
-- Bugzilla is now able to use the replication facilities provided by the
-  MySQL database to handle updates from the main database to the secondaries.
-
-- Mail handling is now between 125% to 175% faster.
-
-- Guided Bug Entry: You can see a sample enter_bug.cgi template at 
-  enter_bug.cgi?format=guided that &quot;guides&quot; users through the process of 
-  filing a &quot;good&quot; bug. It needs to be modified before use in your organization.
-
-- There is now a &quot;Give me some help&quot; link on the Advanced Search page that will
-  enable pop-up help for every field on the page.
-
-- The Bugzilla administrator can now forbid users from marking bugs RESOLVED 
-  when there are unresolved dependencies.
-
-
-All Changes
------------
-
-To see a list of EVERY bug that was fixed between 2.16 and 2.18 (over 1000),
-see: http://tinyurl.com/6m3e4
-
-
-What's Changed?
-***************
-
-
-Flag names
-----------
-
-Prerelease versions of Bugzilla 2.17 and 2.18 inadvertantly allowed
-commas and spaces in the names of flags, which due to the way they're
-processed, caused lots of internal havoc if you named flags to have
-any commas or spaces in them.  Having commas or spaces in the names
-can cause errors in the notification emails and in the bug activity
-log.  The ability to create new flags with these characters has been
-removed.  If you have any existing flags that you named that way,
-running checksetup will attempt to automatically rename them by
-replacing commas and spaces with underscores.
-
-
-New Saved Search User Interface
--------------------------------
-
-In previous Bugzilla versions, you could specify on the search page that you 
-wanted to save a search and store it as a link in your footer. This option has
-now moved to the search results page (buglist.cgi), where you will see a 
-&quot;Remember search&quot; button with a box next to it to enter the name of the search.
-
-You can manage your saved searches on the Preferences page.
-
-
-Rules for changing fields
--------------------------
-
-There have been some changes to the rules governing who can change which fields
-of a bug report.  The rules for Bugzilla version 2.16 and 2.18, along with
-differences between them, are listed below.  Bear in mind that there are other
-restrictions on bug manipulation besides the ones listed below.  In particular,
-the groups system enforces restrictions on who can create, edit, or even see
-any given bug.
-
-Bugzilla 2.16 rules:
-
-- anyone can make a null change;
-- anyone can add a comment;
-- anyone in the editbugs group can make any change;
-- the reporter can make any change to the status;
-- anyone in the canconfirm group can change the status
-  to any opened state (NEW, REOPENED, ASSIGNED).
-- anyone can change the status to any opened state
-  if the everconfirmed flag is set;
-- the owner, QA contact, or reporter can make any change
-  *except* changing the status to an opened state;
-- No other changes are permitted.
-
-[Note that these rules combine to allow the reporter to make any change
-to the bug.]
-
-Bugzilla 2.18 rules:
-
-- anyone can make a null change;
-- anyone can add a comment;
-- anyone in the editbugs group can make any change;
-- anyone in the canconfirm group can change the status
-  from UNCONFIRMED to any opened state;
-- the owner or QA contact can make any change;
-- the reporter can make any change *except*:
-  - changing the status from UNCONFIRMED to any opened state; or
-  - changing the target milestone; or
-  - changing the priority (unless the letsubmitterchoosepriority
-    parameter is set).
-- No other changes are permitted.
-
-The effective differences in the rules:
-
-- In 2.16, the reporter could always change anything about a bug.
-
-  In 2.18, the reporter can't:
-
-  - confirm the bug unless he is in the canconfirm group;
-  - change the target milestone;
-  - change the priority (unless the 'letsubmitterchoosepriority'
-    parameter is set;
-
-  (unless he is also the owner, the QA contact, or in the editbugs
-  group, in which case he can do all these things).
-
-- In 2.16, the owner or QA contact (if the 'useqacontact' parameter
-  is set) can't change the bug status to an opened status unless they
-  are also the reporter, or have editbugs or canconfirm, or the
-  everconfirmed flag is set on the bug).
-
-  In 2.18 the owner or QA contact can make any change to a bug.
-
-- In 2.16, a member of the canconfirm group can set the status
-  to any opened status.
-
-  In 2.18 this is only possible if the status was previously
-  the unconfirmed status.
-
-- In 2.16, the status can be set to anything by anybody
-  if the 'everconfirmed' flag is set.
-
-  In 2.18, this authorization code does not pay any attention
-  to the 'everconfirmed' flag.
-
-
-Removed Features
-****************
-
-- Please note that Bugzilla no longer supports MySQL 3.22. The minimum required
-  version is now 3.23.41.                                      
-
-- The &quot;shadow database&quot; mechanism is no longer used. Instead, use MySQL's 
-  built-in replication feature.
-
-- If you have placed any comments in the localconfig file, they may be removed
-  by checksetup.pl.
-
-
-Code Changes Which May Affect Customizations
-********************************************
-
-- A mechanism (called &quot;Template Hooks&quot;) for third party extensions to plug into
-  existing templates without having to patch or replace distributed templates
-  has been added. More information on this can be found in the documentation.
-
-- Header output now uses CGI.pm, in a step towards enabling mod_perl
-  compatibility. This change will affect users that had customized charsets in
-  their CGI files: previously the charset had to be added everywhere that
-  printed the Content-Type header; now it only needs changing in one spot, in
-  Bugzilla/CGI.pm.
-
-- $::FORM{} and $::COOKIE{} are deprecated. Use the $cgi methods to access
-  them.
-
-- $::userid is gone in favor of Bugzilla-&gt;user-&gt;id
-
-- ConnectToDatabase() is gone (it's done automatically when you initialize the
-  Bugzilla object)
-
-- quietly_check_login() and confirm_login() are gone, use Bugzilla-&gt;login()
-  with parameters for whether the login is required or not.
-
-- Use Bugzilla-&gt;user-&gt;login in place of $::COOKIE{Bugzilla_login}
-
-- You can tell if there's a user logged in or not by using
-  Bugzilla-&gt;user rather than looking for $::userid==0.
-  In new 2.18 code, use defined(Bugzilla-&gt;user) &amp;&amp; (Bugzilla-&gt;user-&gt;id)
-  In 2.20, this will become just (Bugzilla-&gt;user-&gt;id)
-  In templates, always test [% IF user.id %] rather than [% IF user %]
-
-- SendSQL() and related calls are deprecated, and the various $dbh methods 
-  should be used instead, such as $dbh-&gt;prepare() and $dbh-&gt;execute(). 
-  Bugzilla-&gt;dbh is the $dbh handle to use.
-
-
-Recommended Practice for the Upgrade
-************************************
-
-Note About Upgrading From MySQL With ISAM Tables
-------------------------------------------------
-As previously noted in the Dependency Requirements MySQL is now required 
-to be at least version 3.23.41.  This implies that all tables of type ISAM will 
-be converted by the checksetup.pl script to MyISAM.
-
-
-Steps for Upgrading
--------------------
-
-1) View the Sanity Check (sanitycheck.cgi) page on your installation before
-   upgrading.
-
-2) As with any upgrade it is recommended that you make a backup of the 
-   Bugzilla database before you upgrade, perhaps by using mysqldump.
-
-   Example:
-
-      mysqldump -u root -p --databases bugs &gt; bugs.db.backup
-
-3) Replace the files in your installation, or you can try to use CVS to upgrade.
-   The Bugzilla.org website has instructions on how to do the actual 
-   installation.
-
-4) Make sure that you run checksetup.pl after you install the new version.
-
-5) View the Sanity Check page again after you run checksetup.pl.
-
-6) It is recommended that, if possible, you fix any problems you find
-   immediately. Failure to do this may mean that Bugzilla will not work 
-   correctly. Be aware that if the sanity check page contains more errors after
-   an upgrade, it doesn't necessarily mean there are more errors in your 
-   database, as additional tests are added to the sanity check over time, and 
-   it is possible that those errors weren't being checked for in the old 
-   version.
-
-
-Outstanding Issues
-******************
-
-These are known problems with the release that we think you should know about. 
-They each have a bug number for http://bugzilla.mozilla.org/
-
-- If at any time you upgraded from a version of Bugzilla between 2.17.4 -
-  2.17.7 to either 2.18rc3 or 2.19.1, you must manually fix your New Charts in
-  order for them to work. See the following link for instructions on how to do
-  this: https://bugzilla.mozilla.org/show_bug.cgi?id=276237#c18
-  If you are using 2.18rc3, but did not upgrade from version 2.17.4 or newer,
-  then you don't need to do this.
-
-- bug 37765: If you use an MTA other than sendmail (such as Postfix, Exim, 
-  etc.) you MUST turn on the &quot;sendmailnow&quot; parameter or Bugzilla will not send
-  e-mail correctly.
-
-- bug 276230: The support for restricting access to particular Categories of 
-  New Charts is not complete. You should treat the 'chartgroup' Param as the 
-  only access mechanism available. However, additionally, charts migrated from
-  Old Charts will be restricted to the groups that are marked MANDATORY for 
-  the corresponding Product. There is currently no way to change this 
-  restriction, and the groupings will not be updated if the group configuration
-  for the Product changes.
-
-- bug 69621: If you rename or remove a keyword that is in use on bugs, you will
-  need to rebuild the &quot;keyword cache&quot; by running sanitycheck.cgi and choosing
-  the option to rebuild the cache when it asks. Otherwise keywords may not show
-  up properly in search results.
-
-- (No Bug Number) If you have a lot of non-ASCII data in your Bugzilla (for 
-  example, if you use a translation of Bugzilla), don't enable the XS::Stash
-  option when you install the Template Toolkit, or your Bugzilla installation
-  may become slow. This problem is fixed in a not-yet-released version of the
-  Template Toolkit (after 2.14).
-
-- bug 266579: Users may be able to circumvent not having &quot;canconfirm&quot; privileges
-  in some circumstances. This is fixed starting with 2.19.3, but will not
-  be fixed in any 2.18 release, as the changes required to fix it are quite
-  large.
-
-- bug 99215: Attachment changes have no mid-air collision detection, unlike bug
-  changes.
-
-- bug 57350: Searching using the &quot;commenter is&quot; option may be VERY slow. Note 
-  that searching for &quot;field: comment, changed by: user@domain.com&quot; is fast, 
-  though.
-
-- bug 151509: Using the boolean chart option &quot;contains the string&quot; with the 
-  &quot;flag name&quot; field or certain other fields will cause Bugzilla to emit an 
-  error. This is fixed in 2.20rc1, but will not be fixed in the 2.18 series.
-
-- bug 234159: Bugzilla may sometimes send multiple notices in one email.
-
-- bug 237107: If you search for attachment information using the Boolean Charts
-  at the bottom of the Advanced Query page, bugs without attachments will not
-  show up in the result list.
-
-
-Security Fixes In 2.18 Releases
-*******************************
-
-Version 2.18
-------------
-
-Summary:     XSS in Internal Error messages in Bugzilla 2.16.7 and 2.18rc3
-CVE Name:    CAN-2004-1061
-Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=272620
-Details:
-     It is possible to send a carefully crafted URL to Bugzilla designed to
-trigger an error message.  The Internal Error message includes javascript code
-which displays the URL the user is visiting.  The javascript code does not
-escape the URL before displaying it, allowing scripts contained in the URL to
-be executed by the browser.  Many browsers do not allow unescaped URLs to be
-sent to a webserver (thus complying with RFC 2616 section 2.3.1 and RFC 2396
-section 2.4.3), and are thus immune to this issue.
-    Browsers which are known to be immune: Firefox 1.0, Mozilla 1.7.5,
-Camino 0.8.2, Netscape 7.2, Safari 1.2.4
-     Browsers known to be susceptible: Internet Explorer 6 SP2,
-Konqueror 3.2
-     Browsers not listed here have not been tested.
-
-
-Version 2.18.1
---------------
-
-Two security issues were fixed in Bugzilla 2.18.1, neither of them 
-critical.
-
-See http://www.bugzilla.org/security/2.16.8/ for details.
-
-
-Version 2.18.2
---------------
-
-Two security issues were fixed in Bugzilla 2.18.2. One of them
-is a major Information Leak/Unauthorized Bug Change. The other
-is a minor Information Leak.
-
-See http://www.bugzilla.org/security/2.18.1/ for details.
-
-
-Detailed Version-To-Version Release Notes
-*****************************************
-
-*********************************************************
-*** USERS UPGRADING FROM ALL VERSIONS PRIOR TO 2.16.7 ***
-*********************************************************
-
-*** Security fixes ***
-
-- It is possible to send a carefully crafted HTTP POST message to
-  process_bug.cgi which will remove keywords from a bug even if you don't have
-  permissions to edit all bug fields (the &quot;editbugs&quot; permission).  Such changes
-  are reported in &quot;bug changed&quot; email notifications, so they are easily
-  detected and reversed if someone abuses it.  Users are now prevented from
-  making changes to keywords if they do not have editbugs privileges. (bug
-  252638)
-
-*** Bug fixes of note ***
-
-- Enforce a minimum of 10 minutes between attempts to reset a password, so
-  we don't mailbomb the user if someone submits the form many times in a
-  row. (bug 250897)
-
-- Put products in alphabetical order on the create attachment status page.
-  (bug 251427)
-
-- Specify MyISAM as the table type when creating new tables.  MySQL 4.1 and
-  up default to InnoDB, which doesn't support some of the indexing methods
-  that we use. (bug 263165)
-
-*********************************************************
-*** USERS UPGRADING FROM ALL VERSIONS PRIOR TO 2.16.6 ***
-*********************************************************
-
-*** Security fixes ***
-
-- If Bugzilla is configured to hide entire products from some users, both
-  duplicates.cgi and the form for mass-editing a list of bugs in buglist.cgi
-  can disclose the names of those hidden products to such users.
-  (bugs 234825 and 234855)
-
-- Several administration CGIs echo invalid data back to the user without
-  escaping it.  (bug 235265)
-
-- A user with privileges to grant membership to any group (i.e. usually an
-  administrator) can trick editusers.cgi into executing arbitrary SQL.
-  (bug 244272)
-
-*** Bug fixes of note ***
-
-- Allow XML import to function when there are regexp metacharacters in product
-  names (bug 237591) 
-
-- Allow the bug_email.pl contrib script to work with useqacontact (bug 239912) 
-
-- Improve the error message used by checksetup.pl when the MySQL requirements
-  are not met (bug 240228) 
-
-- Elimnate the warning in checksetup.pl about the minimum sendmail version (bug
-  240060) 
-
-- $webservergroup now defaults to group 'apache' in new installations (bug
-  224477)
-
-- Correct a situation where a bugmail message could be sent twice to a user
-  being added to the CC list if the address was entered in a different case
-  than the user registered with.  (bug 117297)
-
-- Various documentation updates
-
-*********************************************************
-*** USERS UPGRADING FROM ALL VERSIONS PRIOR TO 2.16.4 ***
-*********************************************************
-
-*** Bug fixes of note ***
-
-- Fix a &quot;used only once&quot; warning that ocurred only in perl 5.00503
-  (bug 2321691)
-
-- When a user is creating a new account and enters an invalid email
-  address, the error page sent the &quot;Content-type&quot; header twice, causing
-  the second one to be visible at the top of the page.
-  (bug 137121)
-
-- An HTML encoding issue which only affected Internet Explorer was
-  corrected in the &quot;Change several bugs at once&quot; page.
-  (bug 181106)

-- During initial setup, using invalid characters in the administrator
-  password would present an error message stating your password was
-  too long or too short instead of telling you it had invalid
-  characters.
-  (bug 166755)
-
-- When a user reset their own password via an emailed token, the new
-  password in the first field would be accepted if the second password
-  field was left blank.
-  (bug 123077)
-
-- Reopening bugs from the &quot;change several bugs at once&quot; page now works.
-  (bug 95430)
-
-- Fix a regression in xml.cgi caused by the previous bugfix for MySQL
-  SUM() changes.  The original fix didn't work properly either.
-  (bug 225474)
-
-- No longer use server push with the &quot;Safari&quot; browser, which claims to
-  use the Mozilla layout engine but doesn't.
-  (bug 188712)
-
-- Creating a shadow database no longer fails with taint mode errors.
-  (bug 227510)
-  
-- If you change your cookiepath setting at some stage (because you have
-  moved the directory Bugzilla resides on your webserver), users can
-  have login cookies with the old cookiepath, and their browsers will
-  send multiple logincookies.  Bugzilla now uses the first rather than
-  the last in order to get the most specific cookie which will be the
-  correct one.
-  (bug 121419)        
-  
-- Fixed a regression caused by the previous DBD::mysql fixes, that
-  caused older versions of DBD::mysql to break due to not supporting
-  the new DBI syntax.
-  (bug 224815)
-
-- Bugzilla no longer sends out invalid dates for cookie expiry.  This
-  bug had no known user visible ramifications.
-  (bug 228706)
-  
-- Update the shadow database parameters description to tell the user
-  about permissions requirements for creating a shadow database.
-  (bug 227513)
-
-- Various documentation updates.
-
-*********************************************************
-*** USERS UPGRADING FROM ALL VERSIONS PRIOR TO 2.16.3 ***
-*********************************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- A user with 'editproducts' privileges (i.e. usually an administrator)
-  can select arbitrary SQL to be run by the nightly statistics cron job
-  (collectstats.pl), by giving a product a special name.
-  (bug 214290)
-
-- A user with 'editkeywords' privileges (i.e. usually an administrator)
-  can inject arbitrary SQL via the URL used to edit an existing keyword.
-  (bug 219044)
-
-- When deleting products and the 'usebuggroups' parameter is on, the
-  privilege which allows someone to add people to the group which is
-  being deleted does not get removed, allowing people with that
-  privilege to get that privilege for the next group that is created
-  which reuses that group ID.  Note that this only allows someone who
-  had been granted privileges in the past to retain them.
-  (bug 219690)
-
-- If you know the email address of someone who has voted on a secure
-  bug, you can access the summary of that bug even if you do not have
-  sufficient permissions to view the bug itself.
-  (bug 209376)
-
-*** Bug fixes of note ***
-
-Perl 5.8.0 Compatibility fixes:
-
-- Two taint errors were fixed, one in process_bug.cgi, and 
-  another in post_bug.cgi.
-  (bugs 220332 and 177828)
-
-MySQL 4.0 Compatibility fixes:
-
-- A cosmetic fix was applied to votes.cgi (if there were no 
-  votes, the &quot;0&quot; was not displayed) due to a change in semantics 
-  in SUM() in MySQL 4.0.
-  (bug 217422)
-
-DBD::mysql &gt; 2.1026 Compatibility fixes:
-
-- DBD::mysql versions after 2.1026 return the table list quoted, which
-  broke the existing &quot;table exists&quot; check in checksetup.pl, which caused
-  the second and subsequent attempts to run checksetup.pl to fail.
-  (bug 212095) 
-
-Miscellaneous bug fixes:
-
-- A Mozilla-specific reference was removed from one of the report
-  templates.
-  (bug 221626)
-
-- It was possible to enter a situation where you were unable to get to
-  editparams.cgi to turn the shutdownhtml param back off after you
-  turned it on when Apache was configured to run Bugzilla in suexec
-  mode.
-  (bug 213384)
-  
-- The processmail rescanall task would not send e-mails about more than
-  one bug to the same address.
-  (bug 219508)
-
-- If Bugzilla hadn't been accessed in the last hour when the
-  collectstats.pl or whineatnews.pl cron jobs ran, the versioncache
-  would get recreated with the file owner being the user the cron job
-  was running as (usually not the webserver user), causing subsequent
-  access to Bugzilla by the webserver to fail until the permissions were
-  fixed. Now if versioncache isn't readable when accessing from the
-  webserver, we pretend it doesn't exist and recreate it again.
-  (bug 160422)
-
-- The 'sendmailnow' param is now on by default in new installations
-  (this does not affect existing installations).
-  (bug 146087)
-
-- The 008filter.t test would fail if you had multiple language packs
-  installed. It now properly tests all of the installed language packs.
-  (bug 203318)
-
-- A few minor documentation changes were committed.
-
-*********************************************************
-*** USERS UPGRADING FROM ALL VERSIONS PRIOR TO 2.16.2 ***
-*********************************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- A cross site scripting (XSS) vulnerability was fixed in which bug 
-  summaries were not properly filtered when a user viewed a dependency graph 
-  allowing JavaScript to be embedded on that page.
-  (bug 192661)
-  
-- Several XSS vulnerabilities were fixed in which user
-  input was not escaped when being displayed. A new 
-  test has been added to warn about unfiltered data in template
-  files (t/008filter.t).
-  (bug 192677)
-
-- An issue was fixed in which the QA contact was still treated as the QA
-  contact even after the 'useqacontact' setting was turned off. This also
-  allowed the QA contact to edit the security groups and view secured bugs that
-  he/she was allowed to access prior to the 'useqacontact' setting being
-  deactivated.
-  (bug 194394)
-  
-- Fixed a situation where an attacker (with local access to the webserver)
-  could overwrite any file on the webserver to which the webserver user
-  has write access by creating appropriately named symbolic links in the
-  data and webdot directories (world-writable in many configurations).
-  Bugzilla now uses File::Temp to create secure temporary files.  File::Temp
-  is part of the Perl distribution for Perl 5.6.1 and later, but if you're
-  using an older version of Perl you'll need to install it with CPAN.
-  (bug 197153)
-
-** IMPORTANT CHANGES ***
-
-- New module requirement: File::Temp, as mentioned above.
-
-*** Bug fixes of note ***
-
-- An issue was fixed in which administrator rights could be removed from an
-  administrator who deleted a product while the 'usebuggroups' setting is
-  activated.
-  (bug 157704) 
-  
-- Fixed an issue in which importxml.pl would fail the test suite when running
-  under perl 5.8.0 with the optional XML::Parse module. 
-  (bug 172331)
-  
-- There was previously a bug in CGI.pl in which the following warning 
-  would be given under certain conditions: 
-  &quot;Character in &quot;c&quot; format wrapped at CGI.pl...&quot; 
-  This is now fixed. In some cases the warning was filling up web server log
-  files.
-  (bug 194125)
-  
-- Fixed a bug in which long component names (in excess of 50 characters) would
-  be accepted when creating the component but would cause problems when trying
-  to use that component on a bug because it would get truncated. It is now no
-  longer possible to create components with names in excess of 50 characters. 
-  (bug 197180)
-  
-- Fixed a bug in checksetup.pl in which permissions were not being fixed 
-  on the 'data/comments' file, the quip file. 
-  (bug 160279)
-
-*****************************************************************
-*** USERS UPGRADING FROM 2.16.1 OR EARLIER, 2.14.4 OR EARLIER ***
-*****************************************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- Fixed a cross site scriptability issue in quips.  This is only a problem
-  if quips with HTML could have been inserted into your quips files.  Bugzilla
-  has not allowed this since 2.12.
-  (bug 179329)
-- checksetup.pl will now attempt to prevent access to &quot;editor backups&quot; of
-  localconfig.
-  (bug 186383)
-- collectstats.pl no longer makes data/mining (which contains graphing
-  information) world writeable.
-  (bug 183188)
-
-***********************************************
-*** USERS UPGRADING FROM 2.16.0 OR EARLIER  ***
-***********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- Apostrophes were not properly handled in email addresses.  This was a
-  regression introduced in 2.16.  It is not known whether this was
-  exploitable.
-  (bug 165221)
-
-See also next major section.
-
-*** Bug fixes of note ***
-
-- The VERSION cookie which allowed the previously entered version of a product
-  to be remembered was not correctly set.  It was only set as a session
-  cookie, and under some circumstances could interfere with other cookies
-  (such as the login information) send at the same time.
-  (bug 160227)
-
-- importxml.pl would fail if the versioncache needed to be updated.
-  (bug 164464)
-
-- Bug changes going through intermediate pages would munge fields with
-  multiple fields, such as CCs.
-  (bug 161203)
-
-- On failure in template-&gt;new, Bugzilla will now die rather than futilely
-  attempt to use an error template.
-  (bug 166023)
-
-- Fixed a problem where checksetup had problems converting old installations
-  that didn't have a duplicates table.
-  (bug 151619)
-
-- Fixed a problem that caused taint errors when viewing or editing user
-  preferences with Perl 5.005 and Template 2.08.
-  (bug 160710)
-
-See also next section.
-
-******************************************************
-*** USERS UPGRADING FROM 2.16.0, 2.14.3 OR EARLIER ***
-******************************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- When a new product is added to an installation with 47 groups or more and
-  &quot;usebuggroups&quot; is enabled, the new group will be assigned a groupset bit
-  using Perl math that is not exact beyond 2^48.  This results in the new
-  group being defined with a &quot;bit&quot; that has several bits set.  As users are
-  given access to the new group, those users will also gain access to
-  spurious lower group privileges.  Also, group bits were not always reused
-  when groups were deleted.
-  (bug 167485)
-
-- The email interface had another insecure single parameter system call.  This
-  could potentially allow arbitrary shell commands to be run.  This file is
-  not supported at this time, but as long as we knew about the problem, we
-  couldn't overlook it.
-  (bug 163024)
-
-*** Bug fixes of note ***
-
-- The email interface was broken.  This was a 2.14.3 regression.  This file
-  is not supported at this time, but as long as we knew about the problem, we
-  couldn't overlook it.
-  (bug 160631)
-
-***********************************************
-*** USERS UPGRADING FROM 2.14.5 OR EARLIER  ***
-***********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- The bug reporter could set the priority even when
-  'letsubmitterchoosepriority' was off.
-  (bug 63018)
-
-- Most CGIs are now templatized.  This helps to make it
-  easier to remember to HTML filter values and easier to spot
-  when they are not, preventing cross site scripting attacks.
-  (bug 86168)
-
-- Most CGIs now run in taint mode.  This helps to prevent
-  failure to validate errors.
-  (bug 108982)
-
-*** IMPORTANT CHANGES ***
-
-- 2.16 introduces &quot;templatization&quot;, a new feature that allows
-  administrators to easily customize the HTML output (the &quot;look and feel&quot;)
-  of Bugzilla without altering Perl code.  Bugzilla uses the
-  &quot;Template Toolkit&quot; for this.  Please see the &quot;Template Customization&quot;
-  section of the Bugzilla Guide for more details.
-
-  Administrators who ran the 2.15 development version with custom
-  templates should check the templates are still valid, as file names
-  and file paths have changed.
-
-  Most output is now templatized.  This process will be complete next
-  milestone.
-
-  For speed, compiled templates are cached on disk.  If you modify the
-  templates, the toolkit will normally detect the changes, and recompile the
-  changed templates.
-
-  Adding new directories anywhere inside the template directory may cause 
-  permission errors if you don't have a webservergroup specified in
-  localconfig.  If you see these, rerun checksetup.pl as root.  If you do not
-  have root access, or cannot get someone who does to do this for you, you can
-  rename the data/template directory to data/template.old (or any other name
-  Bugzilla doesn't use).  Then rerun checksetup.pl to regenerate the compiled
-  templates.
-  (bug 86168, 97832)
-
-- Administrators can now configure maximum attachment sizes.  These
-  should remain below the maximum size for your MySQL server, or you
-  will get obscure MySQL errors if you attach a bigger attachment.
-
-  To find out the current size attachment that MySQL can accept, type
-  the command 'mysqladmin variables' and find out the value of the
-  'max_allowed_packet' varible in bytes.
-
-  To change the maximum size that MySQL can accept you can alter this
-  variable in your 'my.cnf' file.
-  (bug 91664)
-
-- Perl 5.004 is no longer supported because the Template Toolkit
-  requires 5.005.
-  (bug 97721)
-
-- New module requirements: Text::Wrap, Template [requires AppConfig],
-                           File::Spec.
-  (bugs 97784, 84338, 103778)
-
-- The index page is now a CGI instead of an HTML page.  You should remove
-  any existing index.html file and make sure your web server allows index.cgi
-  to be the default page in a directory.  If you are not able to do that you
-  can instead set index_html in the 'localconfig' file to 1 and checksetup.pl
-  will create a redirect page for you.
-  (bug 80183)
-
-- It is now recommended that administrators run &quot;processmail rescanall&quot;
-  after upgrading to 2.16 or beyond.
-
-  This will send out notification emails for changes that were
-  made but not emailed, due to Bugzilla bugs.  All known
-  causes of this have been fixed in this version (bug 104589 and 99519).
-
-  It is also recommended that this be run nightly to avoid
-  lengthy delays in future if this problem reoccurs.
-  (bug 106377)
-
-- In parallel with templatization, a lot of changes have been made to the HTML
-  output of the Bugzilla CGIs.  This could break code that attempts to parse
-  such code.  For example, this breaks mozbot.
-  (no bug number)
-
-- The &quot;HTML template&quot; parameters (headerhtml, bodyhtml, footerhtml,
-  errorhtml, bannerhtml, blurbhtml, mostfreqhtml, entryheaderhtml) have now
-  been moved to Template Toolkit templates.  If you have modified these
-  parameters you will need to make corresponding changes to the corresponding
-  templates.  Your old parameter values will be moved to a file called
-  old-params.txt by checksetup.pl.
-
-  The old parameters correspond to files in template/en/default as follows:
-
-  headerhtml:      global/header.html.tmpl
-  footerhtml:      global/footer.html.tmpl
-  bannerhtml:      global/banner.html.tmpl
-  blurbhtml:       global/banner.html.tmpl
-  mostfreqhtml:    reports/duplicates*.html.tmpl
-  entryheaderhtml: bug/create/user-message.html.tmpl
-
-  (bug 140437)
-
-*** Other changes of note ***
-
-- The query page has been redesigned for better user friendliness.
-  (bug 98707)
-- Users can now change their email account.
-  (bug 23067)
-- &quot;Dependent Bug Changed&quot; notification emails now contain the
-  dependent bug's summary and URL.
-  (bug 28736, 113383)
-- Bugs with severity &quot;critical&quot;, &quot;blocker&quot;, and &quot;enhancement&quot; are
-  visually differentiated on bug lists for browsers with sufficient
-  CSS support.
-  (bug 28884)
-- Bugzilla now has a sidebar for the Mozilla browser.
-  (bug 37339)
-- A link to just created attachments now appears in notification
-  email.
-  (bug 66651)
-- Comments now have numbers and can be referenced with
-  autohyperlinkifying similar to bugs.
-  (bug 71840)
-- The attachment system has been rewritten, supporting new
-  &quot;attachment statuses&quot; (like keywords, but for attachments),
-  the ability to obsolete attachments, edit attachment MIME type,
-  and edit whether the attachment is a patch.
-  (bugs 84338, 75176)
-- syncshadowdb now supports a configurable temp file location,
-  and properly shuts down Bugzilla while running.
-  (bug 75840)
-- Dependency tree now lets you exclude resolved bugs and bugs
-  below a specified depth.
-  (bugs 83058)
-- The &quot;strictvaluechecks&quot; parameter has gone away.  These checks
-  are now always done.
-  (bug 119715)
-- The midair collision page now shows all changes since the bug
-  page was loaded, not just the last one.
-  (bug 108312)
-- Added support for making dependency graphs with 'dot', which
-  is better at creating complex graphs than 'webdot'.
-  (bug 120537)
-
-*** Bug fixes of note ***
-
-- Bugzilla scripts are now usually not terminated when the browser
-  window they are running in is closed.  This caused hard to
-  reproduce bugs.
-  (bug 104589)
-- On browsers that &quot;reflow&quot; the page, large component / milestone /
-  version fields were extremely slow to reflow when you altered
-  the product field.
-  (bug 96534)
-- The selection in the component / milestone / version fields is
-  no longer lost when you change the selection in the product
-  field or use the back/forward buttons in your browser to return
-  to the page.
-  (bug 97966)
-- You could not reverse dependencies in one step.
-  (bug 82143)
-- Mass reassignment of non-open bugs will no longer reopen them.
-  (bug 30731)
-- Attempting to bulk change no bugs will now give a user-friendly
-  error message.
-  (bug 90333)
-- If you make a change to a bug where you only add yourself to CC,
-  email notifications are now properly sent out for MySQL 3.23.
-  (bug 99519)
-- Bug entry now properly validates the data it has been sent.
-  (bug 107743)
-- Midair collision checks will now properly work in all situations
-  where dependencies have changed.
-  (bug 73502)
-- Browsers can no longer corrupt the params file if they use the &quot;wrong&quot;
-  end-of-line markers.
-  (bug 92500)
-- The MySQL port defined in localconfig is now properly honoured.
-  (bug 98368)
-- Apostrophes in component/milestone/version names no longer cause
-  a problem on the query page.
-  (bug 30689/42810)
-- File attachment comments will now wrap.
-  (bug 52060)
-- Saved queries are no longer mangled if you need to log in again,
-  for example if you had cookies off.
-  (bug 38835)
-- Bug counts (on reports.cgi) were very slow if you had to
-  count a lot of bugs.
-  (bug 63249)
-- 2.14 introduced options to let people see a bug when their name
-  is on it but who aren't in the groups the bug is restricted
-  to.  These only allowed the people to view the bugs directly,
-  and not see them on buglists and receive email about them.
-  (bugs 95024, 97469)
-- A new 'cookiepath' parameter on editparams.cgi allows multiple
-  Bugzilla installations to exist on one host without problems.
-  (bug 19910)
-- whineatnews.pl now respects the 'sendmailnow' parameter.
-  (bug 52782)
-- The query page came up even when Bugzilla was shut down.
-  (bug 121747)
-- Quicksearch gave a weird error message when Bugzilla was
-  shut down.
-  (bug 121741)
-- Operating system detection fixes.
-  (bugs 92763, 135666)
-- QA contacts now receive emails when a new bug is created and
-  their only email preference was being added or removed from QA.
-  (bug 143091)
-
-***********************************************
-*** USERS UPGRADING FROM 2.14.4 OR EARLIER  ***
-***********************************************
-
-See section above about users upgrading from 2.16.1 or earlier,
-2.14.4 or earlier.
-
-***********************************************
-*** USERS UPGRADING FROM 2.14.3 OR EARLIER  ***
-***********************************************
-
-See section above about users upgrading from 2.16.0 or earlier.
-
-***********************************************
-*** USERS UPGRADING FROM 2.14.2 OR EARLIER  ***
-***********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- Basic maintenance on contrib/bug_email.pl and
-  contrib/bugzilla_email_append.pl which also fixes a
-  possible security hole with a misuse of a system() call.
-  These files are not supported at this time, but as long
-  as we knew about the problem, we couldn't overlook it.
-  (bug 154008)
-
-*** Bug fixes of note ***
-
-- The fix for bug 130821 in 2.14.2 broke being able to sort
-  bug lists on more than one field.  buglist.cgi now allows
-  you to sort on more than one field again.
-  (bug 152138)
-
-***********************************************
-*** USERS UPGRADING FROM 2.14.1 OR EARLIER  ***
-***********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- queryhelp.cgi no longer shows confidential products to
-  people it shouldn't.
-  (bug 126801)
-
-- It was possible for a user to bypass the IP check by
-  setting up a fake reverse DNS, if the Bugzilla web server
-  was configured to do reverse DNS lookups.  Apache is not
-  configured as such by default.  This is not a complete
-  exploit, as the user's login cookie would also need to
-  be divulged for this to be a problem.
-  (bug 129466)
-
-- In some situations the data directory became world writeable.
-  (bug 134575)
-
-- Any user with access to editusers.cgi could delete a user
-  regardless of whether 'allowuserdeletion' is on.
-  (bug 141557)
-
-- Real names were not HTML filtered, causing possible cross
-  site scripting attacks.
-  (bug 146447, 147486)
-
-- Mass change would set the groupset of every bug to be the
-  groupset of the first bug.
-  (bug 107718)
-
-- Some browsers (eg NetPositive) interacted with Bugzilla
-  badly and could have various form problems, including
-  removing group restrictions on bugs.
-  (bug 148674)
-
-- It was possible for random confidential information to be
-  divulged, if the shadow database was in use and became
-  corrupted.
-  (bug 92263)
-
-- The bug list sort order is now stricter about the SQL it will accept,
-  ensuring you use correct column name syntax.  Before this, there were
-  some syntax checks, so it is not known whether this problem was
-  exploitable.
-  (bug 130821)
-
-********************************************
-*** USERS UPGRADING FROM 2.14 OR EARLIER ***
-********************************************
-
-The 2.14.1 release fixes several security issues that became
-known to us after the Bugzilla 2.14 release.
-
-*** SECURITY ISSUES RESOLVED ***
-
-- If LDAP Authentication was being used, Bugzilla would allow
-  you to log in as anyone if you left the password blank.
-  (bug 54901)
-
-- It was possible to add comments or file a bug as someone else
-  by editing the HTML on the appropriate submission page before
-  submitting the form.  User identity is checked now, and the
-  form values suggesting the user are now ignored.
-  (bug 108385, 108516)
-
-- The Product popup menu on the show_bug form listed all
-  products, even if the user didn't have access to all of them.
-  It now only shows products the user has access to (and the
-  product the bug is in, if the user is viewing it because of
-  some other override).
-  (bug 102141)
-
-- If a user had any blessgroupset privileges (the ability to
-  change only specific privileges for other users), it was
-  possible to change your own groupset (privileges) by
-  altering the page HTML before submitting on editusers.cgi.
-  (bug 108821)
-
-- An untrusted variable was echoed back to user in the HTML
-  output if there was a login error while editing votes.
-  (bug 98146)
-
-- buglist.cgi had an undocumented parameter that allowed you
-  to pass arbitrary SQL for the &quot;WHERE&quot; part of a query.
-  This has been disabled.
-  (bug 108812)
-
-- It was possible for a user to send arbitrary SQL by inserting
-  single quotes in the &quot;mybugslink&quot; field in the user
-  preferences.
-  (bug 108822)
-
-- buglist.cgi was not validating that the field names being
-  passed from the &quot;boolean chart&quot; query form were valid field
-  names, thus allowing arbitrary SQL to be inserted if you 
-  edited the HTML by hand before submitting the form.
-  (bug 109679)
-
-- long_list.cgi was not validating that the bug ID parameter
-  was actually a number, allowing arbitrary SQL to be inserted
-  if you edited the HTML by hand.
-  (bug 109690)
-
-********************************************
-*** USERS UPGRADING FROM 2.12 OR EARLIER ***
-********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- Multiple instances of unauthorized access to confidential
-  bugs have been fixed.
-  (bug 39524, 39526, 39527, 39531, 39533, 70189, 82781)
-
-- Multiple instances of untrusted parameters not being
-  checked/escaped was fixed.  These included definite security
-  holes.
-  (bug 38854, 38855, 38859, 39536, 87701, 95235)
-
-- After logging in passwords no longer appear in the URL.
-  (bug 15980)
-
-- Procedures to prevent unauthorized access to confidential
-  files are now simpler.  In particular the shadow directory
-  no longer exists and the data/comments file no longer needs
-  to be directly accessible, so the entire data directory can
-  be blocked.  However, no changes are required here if you
-  have a properly secured 2.12 installation as no new files
-  must be protected.
-  (bug 71552, 73191)
-
-- If they do not already exist, checksetup.pl will attempt to
-  write Apache .htaccess files by default, to prevent
-  unauthorized access to confidential files.  You can turn this
-  off in the localconfig file.
-  (bug 76154)
-
-- Sanity check can now only be run by people in the 'editbugs'
-  group.  Although it would be better to have a separate
-  group, this is not possible until the limitation on the
-  number of groups allowed has been removed.
-  (bug 54556)
-
-- The password is no longer stored in plaintext form.  It will
-  be eradicated next time you run checksetup.pl.  A user must
-  now change their password via a password change request that
-  gets validated at their e-mail account, rather than have it
-  mailed to them.
-  (bug 74032)
-
-- When you are using product groups and you move a bug between
-  products (single or mass change), the bug will no longer be
-  restricted to the old product's group (if it was) and will
-  be restricted to the new product's group.
-  (bug 66235)
-
-- There are now options on a bug to choose whether the
-  reporter, and CCs can access a bug even if they aren't in
-  groups the bug it is restricted to.
-  (bug 39816)
-
-- You can no longer mark a bug as a duplicate of a bug you
-  can't see, and if you mark a bug a duplicate of a bug
-  the reporter cannot see you will be given options as to
-  what to do regarding adding the reporter of the resolved
-  bug to the CC of the open bug.
-  (bug 96085)
-
-*** IMPORTANT CHANGES ***
-
-- Bugzilla 2.14 no longer supports old email tech.  Upon
-  upgrading, all users will be moved over to new email tech.
-  This should speed up upgrading for installations with
-  a large number of bugs.
-  (bug 71552)
-
-- There is new functionality for people to see why they are
-  receiving notification mails.
-
-  Previously, some people filtered old email tech
-  notifications depending on whether they were in the To or the
-  CC header, in order to get a limited way of determining why
-  they were receiving the notification for filtering purposes.
-
-  Existing installations will need to make changes to support
-  this feature.  The receive reasons can be added to the
-  notifications as a header and/or in the body.  To add these
-  you will need to modify your newchangedmail parameter on
-  editparams.cgi, either by resetting it or appropriately
-  modifying it.  The header value is specified by
-  %reasonsheader% and the body by %reasonsbody%.  For example,
-  the new default parameter is:
-
-  --------------------------------------------------
-  From: bugzilla-daemon
-  To: %to%
-  Subject: [Bug %bugid%] %neworchanged%%summary%
-  X-Bugzilla-Reason: %reasonsheader%
-
-  %urlbase%show_bug.cgi?id=%bugid%
-
-  %diffs%
-
-
-
-  %reasonsbody%
-  --------------------------------------------------
-
-  (bug 26194)
-
-- Very long fields (especially multi-valued fields like keywords,
-  CCs, dependencies) on bug activity and notifications previously
-  could get truncated, resulting in useless notifications and data
-  loss on bug activity.  Now the multi-valued fields only show
-  changes, and very big changes are split into multiple lines.
-  Where data loss has already occurred on bug activity, it is
-  indicated using question marks.
-  (bug 55161, 92266)
-
-- Previously, when a product's voting preferences changed all
-  votes were removed from all the bugs in the product.  Also,
-  when a bug was moved to another product, all of its votes
-  were removed.  This no longer occurs.
-
-  Instead, if the action would leave one or more bugs with
-  greater than the maximum number of votes per person per bug,
-  the number of votes will be reduced to the maximum.  The
-  person will still be notified of this as before.
-
-  If the action would leave a user with more votes in a product
-  than is allowed, the limit will be breached so as to not lose
-  votes.  However the user will not be able to update their
-  votes except to fix this situation.  No further action is taken
-  in this version to make sure that the user does this.
-  (bug 28882, 92593)
-
-*** Other changes of note ***
-
-- Groups can now be marked inactive, so you can't add a new
-  restriction on that group to a bug, while leaving bugs that
-  were previously restricted on that group alone.
-  (bug 75482)
-- backdoor.cgi has been removed from the installation.  It was
-  old code that was Netscape-specific and its name was scaring
-  people.
-  (bug 87983)
-- You can now add or remove from CC on the bulk change page.
-  (bug 12819)
-- New users created by administrators are now automatically
-  inserted into groups according to the group's regular
-  expression.  Administrators must edit the user in a second
-  step to override these choices.  Previously the
-  administrator specified these explicitly which could lead
-  to incorrect settings.
-  (bug 45164)
-- The userregexp of system groups can now be edited without
-  resorting to direct database access.
-  (bug 65290)
-
-*** Bug fixes of note ***
-
-- The bug list page was sometimes bringing up a not logged in
-  footer when the user was logged in and the installation was
-  using a shadow database.
-  (bug 47914)
-- You can now view the bug summary in your browser title for
-  a group-restricted bug if you have proper permissions.
-  (bug 71767)
-- Quick search for search terms did not work in IE5.
-  This has been worked around.
-  (bug 77699)
-- Quick search for search terms crashed NN4.76/4.77 for Unix.
-  This has been worked around.
-  (bug 83619)
-- Queries on bugs you have commented on using the &quot;added
-  comment&quot; feature should be a lot faster and not time out
-  on large installations due to the addition of an index.
-  (bug 57350)
-- You can now alter group settings on bulk change for groups
-  that aren't on for all bugs or off for all bugs.
-  (bug 84714)
-- New bug notifications now include the CC and QA fields.
-  (bug 28458)
-- Bugzilla is now more Windows friendly, although it is still
-  not an official platform.
-  (bug 88179, 29064)
-- Passwords are now encrypted using Perl's encrypt function.
-  This makes Bugzilla more portable to more operating systems.
-  (bug 77473)
-- Bugzilla didn't properly shut down when told to - some
-  queries could still be sent to the database.
-  (bug 95082)
-
-********************************************
-*** USERS UPGRADING FROM 2.10 OR EARLIER ***
-********************************************
-
-*** SECURITY ISSUES RESOLVED ***
-
-- Some security holes have been fixed where shell escape characters
-  could be passed to Bugzilla, allowing remote users to execute
-  system commands on the web server.
-
-*** IMPORTANT CHANGES ***
-
-- There is now a facility for users to choose the sort of
-  notifications they wish to receive.  This facility will
-  probably be improved in future versions.
-  (bug 17464)
-
-- &quot;Changed&quot; will no longer appear on the subject line of
-  change notification emails.  Because of this, you should
-  change the subject line in your 'changedmail' and
-  'newchangedmail' params on editparams.cgi.  The subject
-  line needs to be changed from
-
-    Subject: [Bug %bugid%] %neworchanged% - %summary%
-
-  to:
-
-    Subject: [Bug %bugid%] %neworchanged%%summary%
-
-  or whatever is appropriate for the subject you are using
-  on your system.  Note the removal of the &quot; - &quot; in the
-  middle.
-  (bug 29820)
-
-*** Other changes of note ***
-
-- Bug titles now appear in the page title, and will hence
-  display in the user's browser's bookmarks and history.
-  (bug 22041)
-- Edit groups functionality (editgroups.cgi).
-  (bug 25010)
-- Support for moving bugs to other Bugzilla databases.
-  (bug 36133)
-- Bugzilla now can generate a frequently reported bugs list
-  based on what duplicates you receive.
-  (bug 25693)
-- When installing Bugzilla fresh, the administrator account is
-  now created in checksetup.pl.
-  (bug 17773)
-- Stored queries now show their name above the bug list, which
-  helps the user when they have multiple bug lists in multiple
-  browser windows.  It also appears in the page title, and will
-  hence display in the user's browser's bookmarks and history.
-  (bug 52228)
-- All states and resolutions can now be collected for charting.
-  (bug 6682)
-- A new search-engine-like &quot;quick search&quot; feature appears on
-  the front page to try and making searching easier.
-  (bug 69793)
-- Querying on dependencies now works in the advanced query
-  section of the query page.
-  (bug 30823)
-- When a bug is marked as a duplicate, the reporter of the
-  resolved bug is automatically added to the CC list of the
-  open bug.
-  (bug 28676)
-
-*** Bug fixes of note ***
-
-- Notification emails will now always be sent to QA contacts.
-  Previously they wouldn't if you were using new email tech.
-  (bug 30826)
-- When marking a bug as a duplicate, the duplicate stamp marked
-  on the open bug will no longer be written too early (such as
-  on mid-air collisions).
-  (bug 7873)
-- Various bug fixes were made to the initial assignee and QA
-  of a component.  It is no longer possible to enter an
-  invalid address.  They will also now properly update when
-  a user's email address is changed.  Sanity check will now
-  check these.
-  (bug 66876)
-- Administrators can no longer create an email accounts that do
-  not match the global email regular expression parameter.
-  Previously this could occur and would cause sanity check
-  errors.
-  (bug 32971)
-- The resolution field can no longer become empty when the
-  bug is resolved.  This occurred because of midair collisions.
-  (bug 49306)
-
-*******************************************
-*** USERS UPGRADING FROM 2.8 OR EARLIER ***
-*******************************************
-
-This version of Bugzilla cannot upgrade from version 2.8 (released
-November 19, 1999). You will first have to upgrade to Bugzilla 3.6 and
-then upgrade to the latest release.
-
-If you are upgrading from a version earlier than 2.8, See the 
-PGRADING-pre-2.8 file in Bugzilla 3.0 for information
-on upgrading from a version that is earlier than 2.8.
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrst_staticbugzillacss"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/_static/bugzilla.css (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/_static/bugzilla.css                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/_static/bugzilla.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+@import 'default.css';
+
+dt { font-weight: bold; }
+
+/* Custom roles */
+.param    { font-weight: bold; }
+.paramval { font-family: monospace; }
+.group    { font-family: monospace; }
+.field    { font-weight: bold; }
+.command  { font-family: monospace; font-size: 130% }
+
+.admonition-todo {
+  background-color: lightpink;
+  border: 2px darkred solid;
+}
+
+/* Make Buggie's antenna not take up so much space */
+.logo {
+  display: block;
+  margin-top: -20px;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstaboutindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/about/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/about/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/about/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,128 @@
</span><ins>+.. _about:
+
+========================
+About This Documentation
+========================
+
+This is the documentation for version |version| of Bugzilla, a bug-tracking
+system from Mozilla. Bugzilla is an enterprise-class piece of software
+that tracks millions of bugs and issues for thousands of organizations around
+the world.
+
+The most current version of this document can always be found on the
+`Bugzilla website &lt;http://www.bugzilla.org/docs/&gt;`_.
+
+.. _evaluating:
+
+Evaluating Bugzilla
+###################
+
+If you want to try out Bugzilla to see if it meets your needs, you can do so
+on `Landfill &lt;https://landfill.bugzilla.org/bugzilla-4.4-branch/&gt;`_, our test
+server. The `Bugzilla FAQ &lt;https://wiki.mozilla.org/Bugzilla:FAQ&gt;`_ may also
+be helpful, as it answers a number of questions people sometimes have about
+whether Bugzilla is for them.
+
+.. _getting-help:
+
+Getting More Help
+#################
+
+If this document does not answer your questions, we run a
+`Mozilla forum &lt;https://www.mozilla.org/about/forums/#support-bugzilla&gt;`_
+which can be accessed as a newsgroup, mailing list, or over the web as a
+Google Group. Please
+`search it &lt;https://groups.google.com/forum/#!forum/mozilla.support.bugzilla&gt;`_
+first, and then ask your question there.
+
+If you need a guaranteed response, commercial support is
+`available &lt;http://www.bugzilla.org/support/consulting.html&gt;`_ for Bugzilla
+from a number of people and organizations.
+
+.. _conventions:
+
+Document Conventions
+####################
+
+This document uses the following conventions:
+
+.. warning:: This is a warning—something you should be aware of.
+
+.. note:: This is just a note, for your information.
+
+A filename or a path to a filename is displayed like this:
+:file:`/path/to/filename.ext`
+
+A command to type in the shell is displayed like this:
+:command:`command --arguments`
+
+A sample of code is illustrated like this:
+
+::
+
+    First Line of Code
+    Second Line of Code
+    ...
+
+This documentation is maintained in
+`reStructured Text
+&lt;http://docutils.sourceforge.net/docs/user/rst/quickstart.html&gt;`_ format using
+the `Sphinx &lt;http://www.sphinx-doc.org/&gt;`_ documentation system. It has
+recently been rewritten, so it undoubtedly has bugs. Please file any you find, in
+the `Bugzilla Documentation
+&lt;https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla;component=Documentation&gt;`_
+component in Mozilla's installation of Bugzilla. If you also want to make a
+patch, that would be wonderful. Changes are best submitted as diffs, attached
+to a bug. There is a :ref:`Style Guide &lt;style-guide&gt;` to help you write any
+new text and markup.
+
+.. _license:
+
+License
+#######
+
+Bugzilla is `free &lt;http://www.gnu.org/philosophy/free-sw.html&gt;`_ and
+`open source &lt;http://opensource.org/osd&gt;`_ software, which means (among other
+things) that you can download it, install it, and run it for any purpose
+whatsoever without the need for license or payment. Isn't that refreshing?
+
+Bugzilla's code is made available under the
+`Mozilla Public License 2.0 &lt;http://www.mozilla.org/MPL/2.0/&gt;`_ (MPL),
+specifically the variant which is Incompatible with Secondary Licenses.
+However, again, if you only want to install and run Bugzilla, you don't need
+to worry about that; it's only relevant if you redistribute the code or any
+changes you make.
+
+Bugzilla's documentation is made available under the
+`Creative Commons CC-BY-SA International License 4.0
+&lt;https://creativecommons.org/licenses/by-sa/4.0/&gt;`_,
+or any later version.
+
+.. _credits:
+
+Credits
+#######
+
+The people listed below have made significant contributions to the
+creation of this documentation:
+
+Andrew Pearson,
+Ben FrantzDale,
+Byron Jones,
+Dave Lawrence,
+Dave Miller,
+Dawn Endico,
+Eric Hanson,
+Gervase Markham,
+Jacob Steenhagen,
+Joe Robins,
+Kevin Brannen,
+Martin Wulffeld,
+Matthew P. Barnson,
+Ron Teitelbaum,
+Shane Travis,
+Spencer Smith,
+Tara Hernandez,
+Terry Weissman,
+Vlad Dascalu,
+Zach Lipton.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringcategorizationrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/categorization.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/categorization.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/categorization.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,416 @@
</span><ins>+.. _categorization:
+
+===============================================================
+Classifications, Products, Components, Versions, and Milestones
+===============================================================
+
+Bugs in Bugzilla are classified into one of a set of admin-defined Components.
+Components are themselves each part of a single Product. Optionally, Products
+can be part of a single Classification, adding a third level to the hierarchy.
+
+.. _classifications:
+
+Classifications
+###############
+
+Classifications are used to group several related products into one
+distinct entity.
+
+For example, if a company makes computer games,
+they could have a classification of &quot;Games&quot;, and a separate
+product for each game. This company might also have a
+``Common`` classification, containing products representing units of
+technology used in multiple games, and perhaps an ``Other`` classification
+containing a few special products that represent items that are not actually
+shipping products (for example, &quot;Website&quot;, or &quot;Administration&quot;).
+
+The classifications layer is disabled by default; it can be turned
+on or off using the :param:`useclassification` parameter
+in the *Bug Fields* section of :ref:`parameters`.
+
+Access to the administration of classifications is controlled using
+the *editclassifications* system group, which defines
+a privilege for creating, destroying, and editing classifications.
+
+When activated, classifications will introduce an additional
+step when filling bugs (dedicated to classification selection), and they
+will also appear in the advanced search form.
+
+.. _products:
+
+Products
+########
+
+Products usually represent real-world shipping products.
+Many of Bugzilla's settings are configurable on a per-product basis.
+
+When creating or editing products the following options are
+available:
+
+Product
+    The name of the product
+
+Description
+    A brief description of the product
+
+Open for bug entry
+    Deselect this box to prevent new bugs from being
+    entered against this product.
+
+Enable the UNCONFIRMED status in this product
+    Select this option if you want to use the UNCONFIRMED status
+    (see :ref:`workflow`)
+
+Default milestone
+    Select the default milestone for this product.
+
+Version
+    Specify the default version for this product.
+
+Create chart datasets for this product
+    Select to make chart datasets available for this product.
+
+It is compulsory to create at least one :ref:`component &lt;components&gt;` in a product, and
+so you will be asked for the details of that too.
+
+When editing a product you can change all of the above, and there is also a
+link to edit Group Access Controls; see :ref:`product-group-controls`.
+
+.. _create-product:
+
+Creating New Products
+=====================
+
+To create a new product:
+
+#. Select ``Administration`` from the footer and then
+   choose ``Products`` from the main administration page.
+
+#. Select the ``Add`` link in the bottom right.
+
+#. Enter the details as outlined above.
+
+.. _edit-products:
+
+Editing Products
+================
+
+To edit an existing product, click the &quot;Products&quot; link from the
+&quot;Administration&quot; page. If the :param:`useclassification` parameter is
+turned on, a table of existing classifications is displayed,
+including an &quot;Unclassified&quot; category. The table indicates how many products
+are in each classification. Click on the classification name to see its
+products. If the :param:`useclassification` parameter is not in use, the table
+lists all products directly. The product table summarizes the information
+defined when the product was created. Click on the product name to edit these
+properties, and to access links to other product attributes such as the
+product's components, versions, milestones, and group access controls.
+
+.. _comps-vers-miles-products:
+
+Adding or Editing Components, Versions and Target Milestones
+============================================================
+
+To add new or edit existing Components, Versions, or Target Milestones
+to a Product, select the &quot;Edit Components&quot;, &quot;Edit Versions&quot;, or &quot;Edit
+Milestones&quot; links from the &quot;Edit Product&quot; page. A table of existing
+Components, Versions, or Milestones is displayed. Click on an item name
+to edit the properties of that item. Below the table is a link to add
+a new Component, Version, or Milestone.
+
+For more information on components, see :ref:`components`.
+
+For more information on versions, see :ref:`versions`.
+
+For more information on milestones, see :ref:`milestones`.
+
+.. _product-group-controls:
+
+Assigning Group Controls to Products
+====================================
+
+On the ``Edit Product`` page, there is a link called
+``Edit Group Access Controls``. The settings on this page
+control the relationship of the groups to the product being edited.
+
+Group Access Controls are an important aspect of using groups for
+isolating products and restricting access to bugs filed against those
+products. For more information on groups, including how to create, edit,
+add users to, and alter permission of, see :ref:`groups`.
+
+After selecting the &quot;Edit Group Access Controls&quot; link from the &quot;Edit
+Product&quot; page, a table containing all user-defined groups for this
+Bugzilla installation is displayed. The system groups that are created
+when Bugzilla is installed are not applicable to Group Access Controls.
+Below is description of what each of these fields means.
+
+Groups may be applicable (i.e. bugs in this product can be associated
+with this group), default (i.e. bugs in this product are in this group
+by default), and mandatory (i.e. bugs in this product must be associated
+with this group) for each product. Groups can also control access
+to bugs for a given product, or be used to make bugs for a product
+totally read-only unless the group restrictions are met. The best way to
+understand these relationships is by example. See
+:ref:`group-control-examples` for examples of
+product and group relationships.
+
+.. note:: Products and Groups are not limited to a one-to-one relationship.
+   Multiple groups can be associated with the same product, and groups
+   can be associated with more than one product.
+
+If any group has *Entry* selected, then the
+product will restrict bug entry to only those users
+who are members of *all* the groups with
+*Entry* selected.
+
+If any group has *Canedit* selected,
+then the product will be read-only for any users
+who are not members of *all* of the groups with
+*Canedit* selected. *Only* users who
+are members of all the *Canedit* groups
+will be able to edit bugs for this product. This is an additional
+restriction that enables finer-grained control over products rather
+than just all-or-nothing access levels.
+
+The following settings let you
+choose privileges on a *per-product basis*.
+This is a convenient way to give privileges to
+some users for some products only, without having
+to give them global privileges which would affect
+all products.
+
+Any group having *editcomponents*
+selected  allows users who are in this group to edit all
+aspects of this product, including components, milestones,
+and versions.
+
+Any group having *canconfirm* selected
+allows users who are in this group to confirm bugs
+in this product.
+
+Any group having *editbugs* selected allows
+users who are in this group to edit all fields of
+bugs in this product.
+
+The *MemberControl* and
+*OtherControl* are used in tandem to determine which
+bugs will be placed in this group. The only allowable combinations of
+these two parameters are listed in a table on the &quot;Edit Group Access Controls&quot;
+page. Consult this table for details on how these fields can be used.
+Examples of different uses are described below.
+
+.. _group-control-examples:
+
+Common Applications of Group Controls
+=====================================
+
+The use of groups is best explained by providing examples that illustrate
+configurations for common use cases. The examples follow a common syntax:
+*Group: Entry, MemberControl, OtherControl, CanEdit,
+EditComponents, CanConfirm, EditBugs*, where &quot;Group&quot; is the name
+of the group being edited for this product. The other fields all
+correspond to the table on the &quot;Edit Group Access Controls&quot; page. If any
+of these options are not listed, it means they are not checked.
+
+Basic Product/Group Restriction
+-------------------------------
+
+Suppose there is a product called &quot;Bar&quot;. You would like to make it so that only
+users in the group &quot;Foo&quot; can enter bugs in the &quot;Bar&quot; product. Additionally,
+bugs filed in product &quot;Bar&quot; must be visible only to users in &quot;Foo&quot; (plus, by
+default, the reporter, assignee, and CC list of each bug) at all times.
+Furthermore, only members of group &quot;Foo&quot; should be able to edit bugs filed
+against product &quot;Bar&quot;, even if other users could see the bug. This arrangement
+would achieved by the following:
+
+::
+
+    Product Bar:
+    foo: ENTRY, MANDATORY/MANDATORY, CANEDIT
+
+Perhaps such strict restrictions are not needed for product &quot;Bar&quot;. Instead,
+you would like to make it so that only members of group &quot;Foo&quot; can
+enter bugs in product &quot;Bar&quot;, but bugs in &quot;Bar&quot; are not required to be
+restricted in visibility to people in &quot;Foo&quot;. Anyone with permission
+to edit a particular bug in product &quot;Bar&quot; can put the bug in group &quot;Foo&quot;, even
+if they themselves are not in &quot;Foo&quot;.
+
+Furthermore, anyone in group &quot;Foo&quot; can edit all aspects of the components of
+product &quot;Bar&quot;, can confirm bugs in product &quot;Bar&quot;, and can edit all fields of
+any bug in product &quot;Bar&quot;. That would be done like this:
+
+::
+
+    Product Bar:
+    foo: ENTRY, SHOWN/SHOWN, EDITCOMPONENTS, CANCONFIRM, EDITBUGS
+
+General User Access With Security Group
+---------------------------------------
+
+To permit any user to file bugs against &quot;Product A&quot;,
+and to permit any user to submit those bugs into a
+group called &quot;Security&quot;:
+
+::
+
+    Product A:
+    security: SHOWN/SHOWN
+
+General User Access With A Security Product
+-------------------------------------------
+
+To permit any user to file bugs against product called &quot;Security&quot;
+while keeping those bugs from becoming visible to anyone
+outside the group &quot;SecurityWorkers&quot; (unless a member of the
+&quot;SecurityWorkers&quot; group removes that restriction):
+
+::
+
+    Product Security:
+    securityworkers: DEFAULT/MANDATORY
+
+Product Isolation With a Common Group
+-------------------------------------
+
+To permit users of &quot;Product A&quot; to access the bugs for
+&quot;Product A&quot;, users of &quot;Product B&quot; to access the bugs for
+&quot;Product B&quot;, and support staff, who are members of the &quot;Support
+Group&quot; to access both, three groups are needed:
+
+#. Support Group: Contains members of the support staff.
+
+#. AccessA Group: Contains users of product A and the Support group.
+
+#. AccessB Group: Contains users of product B and the Support group.
+
+Once these three groups are defined, the product group controls
+can be set to:
+
+::
+
+    Product A:
+    AccessA: ENTRY, MANDATORY/MANDATORY
+    Product B:
+    AccessB: ENTRY, MANDATORY/MANDATORY
+
+Perhaps the &quot;Support Group&quot; wants more control. For example,
+the &quot;Support Group&quot;  could be permitted to make bugs inaccessible to
+users of both groups &quot;AccessA&quot; and &quot;AccessB&quot;.
+Then, the &quot;Support Group&quot; could be permitted to publish
+bugs relevant to all users in a third product (let's call it
+&quot;Product Common&quot;) that is read-only
+to anyone outside the &quot;Support Group&quot;. In this way the &quot;Support Group&quot;
+could control bugs that should be seen by both groups.
+That configuration would be:
+
+::
+
+    Product A:
+    AccessA: ENTRY, MANDATORY/MANDATORY
+    Support: SHOWN/NA
+    Product B:
+    AccessB: ENTRY, MANDATORY/MANDATORY
+    Support: SHOWN/NA
+    Product Common:
+    Support: ENTRY, DEFAULT/MANDATORY, CANEDIT
+
+Make a Product Read Only
+------------------------
+
+Sometimes a product is retired and should no longer have
+new bugs filed against it (for example, an older version of a software
+product that is no longer supported). A product can be made read-only
+by creating a group called &quot;readonly&quot; and adding products to the
+group as needed:
+
+::
+
+    Product A:
+    ReadOnly: ENTRY, NA/NA, CANEDIT
+
+.. note:: For more information on Groups outside of how they relate to products
+   see :ref:`groups`.
+
+.. _components:
+
+Components
+##########
+
+Components are subsections of a Product. E.g. the computer game
+you are designing may have a &quot;UI&quot;
+component, an &quot;API&quot; component, a &quot;Sound System&quot; component, and a
+&quot;Plugins&quot; component, each overseen by a different programmer. It
+often makes sense to divide Components in Bugzilla according to the
+natural divisions of responsibility within your Product or
+company.
+
+Each component has a default assignee and, if you turned it on in the :ref:`parameters`,
+a QA Contact. The default assignee should be the primary person who fixes bugs in
+that component. The QA Contact should be the person who will ensure
+these bugs are completely fixed. The Assignee, QA Contact, and Reporter
+will get email when new bugs are created in this Component and when
+these bugs change. Default Assignee and Default QA Contact fields only
+dictate the *default assignments*;
+these can be changed on bug submission, or at any later point in
+a bug's life.
+
+To create a new Component:
+
+#. Select the ``Edit components`` link
+   from the ``Edit product`` page.
+
+#. Select the ``Add`` link in the bottom right.
+
+#. Fill out the ``Component`` field, a
+   short ``Description``, the
+   ``Default Assignee``, ``Default CC List``,
+   and ``Default QA Contact`` (if enabled).
+   The ``Component Description`` field may contain a
+   limited subset of HTML tags. The ``Default Assignee``
+   field must be a login name already existing in the Bugzilla database.
+
+.. _versions:
+
+Versions
+########
+
+Versions are the revisions of the product, such as &quot;Flinders
+3.1&quot;, &quot;Flinders 95&quot;, and &quot;Flinders 2000&quot;. Version is not a multi-select
+field; the usual practice is to select the earliest version known to have
+the bug.
+
+To create and edit Versions:
+
+#. From the &quot;Edit product&quot; screen, select &quot;Edit Versions&quot;.
+
+#. You will notice that the product already has the default
+   version &quot;undefined&quot;. Click the &quot;Add&quot; link in the bottom right.
+
+#. Enter the name of the Version. This field takes text only.
+   Then click the &quot;Add&quot; button.
+
+.. _milestones:
+
+Milestones
+##########
+
+Milestones are &quot;targets&quot; that you plan to get a bug fixed by. For
+example, if you have a bug that you plan to fix for your 3.0 release, it
+would be assigned the milestone of 3.0.
+
+.. note:: Milestone options will only appear for a Product if you turned
+   on the :param:`usetargetmilestone` parameter in the &quot;Bug Fields&quot; tab of
+   the :ref:`parameters` page.
+
+To create new Milestones and set Default Milestones:
+
+#. Select &quot;Edit milestones&quot; from the &quot;Edit product&quot; page.
+
+#. Select &quot;Add&quot; in the bottom right corner.
+
+#. Enter the name of the Milestone in the &quot;Milestone&quot; field. You
+   can optionally set the &quot;sortkey&quot;, which is a positive or negative
+   number (-32768 to 32767) that defines where in the list this particular
+   milestone appears. This is because milestones often do not
+   occur in alphanumeric order; for example, &quot;Future&quot; might be
+   after &quot;Release 1.2&quot;. Select &quot;Add&quot;.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringcustomfieldsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/custom-fields.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/custom-fields.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/custom-fields.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,149 @@
</span><ins>+.. _custom-fields:
+
+Custom Fields
+#############
+
+Custom Fields are fields defined by the administrator, in addition to those
+which come with Bugzilla by default. Custom Fields are treated like any other
+field—they can be set in bugs and used for search queries.
+
+Administrators should keep in mind that
+adding too many fields can make the user interface more complicated and
+harder to use. Custom Fields should be added only when necessary and with
+careful consideration.
+
+.. note:: Before adding a Custom Field, make sure that Bugzilla cannot already
+   do the desired behavior. Many Bugzilla options are not enabled by
+   default, and many times Administrators find that simply enabling
+   certain options that already exist is sufficient.
+
+Administrators can manage Custom Fields using the
+``Custom Fields`` link on the Administration page. The Custom
+Fields administration page displays a list of Custom Fields, if any exist,
+and a link to &quot;Add a new custom field&quot;.
+
+.. _add-custom-fields:
+
+Adding Custom Fields
+====================
+
+To add a new Custom Field, click the &quot;Add a new custom field&quot; link. This
+page displays several options for the new field, described below.
+
+The following attributes must be set for each new custom field:
+
+- *Name:*
+  The name of the field in the database, used internally. This name
+  MUST begin with ``cf_`` to prevent confusion with
+  standard fields. If this string is omitted, it will
+  be automatically added to the name entered.
+
+- *Description:*
+  A brief string used as the label for this Custom Field.
+  That is the string that users will see, and it should be
+  short and explicit.
+
+- *Type:*
+  The type of field to create. There are
+  several types available:
+
+  Bug ID:
+      A field where you can enter the ID of another bug from
+      the same Bugzilla installation. To point to a bug in a remote
+      installation, use the See Also field instead.
+  Large Text Box:
+      A multiple line box for entering free text.
+  Free Text:
+      A single line box for entering free text.
+  Multiple-Selection Box:
+      A list box where multiple options
+      can be selected. After creating this field, it must be edited
+      to add the selection options. See
+      :ref:`edit-values-list` for information about
+      editing legal values.
+  Drop Down:
+      A list box where only one option can be selected.
+      After creating this field, it must be edited to add the
+      selection options. See
+      :ref:`edit-values-list` for information about
+      editing legal values.
+  Date/Time:
+      A date field. This field appears with a
+      calendar widget for choosing the date.
+
+- *Sortkey:*
+  Integer that determines in which order Custom Fields are
+  displayed in the User Interface, especially when viewing a bug.
+  Fields with lower values are displayed first.
+
+- *Reverse Relationship Description:*
+  When the custom field is of type ``Bug ID``, you can
+  enter text here which will be used as label in the referenced
+  bug to list bugs which point to it. This gives you the ability
+  to have a mutual relationship between two bugs.
+
+- *Can be set on bug creation:*
+  Boolean that determines whether this field can be set on
+  bug creation. If not selected, then a bug must be created
+  before this field can be set. See :ref:`filing`
+  for information about filing bugs.
+
+- *Displayed in bugmail for new bugs:*
+  Boolean that determines whether the value set on this field
+  should appear in bugmail when the bug is filed. This attribute
+  has no effect if the field cannot be set on bug creation.
+
+- *Is obsolete:*
+  Boolean that determines whether this field should
+  be displayed at all. Obsolete Custom Fields are hidden.
+
+- *Is mandatory:*
+  Boolean that determines whether this field must be set.
+  For single and multi-select fields, this means that a (non-default)
+  value must be selected; for text and date fields, some text
+  must be entered.
+
+- *Field only appears when:*
+  A custom field can be made visible when some criteria is met.
+  For instance, when the bug belongs to one or more products,
+  or when the bug is of some given severity. If left empty, then
+  the custom field will always be visible, in all bugs.
+
+- *Field that controls the values that appear in this field:*
+  When the custom field is of type ``Drop Down`` or
+  ``Multiple-Selection Box``, you can restrict the
+  availability of the values of the custom field based on the
+  value of another field. This criteria is independent of the
+  criteria used in the ``Field only appears when``
+  setting. For instance, you may decide that some given value
+  ``valueY`` is only available when the bug status
+  is RESOLVED while the value ``valueX`` should
+  always be listed.
+  Once you have selected the field that should control the
+  availability of the values of this custom field, you can
+  edit values of this custom field to set the criteria; see
+  :ref:`edit-values-list`.
+
+.. _edit-custom-fields:
+
+Editing Custom Fields
+=====================
+
+As soon as a Custom Field is created, its name and type cannot be
+changed. If this field is a drop-down menu, its legal values can
+be set as described in :ref:`edit-values-list`. All
+other attributes can be edited as described above.
+
+.. _delete-custom-fields:
+
+Deleting Custom Fields
+======================
+
+Only custom fields that are marked as obsolete, and that have never
+been used, can be deleted completely (else the integrity
+of the bug history would be compromised). For custom fields marked
+as obsolete, a &quot;Delete&quot; link will appear in the ``Action``
+column. If the custom field has been used in the past, the deletion
+will be rejected. Marking the field as obsolete, however, is sufficient
+to hide it from the user interface entirely.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringextensionsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/extensions.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/extensions.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/extensions.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+.. _installed-extensions-admin:
+
+Installed Extensions
+====================
+
+Bugzilla can be enhanced using extensions (see :ref:`extensions`). If an
+extension comes with documentation in the appropriate format, and you build
+your own copy of the Bugzilla documentation using :file:`makedocs.pl`, then
+the documentation for your installed extensions will show up here.
+
+Your Bugzilla installation has the following extensions available (as of the
+last time you compiled the documentation):
+
+.. toctree::
+   :maxdepth: 1
+   :glob:
+   
+   ../extensions/*/index-admin
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringfieldvaluesrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/field-values.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/field-values.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/field-values.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+.. _field-values:
+
+Field Values
+############
+
+Legal values for the operating system, platform, bug priority and
+severity, and custom fields of type ``Drop Down`` and
+``Multiple-Selection Box`` (see :ref:`custom-fields`),
+as well as the list of valid bug statuses and resolutions, can be
+customized from the same interface. You can add, edit, disable, and
+remove the values that can be used with these fields.
+
+.. _edit-values-list:
+
+Viewing/Editing Legal Values
+============================
+
+Editing legal values requires ``admin`` privileges.
+Select &quot;Field Values&quot; from the Administration page. A list of all
+fields, both system and Custom, for which legal values
+can be edited appears. Click a field name to edit its legal values.
+
+There is no limit to how many values a field can have, but each value
+must be unique to that field. The sortkey is important to display these
+values in the desired order.
+
+When the availability of the values of a custom field is controlled
+by another field, you can select from here which value of the other field
+must be set for the value of the custom field to appear.
+
+.. _edit-values-delete:
+
+Deleting Legal Values
+=====================
+
+Legal values from Custom Fields can be deleted, but only if the
+following two conditions are respected:
+
+#. The value is not set as the default for the field.
+
+#. No bug is currently using this value.
+
+If any of these conditions is not respected, the value cannot be deleted.
+The only way to delete these values is to reassign bugs to another value
+and to set another value as default for the field.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringflagsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/flags.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/flags.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/flags.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,155 @@
</span><ins>+.. _flags-admin:
+
+Flags
+#####
+
+If you have the :group:`editcomponents` permission, you can
+edit Flag Types from the main administration page. Clicking the
+:guilabel:`Flags` link will bring you to the :guilabel:`Administer
+Flag Types` page. Here, you can select whether you want
+to create (or edit) a Bug flag or an Attachment flag.
+
+The two flag types have the same administration interface, and the interface
+for creating a flag and editing a flag have the same set of fields.
+
+.. _flags-edit:
+
+Flag Properties
+===============
+
+Name
+    This is the name of the flag. This will be displayed
+    to Bugzilla users who are looking at or setting the flag.
+    The name may contain any valid Unicode characters except commas
+    and spaces.
+
+Description
+    The description describes the flag in more detail. It is visible
+    in a tooltip when hovering over a flag either in the :guilabel:`Show Bug`
+    or :guilabel:`Edit Attachment` pages. This field can be as
+    long as you like and can contain any character you want.
+
+Category
+    You can set a flag to be visible or not visible on any combination of
+    products and components.
+
+    Default behaviour for a newly created flag is to appear on all
+    products and all components, which is why ``__Any__:__Any__``
+    is already entered in the :guilabel:`Inclusions` box.
+    If this is not your desired behaviour, you must either set some
+    exclusions (for products on which you don't want the flag to appear),
+    or you must remove ``__Any__:__Any__`` from the :guilabel:`Inclusions` box
+    and define products/components specifically for this flag.
+
+    To create an Inclusion, select a Product from the top drop-down box.
+    You may also select a specific component from the bottom drop-down box.
+    (Setting ``__Any__`` for Product translates to
+    &quot;all the products in this Bugzilla&quot;.
+    Selecting  ``__Any__`` in the Component field means
+    &quot;all components in the selected product.&quot;)
+    Selections made, press :guilabel:`Include`, and your
+    Product/Component pairing will show up in the :guilabel:`Inclusions` box on the right.
+
+    To create an Exclusion, the process is the same: select a Product from the
+    top drop-down box, select a specific component if you want one, and press
+    :guilabel:`Exclude`. The Product/Component pairing will show up in the
+    :guilabel:`Exclusions` box on the right.
+
+    This flag *will* appear and *can* be set for any
+    products/components appearing in the :guilabel:`Inclusions` box
+    (or which fall under the appropriate ``__Any__``).
+    This flag *will not* appear (and therefore *cannot* be set) on
+    any products appearing in the :guilabel:`Exclusions` box.
+    *IMPORTANT: Exclusions override inclusions.*
+
+    You may select a Product without selecting a specific Component,
+    but you cannot select a Component without a Product. If you do so,
+    Bugzilla will display an error message, even if all your products
+    have a component by that name. You will also see an error if you
+    select a Component that does not belong to the selected Product.
+
+    *Example:* Let's say you have a product called
+    ``Jet Plane`` that has thousands of components. You want
+    to be able to ask if a problem should be fixed in the next model of
+    plane you release. We'll call the flag ``fixInNext``.
+    However, one component in ``Jet Plane`` is
+    called ``Pilot``, and it doesn't make sense to release a
+    new pilot, so you don't want to have the flag show up in that component.
+    So, you include ``Jet Plane:__Any__`` and you exclude
+    ``Jet Plane:Pilot``.
+
+Sort Key
+    Flags normally show up in alphabetical order. If you want them to
+    show up in a different order, you can use this key set the order on each flag.
+    Flags with a lower sort key will appear before flags with a higher
+    sort key. Flags that have the same sort key will be sorted alphabetically.
+
+Active
+    Sometimes you might want to keep old flag information in the
+    Bugzilla database but stop users from setting any new flags of this type.
+    To do this, uncheck :guilabel:`active`. Deactivated
+    flags will still show up in the UI if they are ``?``, ``+``, or ``-``, but
+    they may only be cleared (unset) and cannot be changed to a new value.
+    Once a deactivated flag is cleared, it will completely disappear from a
+    bug/attachment and cannot be set again.
+
+Requestable
+    New flags are, by default, &quot;requestable&quot;, meaning that they
+    offer users the ``?`` option, as well as ``+``
+    and ``-``.
+    To remove the ``?`` option, uncheck &quot;requestable&quot;.
+
+Specifically Requestable
+    By default this box is checked for new flags, meaning that users may make
+    flag requests of specific individuals. Unchecking this box will remove the
+    text box next to a flag; if it is still requestable, then requests
+    cannot target specific users and are open to anyone (called a
+    request &quot;to the wind&quot; in Bugzilla). Removing this after specific
+    requests have been made will not remove those requests; that data will
+    stay in the database (though it will no longer appear to the user).
+
+Multiplicable
+    Any flag with :guilabel:`Multiplicable:guilabel:` set (default for new flags
+    is 'on') may be set more than once. After being set once, an unset flag
+    of the same type will appear below it with &quot;addl.&quot; (short for
+    &quot;additional&quot;) before the name. There is no limit to the number of
+    times a Multiplicable flags may be set on the same bug/attachment.
+
+CC List
+    If you want certain users to be notified every time this flag is
+    set to ``?``, ``-``, or ``+``, or is unset, add them here. This is a comma-separated
+    list of email addresses that need not be restricted to Bugzilla usernames.
+
+Grant Group
+    When this field is set to some given group, only users in the group
+    can set the flag to ``+`` and ``-``. This
+    field does not affect who can request or cancel the flag. For that,
+    see the :guilabel:`Request Group` field below. If this field
+    is left blank, all users can set or delete this flag. This field is
+    useful for restricting which users can approve or reject requests.
+
+Request Group
+    When this field is set to some given group, only users in the group
+    can request or cancel this flag. Note that this field has no effect
+    if the :guilabel:`Grant Group` field is empty. You can set the
+    value of this field to a different group, but both fields have to be
+    set to a group for this field to have an effect.
+
+.. _flags-delete:
+
+Deleting a Flag
+===============
+
+When you are at the :guilabel:`Administer Flag Types` screen,
+you will be presented with a list of Bug flags and a list of Attachment
+Flags.
+
+To delete a flag, click on the :guilabel:`Delete` link next to
+the flag description.
+
+.. warning:: Once you delete a flag, it is *gone* from
+   your Bugzilla. All the data for that flag will be deleted.
+   Everywhere that flag was set, it will disappear,
+   and you cannot get that data back. If you want to keep flag data,
+   but don't want anybody to set any new flags or change current flags,
+   unset :guilabel:`active` in the flag Edit form.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringgroupsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/groups.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/groups.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/groups.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,191 @@
</span><ins>+.. _groups:
+
+Groups and Security
+###################
+
+Groups allow for separating bugs into logical divisions.
+Groups are typically used
+to isolate bugs that should only be seen by certain people. For
+example, a company might create a different group for each one of its customers
+or partners. Group permissions could be set so that each partner or customer would
+only have access to their own bugs. Or, groups might be used to create
+variable access controls for different departments within an organization.
+Another common use of groups is to associate groups with products,
+creating isolation and access control on a per-product basis.
+
+Groups and group behaviors are controlled in several places:
+
+#. The group configuration page. To view or edit existing groups, or to
+   create new groups, access the &quot;Groups&quot; link from the &quot;Administration&quot;
+   page. This section of the manual deals primarily with the aspect of
+   group controls accessed on this page.
+
+#. Global configuration parameters. Bugzilla has several parameters
+   that control the overall default group behavior and restriction
+   levels. For more information on the parameters that control
+   group behavior globally, see :ref:`param-group-security`.
+
+#. Product association with groups. Most of the functionality of groups
+   and group security is controlled at the product level. Some aspects
+   of group access controls for products are discussed in this section,
+   but for more detail see :ref:`product-group-controls`.
+
+#. Group access for users. See :ref:`users-and-groups` for
+   details on how users are assigned group access.
+
+Group permissions are such that if a bug belongs to a group, only members
+of that group can see the bug. If a bug is in more than one group, only
+members of *all* the groups that the bug is in can see
+the bug. For information on granting read-only access to certain people and
+full edit access to others, see :ref:`product-group-controls`.
+
+.. note:: By default, bugs can also be seen by the Assignee, the Reporter, and
+   everyone on the CC List, regardless of whether or not the bug would
+   typically be viewable by them. Visibility to the Reporter and CC List can
+   be overridden (on a per-bug basis) by bringing up the bug, finding the
+   section that starts with ``Users in the roles selected below...``
+   and un-checking the box next to either 'Reporter' or 'CC List' (or both).
+
+.. _create-groups:
+
+Creating Groups
+===============
+
+To create a new group, follow the steps below:
+
+#. Select the ``Administration`` link in the page footer,
+   and then select the ``Groups`` link from the
+   Administration page.
+
+#. A table of all the existing groups is displayed. Below the table is a
+   description of all the fields. To create a new group, select the
+   ``Add Group`` link under the table of existing groups.
+
+#. There are five fields to fill out. These fields are documented below
+   the form. Choose a name and description for the group. Decide whether
+   this group should be used for bugs (in all likelihood this should be
+   selected). Optionally, choose a regular expression that will
+   automatically add any matching users to the group, and choose an
+   icon that will help identify user comments for the group. The regular
+   expression can be useful, for example, to automatically put all users
+   from the same company into one group (if the group is for a specific
+   customer or partner).
+
+   .. note:: If ``User RegExp`` is filled out, users whose email
+      addresses match the regular expression will automatically be
+      members of the group as long as their email addresses continue
+      to match the regular expression. If their email address changes
+      and no longer matches the regular expression, they will be removed
+      from the group. Versions 2.16 and older of Bugzilla did not automatically
+      remove users whose email addresses no longer matched the RegExp.
+
+   .. warning:: If specifying a domain in the regular expression, end
+      the regexp with a &quot;$&quot;. Otherwise, when granting access to
+      &quot;@mycompany\\.com&quot;, access will also be granted to
+      'badperson@mycompany.com.cracker.net'. Use the syntax,
+      '@mycompany\\.com$' for the regular expression.
+
+#. After the new group is created, it can be edited for additional options.
+   The &quot;Edit Group&quot; page allows for specifying other groups that should be included
+   in this group and which groups should be permitted to add and delete
+   users from this group. For more details, see :ref:`edit-groups`.
+
+.. _edit-groups:
+
+Editing Groups and Assigning Group Permissions
+==============================================
+
+To access the &quot;Edit Groups&quot; page, select the
+``Administration`` link in the page footer,
+and then select the ``Groups`` link from the Administration page.
+A table of all the existing groups is displayed. Click on a group name
+you wish to edit or control permissions for.
+
+The &quot;Edit Groups&quot; page contains the same five fields present when
+creating a new group. Below that are two additional sections, &quot;Group
+Permissions&quot; and &quot;Mass Remove&quot;. The &quot;Mass Remove&quot; option simply removes
+all users from the group who match the regular expression entered. The
+&quot;Group Permissions&quot; section requires further explanation.
+
+The &quot;Group Permissions&quot; section on the &quot;Edit Groups&quot; page contains four sets
+of permissions that control the relationship of this group to other
+groups. If the :param:`usevisibilitygroups` parameter is in use (see
+:ref:`parameters`) two additional sets of permissions are displayed.
+Each set consists of two select boxes. On the left, a select box
+with a list of all existing groups. On the right, a select box listing
+all groups currently selected for this permission setting (this box will
+be empty for new groups). The way these controls allow groups to relate
+to one another is called *inheritance*.
+Each of the six permissions is described below.
+
+*Groups That Are a Member of This Group*
+    Members of any groups selected here will automatically have
+    membership in this group. In other words, members of any selected
+    group will inherit membership in this group.
+
+*Groups That This Group Is a Member Of*
+    Members of this group will inherit membership to any group
+    selected here. For example, suppose the group being edited is
+    an Admin group. If there are two products  (Product1 and Product2)
+    and each product has its
+    own group (Group1 and Group2), and the Admin group
+    should have access to both products,
+    simply select both Group1 and Group2 here.
+
+*Groups That Can Grant Membership in This Group*
+    The members of any group selected here will be able add users
+    to this group, even if they themselves are not in this group.
+
+*Groups That This Group Can Grant Membership In*
+    Members of this group can add users to any group selected here,
+    even if they themselves are not in the selected groups.
+
+*Groups That Can See This Group*
+    Members of any selected group can see the users in this group.
+    This setting is only visible if the :param:`usevisibilitygroups` parameter
+    is enabled on the Bugzilla Configuration page. See
+    :ref:`parameters` for information on configuring Bugzilla.
+
+*Groups That This Group Can See*
+    Members of this group can see members in any of the selected groups.
+    This setting is only visible if the :param:`usevisibilitygroups` parameter
+    is enabled on the the Bugzilla Configuration page. See
+    :ref:`parameters` for information on configuring Bugzilla.
+
+.. _users-and-groups:
+
+Assigning Users to Groups
+=========================
+
+A User can become a member of a group in several ways:
+
+#. The user can be explicitly placed in the group by editing
+   the user's profile. This can be done by accessing the &quot;Users&quot; page
+   from the &quot;Administration&quot; page. Use the search form to find the user
+   you want to edit group membership for, and click on their email
+   address in the search results to edit their profile. The profile
+   page lists all the groups and indicates if the user is a member of
+   the group either directly or indirectly. More information on indirect
+   group membership is below. For more details on User Administration,
+   see :ref:`users`.
+
+#. The group can include another group of which the user is
+   a member. This is indicated by square brackets around the checkbox
+   next to the group name in the user's profile.
+   See :ref:`edit-groups` for details on group inheritance.
+
+#. The user's email address can match the regular expression
+   that has been specified to automatically grant membership to
+   the group. This is indicated by &quot;\*&quot; around the check box by the
+   group name in the user's profile.
+   See :ref:`create-groups` for details on
+   the regular expression option when creating groups.
+
+Assigning Group Controls to Products
+====================================
+
+The primary functionality of groups is derived from the relationship of
+groups to products. The concepts around segregating access to bugs with
+product group controls can be confusing. For details and examples on this
+topic, see :ref:`product-group-controls`.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+.. _administering:
+
+====================
+Administration Guide
+====================
+
+For those with :group:`admin` privileges, Bugzilla can be administered using
+the :guilabel:`Administration` link in the header. The administrative
+controls are divided into several sections:
+
+.. toctree::
+   :maxdepth: 2
+
+   parameters
+   preferences
+   users
+   categorization
+   flags
+   custom-fields
+   field-values
+   workflow
+   groups
+   keywords
+   whining
+   quips
+   extensions
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringkeywordsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/keywords.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/keywords.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/keywords.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+.. _keywords:
+
+Keywords
+########
+
+The administrator can define keywords which can be used to tag and
+categorise bugs. For example, the keyword &quot;regression&quot; is commonly used.
+A company might have a policy stating all regressions
+must be fixed by the next release—this keyword can make tracking those
+bugs much easier. Keywords are global, rather than per product. 
+
+Keywords can be created, edited, or deleted by clicking the &quot;Keywords&quot;
+link in the admin page. There are two fields for each keyword—the keyword
+itself and a brief description. Currently keywords cannot be marked obsolete
+to prevent future usage.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringparametersrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/parameters.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/parameters.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/parameters.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,794 @@
</span><ins>+.. _parameters:
+
+Parameters
+##########
+
+Bugzilla is configured by changing various parameters, accessed
+from the :guilabel:`Parameters` link, which is found on the Administration
+page. The parameters are divided into several categories,
+accessed via the menu on the left.
+
+.. _param-required-settings:
+
+Required Settings
+=================
+
+The core required parameters for any Bugzilla installation are set
+here. :param:`urlbase` is always required; the other parameters should be
+set, or it must be explicitly decided not to
+set them, before the new Bugzilla installation starts to be used.
+
+urlbase
+    Defines the fully qualified domain name and web
+    server path to this Bugzilla installation.
+    For example, if the Bugzilla query page is
+    :file:`http://www.foo.com/bugzilla/query.cgi`,
+    the :param:`urlbase` should be set
+    to :paramval:`http://www.foo.com/bugzilla/`.
+
+ssl_redirect
+    If enabled, Bugzilla will force HTTPS (SSL) connections, by
+    automatically redirecting any users who try to use a non-SSL
+    connection. Also, when this is enabled, Bugzilla will send out links
+    using :param:`sslbase` in emails instead of :param:`urlbase`.
+
+sslbase
+    Defines the fully qualified domain name and web
+    server path for HTTPS (SSL) connections to this Bugzilla installation.
+    For example, if the Bugzilla main page is
+    :file:`https://www.foo.com/bugzilla/index.cgi`,
+    the :param:`sslbase` should be set
+    to :paramval:`https://www.foo.com/bugzilla/`.
+
+cookiepath
+    Defines a path, relative to the web document root, that Bugzilla
+    cookies will be restricted to. For example, if the
+    :param:`urlbase` is set to
+    :file:`http://www.foo.com/bugzilla/`, the
+    :param:`cookiepath` should be set to
+    :paramval:`/bugzilla/`. Setting it to :paramval:`/` will allow all sites
+    served by this web server or virtual host to read Bugzilla cookies.
+
+.. _param-general:
+
+General
+=======
+
+maintainer
+    Email address of the person
+    responsible for maintaining this Bugzilla installation.
+    The address need not be that of a valid Bugzilla account.
+
+utf8
+    Use UTF-8 (Unicode) encoding for all text in Bugzilla. Installations where
+    this parameter is set to :paramval:`off` should set it to :paramval:`on` only
+    after the data has been converted from existing legacy character
+    encodings to UTF-8, using the
+    :file:`contrib/recode.pl` script.
+
+    .. note:: If you turn this parameter from :paramval:`off` to :paramval:`on`,
+              you must re-run :file:`checksetup.pl` immediately afterward.
+
+shutdownhtml
+    If there is any text in this field, this Bugzilla installation will
+    be completely disabled and this text will appear instead of all
+    Bugzilla pages for all users, including Admins. Used in the event
+    of site maintenance or outage situations.
+
+announcehtml
+    Any text in this field will be displayed at the top of every HTML
+    page in this Bugzilla installation. The text is not wrapped in any
+    tags. For best results, wrap the text in a ``&lt;div&gt;``
+    tag. Any style attributes from the CSS can be applied. For example,
+    to make the text green inside of a red box, add ``id=message``
+    to the ``&lt;div&gt;`` tag.
+
+upgrade_notification
+    Enable or disable a notification on the homepage of this Bugzilla
+    installation when a newer version of Bugzilla is available. This
+    notification is only visible to administrators. Choose :paramval:`disabled`
+    to turn off the notification. Otherwise, choose which version of
+    Bugzilla you want to be notified about: :paramval:`development_snapshot` is the
+    latest release from the master branch, :paramval:`latest_stable_release` is the most
+    recent release available on the most recent stable branch, and
+    :paramval:`stable_branch_release` is the most recent release on the branch
+    this installation is based on.
+
+.. _param-administrative-policies:
+
+Administrative Policies
+=======================
+
+This page contains parameters for basic administrative functions.
+Options include whether to allow the deletion of bugs and users,
+and whether to allow users to change their email address.
+
+allowbugdeletion
+    The pages to edit products and components can delete all associated bugs when you delete a product (or component). Since that is a pretty scary idea, you have to turn on this option before any such deletions will ever happen.
+
+allowemailchange
+    Users can change their own email address through the preferences. Note that the change is validated by emailing both addresses, so switching this option on will not let users use an invalid address.
+
+allowuserdeletion
+    The user editing pages are capable of letting you delete user accounts. Bugzilla will issue a warning in case you'd run into inconsistencies when you're about to do so, but such deletions still remain scary. So, you have to turn on this option before any such deletions will ever happen.
+
+last_visit_keep_days
+    This option controls how many days Bugzilla will remember that users have visited specific bugs.
+
+.. _param-user-authentication:
+
+User Authentication
+===================
+
+This page contains the settings that control how this Bugzilla
+installation will do its authentication. Choose what authentication
+mechanism to use (the Bugzilla database, or an external source such
+as LDAP), and set basic behavioral parameters. For example, choose
+whether to require users to login to browse bugs, the management
+of authentication cookies, and the regular expression used to
+validate email addresses. Some parameters are highlighted below.
+
+auth_env_id
+    Environment variable used by external authentication system to store a unique identifier for each user. Leave it blank if there isn't one or if this method of authentication is not being used.
+
+auth_env_email
+    Environment variable used by external authentication system to store each user's email address. This is a required field for environmental authentication. Leave it blank if you are not going to use this feature.
+
+auth_env_realname
+    Environment variable used by external authentication system to store the user's real name. Leave it blank if there isn't one or if this method of authentication is not being used.
+
+user_info_class
+    Mechanism(s) to be used for gathering a user's login information. More than one may be selected. If the first one returns nothing, the second is tried, and so on. The types are:
+
+    * :paramval:`CGI`: asks for username and password via CGI form interface.
+    * :paramval:`Env`: info for a pre-authenticated user is passed in system environment variables.
+
+user_verify_class
+    Mechanism(s) to be used for verifying (authenticating) information gathered by user_info_class. More than one may be selected. If the first one cannot find the user, the second is tried, and so on. The types are:
+
+    * :paramval:`DB`: Bugzilla's built-in authentication. This is the most common choice.
+    * :paramval:`RADIUS`: RADIUS authentication using a RADIUS server. Using this method requires additional parameters to be set. Please see :ref:`param-radius` for more information.
+    * :paramval:`LDAP`: LDAP authentication using an LDAP server. Using this method requires additional parameters to be set. Please see :ref:`param-ldap` for more information.
+
+rememberlogin
+    Controls management of session cookies.
+
+    * :paramval:`on` - Session cookies never expire (the user has to login only once per browser).
+    * :paramval:`off` - Session cookies last until the users session ends (the user will have to login in each new browser session).
+    * :paramval:`defaulton`/:paramval:`defaultoff` - Default behavior as described above, but user can choose whether Bugzilla will remember their login or not.
+
+requirelogin
+    If this option is set, all access to the system beyond the front page will require a login. No anonymous users will be permitted.
+
+webservice_email_filter
+    Filter email addresses returned by the WebService API depending on if the user is logged in or not. This works similarly to how the web UI currently filters email addresses. If requirelogin is enabled, then this parameter has no effect as users must be logged in to use Bugzilla anyway.
+
+emailregexp
+    Defines the regular expression used to validate email addresses
+    used for login names. The default attempts to match fully
+    qualified email addresses (i.e. 'user\@example.com') in a slightly
+    more restrictive way than what is allowed in RFC 2822.
+    Another popular value to put here is :paramval:`^[^@]+`, which means 'local usernames, no @ allowed.'
+
+emailregexpdesc
+    This description is shown to the user to explain which email addresses are allowed by the :param:`emailregexp` param.
+
+emailsuffix
+    This is a string to append to any email addresses when actually sending mail to that address. It is useful if you have changed the :param:`emailregexp` param to only allow local usernames, but you want the mail to be delivered to username\@my.local.hostname.
+
+createemailregexp
+    This defines the (case-insensitive) regexp to use for email addresses that are permitted to self-register. The default (:paramval:`.*`) permits any account matching the emailregexp to be created. If this parameter is left blank, no users will be permitted to create their own accounts and all accounts will have to be created by an administrator.
+
+password_complexity
+    Set the complexity required for passwords. In all cases must the passwords be at least 6 characters long.
+
+    * :paramval:`no_constraints` - No complexity required.
+    * :paramval:`mixed_letters` - Passwords must contain at least one UPPER and one lower case letter.
+    * :paramval:`letters_numbers` - Passwords must contain at least one UPPER and one lower case letter and a number.
+    * :paramval:`letters_numbers_specialchars` - Passwords must contain at least one letter, a number and a special character.
+
+password_check_on_login
+    If set, Bugzilla will check that the password meets the current complexity rules and minimum length requirements when the user logs into the Bugzilla web interface. If it doesn't, the user would not be able to log in, and will receive a message to reset their password.
+
+.. _param-attachments:
+
+Attachments
+===========
+
+This page allows for setting restrictions and other parameters
+regarding attachments to bugs. For example, control size limitations
+and whether to allow pointing to external files via a URI.
+
+allow_attachment_display
+    If this option is on, users will be able to view attachments from their browser, if their browser supports the attachment's MIME type. If this option is off, users are forced to download attachments, even if the browser is able to display them.
+
+    If you do not trust your users (e.g. if your Bugzilla is public), you should either leave this option off, or configure and set the :param:`attachment_base` parameter (see below). Untrusted users may upload attachments that could be potentially damaging if viewed directly in the browser.
+
+attachment_base
+    When the :param:`allow_attachment_display` parameter is on, it is possible for a malicious attachment to steal your cookies or perform an attack on Bugzilla using your credentials.
+
+    If you would like additional security on attachments to avoid this, set this parameter to an alternate URL for your Bugzilla that is not the same as :param:`urlbase` or :param:`sslbase`. That is, a different domain name that resolves to this exact same Bugzilla installation.
+
+    Note that if you have set the :param:`cookiedomain` parameter, you should set :param:`attachment_base` to use a domain that would not be matched by :param:`cookiedomain`.
+
+    For added security, you can insert ``%bugid%`` into the URL, which will be replaced with the ID of the current bug that the attachment is on, when you access an attachment. This will limit attachments to accessing only other attachments on the same bug. Remember, though, that all those possible domain names (such as 1234.your.domain.com) must point to this same Bugzilla instance. To set this up you need to investigate wildcard DNS.
+
+allow_attachment_deletion
+    If this option is on, administrators will be able to delete the contents
+    of attachments (i.e. replace the attached file with a 0 byte file),
+    leaving only the metadata.
+
+maxattachmentsize
+    The maximum size (in kilobytes) of attachments to be stored in the database. If a file larger than this size is attached to a bug, Bugzilla will look at the :param:`maxlocalattachment` parameter to determine if the file can be stored locally on the web server. If the file size exceeds both limits, then the attachment is rejected. Setting both parameters to 0 will prevent attaching files to bugs.
+
+    Some databases have default limits which prevent storing larger attachments in the database. E.g. MySQL has a parameter called `max_allowed_packet &lt;http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html&gt;`_, whose default varies by distribution. Setting :param:`maxattachmentsize` higher than your current setting for this value will produce an error.
+
+maxlocalattachment
+    The maximum size (in megabytes) of attachments to be stored locally on the web server. If set to a value lower than the :param:`maxattachmentsize` parameter, attachments will never be kept on the local filesystem.
+
+    Whether you use this feature or not depends on your environment. Reasons to store some or all attachments as files might include poor database performance for large binary blobs, ease of backup/restore/browsing, or even filesystem-level deduplication support. However, you need to be aware of any limits on how much data your webserver environment can store. If in doubt, leave the value at 0.
+
+    Note that changing this value does not affect any already-submitted attachments.
+
+.. _param-bug-change-policies:
+
+Bug Change Policies
+===================
+
+Set policy on default behavior for bug change events. For example,
+choose which status to set a bug to when it is marked as a duplicate,
+and choose whether to allow bug reporters to set the priority or
+target milestone. Also allows for configuration of what changes
+should require the user to make a comment, described below.
+
+duplicate_or_move_bug_status
+    When a bug is marked as a duplicate of another one, use this bug status.
+
+letsubmitterchoosepriority
+    If this is on, then people submitting bugs can choose an initial priority for that bug. If off, then all bugs initially have the default priority selected here.
+
+letsubmitterchoosemilestone
+    If this is on, then people submitting bugs can choose the Target Milestone for that bug. If off, then all bugs initially have the default milestone for the product being filed in.
+
+musthavemilestoneonaccept
+    If you are using Target Milestone, do you want to require that the milestone be set in order for a user to set a bug's status to IN_PROGRESS?
+
+commenton*
+    All these fields allow you to dictate what changes can pass
+    without comment and which must have a comment from the
+    person who changed them.  Often, administrators will allow
+    users to add themselves to the CC list, accept bugs, or
+    change the Status Whiteboard without adding a comment as to
+    their reasons for the change, yet require that most other
+    changes come with an explanation.
+    Set the &quot;commenton&quot; options according to your site policy. It
+    is a wise idea to require comments when users resolve, reassign, or
+    reopen bugs at the very least.
+
+    .. note:: It is generally far better to require a developer comment
+       when resolving bugs than not. Few things are more annoying to bug
+       database users than having a developer mark a bug &quot;fixed&quot; without
+       any comment as to what the fix was (or even that it was truly
+       fixed!)
+
+noresolveonopenblockers
+    This option will prevent users from resolving bugs as FIXED if
+    they have unresolved dependencies. Only the FIXED resolution
+    is affected. Users will be still able to resolve bugs to
+    resolutions other than FIXED if they have unresolved dependent
+    bugs.
+
+.. _param-bugfields:
+
+Bug Fields
+==========
+
+The parameters in this section determine the default settings of
+several Bugzilla fields for new bugs and whether
+certain fields are used. For example, choose whether to use the
+:field:`Target Milestone` field or the :field:`Status Whiteboard` field.
+
+useclassification
+    If this is on, Bugzilla will associate each product with a specific
+    classification. But you must have :group:`editclassification` permissions
+    enabled in order to edit classifications.
+
+usetargetmilestone
+    Do you wish to use the :field:`Target Milestone` field?
+
+useqacontact
+    This allows you to define an email address for each component,
+    in addition to that of the default assignee, that will be sent
+    carbon copies of incoming bugs.
+
+usestatuswhiteboard
+    This defines whether you wish to have a free-form, overwritable field
+    associated with each bug. The advantage of the :field:`Status Whiteboard`
+    is that it can be deleted or modified with ease and provides an
+    easily searchable field for indexing bugs that have some trait in
+    common.
+
+use_see_also
+    Do you wish to use the :field:`See Also` field? It allows you mark bugs
+    in other bug tracker installations as being related. Disabling this field
+    prevents addition of new relationships, but existing ones will continue to
+    appear.
+
+defaultpriority
+    This is the priority that newly entered bugs are set to.
+
+defaultseverity
+    This is the severity that newly entered bugs are set to.
+
+defaultplatform
+    This is the platform that is preselected on the bug entry form.
+    You can leave this empty; Bugzilla will then use the platform that the
+    browser is running on as the default.
+
+defaultopsys
+    This is the operating system that is preselected on the bug entry form.
+    You can leave this empty; Bugzilla will then use the operating system
+    that the browser reports to be running on as the default.
+
+collapsed_comment_tags
+    A comma-separated list of tags which, when applied to comments, will
+    cause them to be collapsed by default.
+
+.. _param-dependency-graphs:
+
+Graphs
+======
+
+Bugzilla can draw graphs of bug-dependency relationships, using a tool called
+:file:`dot` (from the `GraphViz project &lt;http://graphviz.org/&gt;`_) or a web
+service called Web Dot. This page allows you to set the location of the binary
+or service. If no Web Dot server or binary is specified, then dependency
+graphs will be disabled.
+
+webdotbase
+    You may set this parameter to any of the following:
+
+    * A complete file path to :command:`dot` (part of GraphViz), which will
+      generate the graphs locally.
+    * A URL prefix pointing to an installation of the Web Dot package, which
+      will generate the graphs remotely.
+    * A blank value, which will disable dependency graphing.
+
+    The default value is blank. We recommend using a local install of
+    :file:`dot`. If you change this value to a web service, make certain that
+    the Web Dot server can read files from your Web Dot directory. On Apache
+    you do this by editing the :file:`.htaccess` file; for other systems the
+    needed measures may vary. You can run :command:`checksetup.pl` to
+    recreate the :file:`.htaccess` file if it has been lost.
+
+font_file
+    You can specify the full path to a TrueType font file which will be used
+    to display text (labels, legends, ...) in charts and graphical reports.
+    To support as many languages as possible, we recommend to specify a
+    TrueType font such as Unifont which supports all printable characters in
+    the Basic Multilingual Plane. If you leave this parameter empty, a default
+    font will be used, but its support is limited to English characters only
+    and so other characters will be displayed incorrectly. 
+
+.. _param-group-security:
+
+Group Security
+==============
+
+Bugzilla allows for the creation of different groups, with the
+ability to restrict the visibility of bugs in a group to a set of
+specific users. Specific products can also be associated with
+groups, and users restricted to only see products in their groups.
+Several parameters are described in more detail below. Most of the
+configuration of groups and their relationship to products is done
+on the :guilabel:`Groups` and :guilabel:`Product` pages of the
+:guilabel:`Administration` area.
+The options on this page control global default behavior.
+For more information on Groups and Group Security, see
+:ref:`groups`.
+
+makeproductgroups
+    Determines whether or not to automatically create groups
+    when new products are created. If this is on, the groups will be
+    used for querying bugs.
+
+    .. todo:: This is spectacularly unclear. I have no idea what makeproductgroups
+              does - can someone explain it to me? Convert this item into a bug on checkin.
+
+chartgroup
+    The name of the group of users who can use the 'New Charts' feature. Administrators should ensure that the public categories and series definitions do not divulge confidential information before enabling this for an untrusted population. If left blank, no users will be able to use New Charts.
+
+insidergroup
+    The name of the group of users who can see/change private comments and attachments.
+
+timetrackinggroup
+    The name of the group of users who can see/change time tracking information.
+
+querysharegroup
+    The name of the group of users who are allowed to share saved
+    searches with one another. For more information on using
+    saved searches, see :ref:`saved-searches`.
+
+comment_taggers_group
+    The name of the group of users who can tag comments. Setting this to empty disables comment tagging.
+
+debug_group
+    The name of the group of users who can view the actual SQL query generated when viewing bug lists and reports. Do not expose this information to untrusted users.
+
+usevisibilitygroups
+    If selected, user visibility will be restricted to members of
+    groups, as selected in the group configuration settings.
+    Each user-defined group can be allowed to see members of selected
+    other groups.
+    For details on configuring groups (including the visibility
+    restrictions) see :ref:`edit-groups`.
+
+or_groups
+    Define the visibility of a bug which is in multiple groups. If
+    this is on (recommended), a user only needs to be a member of one
+    of the bug's groups in order to view it. If it is off, a user
+    needs to be a member of all the bug's groups. Note that in either
+    case, a user's role on the bug (e.g. reporter), if any, may also
+    affect their permissions.
+
+.. _param-ldap:
+
+LDAP
+====
+
+LDAP authentication is a module for Bugzilla's plugin
+authentication architecture. This page contains all the parameters
+necessary to configure Bugzilla for use with LDAP authentication.
+
+The existing authentication
+scheme for Bugzilla uses email addresses as the primary user ID and a
+password to authenticate that user. All places within Bugzilla that
+require a user ID (e.g assigning a bug) use the email
+address. The LDAP authentication builds on top of this scheme, rather
+than replacing it. The initial log-in is done with a username and
+password for the LDAP directory. Bugzilla tries to bind to LDAP using
+those credentials and, if successful, tries to map this account to a
+Bugzilla account. If an LDAP mail attribute is defined, the value of this
+attribute is used; otherwise, the :param:`emailsuffix` parameter is appended to
+the LDAP username to form a full email address. If an account for this address
+already exists in the Bugzilla installation, it will log in to that account.
+If no account for that email address exists, one is created at the time
+of login. (In this case, Bugzilla will attempt to use the &quot;displayName&quot;
+or &quot;cn&quot; attribute to determine the user's full name.) After
+authentication, all other user-related tasks are still handled by email
+address, not LDAP username. For example, bugs are still assigned by
+email address and users are still queried by email address.
+
+.. warning:: Because the Bugzilla account is not created until the first time
+   a user logs in, a user who has not yet logged is unknown to Bugzilla.
+   This means they cannot be used as an assignee or QA contact (default or
+   otherwise), added to any CC list, or any other such operation. One
+   possible workaround is the :file:`bugzilla_ldapsync.rb`
+   script in the :file:`contrib`
+   directory. Another possible solution is fixing :bug:`201069`.
+
+Parameters required to use LDAP Authentication:
+
+user_verify_class (in the Authentication section)
+    If you want to list :paramval:`LDAP` here,
+    make sure to have set up the other parameters listed below.
+    Unless you have other (working) authentication methods listed as
+    well, you may otherwise not be able to log back in to Bugzilla once
+    you log out.
+    If this happens to you, you will need to manually edit
+    :file:`data/params.json` and set :param:`user_verify_class` to
+    :paramval:`DB`.
+
+LDAPserver
+    This parameter should be set to the name (and optionally the
+    port) of your LDAP server. If no port is specified, it assumes
+    the default LDAP port of 389.
+    For example: :paramval:`ldap.company.com`
+    or :paramval:`ldap.company.com:3268`
+    You can also specify a LDAP URI, so as to use other
+    protocols, such as LDAPS or LDAPI. If the port was not specified in
+    the URI, the default is either 389 or 636 for 'LDAP' and 'LDAPS'
+    schemes respectively.
+
+    .. note:: In order to use SSL with LDAP, specify a URI with &quot;ldaps://&quot;.
+       This will force the use of SSL over port 636.
+       For example, normal LDAP :paramval:`ldap://ldap.company.com`, LDAP over
+       SSL :paramval:`ldaps://ldap.company.com`, or LDAP over a UNIX
+       domain socket :paramval:`ldapi://%2fvar%2flib%2fldap_sock`.
+
+LDAPstarttls
+    Whether to require encrypted communication once a normal LDAP connection
+    is achieved with the server.
+
+LDAPbinddn [Optional]
+    Some LDAP servers will not allow an anonymous bind to search
+    the directory. If this is the case with your configuration you
+    should set the :param:`LDAPbinddn` parameter to the user account Bugzilla
+    should use instead of the anonymous bind.
+    Ex. :paramval:`cn=default,cn=user:password`
+
+LDAPBaseDN
+    The location in
+    your LDAP tree that you would like to search for email addresses.
+    Your uids should be unique under the DN specified here.
+    Ex. :paramval:`ou=People,o=Company`
+
+LDAPuidattribute
+    The attribute
+    which contains the unique UID of your users. The value retrieved
+    from this attribute will be used when attempting to bind as the
+    user to confirm their password.
+    Ex. :paramval:`uid`
+
+LDAPmailattribute
+    The name of the
+    attribute which contains the email address your users will enter
+    into the Bugzilla login boxes.
+    Ex. :paramval:`mail`
+
+LDAPfilter
+    LDAP filter to AND with the LDAPuidattribute for filtering the list of
+    valid users.
+
+.. _param-radius:
+
+RADIUS
+======
+
+RADIUS authentication is a module for Bugzilla's plugin
+authentication architecture. This page contains all the parameters
+necessary for configuring Bugzilla to use RADIUS authentication.
+
+.. note:: Most caveats that apply to LDAP authentication apply to RADIUS
+   authentication as well. See :ref:`param-ldap` for details.
+
+Parameters required to use RADIUS Authentication:
+
+user_verify_class (in the Authentication section)
+    If you want to list :paramval:`RADIUS` here,
+    make sure to have set up the other parameters listed below.
+    Unless you have other (working) authentication methods listed as
+    well, you may otherwise not be able to log back in to Bugzilla once
+    you log out.
+    If this happens to you, you will need to manually edit
+    :file:`data/params.json` and set :param:`user_verify_class` to
+    :paramval:`DB`.
+
+RADIUS_server
+    The name (and optionally the port) of your RADIUS server.
+
+RADIUS_secret
+    The RADIUS server's secret.
+
+RADIUS_NAS_IP
+    The NAS-IP-Address attribute to be used when exchanging data with your
+    RADIUS server. If unspecified, 127.0.0.1 will be used.
+
+RADIUS_email_suffix
+    Bugzilla needs an email address for each user account.
+    Therefore, it needs to determine the email address corresponding
+    to a RADIUS user.
+    Bugzilla offers only a simple way to do this: it can concatenate
+    a suffix to the RADIUS user name to convert it into an email
+    address.
+    You can specify this suffix in the :param:`RADIUS_email_suffix` parameter.
+    If this simple solution does not work for you, you'll
+    probably need to modify
+    :file:`Bugzilla/Auth/Verify/RADIUS.pm` to match your
+    requirements.
+
+.. _param-email:
+
+Email
+=====
+
+This page contains all of the parameters for configuring how
+Bugzilla deals with the email notifications it sends. See below
+for a summary of important options.
+
+mail_delivery_method
+    This is used to specify how email is sent, or if it is sent at
+    all.  There are several options included for different MTAs,
+    along with two additional options that disable email sending.
+    :paramval:`Test` does not send mail, but instead saves it in
+    :file:`data/mailer.testfile` for later review.
+    :paramval:`None` disables email sending entirely.
+
+mailfrom
+    This is the email address that will appear in the &quot;From&quot; field
+    of all emails sent by this Bugzilla installation. Some email
+    servers require mail to be from a valid email address; therefore,
+    it is recommended to choose a valid email address here.
+
+use_mailer_queue
+    In a large Bugzilla installation, updating bugs can be very slow because Bugzilla sends all email at once. If you enable this parameter, Bugzilla will queue all mail and then send it in the background. This requires that you have installed certain Perl modules (as listed by :file:`checksetup.pl` for this feature), and that you are running the :file:`jobqueue.pl` daemon (otherwise your mail won't get sent). This affects all mail sent by Bugzilla, not just bug updates.
+
+smtpserver
+    The SMTP server address, if the :param:`mail_delivery_method`
+    parameter is set to :paramval:`SMTP`.  Use :paramval:`localhost` if you have a local MTA
+    running; otherwise, use a remote SMTP server.  Append &quot;:&quot; and the port
+    number if a non-default port is needed.
+
+smtp_username
+    Username to use for SASL authentication to the SMTP server.  Leave
+    this parameter empty if your server does not require authentication.
+
+smtp_password
+    Password to use for SASL authentication to the SMTP server. This
+    parameter will be ignored if the :param:`smtp_username`
+    parameter is left empty.
+
+smtp_ssl
+    Enable SSL support for connection to the SMTP server.
+
+smtp_debug
+    This parameter allows you to enable detailed debugging output.
+    Log messages are printed the web server's error log.
+
+whinedays
+    Set this to the number of days you want to let bugs go
+    in the CONFIRMED state before notifying people they have
+    untouched new bugs. If you do not plan to use this feature, simply
+    do not set up the :ref:`whining cron job &lt;installation-whining&gt;` described
+    in the installation instructions, or set this value to &quot;0&quot; (never whine).
+
+globalwatchers
+    This allows you to define specific users who will
+    receive notification each time any new bug in entered, or when
+    any existing bug changes, subject to the normal groupset
+    permissions. It may be useful for sending notifications to a
+    mailing list, for instance.
+
+.. _param-querydefaults:
+
+Query Defaults
+==============
+
+This page controls the default behavior of Bugzilla in regards to
+several aspects of querying bugs. Options include what the default
+query options are, what the &quot;My Bugs&quot; page returns, whether users
+can freely add bugs to the quip list, and how many duplicate bugs are
+needed to add a bug to the &quot;most frequently reported&quot; list.
+
+quip_list_entry_control
+    Controls how easily users can add entries to the quip list.
+
+    * :paramval:`open` - Users may freely add to the quip list, and their entries will immediately be available for viewing.
+    * :paramval:`moderated` - Quips can be entered but need to be approved by a moderator before they will be shown.
+    * :paramval:`closed` - No new additions to the quips list are allowed.
+
+mybugstemplate
+    This is the URL to use to bring up a simple 'all of my bugs' list
+    for a user. %userid% will get replaced with the login name of a
+    user. Special characters must be URL encoded.
+
+defaultquery
+    This is the default query that initially comes up when you access
+    the advanced query page. It's in URL-parameter format.
+
+search_allow_no_criteria
+    When turned off, a query must have some criteria specified to limit the number of bugs returned to the user. When turned on, a user is allowed to run a query with no criteria and get all bugs in the entire installation that they can see. Turning this parameter on is not recommended on large installations.
+
+default_search_limit
+    By default, Bugzilla limits searches done in the web interface to returning only this many results, for performance reasons. (This only affects the HTML format of search results—CSV, XML, and other formats are exempted.) Users can click a link on the search result page to see all the results.
+
+    Usually you should not have to change this—the default value should be acceptable for most installations.
+
+max_search_results
+    The maximum number of bugs that a search can ever return. Tabular and graphical reports are exempted from this limit, however.
+
+
+
+.. _param-shadowdatabase:
+
+Shadow Database
+===============
+
+This page controls whether a shadow database is used. If your Bugzilla is
+not large, you will not need these options.
+
+A standard large database setup involves a single master server and a pool of
+read-only slaves (which Bugzilla calls the &quot;shadowdb&quot;). Queries which are not
+updating data can be directed to the slave pool, removing the load/locking
+from the master, freeing it up to handle writes. Bugzilla will switch to the
+shadowdb when it knows it doesn't need to update the database (e.g. when
+searching, or displaying a bug to a not-logged-in user).
+
+Bugzilla does not make sure the shadowdb is kept up to date, so, if you use
+one, you will need to set up replication in your database server.
+
+If your shadowdb is on a different machine, specify :param:`shadowdbhost`
+and :param:`shadowdbport`. If it's on the same machine, specify
+:param:`shadowdbsock`.
+
+shadowdbhost
+    The host the shadow database is on.
+
+shadowdbport
+    The port the shadow database is on.
+
+shadowdbsock
+    The socket used to connect to the shadow database, if the host is the
+    local machine.
+
+shadowdb
+    The database name of the shadow database.
+
+.. _admin-memcached:
+
+Memcached
+=========
+
+memcached_servers
+    If this option is set, Bugzilla will integrate with `Memcached
+    &lt;http://www.memcached.org/&gt;`_. Specify one or more servers, separated by
+    spaces, using hostname:port notation (for example:
+    :paramval:`127.0.0.1:11211`).
+
+memcached_namespace
+    Specify a string to prefix each key on Memcached.
+
+.. _admin-usermatching:
+
+User Matching
+=============
+
+The settings on this page control how users are selected and queried
+when adding a user to a bug. For example, users need to be selected
+when assigning the bug, adding to the CC list, or
+selecting a QA contact. With the :param:`usemenuforusers` parameter, it is
+possible to configure Bugzilla to
+display a list of users in the fields instead of an empty text field.
+If users are selected via a text box, this page also
+contains parameters for how user names can be queried and matched
+when entered.
+
+usemenuforusers
+    If this option is set, Bugzilla will offer you a list to select from (instead of a text entry field) where a user needs to be selected. This option should not be enabled on sites where there are a large number of users.
+
+ajax_user_autocompletion
+    If this option is set, typing characters in a certain user fields
+    will display a list of matches that can be selected from. It is
+    recommended to only turn this on if you are using mod_perl;
+    otherwise, the response will be irritatingly slow.
+
+maxusermatches
+    Provide no more than this many matches when a user is searched for.
+    If set to '1', no users will be displayed on ambiguous
+    matches. This is useful for user-privacy purposes. A value of zero
+    means no limit.
+
+confirmuniqueusermatch
+    Whether a confirmation screen should be displayed when only one user matches a search entry.
+
+.. _admin-advanced:
+
+Advanced
+========
+
+cookiedomain
+    Defines the domain for Bugzilla cookies. This is typically left blank.
+    If there are multiple hostnames that point to the same webserver, which
+    require the same cookie, then this parameter can be utilized. For
+    example, If your website is at
+    ``https://bugzilla.example.com/``, setting this to
+    :paramval:`.example.com/` will also allow
+    ``attachments.example.com/`` to access Bugzilla cookies.
+
+inbound_proxies
+    When inbound traffic to Bugzilla goes through a proxy, Bugzilla thinks that the IP address of the proxy is the IP address of every single user. If you enter a comma-separated list of IPs in this parameter, then Bugzilla will trust any ``X-Forwarded-For`` header sent from those IPs, and use the value of that header as the end user's IP address.
+
+proxy_url
+    If this Bugzilla installation is behind a proxy, enter the proxy
+    information here to enable Bugzilla to access the Internet. Bugzilla
+    requires Internet access to utilize the
+    :param:`upgrade_notification` parameter. If the
+    proxy requires authentication, use the syntax:
+    :paramval:`http://user:pass@proxy_url/`.
+
+strict_transport_security
+    Enables the sending of the Strict-Transport-Security header along with HTTP responses on SSL connections. This adds greater security to your SSL connections by forcing the browser to always access your domain over SSL and never accept an invalid certificate. However, it should only be used if you have the :param:`ssl_redirect` parameter turned on, Bugzilla is the only thing running on its domain (i.e., your :param:`urlbase` is something like :paramval:`http://bugzilla.example.com/`), and you never plan to stop supporting SSL.
+
+    * :paramval:`off` - Don't send the Strict-Transport-Security header with requests.
+    * :paramval:`this_domain_only` - Send the Strict-Transport-Security header with all requests, but only support it for the current domain.
+    * :paramval:`include_subdomains` - Send the Strict-Transport-Security header along with the includeSubDomains flag, which will apply the security change to all subdomains. This is especially useful when combined with an :param:`attachment_base` that exists as (a) subdomain(s) under the main Bugzilla domain.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringpreferencesrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/preferences.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/preferences.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/preferences.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+.. _default-preferences:
+
+Default Preferences
+###################
+
+Each user of Bugzilla can set certain preferences about how they want
+Bugzilla to behave. Here, you can say whether or not each of the possible
+preferences is available to the user and, if it is, what the default value
+is.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringquipsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/quips.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/quips.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/quips.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+.. _quips:
+
+Quips
+#####
+
+Quips are small user-defined messages (often quotes or witty sayings) that
+can be configured to appear at the top of search results. Each Bugzilla
+installation has its own specific quips. Whenever a quip needs to be
+displayed, a random selection is made from the pool of already existing quips.
+
+Quip submission is controlled by :param:`quip_list_entry_control`
+parameter.  It has several possible values: open, moderated, or closed.
+In order to enable quips approval you need to set this parameter to
+&quot;moderated&quot;. In this way, users are free to submit quips for addition,
+but an administrator must explicitly approve them before they are
+actually used.
+
+In order to see the user interface for the quips, you can
+click on a quip when it is displayed together with the search
+results.  You can also go directly to the quips.cgi URL
+(prefixed with the usual web location of the Bugzilla installation).
+Once the quip interface is displayed, the &quot;view and edit the whole
+quip list&quot; link takes you to the quips administration page, which
+lists all quips available in the database.
+
+Next to each quip there is a checkbox, under the
+&quot;Approved&quot; column. Quips that have this checkbox checked are
+already approved and will appear next to the search results.
+The ones that have it unchecked are still preserved in the
+database but will not appear on search results pages.
+User submitted quips have initially the checkbox unchecked.
+
+Also, there is a delete link next to each quip,
+which can be used in order to permanently delete a quip.
+
+Display of quips is controlled by the *display_quips*
+user preference.  Possible values are &quot;on&quot; and &quot;off&quot;.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringusersrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/users.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/users.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/users.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,244 @@
</span><ins>+.. _users:
+
+Users
+#####
+
+.. _defaultuser:
+
+Creating Admin Users
+====================
+
+When you first run checksetup.pl after installing Bugzilla, it will
+prompt you for the username (email address) and password for the first
+admin user. If for some reason you delete all the admin users,
+re-running checksetup.pl will again prompt you for a username and
+password and make a new admin.
+
+If you wish to add more administrative users, add them to the &quot;admin&quot; group.
+
+.. _user-account-search:
+
+Searching For Users
+===================
+
+If you have ``editusers`` privileges or if you are allowed
+to grant privileges for some groups, the :guilabel:`Users` link
+will appear in the Administration page.
+
+The first screen is a search form to search for existing user
+accounts. You can run searches based either on the user ID, real
+name or login name (i.e. the email address, or just the first part
+of the email address if the :param:`emailsuffix` parameter is set).
+The search can be conducted
+in different ways using the listbox to the right of the text entry
+box. You can match by case-insensitive substring (the default),
+regular expression, a *reverse* regular expression
+match (which finds every user name which does NOT match the regular
+expression), or the exact string if you know exactly who you are
+looking for. The search can be restricted to users who are in a
+specific group. By default, the restriction is turned off.
+
+The search returns a list of
+users matching your criteria. User properties can be edited by clicking
+the login name. The Account History of a user can be viewed by clicking
+the &quot;View&quot; link in the Account History column. The Account History
+displays changes that have been made to the user account, the time of
+the change and the user who made the change. For example, the Account
+History page will display details of when a user was added or removed
+from a group.
+
+.. _modifyusers:
+
+Modifying Users
+===============
+
+Once you have found your user, you can change the following
+fields:
+
+- *Login Name*:
+  This is generally the user's full email address. However, if you
+  have are using the :param:`emailsuffix` parameter, this may
+  just be the user's login name. Unless you turn off the
+  :param:`allowemailchange` parameter, users can change their
+  login names themselves (to any valid email address).
+
+- *Real Name*: The user's real name. Note that
+  Bugzilla does not require this to create an account.
+
+- *Password*:
+  You can change the user's password here. Users can automatically
+  request a new password, so you shouldn't need to do this often.
+  If you want to disable an account, see Disable Text below.
+
+- *Bugmail Disabled*:
+  Mark this checkbox to disable bugmail and whinemail completely
+  for this account. This checkbox replaces the data/nomail file
+  which existed in older versions of Bugzilla.
+
+- *Disable Text*:
+  If you type anything in this box, including just a space, the
+  user is prevented from logging in and from making any changes to
+  bugs via the web interface.
+  The HTML you type in this box is presented to the user when
+  they attempt to perform these actions and should explain
+  why the account was disabled.
+  Users with disabled accounts will continue to receive
+  mail from Bugzilla; furthermore, they will not be able
+  to log in themselves to change their own preferences and
+  stop it. If you want an account (disabled or active) to
+  stop receiving mail, simply check the
+  ``Bugmail Disabled`` checkbox above.
+
+  .. note:: Even users whose accounts have been disabled can still
+     submit bugs via the email gateway, if one exists.
+     The email gateway should *not* be
+     enabled for secure installations of Bugzilla.
+
+  .. warning:: Don't disable all the administrator accounts!
+
+- *&lt;groupname&gt;*:
+  If you have created some groups, e.g. &quot;securitysensitive&quot;, then
+  checkboxes will appear here to allow you to add users to, or
+  remove them from, these groups. The first checkbox gives the
+  user the ability to add and remove other users as members of
+  this group. The second checkbox adds the user himself as a member
+  of the group.
+
+- *canconfirm*:
+  This field is only used if you have enabled the &quot;unconfirmed&quot;
+  status. If you enable this for a user,
+  that user can then move bugs from &quot;Unconfirmed&quot; to a &quot;Confirmed&quot;
+  status (e.g.: &quot;New&quot; status).
+
+- *creategroups*:
+  This option will allow a user to create and destroy groups in
+  Bugzilla.
+
+- *editbugs*:
+  Unless a user has this bit set, they can only edit those bugs
+  for which they are the assignee or the reporter. Even if this
+  option is unchecked, users can still add comments to bugs.
+
+- *editcomponents*:
+  This flag allows a user to create new products and components,
+  modify existing products and components, and destroy those that have
+  no bugs associated with them. If a product or component has bugs
+  associated with it, those bugs must be moved to a different product
+  or component before Bugzilla will allow them to be destroyed.
+
+- *editkeywords*:
+  If you use Bugzilla's keyword functionality, enabling this
+  feature allows a user to create and destroy keywords. A keyword
+  must be removed from any bugs upon which it is currently set
+  before it can be destroyed.
+
+- *editusers*:
+  This flag allows a user to do what you're doing right now: edit
+  other users. This will allow those with the right to do so to
+  remove administrator privileges from other users or grant them to
+  themselves. Enable with care.
+
+- *tweakparams*:
+  This flag allows a user to change Bugzilla's Params
+  (using :file:`editparams.cgi`.)
+
+- *&lt;productname&gt;*:
+  This allows an administrator to specify the products
+  in which a user can see bugs. If you turn on the
+  :param:`makeproductgroups` parameter in
+  the Group Security Panel in the Parameters page,
+  then Bugzilla creates one group per product (at the time you create
+  the product), and this group has exactly the same name as the
+  product itself. Note that for products that already exist when
+  the parameter is turned on, the corresponding group will not be
+  created. The user must still have the :group:`editbugs`
+  privilege to edit bugs in these products.
+
+.. _createnewusers:
+
+Creating New Users
+==================
+
+.. _self-registration:
+
+Self-Registration
+-----------------
+
+By default, users can create their own user accounts by clicking the
+``New Account`` link at the bottom of each page (assuming
+they aren't logged in as someone else already). If you want to disable
+this self-registration, or if you want to restrict who can create their
+own user account, you have to edit the :param:`createemailregexp`
+parameter in the ``Configuration`` page; see
+:ref:`parameters`.
+
+.. _user-account-creation:
+
+Administrator Registration
+--------------------------
+
+Users with ``editusers`` privileges, such as administrators,
+can create user accounts for other users:
+
+#. After logging in, click the &quot;Users&quot; link at the footer of
+   the query page, and then click &quot;Add a new user&quot;.
+
+#. Fill out the form presented. This page is self-explanatory.
+   When done, click &quot;Submit&quot;.
+
+   .. note:: Adding a user this way will *not*
+      send an email informing them of their username and password.
+      While useful for creating dummy accounts (watchers which
+      shuttle mail to another system, for instance, or email
+      addresses which are a mailing list), in general it is
+      preferable to log out and use the ``New Account``
+      button to create users, as it will pre-populate all the
+      required fields and also notify the user of her account name
+      and password.
+
+.. _user-account-deletion:
+
+Deleting Users
+==============
+
+If the :param:`allowuserdeletion` parameter is turned on (see
+:ref:`parameters`) then you can also delete user accounts.
+Note that, most of the time, this is not the best thing to do. If only
+a warning in a yellow box is displayed, then the deletion is safe.
+If a warning is also displayed in a red box, then you should NOT try
+to delete the user account, else you will get referential integrity
+problems in your database, which can lead to unexpected behavior,
+such as bugs not appearing in bug lists anymore, or data displaying
+incorrectly. You have been warned!
+
+.. _impersonatingusers:
+
+Impersonating Users
+===================
+
+There may be times when an administrator would like to do something as
+another user.  The :command:`sudo` feature may be used to do
+this.
+
+.. note:: To use the sudo feature, you must be in the
+   *bz_sudoers* group.  By default, all
+   administrators are in this group.
+
+If you have access to this feature, you may start a session by
+going to the Edit Users page, Searching for a user and clicking on
+their login.  You should see a link below their login name titled
+&quot;Impersonate this user&quot;.  Click on the link.  This will take you
+to a page where you will see a description of the feature and
+instructions for using it.  After reading the text, simply
+enter the login of the user you would like to impersonate, provide
+a short message explaining why you are doing this, and press the
+button.
+
+As long as you are using this feature, everything you do will be done
+as if you were logged in as the user you are impersonating.
+
+.. warning:: The user you are impersonating will not be told about what you are
+   doing.  If you do anything that results in mail being sent, that
+   mail will appear to be from the user you are impersonating.  You
+   should be extremely careful while using this feature.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringwhiningrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/whining.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/whining.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/whining.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,145 @@
</span><ins>+.. _whining:
+
+Whining
+#######
+
+Whining is a feature in Bugzilla that can regularly annoy users at
+specified times.  Using this feature, users can execute saved searches
+at specific times (e.g. the 15th of the month at midnight) or at
+regular intervals (e.g. every 15 minutes on Sundays).  The results of the
+searches are sent to the user, either as a single email or as one email
+per bug, along with some descriptive text.
+
+.. warning:: Throughout this section it will be assumed that all users are members
+   of the bz_canusewhines group, membership in which is required in order
+   to use the Whining system.  You can easily make all users members of
+   the bz_canusewhines group by setting the User RegExp to &quot;.*&quot; (without
+   the quotes).
+
+   Also worth noting is the bz_canusewhineatothers group.  Members of this
+   group can create whines for any user or group in Bugzilla using an
+   extended form of the whining interface.  Features only available to
+   members of the bz_canusewhineatothers group will be noted in the
+   appropriate places.
+
+.. note:: For whining to work, a special Perl script must be executed at regular
+   intervals.  More information on this is available in :ref:`installation-whining`.
+
+.. note:: This section does not cover the whineatnews.pl script.
+   See :ref:`installation-whining-cron` for more information on
+   The Whining Cron.
+
+.. _whining-overview:
+
+The Event
+=========
+
+The whining system defines an &quot;Event&quot; as one or more queries being
+executed at regular intervals, with the results of said queries (if
+there are any) being emailed to the user.  Events are created by
+clicking on the &quot;Add new event&quot; button.
+
+Once a new event is created, the first thing to set is the &quot;Email
+subject line&quot;.  The contents of this field will be used in the subject
+line of every email generated by this event.  In addition to setting a
+subject, space is provided to enter some descriptive text that will be
+included at the top of each message (to help you in understanding why
+you received the email in the first place).
+
+The next step is to specify when the Event is to be run (the Schedule)
+and what searches are to be performed (the Searches).
+
+.. _whining-schedule:
+
+Whining Schedule
+================
+
+Each whining event is associated with zero or more schedules.  A
+schedule is used to specify when the search (specified below) is to be
+run.  A new event starts out with no schedules (which means it will
+never run, as it is not scheduled to run).  To add a schedule, press
+the &quot;Add a new schedule&quot; button.
+
+Each schedule includes an interval, which you use to tell Bugzilla
+when the event should be run.  An event can be run on certain days of
+the week, certain days of the month, during weekdays (defined as
+Monday through Friday), or every day.
+
+.. warning:: Be careful if you set your event to run on the 29th, 30th, or 31st of
+   the month, as your event may not run exactly when expected.  If you
+   want your event to run on the last day of the month, select &quot;Last day
+   of the month&quot; as the interval.
+
+Once you have specified the day(s) on which the event is to be run, you
+should now specify the time at which the event is to be run.  You can
+have the event run at a certain hour on the specified day(s), or
+every hour, half-hour, or quarter-hour on the specified day(s).
+
+If a single schedule does not execute an event as many times as you
+would want, you can create another schedule for the same event.  For
+example, if you want to run an event on days whose numbers are
+divisible by seven, you would need to add four schedules to the event,
+setting the schedules to run on the 7th, 14th, 21st, and 28th (one day
+per schedule) at whatever time (or times) you choose.
+
+.. note:: If you are a member of the bz_canusewhineatothers group, then you
+   will be presented with another option: &quot;Mail to&quot;.  Using this you
+   can control who will receive the emails generated by this event.  You
+   can choose to send the emails to a single user (identified by email
+   address) or a single group (identified by group name).  To send to
+   multiple users or groups, create a new schedule for each additional
+   user/group.
+
+.. _whining-query:
+
+Whining Searches
+================
+
+Each whining event is associated with zero or more searches.  A search
+is any saved search to be run as part of the specified schedule (see
+above).  You start out without any searches associated with the event
+(which means that the event will not run, as there will never be any
+results to return).  To add a search, press the &quot;Add a search&quot; button.
+
+The first field to examine in your newly added search is the Sort field.
+Searches are run, and results included, in the order specified by the
+Sort field.  Searches with smaller Sort values will run before searches
+with bigger Sort values.
+
+The next field to examine is the Search field.  This is where you
+choose the actual search that is to be run.  Instead of defining search
+parameters here, you are asked to choose from the list of saved
+searches (the same list that appears at the bottom of every Bugzilla
+page).  You are only allowed to choose from searches that you have
+saved yourself (the default saved search, &quot;My Bugs&quot;, is not a valid
+choice).  If you do not have any saved searches, you can take this
+opportunity to create one (see :ref:`list`).
+
+.. note:: When running searches, the whining system acts as if you are the user
+   executing the search.  This means that the whining system will ignore
+   bugs that match your search but that you cannot access.
+
+Once you have chosen the saved search to be executed, give the search a
+descriptive title.  This title will appear in the email, above the
+results of the search.  If you choose &quot;One message per bug&quot;, the search
+title will appear at the top of each email that contains a bug matching
+your search.
+
+Finally, decide if the results of the search should be sent in a single
+email, or if each bug should appear in its own email.
+
+.. warning:: Think carefully before checking the &quot;One message per bug&quot; box.  If
+   you create a search that matches thousands of bugs, you will receive
+   thousands of emails!
+
+Saving Your Changes
+===================
+
+Once you have defined at least one schedule and created at least one
+search, go ahead and &quot;Update/Commit&quot;.  This will save your Event and make
+it available for immediate execution.
+
+.. note:: If you ever feel like deleting your event, you may do so using the
+   &quot;Remove Event&quot; button in the upper-right corner of each Event.  You
+   can also modify an existing event, so long as you &quot;Update/Commit&quot;
+   after completing your modifications.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstadministeringworkflowrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/administering/workflow.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/administering/workflow.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/administering/workflow.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+.. _workflow:
+
+Workflow
+########
+
+The bug status workflow—which statuses are valid transitions from which
+other statuses—can be customized.
+
+You need to begin by defining the statuses and resolutions you want to use
+(see :ref:`field-values`). By convention, these are in all capital letters.
+
+Only one bug status, UNCONFIRMED, can never be renamed nor deleted. However,
+it can be disabled entirely on a per-product basis (see :ref:`categorization`).
+The status referred to by the :param:`duplicate_or_move_bug_status` parameter, if
+set, is also undeletable. To make it deletable,
+simply set the value of that parameter to a different status.
+
+Aside from the empty value, two resolutions, DUPLICATE and FIXED, cannot be
+renamed or deleted. (FIXED could be if we fixed
+`bug 1007605 &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=1007605&gt;`_.)
+
+Once you have defined your statuses, you can configure the workflow of
+how a bug moves between them. The workflow configuration
+page displays all existing bug statuses twice: first on the left for the
+starting status, and on the top for the target status in the transition.
+If the checkbox is checked, then the transition from the left to the top
+status is legal; if it's unchecked, that transition is forbidden.
+
+The status used as the :param:`duplicate_or_move_bug_status` parameter
+(normally RESOLVED or its equivalent) is required to be a legal transition
+from every other bug status, and so this is enforced on the page.
+
+The &quot;View Comments Required on Status Transitions&quot; link below the table
+lets you set which transitions require a comment from the user.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1attachmentrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/attachment.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/attachment.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/attachment.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,349 @@
</span><ins>+Attachments
+===========
+
+The Bugzilla API for creating, changing, and getting the details of attachments.
+
+.. _rest_attachments:
+
+Get Attachment
+--------------
+
+This allows you to get data about attachments, given a list of bugs and/or
+attachment IDs. Private attachments will only be returned if you are in the
+appropriate group or if you are the submitter of the attachment.
+
+**Request**
+
+To get all current attachments for a bug:
+
+.. code-block:: text
+
+   GET /rest/bug/(bug_id)/attachment
+
+To get a specific attachment based on attachment ID:
+
+.. code-block:: text
+
+   GET /rest/bug/attachment/(attachment_id)
+
+One of the below must be specified.
+
+=================  ====  ======================================================
+name               type  description
+=================  ====  ======================================================
+**bug_id**         int   Integer bug ID.
+**attachment_id**  int   Integer attachment ID.
+=================  ====  ======================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+      &quot;bugs&quot; : {
+         &quot;1345&quot; : [
+            { (attachment) },
+            { (attachment) }
+         ],
+         &quot;9874&quot; : [
+            { (attachment) },
+            { (attachment) }
+         ],
+      },
+      &quot;attachments&quot; : {
+         &quot;234&quot; : { (attachment) },
+         &quot;123&quot; : { (attachment) },
+      }
+   }
+
+An object containing two elements: ``bugs`` and ``attachments``.
+
+The attachments for the bug that you specified in the ``bug_id`` argument in
+input are returned in ``bugs`` on output. ``bugs`` is a object that has integer
+bug IDs for keys and the values are arrays of objects as attachments.
+(Fields for attachments are described below.)
+
+For the attachment that you specified directly in ``attachment_id``, they
+are returned in ``attachments`` on output. This is a object where the attachment
+ids point directly to objects describing the individual attachment.
+
+The fields for each attachment (where it says ``(attachment)`` in the
+sample response above) are:
+
+================  ========  =====================================================
+name              type      description
+================  ========  =====================================================
+data              base64    The raw data of the attachment, encoded as Base64.
+size              int       The length (in bytes) of the attachment.
+creation_time     datetime  The time the attachment was created.
+last_change_time  datetime  The last time the attachment was modified.
+id                int       The numeric ID of the attachment.
+bug_id            int       The numeric ID of the bug that the attachment is
+                            attached to.
+file_name         string    The file name of the attachment.
+summary           string    A short string describing the attachment.
+content_type      string    The MIME type of the attachment.
+is_private        boolean   ``true`` if the attachment is private (only visible
+                            to a certain group called the &quot;insidergroup&quot;,
+                            ``false`` otherwise.
+is_obsolete       boolean   ``true`` if the attachment is obsolete, ``false``
+                            otherwise.
+is_patch          boolean   ``true`` if the attachment is a patch, ``false``
+                            otherwise.
+creator           string    The login name of the user that created the
+                            attachment.
+flags             array     Array of objects, each containing the information
+                            about the flag currently set for each attachment.
+                            Each flag object contains items descibed in the
+                            Flag object below.
+================  ========  =====================================================
+
+Flag object:
+
+=================  ========  ====================================================
+name               type      description
+=================  ========  ====================================================
+id                 int       The ID of the flag.
+name               string    The name of the flag.
+type_id            int       The type ID of the flag.
+creation_date      datetime  The timestamp when this flag was originally created.
+modification_date  datetime  The timestamp when the flag was last modified.
+status             string    The current status of the flag such as ?, +, or -.
+setter             string    The login name of the user who created or last
+                             modified the flag.
+requestee          string    The login name of the user this flag has been
+                             requested to be granted or denied. Note, this field
+                             is only returned if a requestee is set.
+=================  ========  ====================================================
+
+.. _rest_add_attachment:
+
+Create Attachment
+-----------------
+
+This allows you to add an attachment to a bug in Bugzilla.
+
+**Request**
+
+To create attachment on a current bug:
+
+.. code-block:: text
+
+   POST /rest/bug/(bug_id)/attachment
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [ 35 ],
+     &quot;is_patch&quot; : true,
+     &quot;comment&quot; : &quot;This is a new attachment comment&quot;,
+     &quot;summary&quot; : &quot;Test Attachment&quot;,
+     &quot;content_type&quot; : &quot;text/plain&quot;,
+     &quot;data&quot; : &quot;(Some base64 encoded content)&quot;,
+     &quot;file_name&quot; : &quot;test_attachment.patch&quot;,
+     &quot;obsoletes&quot; : [],
+     &quot;is_private&quot; : false,
+     &quot;flags&quot; : [
+       {
+         &quot;name&quot; : &quot;review&quot;,
+         &quot;status&quot; : &quot;?&quot;,
+         &quot;requestee&quot; : &quot;user@bugzilla.org&quot;,
+         &quot;new&quot; : true
+       }
+     ]
+   }
+
+
+The params to include in the POST body, as well as the returned
+data format, are the same as below. The ``bug_id`` param will be
+overridden as it it pulled from the URL path.
+
+================  =======  ======================================================
+name              type     description
+================  =======  ======================================================
+**ids**           array    The IDs or aliases of bugs that you want to add this
+                           attachment to. The same attachment and comment will be
+                           added to all these bugs.
+**data**          base64   The content of the attachment. You must encode it in
+                           base64 using an appropriate client library such as
+                           ``MIME::Base64`` for Perl.
+**file_name**     string   The &quot;file name&quot; that will be displayed in the UI for
+                           this attachment and also downloaded copies will be
+                           given.
+**summary**       string   A short string describing the attachment.
+**content_type**  string   The MIME type of the attachment, like ``text/plain``
+                           or ``image/png``.
+comment           string   A comment to add along with this attachment.
+is_patch          boolean  ``true`` if Bugzilla should treat this attachment as a
+                           patch. If you specify this, you do not need to specify
+                           a ``content_type``. The ``content_type`` of the
+                           attachment will be forced to ``text/plain``. Defaults
+                           to ``false`` if not specified.
+is_private        boolean  ``true`` if the attachment should be private
+                           (restricted to the &quot;insidergroup&quot;), ``false`` if the
+                           attachment should be public. Defaults to ``false`` if
+                           not specified.
+flags             array    Flags objects to add to the attachment. The object
+                           format is described in the Flag object below.
+================  =======  ======================================================
+
+Flag object:
+
+To create a flag, at least the ``status`` and the ``type_id`` or ``name`` must
+be provided. An optional requestee can be passed if the flag type is requestable
+to a specific user.
+
+=========  ======  ==============================================================
+name       type    description
+=========  ======  ==============================================================
+name       string  The name of the flag type.
+type_id    int     The internal flag type ID.
+status     string  The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a
+                   flag).
+requestee  string  The login of the requestee if the flag type is requestable to
+                   a specific user.
+=========  ======  ==============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [
+       &quot;2797&quot;
+     ]
+   }
+
+====  =====  =========================
+name  type   description
+====  =====  =========================
+ids   array  Attachment IDs created.
+====  =====  =========================
+
+.. _rest_update_attachment:
+
+Update Attachment
+-----------------
+
+This allows you to update attachment metadata in Bugzilla.
+
+**Request**
+
+To update attachment metadata on a current attachment:
+
+.. code-block:: text
+
+   PUT /rest/bug/attachment/(attachment_id)
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [ 2796 ],
+     &quot;summary&quot; : &quot;Test XML file&quot;,
+     &quot;comment&quot; : &quot;Changed this from a patch to a XML file&quot;,
+     &quot;content_type&quot; : &quot;text/xml&quot;,
+     &quot;is_patch&quot; : 0
+   }
+
+=================  =====  =======================================================
+name               type   description
+=================  =====  =======================================================
+**attachment_id**  int    Integer attachment ID.
+**ids**            array  The IDs of the attachments you want to update.
+=================  =====  =======================================================
+
+============  =======  ==========================================================
+name          type     description
+============  =======  ==========================================================
+file_name     string   The &quot;file name&quot; that will be displayed in the UI for this
+                       attachment.
+summary       string   A short string describing the attachment.
+comment       string   An optional comment to add to the attachment's bug.
+content_type  string   The MIME type of the attachment, like ``text/plain``
+                       or ``image/png``.
+is_patch      boolean  ``true`` if Bugzilla should treat this attachment as a
+                       patch. If you specify this, you do not need to specify a
+                       ``content_type``. The ``content_type`` of the attachment
+                       will be forced to ``text/plain``.
+is_private    boolean  ``true`` if the attachment should be private (restricted
+                       to the &quot;insidergroup&quot;), ``false`` if the attachment
+                       should be public.
+is_obsolete   boolean  ``true`` if the attachment is obsolete, ``false``
+                       otherwise.
+flags         array    An array of Flag objects with changes to the flags. The
+                       object format is described in the Flag object below.
+============  =======  ==========================================================
+
+Flag object:
+
+The following values can be specified. At least the ``status`` and one of
+``type_id``, ``id``, or ``name`` must be specified. If a type_id or name matches
+a single currently set flag, the flag will be updated unless ``new`` is specified.
+
+=========  =======  =============================================================
+name       type     description
+=========  =======  =============================================================
+name       string   The name of the flag that will be created or updated.
+type_id    int      The internal flag type ID that will be created or updated.
+                    You will need to specify the ``type_id`` if more than one
+                    flag type of the same name exists.
+status     string   The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a
+                    flag).
+requestee  string   The login of the requestee if the flag type is requestable
+                    to a specific user.
+id         int      Use ID to specify the flag to be updated. You will need to
+                    specify the ``id`` if more than one flag is set of the same
+                    name.
+new        boolean  Set to true if you specifically want a new flag to be
+                    created.
+=========  =======  =============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;attachments&quot; : [
+       {
+         &quot;changes&quot; : {
+           &quot;content_type&quot; : {
+             &quot;added&quot; : &quot;text/xml&quot;,
+             &quot;removed&quot; : &quot;text/plain&quot;
+           },
+           &quot;is_patch&quot; : {
+             &quot;added&quot; : &quot;0&quot;,
+             &quot;removed&quot; : &quot;1&quot;
+           },
+           &quot;summary&quot; : {
+             &quot;added&quot; : &quot;Test XML file&quot;,
+             &quot;removed&quot; : &quot;test patch&quot;
+           }
+         },
+         &quot;id&quot; : 2796,
+         &quot;last_change_time&quot; : &quot;2014-09-29T14:41:53Z&quot;
+       }
+     ]
+   }
+
+``attachments`` (array) Change objects with the following items:
+
+================  ========  =====================================================
+name              type      description
+================  ========  =====================================================
+id                int       The ID of the attachment that was updated.
+last_change_time  datetime  The exact time that this update was done at, for this
+                            attachment. If no update was done (that is, no fields
+                            had their values changed and no comment was added)
+                            then this will instead be the last time the
+                            attachment was updated.
+changes           object    The changes that were actually done on this
+                            attachment. The keys are the names of the fields that
+                            were changed, and the values are an object with two
+                            items:
+
+                            * added: (string) The values that were added to this
+                              field. Possibly a comma-and-space-separated list
+                              if multiple values were added.
+                            * removed: (string) The values that were removed from
+                              this field.
+================  ========  =====================================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1buguserlastvisitrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug-user-last-visit.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug-user-last-visit.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug-user-last-visit.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,111 @@
</span><ins>+Bug User Last Visited
+=====================
+
+.. _rest-bug-user-last-visit-update:
+
+Update Last Visited
+-------------------
+
+Update the last-visited time for the specified bug and current user.
+
+**Request**
+
+To update the time for a single bug id:
+
+.. code-block:: text
+
+   POST /rest/bug_user_last_visit/(id)
+
+To update one or more bug ids at once:
+
+.. code-block:: text
+
+   POST /rest/bug_user_last_visit
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [35,36,37]
+   }
+
+=======  =====  ==============================
+name     type   description
+=======  =====  ==============================
+**id**   int    An integer bug id.
+**ids**  array  One or more bug ids to update.
+=======  =====  ==============================
+
+**Response**
+
+.. code-block:: js
+
+   [
+     {
+       &quot;id&quot; : 100,
+       &quot;last_visit_ts&quot; : &quot;2014-10-16T17:38:24Z&quot;
+     }
+   ]
+
+An array of objects containing the items:
+
+=============  ========  ============================================
+name           type      description
+=============  ========  ============================================
+id             int       The bug id.
+last_visit_ts  datetime  The timestamp the user last visited the bug.
+=============  ========  ============================================
+
+.. _rest-bug-user-last-visit-get:
+
+Get Last Visited
+----------------
+
+**Request**
+
+Get the last-visited timestamp for one or more specified bug ids or get a
+list of the last 20 visited bugs and their timestamps.
+
+To return the last-visited timestamp for a single bug id:
+
+.. code-block:: text
+
+   GET /rest/bug_user_last_visit/(id)
+
+To return more than one specific bug timestamps:
+
+.. code-block:: text
+
+   GET /rest/bug_user_last_visit/123?ids=234&amp;ids=456
+
+To return just the most recent 20 timestamps:
+
+.. code-block:: text
+
+   GET /rest/bug_user_last_visit
+
+=======  =====  ============================================
+name     type   description
+=======  =====  ============================================
+**id**   int    An integer bug id.
+**ids**  array  One or more optional bug ids to get.
+=======  =====  ============================================
+
+**Response**
+
+.. code-block:: js
+
+   [
+     {
+       &quot;id&quot; : 100,
+       &quot;last_visit_ts&quot; : &quot;2014-10-16T17:38:24Z&quot;
+     }
+   ]
+
+An array of objects containing the following items:
+
+=============  ========  ============================================
+name           type      description
+=============  ========  ============================================
+id             int       The bug id.
+last_visit_ts  datetime  The timestamp the user last visited the bug.
+=============  ========  ============================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1bugrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bug.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,986 @@
</span><ins>+Bugs
+====
+
+The REST API for creating, changing, and getting the details of bugs.
+
+This part of the Bugzilla REST API allows you to file new bugs in Bugzilla and
+to get information about existing bugs.
+
+.. _rest_single_bug:
+
+Get Bug
+-------
+
+Gets information about particular bugs in the database.
+
+**Request**
+
+To get information about a particular bug using its ID or alias:
+
+.. code-block::  text
+
+   GET /rest/bug/(id_or_alias)
+
+You can also use :ref:`rest_search_bugs` to return more than one bug at a time
+by specifying bug IDs as the search terms.
+
+.. code-block:: text
+
+   GET /rest/bug?id=12434,43421
+
+================  =====  ======================================================
+name              type   description
+================  =====  ======================================================
+**id_or_alias**   mixed  An integer bug ID or a bug alias string.
+================  =====  ======================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;faults&quot;: [],
+     &quot;bugs&quot;: [
+       {
+         &quot;assigned_to_detail&quot;: {
+           &quot;id&quot;: 2,
+           &quot;real_name&quot;: &quot;Test User&quot;,
+           &quot;name&quot;: &quot;user@bugzilla.org&quot;,
+           &quot;email&quot;: &quot;user@bugzilla.org&quot;
+         },
+         &quot;flags&quot;: [
+           {
+             &quot;type_id&quot;: 11,
+             &quot;modification_date&quot;: &quot;2014-09-28T21:03:47Z&quot;,
+             &quot;name&quot;: &quot;blocker&quot;,
+             &quot;status&quot;: &quot;?&quot;,
+             &quot;id&quot;: 2906,
+             &quot;setter&quot;: &quot;user@bugzilla.org&quot;,
+             &quot;creation_date&quot;: &quot;2014-09-28T21:03:47Z&quot;
+           }
+         ],
+         &quot;resolution&quot;: &quot;INVALID&quot;,
+         &quot;id&quot;: 35,
+         &quot;qa_contact&quot;: &quot;&quot;,
+         &quot;version&quot;: &quot;1.0&quot;,
+         &quot;status&quot;: &quot;RESOLVED&quot;,
+         &quot;creator&quot;: &quot;user@bugzilla.org&quot;,
+         &quot;cf_drop_down&quot;: &quot;---&quot;,
+         &quot;summary&quot;: &quot;test bug&quot;,
+         &quot;last_change_time&quot;: &quot;2014-09-23T19:12:17Z&quot;,
+         &quot;platform&quot;: &quot;All&quot;,
+         &quot;url&quot;: &quot;&quot;,
+         &quot;classification&quot;: &quot;Unclassified&quot;,
+         &quot;cc_detail&quot;: [
+           {
+             &quot;id&quot;: 786,
+             &quot;real_name&quot;: &quot;Foo Bar&quot;,
+             &quot;name&quot;: &quot;foo@bar.com&quot;,
+             &quot;email&quot;: &quot;foo@bar.com&quot;
+           },
+         ],
+         &quot;priority&quot;: &quot;P1&quot;,
+         &quot;is_confirmed&quot;: true,
+         &quot;creation_time&quot;: &quot;2000-07-25T13:50:04Z&quot;,
+         &quot;assigned_to&quot;: &quot;user@bugzilla.org&quot;,
+         &quot;flags&quot;: [],
+         &quot;alias&quot;: [],
+         &quot;cf_large_text&quot;: &quot;&quot;,
+         &quot;groups&quot;: [],
+         &quot;op_sys&quot;: &quot;All&quot;,
+         &quot;cf_bug_id&quot;: null,
+         &quot;depends_on&quot;: [],
+         &quot;is_cc_accessible&quot;: true,
+         &quot;is_open&quot;: false,
+         &quot;cf_qa_list_4&quot;: &quot;---&quot;,
+         &quot;keywords&quot;: [],
+         &quot;cc&quot;: [
+           &quot;foo@bar.com&quot;,
+         ],
+         &quot;see_also&quot;: [],
+         &quot;deadline&quot;: null,
+         &quot;is_creator_accessible&quot;: true,
+         &quot;whiteboard&quot;: &quot;&quot;,
+         &quot;dupe_of&quot;: null,
+         &quot;target_milestone&quot;: &quot;---&quot;,
+         &quot;cf_mulitple_select&quot;: [],
+         &quot;component&quot;: &quot;SaltSprinkler&quot;,
+         &quot;severity&quot;: &quot;critical&quot;,
+         &quot;cf_date&quot;: null,
+         &quot;product&quot;: &quot;FoodReplicator&quot;,
+         &quot;creator_detail&quot;: {
+           &quot;id&quot;: 28,
+           &quot;real_name&quot;: &quot;hello&quot;,
+           &quot;name&quot;: &quot;user@bugzilla.org&quot;,
+           &quot;email&quot;: &quot;namachi@netscape.com&quot;
+         },
+         &quot;cf_free_text&quot;: &quot;&quot;,
+         &quot;blocks&quot;: []
+       }
+     ]
+   }
+
+``bugs`` (array) Each bug object contains information about the bugs with valid
+ids containing the following items:
+
+These fields are returned by default or by specifying ``_default`` in
+``include_fields``.
+
+=====================  ========  ================================================
+name                   type      description
+=====================  ========  ================================================
+actual_time            double    The total number of hours that this bug has
+                                 taken so far. If you are not in the time-tracking
+                                 group, this field will not be included in the
+                                 return value.
+alias                  array     The unique aliases of this bug. An empty array
+                                 will be returned if this bug has no aliases.
+assigned_to            string    The login name of the user to whom the bug is
+                                 assigned.
+assigned_to_detail     object    An object containing detailed user information
+                                 for the assigned_to. To see the keys included
+                                 in the user detail object, see below.
+blocks                 array     The IDs of bugs that are &quot;blocked&quot; by this bug.
+cc                     array     The login names of users on the CC list of this
+                                 bug.
+cc_detail              array     Array of objects containing detailed user
+                                 information for each of the cc list members.
+                                 To see the keys included in the user detail
+                                 object, see below.
+classification         string    The name of the current classification the bug
+                                 is in.
+component              string    The name of the current component of this bug.
+creation_time          datetime  When the bug was created.
+creator                string    The login name of the person who filed this bug
+                                 (the reporter).
+creator_detail         object    An object containing detailed user information
+                                 for the creator. To see the keys included in the
+                                 user detail object, see below.
+deadline               string    The day that this bug is due to be completed, in
+                                 the format ``YYYY-MM-DD``.
+depends_on             array     The IDs of bugs that this bug &quot;depends on&quot;.
+dupe_of                int       The bug ID of the bug that this bug is a
+                                 duplicate of. If this bug isn't a duplicate of
+                                 any bug, this will be null.
+estimated_time         double    The number of hours that it was estimated that
+                                 this bug would take. If you are not in the
+                                 time-tracking group, this field will not be
+                                 included in the return value.
+flags                  array     An array of objects containing the information
+                                 about flags currently set for the bug. Each flag
+                                 objects contains the following items
+groups                 array     The names of all the groups that this bug is in.
+id                     int       The unique numeric ID of this bug.
+is_cc_accessible       boolean   If true, this bug can be accessed by members of
+                                 the CC list, even if they are not in the groups
+                                 the bug is restricted to.
+is_confirmed           boolean   ``true`` if the bug has been confirmed. Usually
+                                 this means that the bug has at some point been
+                                 moved out of the ``UNCONFIRMED`` status and into
+                                 another open status.
+is_open                boolean   ``true`` if this bug is open, ``false`` if it
+                                 is closed.
+is_creator_accessible  boolean   If ``true``, this bug can be accessed by the
+                                 creator of the bug, even if they are not a
+                                 member of the groups the bug is restricted to.
+keywords               array     Each keyword that is on this bug.
+last_change_time       datetime  When the bug was last changed.
+op_sys                 string    The name of the operating system that the bug
+                                 was filed against.
+platform               string    The name of the platform (hardware) that the bug
+                                 was filed against.
+priority               string    The priority of the bug.
+product                string    The name of the product this bug is in.
+qa_contact             string    The login name of the current QA Contact on the
+                                 bug.
+qa_contact_detail      object    An object containing detailed user information
+                                 for the qa_contact. To see the keys included in
+                                 the user detail object, see below.
+remaining_time         double    The number of hours of work remaining until work
+                                 on this bug is complete. If you are not in the
+                                 time-tracking group, this field will not be
+                                 included in the return value.
+resolution             string    The current resolution of the bug, or an empty
+                                 string if the bug is open.
+see_also               array     The URLs in the See Also field on the bug.
+severity               string    The current severity of the bug.
+status                 string    The current status of the bug.
+summary                string    The summary of this bug.
+target_milestone       string    The milestone that this bug is supposed to be
+                                 fixed by, or for closed bugs, the milestone that
+                                 it was fixed for.
+update_token           string    The token that you would have to pass to the
+                                 ``process_bug.cgi`` page in order to update this
+                                 bug. This changes every time the bug is updated.
+                                 This field is not returned to logged-out users.
+url                    string    A URL that demonstrates the problem described in
+                                 the bug, or is somehow related to the bug report.
+version                string    The version the bug was reported against.
+whiteboard             string    The value of the &quot;status whiteboard&quot; field on
+                                 the bug.
+=====================  ========  ================================================
+
+Custom fields:
+
+Every custom field in this installation will also be included in the
+return value. Most fields are returned as strings. However, some field types have
+different return values.
+
+Normally custom fields are returned by default similar to normal bug fields or
+you can specify only custom fields by using ``_custom`` in ``include_fields``.
+
+Extra fields:
+
+These fields are returned only by specifying ``_extra`` or the field name in
+``include_fields``.
+
+====  =====  ====================================================================
+name  type   description
+====  =====  ====================================================================
+tags  array  Each array item is a tag name. Note that tags are
+             personal to the currently logged in user and are not the same as
+             comment tags.
+====  =====  ====================================================================
+
+User object:
+
+=========  ======  ==============================================================
+name       type    description
+=========  ======  ==============================================================
+id         int     The user ID for this user.
+real_name  string  The 'real' name for this user, if any.
+name       string  The user's Bugzilla login.
+email      string  The user's email address. Currently this is the same value as
+                   the name.
+=========  ======  ==============================================================
+
+Flag object:
+
+=================  ========  ====================================================
+name               type      description
+=================  ========  ====================================================
+id                 int       The ID of the flag.
+name               string    The name of the flag.
+type_id            int       The type ID of the flag.
+creation_date      datetime  The timestamp when this flag was originally created.
+modification_date  datetime  The timestamp when the flag was last modified.
+status             string    The current status of the flag.
+setter             string    The login name of the user who created or last
+                             modified the flag.
+requestee          string    The login name of the user this flag has been
+                             requested to be granted or denied. Note, this field
+                             is only returned if a requestee is set.
+=================  ========  ====================================================
+
+Custom field object:
+
+You can specify to only return custom fields by specifying ``_custom`` or the
+field name in ``include_fields``.
+
+* Bug ID Fields: (int)
+* Multiple-Selection Fields: (array of strings)
+* Date/Time Fields: (datetime)
+
+.. _rest_history:
+
+Bug History
+-----------
+
+Gets the history of changes for particular bugs in the database.
+
+**Request**
+
+To get the history for a specific bug ID:
+
+.. code-block:: text
+
+   GET /rest/bug/(id)/history
+
+To get the history for a bug since a specific date:
+
+.. code-block:: text
+
+   GET /rest/bug/(id)/history?new_since=YYYY-MM-DD
+
+=========  ========  ============================================================
+name       type      description
+=========  ========  ============================================================
+**id**     mixed     An integer bug ID or alias.
+new_since  datetime  A datetime timestamp to only show history since.
+=========  ========  ============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;bugs&quot;: [
+       {
+         &quot;alias&quot;: [],
+         &quot;history&quot;: [
+           {
+             &quot;when&quot;: &quot;2014-09-23T19:12:17Z&quot;,
+             &quot;who&quot;: &quot;user@bugzilla.org&quot;,
+             &quot;changes&quot;: [
+               {
+                 &quot;added&quot;: &quot;P1&quot;,
+                 &quot;field_name&quot;: &quot;priority&quot;,
+                 &quot;removed&quot;: &quot;P2&quot;
+               },
+               {
+                 &quot;removed&quot;: &quot;blocker&quot;,
+                 &quot;field_name&quot;: &quot;severity&quot;,
+                 &quot;added&quot;: &quot;critical&quot;
+               }
+             ]
+           },
+           {
+             &quot;when&quot;: &quot;2014-09-28T21:03:47Z&quot;,
+             &quot;who&quot;: &quot;user@bugzilla.org&quot;,
+             &quot;changes&quot;: [
+               {
+                 &quot;added&quot;: &quot;blocker?&quot;,
+                 &quot;removed&quot;: &quot;&quot;,
+                 &quot;field_name&quot;: &quot;flagtypes.name&quot;
+               }
+             ]
+           }
+         ],
+         &quot;id&quot;: 35
+       }
+     ]
+   }
+
+``bugs`` (array) Bug objects each containing the following items:
+
+=======  =====  =================================================================
+name     type   description
+=======  =====  =================================================================
+id       int    The numeric ID of the bug.
+alias    array  The unique aliases of this bug. An empty array will be returned
+                if this bug has no aliases.
+history  array  An array of History objects.
+=======  =====  =================================================================
+
+History object:
+
+=======  ========  ==============================================================
+name     type      description
+=======  ========  ==============================================================
+when     datetime  The date the bug activity/change happened.
+who      string    The login name of the user who performed the bug change.
+changes  array     An array of Change objects which contain all the changes that
+                   happened to the bug at this time (as specified by ``when``).
+=======  ========  ==============================================================
+
+Change object:
+
+=============  ======  ==========================================================
+name           type    description
+=============  ======  ==========================================================
+field_name     string  The name of the bug field that has changed.
+removed        string  The previous value of the bug field which has been
+                       deleted by the change.
+added          string  The new value of the bug field which has been added
+                       by the change.
+attachment_id  int     The ID of the attachment that was changed.
+                       This only appears if the change was to an attachment,
+                       otherwise ``attachment_id`` will not be present in this
+                       object.
+=============  ======  ==========================================================
+
+.. _rest_search_bugs:
+
+Search Bugs
+-----------
+
+Allows you to search for bugs based on particular criteria.
+
+**Request**
+
+To search for bugs:
+
+.. code-block:: text
+
+   GET /rest/bug
+
+Unless otherwise specified in the description of a parameter, bugs are
+returned if they match *exactly* the criteria you specify in these
+parameters. That is, we don't match against substrings--if a bug is in
+the &quot;Widgets&quot; product and you ask for bugs in the &quot;Widg&quot; product, you
+won't get anything.
+
+Criteria are joined in a logical AND. That is, you will be returned
+bugs that match *all* of the criteria, not bugs that match *any* of
+the criteria.
+
+Each parameter can be either the type it says, or a list of the types
+it says. If you pass an array, it means &quot;Give me bugs with *any* of
+these values.&quot; For example, if you wanted bugs that were in either
+the &quot;Foo&quot; or &quot;Bar&quot; products, you'd pass:
+
+.. code-block:: text
+
+   GET /rest/bug?product=Foo&amp;product=Bar
+
+Some Bugzillas may treat your arguments case-sensitively, depending
+on what database system they are using. Most commonly, though, Bugzilla is
+not case-sensitive with the arguments passed (because MySQL is the
+most-common database to use with Bugzilla, and MySQL is not case sensitive).
+
+In addition to the fields listed below, you may also use criteria that
+is similar to what is used in the Advanced Search screen of the Bugzilla
+UI. This includes fields specified by ``Search by Change History`` and
+``Custom Search``. The easiest way to determine what the field names are and what
+format Bugzilla expects is to first construct your query using the
+Advanced Search UI, execute it and use the query parameters in they URL
+as your query for the REST call.
+
+================  ========  =====================================================
+name              type      description
+================  ========  =====================================================
+alias             array     The unique aliases of this bug. An empty array will
+                            be returned if this bug has no aliases.
+assigned_to       string    The login name of a user that a bug is assigned to.
+component         string    The name of the Component that the bug is in. Note
+                            that if there are multiple Components with the same
+                            name, and you search for that name, bugs in *all*
+                            those Components will be returned. If you don't want
+                            this, be sure to also specify the ``product`` argument.
+creation_time     datetime  Searches for bugs that were created at this time or
+                            later. May not be an array.
+creator           string    The login name of the user who created the bug. You
+                            can also pass this argument with the name
+                            ``reporter``, for backwards compatibility with
+                            older Bugzillas.
+id                int       The numeric ID of the bug.
+last_change_time  datetime  Searches for bugs that were modified at this time
+                            or later. May not be an array.
+limit             int       Limit the number of results returned. If the limit
+                            is more than zero and higher than the maximum limit
+                            set by the administrator, then the maximum limit will
+                            be used instead. If you set the limit equal to zero,
+                            then all matching results will be returned instead.
+offset            int       Used in conjunction with the ``limit`` argument,
+                            ``offset`` defines the starting position for the
+                            search. For example, given a search that would
+                            return 100 bugs, setting ``limit`` to 10 and
+                            ``offset`` to 10 would return bugs 11 through 20
+                            from the set of 100.
+op_sys            string    The &quot;Operating System&quot; field of a bug.
+platform          string    The Platform (sometimes called &quot;Hardware&quot;) field of
+                            a bug.
+priority          string    The Priority field on a bug.
+product           string    The name of the Product that the bug is in.
+resolution        string    The current resolution--only set if a bug is closed.
+                            You can find open bugs by searching for bugs with an
+                            empty resolution.
+severity          string    The Severity field on a bug.
+status            string    The current status of a bug (not including its
+                            resolution, if it has one, which is a separate field
+                            above).
+summary           string    Searches for substrings in the single-line Summary
+                            field on bugs. If you specify an array, then bugs
+                            whose summaries match *any* of the passed substrings
+                            will be returned. Note that unlike searching in the
+                            Bugzilla UI, substrings are not split on spaces. So
+                            searching for ``foo bar`` will match &quot;This is a foo
+                            bar&quot; but not &quot;This foo is a bar&quot;. ``['foo', 'bar']``,
+                            would, however, match the second item.
+tags              string    Searches for a bug with the specified tag. If you
+                            specify an array, then any bugs that match *any* of
+                            the tags will be returned. Note that tags are
+                            personal to the currently logged in user.
+target_milestone  string    The Target Milestone field of a bug. Note that even
+                            if this Bugzilla does not have the Target Milestone
+                            field enabled, you can still search for bugs by
+                            Target Milestone. However, it is likely that in that
+                            case, most bugs will not have a Target Milestone set
+                            (it defaults to &quot;---&quot; when the field isn't enabled).
+qa_contact        string    The login name of the bug's QA Contact. Note that
+                            even if this Bugzilla does not have the QA Contact
+                            field enabled, you can still search for bugs by QA
+                            Contact (though it is likely that no bug will have a
+                            QA Contact set, if the field is disabled).
+url               string    The &quot;URL&quot; field of a bug.
+version           string    The Version field of a bug.
+whiteboard        string    Search the &quot;Status Whiteboard&quot; field on bugs for a
+                            substring. Works the same as the ``summary`` field
+                            described above, but searches the Status Whiteboard
+                            field.
+quicksearch       string    Search for bugs using quicksearch syntax.
+================  ========  =====================================================
+
+**Response**
+
+The same as :ref:`rest_single_bug`.
+
+.. _rest_create_bug:
+
+Create Bug
+----------
+
+This allows you to create a new bug in Bugzilla. If you specify any
+invalid fields, an error will be thrown stating which field is invalid.
+If you specify any fields you are not allowed to set, they will just be
+set to their defaults or ignored.
+
+You cannot currently set all the items here that you can set on enter_bug.cgi.
+
+The WebService interface may allow you to set things other than those listed
+here, but realize that anything undocumented here may likely change in the
+future.
+
+**Request**
+
+To create a new bug in Bugzilla.
+
+.. code-block:: text
+
+   POST /rest/bug
+
+.. code-block:: js
+
+   {
+     &quot;product&quot; : &quot;TestProduct&quot;,
+     &quot;component&quot; : &quot;TestComponent&quot;,
+     &quot;version&quot; : &quot;unspecified&quot;,
+     &quot;summary&quot; : &quot;'This is a test bug - please disregard&quot;,
+     &quot;alias&quot; : &quot;SomeAlias&quot;,
+     &quot;op_sys&quot; : &quot;All&quot;,
+     &quot;priority&quot; : &quot;P1&quot;,
+     &quot;rep_platform&quot; : &quot;All&quot;
+   }
+
+Some params must be set, or an error will be thrown. These params are
+marked in **bold**.
+
+Some parameters can have defaults set in Bugzilla, by the administrator.
+If these parameters have defaults set, you can omit them. These parameters
+are marked (defaulted).
+
+Clients that want to be able to interact uniformly with multiple
+Bugzillas should always set both the params marked required and those
+marked (defaulted), because some Bugzillas may not have defaults set
+for (defaulted) parameters, and then this method will throw an error
+if you don't specify them.
+
+==================  =======  ====================================================
+name                type     description
+==================  =======  ====================================================
+**product**         string   The name of the product the bug is being filed
+                             against.
+**component**       string   The name of a component in the product above.
+**summary**         string   A brief description of the bug being filed.
+**version**         string   A version of the product above; the version the
+                             bug was found in.
+description         string   (defaulted) The initial description for this bug.
+                             Some Bugzilla installations require this to not be
+                             blank.
+op_sys              string   (defaulted) The operating system the bug was
+                             discovered on.
+platform            string   (defaulted) What type of hardware the bug was
+                             experienced on.
+priority            string   (defaulted) What order the bug will be fixed in by
+                             the developer, compared to the developer's other
+                             bugs.
+severity            string   (defaulted) How severe the bug is.
+alias               array    One or more brief aliases for the bug that can be
+                             used instead of a bug number when accessing this bug.
+                             Must be unique in all of this Bugzilla.
+assigned_to         string   A user to assign this bug to, if you don't want it
+                             to be assigned to the component owner.
+cc                  array    An array of usernames to CC on this bug.
+comment_is_private  boolean  If set to true, the description is private,
+                             otherwise it is assumed to be public.
+groups              array    An array of group names to put this bug into. You
+                             can see valid group names on the Permissions tab of
+                             the Preferences screen, or, if you are an
+                             administrator, in the Groups control panel. If you
+                             don't specify this argument, then the bug will be
+                             added into all the groups that are set as being
+                             &quot;Default&quot; for this product. (If you want to avoid
+                             that, you should specify ``groups`` as an empty
+                             array.)
+qa_contact          string   If this installation has QA Contacts enabled, you
+                             can set the QA Contact here if you don't want to
+                             use the component's default QA Contact.
+status              string   The status that this bug should start out as. Note
+                             that only certain statuses can be set on bug
+                             creation.
+resolution          string   If you are filing a closed bug, then you will have
+                             to specify a resolution. You cannot currently
+                             specify a resolution of ``DUPLICATE``   for new
+                             bugs, though. That must be done with
+                             :ref:`rest_update_bug`.
+target_milestone    string   A valid target milestone for this product.
+flags               array    Flags objects to add to the bug. The object format
+                             is described in the Flag object below.
+==================  =======  ====================================================
+
+Flag object:
+
+To create a flag, at least the ``status`` and the ``type_id`` or ``name`` must
+be provided. An optional requestee can be passed if the flag type is requestable
+to a specific user.
+
+=========  ======  ==============================================================
+name       type    description
+=========  ======  ==============================================================
+name       string  The name of the flag type.
+type_id    int     The internal flag type ID.
+status     string  The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear flag).
+requestee  string  The login of the requestee if the flag type is requestable
+                   to a specific user.
+=========  ======  ==============================================================
+
+In addition to the above parameters, if your installation has any custom
+fields, you can set them just by passing in the name of the field and
+its value as a string.
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot; : 12345
+   }
+
+====  ====  ======================================
+name  type  description
+====  ====  ======================================
+id    int   This is the ID of the newly-filed bug.
+====  ====  ======================================
+
+.. _rest_update_bug:
+
+Update Bug
+----------
+
+Allows you to update the fields of a bug. Automatically sends emails
+out about the changes.
+
+**Request**
+
+To update the fields of a current bug.
+
+.. code-block:: text
+
+   PUT /rest/bug/(id_or_alias)
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [35],
+     &quot;status&quot; : &quot;IN_PROGRESS&quot;,
+     &quot;keywords&quot; : {
+       &quot;add&quot; : [&quot;funny&quot;, &quot;stupid&quot;]
+     }
+   }
+
+The params to include in the PUT body as well as the returned data format,
+are the same as below. You can specify the ID or alias of the bug to update
+either in the URL path and/or in the ``ids`` param. You can use both and they
+will be combined so you can edit more than one bug at a time.
+
+===============  =====  =========================================================
+name             type   description
+===============  =====  =========================================================
+**id_or_alias**  mixed  An integer bug ID or alias.
+**ids**          array  The IDs or aliases of the bugs that you want to modify.
+===============  =====  =========================================================
+
+All following fields specify the values you want to set on the bugs you are
+updating.
+
+=====================  =======  =================================================
+name                   type     description
+=====================  =======  =================================================
+alias                  object   These specify the aliases of a bug that can be
+                                used instead of a bug number when acessing this
+                                bug. To set these, you should pass a hash as the
+                                value. The object may contain the following
+                                items:
+
+                                * ``add`` (array) Aliases to add to this field.
+                                * ``remove`` (array) Aliases to remove from this
+                                  field. If the aliases are not already in the
+                                  field, they will be ignored.
+                                * ``set`` (array) An exact set of aliases to set
+                                  this field to, overriding the current value.
+                                  If you specify ``set``, then ``add`` and
+                                  ``remove`` will be ignored.
+
+                                You can only set this if you are modifying a
+                                single bug. If there is more than one bug
+                                specified in ``ids``, passing in a value for
+                                ``alias`` will cause an error to be thrown.
+
+                                For backwards compatibility, you can also
+                                specify a single string. This will be treated as
+                                if you specified the set key above.
+assigned_to            string   The full login name of the user this bug is
+                                assigned to.
+blocks                 object   (Same as ``depends_on`` below)
+depends_on             object   These specify the bugs that this bug blocks or
+                                depends on, respectively. To set these, you
+                                should pass an object as the value. The object
+                                may contain the following items:
+
+                                * ``add`` (array) Bug IDs to add to this field.
+                                * ``remove`` (array) Bug IDs to remove from this
+                                  field. If the bug IDs are not already in the
+                                  field, they will be ignored.
+                                * ``set`` (array of) An exact set of bug IDs to
+                                  set this field to, overriding the current
+                                  value. If you specify ``set``, then ``add``
+                                  and ``remove`` will be ignored.
+cc                     object   The users on the cc list. To modify this field,
+                                pass an object, which may have the following
+                                items:
+
+                                * ``add`` (array) User names to add to the CC
+                                  list. They must be full user names, and an
+                                  error will be thrown if you pass in an invalid
+                                  user name.
+                                * ``remove`` (array) User names to remove from
+                                  the CC list. They must be full user names, and
+                                  an error will be thrown if you pass in an
+                                  invalid user name.
+is_cc_accessible       boolean  Whether or not users in the CC list are allowed
+                                to access the bug, even if they aren't in a group
+                                that can normally access the bug.
+comment                object   A comment on the change. The object may contain
+                                the following items:
+
+                                * ``body`` (string) The actual text of the
+                                  comment. For compatibility with the parameters
+                                  to :ref:`rest_add_comment`, you can also call
+                                  this field ``comment``, if you want.
+                                * ``is_private`` (boolean) Whether the comment is
+                                  private or not. If you try to make a comment
+                                  private and you don't have the permission to,
+                                  an error will be thrown.
+comment_is_private     object   This is how you update the privacy of comments
+                                that are already on a bug. This is a object,
+                                where the keys are the ``int`` ID of comments
+                                (not their count on a bug, like #1, #2, #3, but
+                                their globally-unique ID, as returned by
+                                :ref:`rest_comments` and the value is a
+                                ``boolean`` which specifies whether that comment
+                                should become private (``true``) or public
+                                (``false``).
+
+                                The comment IDs must be valid for the bug being
+                                updated. Thus, it is not practical to use this
+                                while updating multiple bugs at once, as a single
+                                comment ID will never be valid on multiple bugs.
+component              string   The Component the bug is in.
+deadline               date     The Deadline field is a date specifying when the
+                                bug must be completed by, in the format
+                                ``YYYY-MM-DD``.
+dupe_of                int      The bug that this bug is a duplicate of. If you
+                                want to mark a bug as a duplicate, the safest
+                                thing to do is to set this value and *not* set
+                                the ``status`` or ``resolutio`` fields. They will
+                                automatically be set by Bugzilla to the
+                                appropriate values for duplicate bugs.
+estimated_time         double   The total estimate of time required to fix the
+                                bug, in hours. This is the *total* estimate, not
+                                the amount of time remaining to fix it.
+flags                  array    An array of Flag change objects. The items needed
+                                are described below.
+groups                 object   The groups a bug is in. To modify this field,
+                                pass an object, which may have the following
+                                items:
+
+                                * ``add`` (array) The names of groups to add.
+                                  Passing in an invalid group name or a group
+                                  that you cannot add to this bug will cause an
+                                  error to be thrown.
+                                * ``remove`` (array) The names of groups to
+                                  remove. Passing in an invalid group name or a
+                                  group that you cannot remove from this bug
+                                  will cause an error to be thrown.
+keywords               object   Keywords on the bug. To modify this field, pass
+                                an object, which may have the following items:
+
+                                * ``add`` (array) The names of keywords to add
+                                  to the field on the bug. Passing something that
+                                  isn't a valid keyword name will cause an error
+                                  to be thrown.
+                                * ``remove`` (array) The names of keywords to
+                                  remove from the field on the bug. Passing
+                                  something that isn't a valid keyword name will
+                                  cause an error to be thrown.
+                                * ``set`` (array) An exact set of keywords to set
+                                  the field to, on the bug. Passing something
+                                  that isn't a valid keyword name will cause an
+                                  error to be thrown. Specifying ``set``
+                                  overrides ``add`` and ``remove``.
+op_sys                 string   The Operating System (&quot;OS&quot;) field on the bug.
+platform               string   The Platform or &quot;Hardware&quot; field on the bug.
+priority               string   The Priority field on the bug.
+product                string   The name of the product that the bug is in. If
+                                you change this, you will probably also want to
+                                change ``target_milestone``, ``version``, and
+                                ``component``, since those have different legal
+                                values in every product.
+
+                                If you cannot change the ``target_milestone``
+                                field, it will be reset to the default for the
+                                product, when you move a bug to a new product.
+
+                                You may also wish to add or remove groups, as
+                                which groups are
+                                valid on a bug depends on the product. Groups
+                                that are not valid in the new product will be
+                                automatically removed, and groups which are
+                                mandatory in the new product will be automaticaly
+                                added, but no other automatic group changes will
+                                be done.
+
+                                .. note::
+                                   Users can only move a bug into a product if
+                                   they would normally have permission to file
+                                   new bugs in that product.
+qa_contact             string   The full login name of the bug's QA Contact.
+is_creator_accessible  boolean  Whether or not the bug's reporter is allowed
+                                to access the bug, even if they aren't in a group
+                                that can normally access the bug.
+remaining_time         double   How much work time is remaining to fix the bug,
+                                in hours. If you set ``work_time`` but don't
+                                explicitly set ``remaining_time``, then the
+                                ``work_time`` will be deducted from the bug's
+                                ``remaining_time``.
+reset_assigned_to      boolean  If true, the ``assigned_to`` field will be
+                                reset to the default for the component that the
+                                bug is in. (If you have set the component at the
+                                same time as using this, then the component used
+                                will be the new component, not the old one.)
+reset_qa_contact       boolean  If true, the ``qa_contact`` field will be reset
+                                to the default for the component that the bug is
+                                in. (If you have set the component at the same
+                                time as using this, then the component used will
+                                be the new component, not the old one.)
+resolution             string   The current resolution. May only be set if you
+                                are closing a bug or if you are modifying an
+                                already-closed bug. Attempting to set the
+                                resolution to *any* value (even an empty or null
+                                string) on an open bug will cause an error to be
+                                thrown.
+
+                                .. note::
+                                   If you change the ``status`` field to an open
+                                   status, the resolution field will automatically
+                                   be cleared, so you don't have to clear it
+                                   manually.
+see_also               object   The See Also field on a bug, specifying URLs to
+                                bugs in other bug trackers. To modify this field,
+                                pass an object, which may have the following
+                                items:
+
+                                * ``add`` (array) URLs to add to the field. Each
+                                  URL must be a valid URL to a bug-tracker, or
+                                  an error will be thrown.
+                                * ``remove`` (array) URLs to remove from the
+                                  field. Invalid URLs will be ignored.
+severity               string   The Severity field of a bug.
+status                 string   The status you want to change the bug to. Note
+                                that if a bug is changing from open to closed,
+                                you should also specify a ``resolution``.
+summary                string   The Summary field of the bug.
+target_milestone       string   The bug's Target Milestone.
+url                    string   The &quot;URL&quot; field of a bug.
+version                string   The bug's Version field.
+whiteboard             string   The Status Whiteboard field of a bug.
+work_time              double   The number of hours worked on this bug as part
+                                of this change.
+                                If you set ``work_time`` but don't explicitly
+                                set ``remaining_time``, then the ``work_time``
+                                will be deducted from the bug's ``remaining_time``.
+=====================  =======  =================================================
+
+You can also set the value of any custom field by passing its name as
+a parameter, and the value to set the field to. For multiple-selection
+fields, the value should be an array of strings.
+
+Flag change object:
+
+The following values can be specified. At least the ``status`` and one of
+``type_id``, ``id``, or ``name`` must be specified. If a ``type_id`` or
+``name`` matches a single currently set flag, the flag will be updated unless
+``new`` is specified.
+
+==========  =======  ============================================================
+name        type     description
+==========  =======  ============================================================
+name        string   The name of the flag that will be created or updated.
+type_id     int      The internal flag type ID that will be created or updated.
+                     You will need to specify the ``type_id`` if more than one
+                     flag type of the same name exists.
+**status**  string   The flags new status (i.e. &quot;?&quot;, &quot;+&quot;, &quot;-&quot; or &quot;X&quot; to clear a
+                     flag).
+requestee   string   The login of the requestee if the flag type is requestable
+                     to a specific user.
+id          int      Use ID to specify the flag to be updated. You will need to
+                     specify the ``id`` if more than one flag is set of the same
+                     name.
+new         boolean  Set to true if you specifically want a new flag to be
+                     created.
+==========  =======  ============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;bugs&quot; : [
+       {
+         &quot;alias&quot; : [],
+         &quot;changes&quot; : {
+           &quot;keywords&quot; : {
+             &quot;added&quot; : &quot;funny, stupid&quot;,
+             &quot;removed&quot; : &quot;&quot;
+           },
+             &quot;status&quot; : {
+               &quot;added&quot; : &quot;IN_PROGRESS&quot;,
+               &quot;removed&quot; : &quot;CONFIRMED&quot;
+           }
+         },
+         &quot;id&quot; : 35,
+         &quot;last_change_time&quot; : &quot;2014-09-29T14:25:35Z&quot;
+       }
+     ]
+   }
+
+``bugs`` (array) This points to an array of objects with the following items:
+
+================  ========  =====================================================
+name              type      description
+================  ========  =====================================================
+id                int       The ID of the bug that was updated.
+alias             array     The aliases of the bug that was updated, if this bug
+                            has any alias.
+last_change_time  datetime  The exact time that this update was done at, for
+                            this bug. If no update was done (that is, no fields
+                            had their values changed and no comment was added)
+                            then this will instead be the last time the bug was
+                            updated.
+changes           object    The changes that were actually done on this bug. The
+                            keys are the names of the fields that were changed,
+                            and the values are an object with two keys:
+
+                            * ``added`` (string) The values that were added to
+                              this field, possibly a comma-and-space-separated
+                              list if multiple values were added.
+                            * ``removed`` (string) The values that were removed
+                              from this field, possibly a
+                              comma-and-space-separated list if multiple values
+                              were removed.
+================  ========  =====================================================
+
+Currently, some fields are not tracked in changes: ``comment``,
+``comment_is_private``, and ``work_time``. This means that they will not
+show up in the return value even if they were successfully updated.
+This may change in a future version of Bugzilla.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1bugzillarst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bugzilla.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bugzilla.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/bugzilla.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,302 @@
</span><ins>+Bugzilla Information
+====================
+
+These methods are used to get general configuration information about this
+Bugzilla instance.
+
+Version
+-------
+
+Returns the current version of Bugzilla. Normally in the format of ``X.X`` or
+``X.X.X``. For example, ``4.4`` for the initial release of a new branch. Or
+``4.4.6`` for a minor release on the same branch.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/version
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;version&quot;: &quot;4.5.5+&quot;
+   }
+
+=======  ======  =========================================
+name     type    description
+=======  ======  =========================================
+version  string  The current version of this Bugzilla
+=======  ======  =========================================
+
+Extensions
+----------
+
+Gets information about the extensions that are currently installed and enabled
+in this Bugzilla.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/extensions
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;extensions&quot;: {
+       &quot;Voting&quot;: {
+         &quot;version&quot;: &quot;4.5.5+&quot;
+       },
+       &quot;BmpConvert&quot;: {
+         &quot;version&quot;: &quot;1.0&quot;
+       }
+     }
+   }
+
+==========  ======  ====================================================
+name        type    description
+==========  ======  ====================================================
+extensions  object  An object containing the extensions enabled as keys.
+                    Each extension object contains the following keys:
+
+                    * ``version`` (string) The version of the extension.
+==========  ======  ====================================================
+
+Timezone
+--------
+
+Returns the timezone in which Bugzilla expects to receive dates and times on the API.
+Currently hard-coded to UTC (&quot;+0000&quot;). This is unlikely to change.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/timezone
+
+.. code-block:: js
+
+   {
+     &quot;timezone&quot;: &quot;+0000&quot;
+   }
+
+**Response**
+
+========  ======  ===============================================================
+name      type    description
+========  ======  ===============================================================
+timezone  string  The timezone offset as a string in (+/-)XXXX (RFC 2822) format.
+========  ======  ===============================================================
+
+Time
+----
+
+Gets information about what time the Bugzilla server thinks it is, and
+what timezone it's running in.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/time
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;web_time_utc&quot;: &quot;2014-09-26T18:01:30Z&quot;,
+     &quot;db_time&quot;: &quot;2014-09-26T18:01:30Z&quot;,
+     &quot;web_time&quot;: &quot;2014-09-26T18:01:30Z&quot;,
+     &quot;tz_offset&quot;: &quot;+0000&quot;,
+     &quot;tz_short_name&quot;: &quot;UTC&quot;,
+     &quot;tz_name&quot;: &quot;UTC&quot;
+   }
+
+=============  ======  ==========================================================
+name           type    description
+=============  ======  ==========================================================
+db_time        string  The current time in UTC, according to the Bugzilla
+                       database server.
+
+                       Note that Bugzilla assumes that the database and the
+                       webserver are running in the same time zone. However,
+                       if the web server and the database server aren't
+                       synchronized or some reason, *this* is the time that
+                       you should rely on or doing searches and other input
+                       to the WebService.
+web_time       string  This is the current time in UTC, according to
+                       Bugzilla's web server.
+
+                       This might be different by a second from ``db_time``
+                       since this comes from a different source. If it's any
+                       more different than a second, then there is likely
+                       some problem with this Bugzilla instance. In this
+                       case you should rely  on the ``db_time``, not the
+                       ``web_time``.
+web_time_utc   string  Identical to ``web_time``. (Exists only for
+                       backwards-compatibility with versions of Bugzilla
+                       before 3.6.)
+tz_name        string  The literal string ``UTC``. (Exists only for
+                       backwards-compatibility with versions of Bugzilla
+                       before 3.6.)
+tz_short_name  string  The literal string ``UTC``. (Exists only for
+                       backwards-compatibility with versions of Bugzilla
+                       before 3.6.)
+tz_offset      string  The literal string ``+0000``. (Exists only for
+                       backwards-compatibility with versions of Bugzilla
+                       before 3.6.)
+=============  ======  ==========================================================
+
+Parameters
+----------
+
+Returns parameter values currently used in this Bugzilla.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/parameters
+
+**Response**
+
+Example response for anonymous user:
+
+.. code-block:: js
+
+   {
+      &quot;parameters&quot; : {
+         &quot;maintainer&quot; : &quot;admin@example.com&quot;,
+         &quot;requirelogin&quot; : &quot;0&quot;
+      }
+   }
+
+Example response for authenticated user:
+
+.. code-block:: js
+
+   {
+      &quot;parameters&quot; : {
+          &quot;allowemailchange&quot; : &quot;1&quot;,
+          &quot;attachment_base&quot; : &quot;http://bugzilla.example.com/&quot;,
+          &quot;commentonchange_resolution&quot; : &quot;0&quot;,
+          &quot;commentonduplicate&quot; : &quot;0&quot;,
+          &quot;cookiepath&quot; : &quot;/&quot;,
+          &quot;createemailregexp&quot; : &quot;.*&quot;,
+          &quot;defaultopsys&quot; : &quot;&quot;,
+          &quot;defaultplatform&quot; : &quot;&quot;,
+          &quot;defaultpriority&quot; : &quot;--&quot;,
+          &quot;defaultseverity&quot; : &quot;normal&quot;,
+          &quot;duplicate_or_move_bug_status&quot; : &quot;RESOLVED&quot;,
+          &quot;emailregexp&quot; : &quot;^[\\w\\.\\+\\-=']+@[\\w\\.\\-]+\\.[\\w\\-]+$&quot;,
+          &quot;emailsuffix&quot; : &quot;&quot;,
+          &quot;letsubmitterchoosemilestone&quot; : &quot;1&quot;,
+          &quot;letsubmitterchoosepriority&quot; : &quot;1&quot;,
+          &quot;mailfrom&quot; : &quot;bugzilla-daemon@example.com&quot;,
+          &quot;maintainer&quot; : &quot;admin@example.com&quot;,
+          &quot;maxattachmentsize&quot; : &quot;1000&quot;,
+          &quot;maxlocalattachment&quot; : &quot;0&quot;,
+          &quot;musthavemilestoneonaccept&quot; : &quot;0&quot;,
+          &quot;noresolveonopenblockers&quot; : &quot;0&quot;,
+          &quot;password_complexity&quot; : &quot;no_constraints&quot;,
+          &quot;rememberlogin&quot; : &quot;on&quot;,
+          &quot;requirelogin&quot; : &quot;0&quot;,
+          &quot;urlbase&quot; : &quot;http://bugzilla.example.com/&quot;,
+          &quot;use_see_also&quot; : &quot;1&quot;,
+          &quot;useclassification&quot; : &quot;1&quot;,
+          &quot;usemenuforusers&quot; : &quot;0&quot;,
+          &quot;useqacontact&quot; : &quot;1&quot;,
+          &quot;usestatuswhiteboard&quot; : &quot;1&quot;,
+          &quot;usetargetmilestone&quot; : &quot;1&quot;,
+      }
+   }
+
+A logged-out user can only access the ``maintainer`` and ``requirelogin``
+parameters.
+
+A logged-in user can access the following parameters (listed alphabetically):
+
+* allowemailchange
+* attachment_base
+* commentonchange_resolution
+* commentonduplicate
+* cookiepath
+* defaultopsys
+* defaultplatform
+* defaultpriority
+* defaultseverity
+* duplicate_or_move_bug_status
+* emailregexpdesc
+* emailsuffix
+* letsubmitterchoosemilestone
+* letsubmitterchoosepriority
+* mailfrom
+* maintainer
+* maxattachmentsize
+* maxlocalattachment
+* musthavemilestoneonaccept
+* noresolveonopenblockers
+* password_complexity
+* rememberlogin
+* requirelogin
+* search_allow_no_criteria
+* urlbase
+* use_see_also
+* useclassification
+* usemenuforusers
+* useqacontact
+* usestatuswhiteboard
+* usetargetmilestone
+
+A user in the tweakparams group can access all existing parameters.
+New parameters can appear or obsolete parameters can disappear depending
+on the version of Bugzilla and on extensions being installed.
+The list of parameters returned by this method is not stable and will
+never be stable.
+
+Last Audit Time
+---------------
+
+Gets the most recent timestamp among all of the events recorded in the audit_log
+table.
+
+**Request**
+
+To get most recent audit timestamp for all classes:
+
+.. code-block:: text
+
+   GET /rest/last_audit_time
+
+To get the the most recent audit timestamp for the ``Bugzilla::Product`` class:
+
+.. code-block:: text
+
+   GET /rest/last_audit_time?class=Bugzilla::Product
+
+=====  =====  ===================================================================
+name   type   description
+=====  =====  ===================================================================
+class  array  The class names are defined as ``Bugzilla::&lt;class_name&gt;&quot;`` such as
+              Bugzilla:Product`` for products.
+=====  =====  ===================================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;last_audit_time&quot;: &quot;2014-09-23T18:03:38Z&quot;
+   }
+
+===============  ======  ====================================================
+name             type    description
+===============  ======  ====================================================
+last_audit_time  string  The maximum of the at_time from the audit_log.
+===============  ======  ====================================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1classificationrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/classification.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/classification.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/classification.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+Classifications
+===============
+
+This part of the Bugzilla API allows you to deal with the available
+classifications. You will be able to get information about them as well as
+manipulate them.
+
+.. _rest_get_classification:
+
+Get Classification
+------------------
+
+Returns an object containing information about a set of classifications.
+
+**Request**
+
+To return information on a single classification using the ID or name:
+
+.. code-block:: text
+
+   GET /rest/classification/(id_or_name)
+
+==============  =====  =====================================
+name            type   description
+==============  =====  =====================================
+**id_or_name**  mixed  An Integer classification ID or name.
+==============  =====  =====================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;classifications&quot;: [
+       {
+         &quot;sort_key&quot;: 0,
+         &quot;description&quot;: &quot;Unassigned to any classifications&quot;,
+         &quot;products&quot;: [
+           {
+             &quot;id&quot;: 2,
+             &quot;name&quot;: &quot;FoodReplicator&quot;,
+             &quot;description&quot;: &quot;Software that controls a piece of hardware that will create any food item through a voice interface.&quot;
+           },
+           {
+             &quot;description&quot;: &quot;Silk, etc.&quot;,
+             &quot;name&quot;: &quot;Spider Secretions&quot;,
+             &quot;id&quot;: 4
+           }
+         ],
+         &quot;id&quot;: 1,
+         &quot;name&quot;: &quot;Unclassified&quot;
+       }
+     ]
+   }
+
+``classifications`` (array) Each object is a classification that the user is
+authorized to see and has the following items:
+
+===========  ======  ============================================================
+name         type    description
+===========  ======  ============================================================
+id           int     The ID of the classification.
+name         string  The name of the classification.
+description  string  The description of the classificaion.
+sort_key     int     The value which determines the order the classification is
+                     sorted.
+products     array   Products the user is authorized to
+                     access within the classification. Each hash has the
+                     following keys:
+===========  ======  ============================================================
+
+Product object:
+
+===========  ======  ================================
+name         type    description
+===========  ======  ================================
+name         string  The name of the product.
+id           int     The ID of the product.
+description  string  The description of the product.
+===========  ======  ================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1commentrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/comment.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/comment.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/comment.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,237 @@
</span><ins>+Comments
+========
+
+.. _rest_comments:
+
+Get Comments
+------------
+
+This allows you to get data about comments, given a bug ID or comment ID.
+
+**Request**
+
+To get all comments for a particular bug using the bug ID or alias:
+
+.. code-block:: text
+
+   GET /rest/bug/(id_or_alias)/comment
+
+To get a specific comment based on the comment ID:
+
+.. code-block:: text
+
+   GET /rest/bug/comment/(comment_id)
+
+===============  ========  ======================================================
+name             type      description
+===============  ========  ======================================================
+**id_or_alias**  mixed     A single integer bug ID or alias.
+**comment_id**   int       A single integer comment ID.
+new_since        datetime  If specified, the method will only return comments
+                           *newer* than this time. This only affects comments
+                           returned from the ``ids`` argument. You will always be
+                           returned all comments you request in the
+                           ``comment_ids`` argument, even if they are older than
+                           this date.
+===============  ========  ======================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;bugs&quot;: {
+       &quot;35&quot;: {
+         &quot;comments&quot;: [
+           {
+             &quot;time&quot;: &quot;2000-07-25T13:50:04Z&quot;,
+             &quot;text&quot;: &quot;test bug to fix problem in removing from cc list.&quot;,
+             &quot;bug_id&quot;: 35,
+             &quot;count&quot;: 0,
+             &quot;attachment_id&quot;: null,
+             &quot;is_private&quot;: false,
+             &quot;tags&quot;: [],
+             &quot;creator&quot;: &quot;user@bugzilla.org&quot;,
+             &quot;creation_time&quot;: &quot;2000-07-25T13:50:04Z&quot;,
+             &quot;id&quot;: 75
+           }
+         ]
+       }
+     },
+     &quot;comments&quot;: {}
+   }
+
+Two items are returned:
+
+``bugs`` This is used for bugs specified in ``ids``. This is an object,
+where the keys are the numeric IDs of the bugs, and the value is
+a object with a single key, ``comments``, which is an array of comments.
+(The format of comments is described below.)
+
+Any individual bug will only be returned once, so if you specify an ID
+multiple times in ``ids``, it will still only be returned once.
+
+``comments`` Each individual comment requested in ``comment_ids`` is
+returned here, in a object where the numeric comment ID is the key,
+and the value is the comment. (The format of comments is described below.)
+
+A &quot;comment&quot; as described above is a object that contains the following items:
+
+=============  ========  ========================================================
+name           type      description
+=============  ========  ========================================================
+id             int       The globally unique ID for the comment.
+bug_id         int       The ID of the bug that this comment is on.
+attachment_id  int       If the comment was made on an attachment, this will be
+                         the ID of that attachment. Otherwise it will be null.
+count          int       The number of the comment local to the bug. The
+                         Description is 0, comments start with 1.
+text           string    The actual text of the comment.
+creator        string    The login name of the comment's author.
+time           datetime  The time (in Bugzilla's timezone) that the comment was
+                         added.
+creation_time  datetime  This is exactly same as the ``time`` key. Use this
+                         field instead of ``time`` for consistency with other
+                         methods including :ref:`rest_single_bug` and
+                         :ref:`rest_attachments`.
+
+                         For compatibility, ``time`` is still usable. However,
+                         please note that ``time`` may be deprecated and removed
+                         in a future release.
+
+is_private     boolean   ``true`` if this comment is private (only visible to a
+                         certain group called the &quot;insidergroup&quot;), ``false``
+                         otherwise.
+=============  ========  ========================================================
+
+.. _rest_add_comment:
+
+Create Comments
+---------------
+
+This allows you to add a comment to a bug in Bugzilla.
+
+**Request**
+
+To create a comment on a current bug.
+
+.. code-block:: text
+
+   POST /rest/bug/(id)/comment
+
+.. code-block:: js
+
+   {
+     &quot;comment&quot; : &quot;This is an additional comment&quot;,
+     &quot;is_private&quot; : false
+   }
+
+===========  =======  ===========================================================
+name         type     description
+===========  =======  ===========================================================
+**id**       int      The ID or alias of the bug to append a comment to.
+**comment**  string   The comment to append to the bug. If this is empty
+                      or all whitespace, an error will be thrown saying that you
+                      did not set the ``comment`` parameter.
+is_private   boolean  If set to true, the comment is private, otherwise it is
+                      assumed to be public.
+work_time    double   Adds this many hours to the &quot;Hours Worked&quot; on the bug.
+                      If you are not in the time tracking group, this value will
+                      be ignored.
+===========  =======  ===========================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot; : 789
+   }
+
+====  ====  =================================
+name  type  description
+====  ====  =================================
+id    int   ID of the newly-created comment.
+====  ====  =================================
+
+.. _rest_search_comment_tags:
+
+Search Comment Tags
+-------------------
+
+Searches for tags which contain the provided substring.
+
+**Request**
+
+To search for comment tags:
+
+.. code-block:: text
+
+   GET /rest/bug/comment/tags/(query)
+
+Example:
+
+.. code-block:: text
+
+   GET /rest/bug/comment/tags/spa
+
+=========  ======  ====================================================
+name       type    description
+=========  ======  ====================================================
+**query**  string  Only tags containg this substring will be returned.
+limit      int     If provided will return no more than ``limit`` tags.
+                   Defaults to ``10``.
+=========  ======  ====================================================
+
+**Response**
+
+.. code-block:: js
+
+   [
+     &quot;spam&quot;
+   ]
+
+An array of matching tags.
+
+.. _rest_update_comment_tags:
+
+Update Comment Tags
+-------------------
+
+Adds or removes tags from a comment.
+
+**Request**
+
+To update the tags comments attached to a comment:
+
+.. code-block:: text
+
+   PUT /rest/bug/comment/(comment_id)/tags
+
+Example:
+
+.. code-block:: js
+
+   {
+     &quot;comment_id&quot; : 75,
+     &quot;add&quot; : [&quot;spam&quot;, &quot;bad&quot;]
+   }
+
+==============  =====  ====================================
+name            type   description
+==============  =====  ====================================
+**comment_id**  int    The ID of the comment to update.
+add             array  The tags to attach to the comment.
+remove          array  The tags to detach from the comment.
+==============  =====  ====================================
+
+**Response**
+
+.. code-block:: js
+
+   [
+     &quot;bad&quot;,
+     &quot;spam&quot;
+   ]
+
+An array of strings containing the comment's updated tags.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1componentrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/component.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/component.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/component.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+Components
+==========
+
+This part of the Bugzilla API allows you to deal with the available product
+components. You will be able to get information about them as well as manipulate
+them.
+
+Create Component
+----------------
+
+This allows you to create a new component in Bugzilla. You must be authenticated
+and be in the *editcomponents* group to perform this action.
+
+**Request**
+
+To create a new component:
+
+.. code-block:: text
+
+   POST /rest/component
+
+.. code-block:: js
+
+   {
+     &quot;product&quot; : &quot;TestProduct&quot;,
+     &quot;name&quot; : &quot;New Component&quot;,
+     &quot;description&quot; : &quot;This is a new component&quot;,
+     &quot;default_assignee&quot; : &quot;dkl@mozilla.com&quot;
+   }
+
+Some params must be set, or an error will be thrown. These params are
+shown in **bold**.
+
+====================  =======  ==================================================
+name                  type     description
+====================  =======  ==================================================
+**name**              string   The name of the new component.
+**product**           string   The name of the product that the component must
+                               be added to. This product must already exist, and
+                               the user have the necessary permissions to edit
+                               components for it.
+**description**       string   The description of the new component.
+**default_assignee**  string   The login name of the default assignee of the
+                               component.
+default_cc            array    Each string representing one login name of the
+                               default CC list.
+default_qa_contact    string   The login name of the default QA contact for the
+                               component.
+is_open               boolean  1 if you want to enable the component for bug
+                               creations. 0 otherwise. Default is 1.
+====================  =======  ==================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot;: 27
+   }
+
+====  ====  ========================================
+name  type  description
+====  ====  ========================================
+id    int   The ID of the newly-added component.
+====  ====  ========================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1fieldrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/field.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/field.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/field.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,240 @@
</span><ins>+Bug Fields
+==========
+
+The Bugzilla API for getting details about bug fields.
+
+.. _rest_fields:
+
+Fields
+------
+
+Get information about valid bug fields, including the lists of legal values
+for each field.
+
+**Request**
+
+To get information about all fields:
+
+.. code-block:: text
+
+   GET /rest/field/bug
+
+To get information related to a single field:
+
+.. code-block:: text
+
+   GET /rest/field/bug/(id_or_name)
+
+==========  =====  ==========================================================
+name        type   description
+==========  =====  ==========================================================
+id_or_name  mixed  An integer field ID or string representing the field name.
+==========  =====  ==========================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;fields&quot;: [
+       {
+         &quot;display_name&quot;: &quot;Priority&quot;,
+         &quot;name&quot;: &quot;priority&quot;,
+         &quot;type&quot;: 2,
+         &quot;is_mandatory&quot;: false,
+         &quot;value_field&quot;: null,
+         &quot;values&quot;: [
+           {
+             &quot;sortkey&quot;: 100,
+             &quot;sort_key&quot;: 100,
+             &quot;visibility_values&quot;: [],
+             &quot;name&quot;: &quot;P1&quot;
+           },
+           {
+             &quot;sort_key&quot;: 200,
+             &quot;name&quot;: &quot;P2&quot;,
+             &quot;visibility_values&quot;: [],
+             &quot;sortkey&quot;: 200
+           },
+           {
+             &quot;sort_key&quot;: 300,
+             &quot;visibility_values&quot;: [],
+             &quot;name&quot;: &quot;P3&quot;,
+             &quot;sortkey&quot;: 300
+           },
+           {
+             &quot;sort_key&quot;: 400,
+             &quot;name&quot;: &quot;P4&quot;,
+             &quot;visibility_values&quot;: [],
+             &quot;sortkey&quot;: 400
+           },
+           {
+             &quot;name&quot;: &quot;P5&quot;,
+             &quot;visibility_values&quot;: [],
+             &quot;sort_key&quot;: 500,
+             &quot;sortkey&quot;: 500
+           }
+         ],
+         &quot;visibility_values&quot;: [],
+         &quot;visibility_field&quot;: null,
+         &quot;is_on_bug_entry&quot;: false,
+         &quot;is_custom&quot;: false,
+         &quot;id&quot;: 13
+       }
+     ]
+   }
+
+``field`` (array) Field objects each containing the following items:
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+id                 int      An integer ID uniquely identifying this field in this
+                            installation only.
+type               int      The number of the fieldtype. The following values are
+                            defined:
+
+                            * ``0`` Field type unknown
+                            * ``1`` Single-line string field
+                            * ``2`` Single value field
+                            * ``3`` Multiple value field
+                            * ``4`` Multi-line text value
+                            * ``5`` Date field with time
+                            * ``6`` Bug ID field
+                            * ``7`` See Also field
+                            * ``8`` Keywords field
+                            * ``9`` Date field
+                            * ``10`` Integer field
+
+is_custom          boolean  ``true`` when this is a custom field, ``false``
+                            otherwise.
+name               string   The internal name of this field. This is a unique
+                            identifier for this field. If this is not a custom
+                            field, then this name will be the same across all
+                            Bugzilla installations.
+display_name       string   The name of the field, as it is shown in the user
+                            interface.
+is_mandatory       boolean  ``true`` if the field must have a value when filing
+                            new bugs. Also, mandatory fields cannot have their
+                            value cleared when updating bugs.
+is_on_bug_entry    boolean  For custom fields, this is ``true`` if the field is
+                            shown when you enter a new bug. For standard fields,
+                            this is currently always ``false``, even if the field
+                            shows up when entering a bug. (To know whether or not
+                            a standard field is valid on bug entry, see
+                            :ref:`rest_create_bug`.
+visibility_field   string   The name of a field that controls the visibility of
+                            this field in the user interface. This field only
+                            appears in the user interface when the named field is
+                            equal to one of the values is ``visibility_values``.
+                            Can be null.
+visibility_values  array    This field is only shown when ``visibility_field``
+                            matches one of these string values. When
+                            ``visibility_field`` is null, then this is an empty
+                            array.
+value_field        string   The name of the field that controls whether or not
+                            particular values of the field are shown in the user
+                            interface. Can be null.
+values             array    Objects representing the legal values for
+                            select-type (drop-down and multiple-selection)
+                            fields. This is  also populated for the
+                            ``component``, ``version``, ``target_milestone``,
+                            and ``keywords`` fields, but not for the ``product``
+                            field (you must use ``get_accessible_products`` for
+                            that). For fields that aren't select-type fields,
+                            this will simply be an empty array. Each object
+                            contains the items described in the Value object
+                            below.
+=================  =======  =====================================================
+
+Value object:
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+name               string   The actual value--this is what you would specify for
+                            this field in ``create``, etc.
+sort_key           int      Values, when displayed in a list, are sorted first by
+                            this integer and then secondly by their name.
+visibility_values  array    If ``value_field`` is defined for this field, then
+                            this value is only shown if the ``value_field`` is
+                            set to one of the values listed in this array. Note
+                            that for per-product fields, ``value_field`` is set
+                            to ``product`` and ``visibility_values`` will reflect
+                            which product(s) this value appears in.
+is_active          boolean  This value is defined only for certain
+                            product-specific fields such as version,
+                            target_milestone or component. When true, the value
+                            is active; otherwise the value is not active.
+description        string   The description of the value. This item is only
+                            included for the ``keywords`` field.
+is_open            boolean  For ``bug_status`` values, determines whether this
+                            status specifies that the bug is &quot;open&quot; (``true``)
+                            or &quot;closed&quot; (``false``). This item is only included
+                            for the ``bug_status`` field.
+can_change_to      array    For ``bug_status`` values, this is an array of
+                            objects that determine which statuses you can
+                            transition to from this status. (This item is only
+                            included for the ``bug_status`` field.)
+
+                            Each object contains the following items:
+
+                            * name: (string) The name of the new status
+                            * comment_required: (boolean) ``true`` if a comment
+                              is required when you change a bug into this status
+                              using this transition.
+=================  =======  =====================================================
+
+.. _rest_legal_values:
+
+Legal Values
+------------
+
+**DEPRECATED** Use ''Fields'' instead.
+
+Tells you what values are allowed for a particular field.
+
+**Request**
+
+To get information on the values for a field based on field name:
+
+.. code-block:: text
+
+   GET /rest/field/bug/(field)/values
+
+To get information based on field name and a specific product:
+
+.. code-block:: text
+
+   GET /rest/field/bug/(field)/(product_id)/values
+
+==========  ======  =============================================================
+name        type    description
+==========  ======  =============================================================
+field       string  The name of the field you want information about.
+                    This should be the same as the name you would use in
+                    :ref:`rest_create_bug`, below.
+product_id  int     If you're picking a product-specific field, you have to
+                    specify the ID of the product you want the values for.
+==========  ======  =============================================================
+
+**Resppnse**
+
+.. code-block:: js
+
+   {
+     &quot;values&quot;: [
+       &quot;P1&quot;,
+       &quot;P2&quot;,
+       &quot;P3&quot;,
+       &quot;P4&quot;,
+       &quot;P5&quot;
+     ]
+   }
+
+==========  ======  =============================================================
+name        type    description
+==========  ======  =============================================================
+values      array   The legal values for this field. The values will be sorted
+                    as they normally would be in Bugzilla.
+==========  ======  =============================================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1flagtyperst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/flagtype.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/flagtype.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/flagtype.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,373 @@
</span><ins>+Flag Types
+==========
+
+This part of the Bugzilla API allows you to get and create bug and attachment
+flags.
+
+.. _rest_flagtype_get:
+
+Get Flag Type
+-------------
+
+Get information about valid flag types that can be set for bugs and attachments.
+
+**Request**
+
+To get information about all flag types for a product:
+
+.. code-block:: text
+
+   GET /rest/flag_type/(product)
+
+To get information about flag_types for a product and component:
+
+.. code-block:: text
+
+   GET /rest/flag_type/(product)/(component)
+
+.. code-block:: js
+
+   {
+     &quot;bug&quot;: [
+       {
+         &quot;is_multiplicable&quot;: false,
+         &quot;is_requesteeble&quot;: false,
+         &quot;values&quot;: [
+           &quot;X&quot;,
+           &quot;?&quot;,
+           &quot;+&quot;,
+           &quot;-&quot;
+         ],
+         &quot;id&quot;: 11,
+         &quot;type&quot;: &quot;bug&quot;,
+         &quot;is_active&quot;: true,
+         &quot;description&quot;: &quot;Blocks the next release&quot;,
+         &quot;name&quot;: &quot;blocker&quot;
+       },
+       {
+         &quot;is_requesteeble&quot;: false,
+         &quot;is_multiplicable&quot;: false,
+         &quot;is_active&quot;: true,
+         &quot;description&quot;: &quot;Regression found?&quot;,
+         &quot;name&quot;: &quot;regression&quot;,
+         &quot;id&quot;: 10,
+         &quot;type&quot;: &quot;bug&quot;,
+         &quot;values&quot;: [
+           &quot;X&quot;,
+           &quot;?&quot;,
+           &quot;+&quot;,
+           &quot;-&quot;
+         ]
+       },
+     ],
+     &quot;attachment&quot;: [
+       {
+         &quot;is_requesteeble&quot;: true,
+         &quot;is_multiplicable&quot;: true,
+         &quot;name&quot;: &quot;review&quot;,
+         &quot;is_active&quot;: true,
+         &quot;description&quot;: &quot;Review the patch for correctness and applicability to the problem.&quot;,
+         &quot;type&quot;: &quot;attachment&quot;,
+         &quot;id&quot;: 1,
+         &quot;values&quot;: [
+           &quot;X&quot;,
+           &quot;?&quot;,
+           &quot;+&quot;,
+           &quot;-&quot;
+         ]
+       },
+       {
+         &quot;name&quot;: &quot;approval&quot;,
+         &quot;description&quot;: &quot;Approve the patch for check-in to the tree.&quot;,
+         &quot;is_active&quot;: true,
+         &quot;values&quot;: [
+           &quot;X&quot;,
+           &quot;?&quot;,
+           &quot;+&quot;,
+           &quot;-&quot;
+         ],
+         &quot;type&quot;: &quot;attachment&quot;,
+         &quot;id&quot;: 3,
+         &quot;is_multiplicable&quot;: false,
+         &quot;is_requesteeble&quot;: false
+       }
+     ]
+   }
+
+You must pass a product name and an optional component name. If the product or
+component names contains a ``/`` character, up will need to url encode it.
+
+===========  ======  ============================================================
+name         type    description
+===========  ======  ============================================================
+**product**  string  The name of a valid product.
+component    string  An optional valid component name associated with the
+                     product.
+===========  ======  ============================================================
+
+**Response**
+
+An object containing two items, ``bug`` and ``attachment``. Each value is an
+array of objects, containing the following items:
+
+================  =======  ======================================================
+name              type     description
+================  =======  ======================================================
+id                int      An integer ID uniquely identifying this flag type.
+name              string   The name for the flag type.
+type              string   The target of the flag type which is either ``bug``
+                           or ``attachment``.
+description       string   The description of the flag type.
+values            array    String values that the user can set on the flag type.
+is_requesteeble   boolean  Users can ask specific other users to set flags of
+                           this type.
+is_multiplicable  boolean  Multiple flags of this type can be set for the same
+                           bug or attachment.
+================  =======  ======================================================
+
+Create Flag Type
+----------------
+
+Create a new flag type. You must be authenticated and be in the *editcomponents*
+group to perform this action.
+
+**Request**
+
+.. code-block:: text
+
+   POST /rest/flag_type
+
+.. code-block:: js
+
+   {
+     &quot;name&quot; : &quot;feedback&quot;,
+     &quot;description&quot; : &quot;This attachment needs feedback&quot;,
+     &quot;inclusions&quot; : [ &quot;WorldControl &quot;],
+     &quot;target_type&quot; : &quot;attachment&quot;
+   }
+
+Some params must be set, or an error will be thrown. The required params are
+marked in **bold**.
+
+===========================  =======  ===========================================
+name                         type     description
+===========================  =======  ===========================================
+**name**                     string   The name of the new flag type.
+**description**              string   A description for the flag type.
+target_type                  string   The new flag is either for a ``bug`` or an
+                                      ``attachment``.
+inclusions                   array    An array of strings or an object containing
+                                      product names, and optionally component
+                                      names. If you provide a string, the flag
+                                      type will be shown on all bugs in that
+                                      product. If you provide an object, the key
+                                      represents the product name, and the value
+                                      is the components of the product to be
+                                      included.
+exclusions                   array    An array of strings or an object containing
+                                      product names. This uses the same format as
+                                      ``inclusions``. This will exclude the flag
+                                      from all products and components specified.
+sortkey                      int      A number between 1 and 32767 by which this
+                                      type will be sorted when displayed to users
+                                      in a list; ignore if you don't care what
+                                      order the types appear in or if you want
+                                      them to appear in alphabetical order.
+is_active                    boolean  Flag of this type appear in the UI and can
+                                      be set. Default is ``true``.
+is_requestable               boolean  Users can ask for flags of this type to be
+                                      set. Default is ``true``.
+cc_list                      array    If the flag type is requestable, who should
+                                      receive e-mail notification of requests.
+                                      This is an array of e-mail addresses which\
+                                      do not need to be Bugzilla logins.
+is_specifically_requestable  boolean  Users can ask specific other users to
+                                      set flags of this type as opposed to just
+                                      asking the wind. Default is ``true``.
+is_multiplicable             boolean  Multiple flags of this type can be set on
+                                      the same bug. Default is ``true``.
+grant_group                  string   The group allowed to grant/deny flags of
+                                      this type (to allow all users to grant/deny
+                                      these flags, select no group). Default is
+                                      no group.
+request_group                string   If flags of this type are requestable, the
+                                      group allowed to request them (to allow all
+                                      users to request these flags, select no
+                                      group). Note that the request group alone
+                                      has no effect if the grant group is not
+                                      defined! Default is no group.
+===========================  =======  ===========================================
+
+An example for ``inclusions`` and/or ``exclusions``:
+
+.. code-block:: js
+
+   [
+     &quot;FooProduct&quot;
+   ]
+
+   {
+     &quot;BarProduct&quot; : [ &quot;C1&quot;, &quot;C3&quot; ],
+     &quot;BazProduct&quot; : [ &quot;C7&quot; ]
+   }
+
+This flag will be added to **all** components of ``FooProduct``, components C1
+and C3 of ``BarProduct``, and C7 of ``BazProduct``.
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot;: 13
+   }
+
+=======  ====  ==============================================
+name     type  description
+=======  ====  ==============================================
+flag_id  int   ID of the new FlagType object is returned.
+=======  ====  ==============================================
+
+.. _rest_flagtype_update:
+
+Update Flag Type
+----------------
+
+This allows you to update a flag type in Bugzilla. You must be authenticated
+and be in the *editcomponents* group to perform this action.
+
+**Request**
+
+.. code-block:: text
+
+   PUT /rest/flag_type/(id_or_name)
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [13],
+     &quot;name&quot; : &quot;feedback-new&quot;,
+     &quot;is_requestable&quot; : false
+   }
+
+You can edit a single flag type by passing the ID or name of the flag type
+in the URL. To edit more than one flag type, you can specify addition IDs or
+flag type names using the ``ids`` or ``names`` parameters respectively.
+
+One of the below must be specified.
+
+==============  =====  ==========================================================
+name            type   description
+==============  =====  ==========================================================
+**id_or_name**  mixed  Integer flag type ID or name.
+**ids**         array  Numeric IDs of the flag types that you wish to update.
+**names**       array  Names of the flag types that you wish to update. If many
+                       flag types have the same name, this will change **all**
+                       of them.
+==============  =====  ==========================================================
+
+The following parameters specify the new values you want to set for the flag
+types you are updating.
+
+===========================  =======  ===========================================
+name                         type     description
+===========================  =======  ===========================================
+name                         string   A short name identifying this type.
+description                  string   A comprehensive description of this type.
+inclusions                   array    An array of strings or an object containing
+                                      product names, and optionally component
+                                      names. If you provide a string, the flag
+                                      type will be shown on all bugs in that
+                                      product. If you provide an object, the key
+                                      represents the product name, and the value
+                                      is the components of the product to be
+                                      included.
+exclusions                   array    An array of strings or an object containing
+                                      product names. This uses the same format as
+                                      ``inclusions``. This will exclude the flag
+                                      from all products and components specified.
+sortkey                      int      A number between 1 and 32767 by which this
+                                      type will be sorted when displayed to users
+                                      in a list; ignore if you don't care what
+                                      order the types appear in or if you want
+                                      them to appear in alphabetical order.
+is_active                    boolean  Flag of this type appear in the UI and can
+                                      be set.
+is_requestable               boolean  Users can ask for flags of this type to be
+                                      set.
+cc_list                      array    If the flag type is requestable, who should
+                                      receive e-mail notification of requests.
+                                      This is an array of e-mail addresses
+                                      which do not need to be Bugzilla logins.
+is_specifically_requestable  boolean  Users can ask specific other users to set
+                                      flags of this type as opposed to just
+                                      asking the wind.
+is_multiplicable             boolean  Multiple flags of this type can be set on
+                                      the same bug.
+grant_group                  string   The group allowed to grant/deny flags of
+                                      this type (to allow all users to grant/deny
+                                      these flags, select no group).
+request_group                string   If flags of this type are requestable, the
+                                      group allowed to request them (to allow all
+                                      users to request these flags, select no
+                                      group). Note that the request group alone
+                                      has no effect if the grant group is not
+                                      defined!
+===========================  =======  ===========================================
+
+An example for ``inclusions`` and/or ``exclusions``:
+
+.. code-block:: js
+
+   [
+     &quot;FooProduct&quot;,
+   ]
+
+   {
+     &quot;BarProduct&quot; : [ &quot;C1&quot;, &quot;C3&quot; ],
+     &quot;BazProduct&quot; : [ &quot;C7&quot; ]
+   }
+
+This flag will be added to **all** components of ``FooProduct``,
+components C1 and C3 of ``BarProduct``, and C7 of ``BazProduct``.
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;flagtypes&quot;: [
+       {
+         &quot;name&quot;: &quot;feedback-new&quot;,
+         &quot;changes&quot;: {
+           &quot;is_requestable&quot;: {
+             &quot;added&quot;: &quot;0&quot;,
+             &quot;removed&quot;: &quot;1&quot;
+           },
+           &quot;name&quot;: {
+             &quot;removed&quot;: &quot;feedback&quot;,
+             &quot;added&quot;: &quot;feedback-new&quot;
+           }
+         },
+         &quot;id&quot;: 13
+       }
+     ]
+   }
+
+``flagtypes`` (array) Flag change objects containing the following items:
+
+=======  ======  ================================================================
+name     type    description
+=======  ======  ================================================================
+id       int     The ID of the flag type that was updated.
+name     string  The name of the flag type that was updated.
+changes  object  The changes that were actually done on this flag type.
+                 The keys are the names of the fields that were changed, and the
+                 values are an object with two items:
+
+                 * added: (string) The value that this field was changed to.
+                 * removed: (string) The value that was previously set in this
+                   field.
+=======  ======  ================================================================
+
+Booleans changes will be represented with the strings '1' and '0'.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1generalrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/general.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/general.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/general.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,255 @@
</span><ins>+General
+=======
+
+This is the standard REST API for external programs that want to interact
+with Bugzilla. It provides a REST interface to various Bugzilla functions.
+
+Basic Information
+-----------------
+
+**Browsing**
+
+If the ``Accept`` header of a request is set to ``text/html`` (as it is by an
+ordinary web browser) then the API will return the JSON data as a HTML
+page which the browser can display. In other words, you can play with the
+API using just your browser to see results in a human-readable form.
+This is a good way to try out the various GET calls, even if you can't use
+it for POST or PUT.
+
+**Data Format**
+
+The REST API only supports JSON input, and either JSON or JSONP output.
+So objects sent and received must be in JSON format.
+
+On every request, you must set both the ``Accept`` and ``Content-Type`` HTTP
+headers to the MIME type of the data format you are using to communicate with
+the API. ``Content-Type`` tells the API how to interpret your request, and
+``Accept`` tells it how you want your data back. ``Content-Type`` must be
+``application/json``. ``Accept`` can be either that, or
+``application/javascript`` for JSONP. In the latter`case, add a ``callback``
+parameter to name your callback.
+
+Parameters may also be passed in as part of the query string for non-GET
+requests and will override any matching parameters in the request body.
+
+Example request which returns the current version of Bugzilla:
+
+.. code-block:: http
+
+   GET /rest/version HTTP/1.1
+   Host: bugzilla.example.com
+   Accept: application/json
+
+Example response:
+
+.. code-block:: http
+
+   HTTP/1.1 200 OK
+   Vary: Accept
+   Content-Type: application/json
+
+   {
+     &quot;version&quot; : &quot;4.2.9+&quot;
+   }
+
+**Errors**
+
+When an error occurs over REST, an object is returned with the key ``error``
+set to ``true``.
+
+The error contents look similar to:
+
+.. code-block:: js
+
+   {
+     &quot;error&quot;: true,
+     &quot;message&quot;: &quot;Some message here&quot;,
+     &quot;code&quot;: 123
+   }
+
+Common Data Types
+-----------------
+
+The Bugzilla API uses the following various types of parameters:
+
+========  ======================================================================
+ type     description
+========  ======================================================================
+int       Integer.
+double    A floating-point number.
+string    A string.
+email     A string representing an email address. This value, when returned,
+          may be filtered based on if the user is logged in or not.
+date      A specific date. Example format: ``YYYY-MM-DD``.
+datetime  A date/time. Timezone should be in UTC unless otherwise noted.
+          Example format: ``YYYY-MM-DDTHH24:MI:SSZ``.
+boolean   ``true`` or ``false``.
+base64    A base64-encoded string. This is the only way to transfer
+          binary data via the API.
+array     An array. There may be mixed types in an array. ``[`` and ``]`` are
+          used to represent the beginning and end of arrays.
+object    A mapping of keys to values. Called a &quot;hash&quot;, &quot;dict&quot;, or &quot;map&quot; in
+          some other programming languages. The keys are strings, and the
+          values can be any type. ``{`` and ``}`` are used to represent the
+          beginning and end of objects.
+========  ======================================================================
+
+Parameters that are required will be displayed in **bold** in the parameters
+table for each API method.
+
+Authentication
+--------------
+
+Some methods do not require you to log in. An example of this is
+:ref:`rest_single_bug`. However, authenticating yourself allows you to see
+non-public information, for example, a bug that is not publicly visible.
+
+There are two ways to authenticate yourself:
+
+**API Keys**
+
+You can specify ``Bugzilla_api_key`` or simply ``api_key`` as an argument to
+any call, and you will be logged in as that user if the key is correct and has
+not been revoked. You can set up an API key by using the 'API Key' tab in the
+Preferences pages.
+
+**Login and Password**
+
+You can specify ``Bugzilla_login`` and ``Bugzilla_password`` or simply
+``login`` and ``password`` respectively, as arguments to any call, and you will
+be logged in as that user if your credentials are correct.
+
+======================  =======  ==============================================
+name                    type     description
+======================  =======  ==============================================
+**Bugzilla_login**      string   A user's login name.
+**Bugzilla_password**   string   That user's password.
+Bugzilla_restrictlogin  boolean  If true, then your login will only be
+                                 valid for your IP address.
+======================  =======  ==============================================
+
+The ``Bugzilla_restrictlogin`` option is only used when you have also
+specified ``Bugzilla_login`` and ``Bugzilla_password``.
+
+There is also a deprecated method of authentication described below that will be
+removed in the version after Bugzilla 5.0.
+
+**Bugzilla Tokens**
+
+You can use :ref:`rest_user_login` to log in as a Bugzilla user. This issues a
+token that you must then use in future calls. Just use the value for ``token``
+and pass as either ``Bugzilla_token`` or simply ``token`` as arguments to an
+API call.
+
+==================  ======  ===================================================
+name                type    description
+==================  ======  ===================================================
+**Bugzilla_token**  string  You can specify this as argument to any call,
+                            and you will be logged in as that user if the
+                            token is correct. This is the token returned
+                            when calling :ref:`rest_user_login` mentioned
+                            above.
+==================  ======  ===================================================
+
+An error is thrown if you pass an invalid token; you will need to log in again
+to get a new token.
+
+Also starting with Bugzilla 5.0, login cookies are no longer returned by
+:ref:`rest_user_login` due to security concerns.
+
+Useful Parameters
+-----------------
+
+Many calls take common arguments. These are documented below and linked from
+the individual calls where these parameters are used.
+
+**Including Fields**
+
+Many calls return an array of objects with various fields in the objects. (For
+example, :ref:`rest_single_bug` returns a list of ``bugs`` that have fields like
+``id``, ``summary``,  ``creation_time``, etc.)
+
+These parameters allow you to limit what fields are present in the objects, to
+improve performance or save some bandwidth.
+
+``include_fields``: The (case-sensitive) names of fields in the response data.
+Only the fields specified in the object will be returned, the rest will not be
+included. Fields should be comma delimited.
+
+Invalid field names are ignored.
+
+Example request to :ref:`rest_user_get`:
+
+.. code-block:: text
+
+   GET /rest/user/1?include_fields=id,name
+
+would return something like:
+
+.. code-block:: js
+
+   {
+     &quot;users&quot; : [
+       {
+         &quot;id&quot; : 1,
+         &quot;name&quot; : &quot;user@domain.com&quot;
+       }
+     ]
+   }
+
+**Excluding Fields**
+
+``exclude_fields``: The (case-sensitive) names of fields in the return value. The\
+fields specified will not be included in the returned hashes. Fields should
+be comma delimited.
+
+Invalid field names are ignored.
+
+Specifying fields here overrides ``include_fields``, so if you specify a
+field in both, it will be excluded, not included.
+
+Example request to :ref:`rest_user_get`:
+
+.. code-block:: js
+
+   GET /rest/user/1?exclude_fields=name
+
+would return something like:
+
+.. code-block:: js
+
+   {
+     &quot;users&quot; : [
+       {
+         &quot;id&quot; : 1,
+         &quot;real_name&quot; : &quot;John Smith&quot;
+       }
+     ]
+   }
+
+Some calls support specifying &quot;subfields&quot;. If a call states that it supports
+&quot;subfield&quot; restrictions, you can restrict what information is returned within
+the first field. For example, if you call :ref:`rest_product_get` with an
+``include_fields`` of ``components.name``, then only the component name would be
+returned (and nothing else). You can include the main field, and exclude a
+subfield.
+
+There are several shortcut identifiers to ask for only certain groups of
+fields to be returned or excluded:
+
+=========  =====================================================================
+value      description
+=========  =====================================================================
+_all       All possible fields are returned if this is specified in
+           ``include_fields``.
+_default   Default fields are returned if ``include_fields`` is empty or
+           this is specified. This is useful if you want the default
+           fields in addition to a field that is not normally returned.
+_extra     Extra fields are not returned by default and need to be manually
+           specified in ``include_fields`` either by exact field name, or adding
+           ``_extra``.
+ _custom   Custom fields are normally returned by default unless this is added
+           to ``exclude_fields``. Also you can use it in ``include_fields`` if
+           for example you want specific field names plus all custom fields.
+           Custom fields are normally only relevant to bug objects.
+=========  =====================================================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1grouprst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/group.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/group.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/group.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,278 @@
</span><ins>+Groups
+======
+
+The API for creating, changing, and getting information about groups.
+
+.. _rest_group_create:
+
+Create Group
+------------
+
+This allows you to create a new group in Bugzilla. You must be authenticated and
+be in the *creategroups* group to perform this action.
+
+**Request**
+
+.. code-block:: text
+
+   POST /rest/group
+
+.. code-block:: js
+
+   {
+     &quot;name&quot; : &quot;secret-group&quot;,
+     &quot;description&quot; : &quot;Too secret for you!&quot;,
+     &quot;is_active&quot; : true
+   }
+
+Some params must be set, or an error will be thrown. The required params are
+marked in **bold**.
+
+===============  =======  =======================================================
+name             type     description
+===============  =======  =======================================================
+**name**         string   A short name for this group. Must be unique. This
+                          is not usually displayed in the user interface, except
+                          in a few places.
+**description**  string   A human-readable name for this group. Should be
+                          relatively short. This is what will normally appear in
+                          the UI as the name of the group.
+user_regexp      string   A regular expression. Any user whose Bugzilla username
+                          matches this regular expression will automatically be
+                          granted membership in this group.
+is_active        boolean  ``true`` if new group can be used for bugs, ``false``
+                          if this is a group that will only contain users and no
+                          bugs will be restricted to it.
+icon_url         string   A URL pointing to a small icon used to identify the
+                          group. This icon will show up next to users' names in
+                          various parts of Bugzilla if they are in this group.
+===============  =======  =======================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot;: 22
+   }
+
+====  ====  ==============================
+name  type  description
+====  ====  ==============================
+id    int   ID of the newly-created group.
+====  ====  ==============================
+
+.. _rest_group_update:
+
+Update Group
+------------
+
+This allows you to update a group in Bugzilla. You must be authenticated and be
+in the *creategroups* group to perform this action.
+
+**Request**
+
+To update a group using the group ID or name:
+
+.. code-block:: text
+
+   PUT /rest/group/(id_or_name)
+
+.. code-block:: js
+
+   {
+     &quot;name&quot; : &quot;secret-group&quot;,
+     &quot;description&quot; : &quot;Too secret for you! (updated description)&quot;,
+     &quot;is_active&quot; : false
+   }
+
+You can edit a single group by passing the ID or name of the group
+in the URL. To edit more than one group, you can specify addition IDs or
+group names using the ``ids`` or ``names`` parameters respectively.
+
+One of the below must be specified.
+
+==============  =====  ==========================================================
+name            type   description
+==============  =====  ==========================================================
+**id_or_name**  mixed  Integer group or name.
+**ids**         array  IDs of groups to update.
+**names**       array  Names of groups to update.
+==============  =====  ==========================================================
+
+The following parameters specify the new values you want to set for the group(s)
+you are updating.
+
+===========  =======  ===========================================================
+name         type     description
+===========  =======  ===========================================================
+name         string   A new name for the groups. If you try to set this while
+                      updating more than one group, an error will occur, as
+                      group names must be unique.
+description  string   A new description for the groups. This is what will appear
+                      in the UI as the name of the groups.
+user_regexp  string   A new regular expression for email. Will automatically
+                      grant membership to these groups to anyone with an email
+                      address that matches this perl regular expression.
+is_active    boolean  Set if groups are active and eligible to be used for bugs.
+                      ``true`` if bugs can be restricted to this group, ``false``
+                      otherwise.
+icon_url     string   A URL pointing to an icon that will appear next to the name
+                      of users who are in this group.
+===========  =======  ===========================================================
+
+**Response**
+
+.. code-block:: js
+
+  {
+    &quot;groups&quot;: [
+      {
+        &quot;changes&quot;: {
+          &quot;description&quot;: {
+            &quot;added&quot;: &quot;Too secret for you! (updated description)&quot;,
+            &quot;removed&quot;: &quot;Too secret for you!&quot;
+          },
+          &quot;is_active&quot;: {
+            &quot;removed&quot;: &quot;1&quot;,
+            &quot;added&quot;: &quot;0&quot;
+          }
+        },
+        &quot;id&quot;: &quot;22&quot;
+      }
+    ]
+  }
+
+``groups`` (array) Group change objects, each containing the following items:
+
+=======  ======  ================================================================
+name     type    description
+=======  ======  ================================================================
+id       int     The ID of the group that was updated.
+changes  object  The changes that were actually done on this group. The
+                 keys are the names of the fields that were changed, and the
+                 values are an object with two items:
+
+                 * added: (string) The values that were added to this field,
+                   possibly a comma-and-space-separated list if multiple values
+                   were added.
+                 * removed: (string) The values that were removed from this
+                   field, possibly a comma-and-space-separated list if multiple
+                   values were removed.
+=======  ======  ================================================================
+
+.. _rest_group_get:
+
+Get Group
+---------
+
+Returns information about Bugzilla groups.
+
+**Request**
+
+To return information about a specific group ID or name:
+
+.. code-block:: text
+
+   GET /rest/group/(id_or_name)
+
+You can also return information about more than one specific group by using the
+following in your query string:
+
+.. code-block:: text
+
+   GET /rest/group?ids=1&amp;ids=2&amp;ids=3
+   GET /group?names=ProductOne&amp;names=Product2
+
+If neither IDs nor names are passed, and you are in the creategroups or
+editusers group, then all groups will be retrieved. Otherwise, only groups
+that you have bless privileges for will be returned.
+
+==========  =======  ============================================================
+name        type     description
+==========  =======  ============================================================
+id_or_name  mixed    Integer group ID or name.
+ids         array    Integer IDs of groups.
+names       array    Names of groups.
+membership  boolean  Set to 1 then a list of members of the passed groups names
+                     and IDs will be returned.
+==========  =======  ============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;groups&quot;: [
+       {
+         &quot;membership&quot;: [
+           {
+             &quot;real_name&quot;: &quot;Bugzilla User&quot;,
+             &quot;can_login&quot;: true,
+             &quot;name&quot;: &quot;user@bugzilla.org&quot;,
+             &quot;login_denied_text&quot;: &quot;&quot;,
+             &quot;id&quot;: 85,
+             &quot;email_enabled&quot;: false,
+             &quot;email&quot;: &quot;user@bugzilla.org&quot;
+           },
+         ],
+         &quot;is_active&quot;: true,
+         &quot;description&quot;: &quot;Test Group&quot;,
+         &quot;user_regexp&quot;: &quot;&quot;,
+         &quot;is_bug_group&quot;: true,
+         &quot;name&quot;: &quot;TestGroup&quot;,
+         &quot;id&quot;: 9
+       }
+     ]
+   }
+
+If the user is a member of the *creategroups* group they will receive
+information about all groups or groups matching the criteria that they passed.
+You have to be in the creategroups group unless you're requesting membership
+information.
+
+If the user is not a member of the *creategroups* group, but they are in the
+&quot;editusers&quot; group or have bless privileges to the groups they require
+membership information for, the is_active, is_bug_group and user_regexp values
+are not supplied.
+
+The return value will be an object containing group names as the keys; each
+value will be an object that describes the group and has the following items:
+
+============  ======  ===========================================================
+name          type    description
+============  ======  ===========================================================
+id            int     The unique integer ID that Bugzilla uses to identify this
+                      group. Even if the name of the group changes, this ID will
+                      stay the same.
+name          string  The name of the group.
+description   string  The description of the group.
+is_bug_group  int     Whether this group is to be used for bug reports or is
+                      only administrative specific.
+user_regexp   string  A regular expression that allows users to be added to
+                      this group if their login matches.
+is_active     int     Whether this group is currently active or not.
+users         array   User objects that are members of this group; only
+                      returned if the user sets the ``membership`` parameter to
+                      1. Each user object has the items describe in the User
+                      object below.
+============  ======  ===========================================================
+
+User object:
+
+=============  =======  =========================================================
+name           type     description
+=============  =======  =========================================================
+id             int      The ID of the user.
+real_name      string   The actual name of the user.
+email          string   The email address of the user.
+name           string   The login name of the user. Note that in some situations
+                        this is different than their email.
+can_login      boolean  A boolean value to indicate if the user can login into
+                        bugzilla.
+email_enabled  boolean  A boolean value to indicate if bug-related mail will
+                        be sent to the user or not.
+disabled_text  string   A text field that holds the reason for disabling a user
+                        from logging into Bugzilla. If empty, then the user
+                        account is enabled; otherwise it is disabled/closed.
+=============  =======  =========================================================
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1indexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+Core API v1
+===========
+
+.. toctree::
+
+   general
+   attachment
+   bug
+   bug-user-last-visit
+   bugzilla
+   classification
+   comment
+   component
+   field
+   flagtype
+   group
+   product
+   user
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1productrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/product.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/product.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/product.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,416 @@
</span><ins>+Products
+========
+
+This part of the Bugzilla API allows you to list the available products and
+get information about them.
+
+.. _rest_product_list:
+
+List Products
+-------------
+
+Returns a list of the IDs of the products the user can search on.
+
+**Request**
+
+To get a list of product IDs a user can select such as for querying bugs:
+
+.. code-block:: text
+
+   GET /rest/product_selectable
+
+To get a list of product IDs a user can enter a bug against:
+
+.. code-block:: text
+
+   GET /rest/product_enterable
+
+To get a list of product IDs a user can search or enter bugs against.
+
+.. code-block:: text
+
+   GET /rest/product_accessible
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot;: [
+       &quot;2&quot;,
+       &quot;3&quot;,
+       &quot;19&quot;,
+       &quot;1&quot;,
+       &quot;4&quot;
+     ]
+   }
+
+====  =====  ======================================
+name  type   description
+====  =====  ======================================
+ids   array  List of integer product IDs.
+====  =====  ======================================
+
+.. _rest_product_get:
+
+Get Product
+-----------
+
+Returns a list of information about the products passed to it.
+
+**Request**
+
+To return information about a specific type of products such as
+``accessible``, ``selectable``, or ``enterable``:
+
+.. code-block:: text
+
+   GET /rest/product?type=accessible
+
+To return information about a specific product by ``id`` or ``name``:
+
+.. code-block:: text
+
+   GET /rest/product/(id_or_name)
+
+You can also return information about more than one product by using the
+following parameters in your query string:
+
+.. code-block:: text
+
+   GET /rest/product?ids=1&amp;ids=2&amp;ids=3
+   GET /rest/product?names=ProductOne&amp;names=Product2
+
+==========  ======  =============================================================
+name        type    description
+==========  ======  =============================================================
+id_or_name  mixed   Integer product ID or product name.
+ids         array   Product IDs
+names       array   Product names
+type        string  The group of products to return. Valid values are
+                    ``accessible`` (default), ``selectable``, and ``enterable``.
+                    ``type`` can be a single value or an array of values if more
+                    than one group is needed with duplicates removed.
+==========  ======  =============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;products&quot;: [
+       {
+         &quot;id&quot;: 1,
+         &quot;default_milestone&quot;: &quot;---&quot;,
+         &quot;components&quot;: [
+           {
+             &quot;is_active&quot;: true,
+             &quot;default_assigned_to&quot;: &quot;admin@bugzilla.org&quot;,
+             &quot;id&quot;: 1,
+             &quot;sort_key&quot;: 0,
+             &quot;name&quot;: &quot;TestComponent&quot;,
+             &quot;flag_types&quot;: {
+               &quot;bug&quot;: [
+                 {
+                   &quot;is_active&quot;: true,
+                   &quot;grant_group&quot;: null,
+                   &quot;cc_list&quot;: &quot;&quot;,
+                   &quot;is_requestable&quot;: true,
+                   &quot;id&quot;: 3,
+                   &quot;is_multiplicable&quot;: true,
+                   &quot;name&quot;: &quot;needinfo&quot;,
+                   &quot;request_group&quot;: null,
+                   &quot;is_requesteeble&quot;: true,
+                   &quot;sort_key&quot;: 0,
+                   &quot;description&quot;: &quot;needinfo&quot;
+                 }
+               ],
+               &quot;attachment&quot;: [
+                 {
+                   &quot;description&quot;: &quot;Review&quot;,
+                   &quot;is_multiplicable&quot;: true,
+                   &quot;name&quot;: &quot;review&quot;,
+                   &quot;is_requesteeble&quot;: true,
+                   &quot;request_group&quot;: null,
+                   &quot;sort_key&quot;: 0,
+                   &quot;cc_list&quot;: &quot;&quot;,
+                   &quot;grant_group&quot;: null,
+                   &quot;is_requestable&quot;: true,
+                   &quot;id&quot;: 2,
+                   &quot;is_active&quot;: true
+                 }
+               ]
+             },
+             &quot;default_qa_contact&quot;: &quot;&quot;,
+             &quot;description&quot;: &quot;This is a test component.&quot;
+           }
+         ],
+         &quot;is_active&quot;: true,
+         &quot;classification&quot;: &quot;Unclassified&quot;,
+         &quot;versions&quot;: [
+           {
+             &quot;id&quot;: 1,
+             &quot;name&quot;: &quot;unspecified&quot;,
+             &quot;is_active&quot;: true,
+             &quot;sort_key&quot;: 0
+           }
+         ],
+         &quot;description&quot;: &quot;This is a test product.&quot;,
+         &quot;has_unconfirmed&quot;: true,
+         &quot;milestones&quot;: [
+           {
+             &quot;name&quot;: &quot;---&quot;,
+             &quot;is_active&quot;: true,
+             &quot;sort_key&quot;: 0,
+             &quot;id&quot;: 1
+           }
+         ],
+         &quot;name&quot;: &quot;TestProduct&quot;
+       }
+     ]
+   }
+
+``products`` (array) Each product object has the following items:
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+id                 int      An integer ID uniquely identifying the product in
+                            this installation only.
+name               string   The name of the product. This is a unique identifier
+                            for the product.
+description        string   A description of the product, which may contain HTML.
+is_active          boolean  A boolean indicating if the product is active.
+default_milestone  string   The name of the default milestone for the product.
+has_unconfirmed    boolean  Indicates whether the UNCONFIRMED bug status is
+                            available for this product.
+classification     string   The classification name for the product.
+components         array    Each component object has the items described in the
+                            Component object below.
+versions           array    Each object describes a version, and has the
+                            following items: ``name``, ``sort_key`` and
+                            ``is_active``.
+milestones         array    Each object describes a milestone, and has the
+                            following items: ``name``, ``sort_key`` and
+                            ``is_active``.
+=================  =======  =====================================================
+
+If the user tries to access a product that is not in the list of accessible
+products for the user, or a product that does not exist, that is silently
+ignored, and no information about that product is returned.
+
+Component object:
+
+===================  =======  ===================================================
+name                 type     description
+===================  =======  ===================================================
+id                   int      An integer ID uniquely identifying the component in
+                              this installation only.
+name                 string   The name of the component.  This is a unique
+                              identifier for this component.
+description          string   A description of the component, which may contain
+                              HTML.
+default_assigned_to  string   The login name of the user to whom new bugs
+                              will be assigned by default.
+default_qa_contact   string   The login name of the user who will be set as
+                              the QA Contact for new bugs by default. Empty
+                              string if the QA contact is not defined.
+sort_key             int      Components, when displayed in a list, are sorted
+                              first by this integer and then secondly by their
+                              name.
+is_active            boolean  A boolean indicating if the component is active.
+                              Inactive components are not enabled for new bugs.
+flag_types           object   An object containing two items ``bug`` and
+                              ``attachment`` that each contains an array of
+                              objects, where each describes a flagtype. The
+                              flagtype items are described in the Flagtype
+                              object below.
+===================  =======  ===================================================
+
+Flagtype object:
+
+================  =======  ======================================================
+name              type     description
+================  =======  ======================================================
+id                int      Returns the ID of the flagtype.
+name              string   Returns the name of the flagtype.
+description       string   Returns the description of the flagtype.
+cc_list           string   Returns the concatenated CC list for the flagtype, as
+                           a single string.
+sort_key          int      Returns the sortkey of the flagtype.
+is_active         boolean  Returns whether the flagtype is active or disabled.
+                           Flags being in a disabled flagtype are not deleted.
+                           It only prevents you from adding new flags to it.
+is_requestable    boolean  Returns whether you can request for the given
+                           flagtype (i.e. whether the '?' flag is available or
+                           not).
+is_requesteeble   boolean  Returns whether you can ask someone specifically
+                           or not.
+is_multiplicable  boolean  Returns whether you can have more than one
+                           flag for the given flagtype in a given bug/attachment.
+grant_group       int      the group ID that is allowed to grant/deny flags of
+                           this type. If the item is not included all users are
+                           allowed to grant/deny this flagtype.
+request_group     int      The group ID that is allowed to request the flag if
+                           the flag is of the type requestable. If the item is
+                           not included all users are allowed request this
+                           flagtype.
+================  =======  ======================================================
+
+.. _rest_product_create:
+
+Create Product
+--------------
+
+This allows you to create a new product in Bugzilla.
+
+**Request**
+
+.. code-block:: text
+
+   POST /rest/product
+
+.. code-block:: js
+
+   {
+     &quot;name&quot; : &quot;AnotherProduct&quot;,
+     &quot;description&quot; : &quot;Another Product&quot;,
+     &quot;classification&quot; : &quot;Unclassified&quot;,
+     &quot;is_open&quot; : false,
+     &quot;has_unconfirmed&quot; : false,
+     &quot;version&quot; : &quot;unspecified&quot;
+   }
+
+Some params must be set, or an error will be thrown. The required params are
+marked in bold.
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+**name**           string   The name of this product. Must be globally unique
+                            within Bugzilla.
+**description**    string   A description for this product. Allows some simple
+                            HTML.
+**version**        string   The default version for this product.
+has_unconfirmed    boolean  Allow the UNCONFIRMED status to be set on bugs in
+                            this product. Default: true.
+classification     string   The name of the Classification which contains this
+                            product.
+default_milestone  string   The default milestone for this product. Default
+                            '---'.
+is_open            boolean  ``true`` if the product is currently allowing bugs
+                            to be entered into it. Default: ``true``.
+create_series      boolean  ``true`` if you want series for New Charts to be
+                            created for this new product. Default: ``true``.
+=================  =======  =====================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot;: 20
+   }
+
+Returns an object with the following items:
+
+====  ====  =====================================
+name  type  description
+====  ====  =====================================
+id    int   ID of the newly-filed product.
+====  ====  =====================================
+
+.. _rest_product_update:
+
+Update Product
+--------------
+
+This allows you to update a product in Bugzilla.
+
+**Request**
+
+.. code-block:: text
+
+   PUT /rest/product/(id_or_name)
+
+You can edit a single product by passing the ID or name of the product
+in the URL. To edit more than one product, you can specify addition IDs or
+product names using the ``ids`` or ``names`` parameters respectively.
+
+.. code-block:: js
+
+   {
+     &quot;ids&quot; : [123],
+     &quot;name&quot; : &quot;BarName&quot;,
+     &quot;has_unconfirmed&quot; : false
+   }
+
+One of the below must be specified.
+
+==============  =====  ==========================================================
+name            type   description
+==============  =====  ==========================================================
+**id_or_name**  mixed  Integer product ID or name.
+**ids**         array  Numeric IDs of the products that you wish to update.
+**names**       array  Names of the products that you wish to update.
+==============  =====  ==========================================================
+
+The following parameters specify the new values you want to set for the product(s)
+you are updating.
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+name               string   A new name for this product. If you try to set this
+                            while updating more than one product, an error will
+                            occur, as product names must be unique.
+default_milestone  string   When a new bug is filed, what milestone does it
+                            get by default if the user does not choose one? Must
+                            represent a milestone that is valid for this product.
+description        string   Update the long description for these products to
+                            this value.
+has_unconfirmed    boolean  Allow the UNCONFIRMED status to be set on bugs in
+                            products.
+is_open            boolean  ``true`` if the product is currently allowing bugs
+                            to be entered into it, ``false`` otherwise.
+=================  =======  =====================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+      &quot;products&quot; : [
+         {
+            &quot;id&quot; : 123,
+            &quot;changes&quot; : {
+               &quot;name&quot; : {
+                  &quot;removed&quot; : &quot;FooName&quot;,
+                  &quot;added&quot; : &quot;BarName&quot;
+               },
+               &quot;has_unconfirmed&quot; : {
+                  &quot;removed&quot; : &quot;1&quot;,
+                  &quot;added&quot; : &quot;0&quot;
+               }
+            }
+         }
+      ]
+   }
+
+``products`` (array) Product change objects containing the following items:
+
+=======  ======  ================================================================
+name     type    description
+=======  ======  ================================================================
+id       int     The ID of the product that was updated.
+changes  object  The changes that were actually done on this product. The
+                 keys are the names of the fields that were changed, and the
+                 values are an object with two items:
+
+                 * added: (string) The value that this field was changed to.
+                 * removed: (string) The value that was previously set in this
+                   field.
+=======  ======  ================================================================
+
+Booleans will be represented with the strings '1' and '0' for changed values
+as they are stored as strings in the database currently.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapicorev1userrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/user.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/user.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/core/v1/user.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,380 @@
</span><ins>+Users
+=====
+
+This part of the Bugzilla API allows you to create user accounts, get information
+about user accounts and to log in or out using an existing account.
+
+.. _rest_user_login:
+
+Login
+-----
+
+Logging in with a username and password is required for many Bugzilla
+installations, in order to search for private bugs, post new bugs, etc. This
+method allows you to retrieve a token that can be used as authentication for
+subsequent API calls. Otherwise yuou will need to pass your ``login`` and
+``password`` with each call.
+
+This method will be going away in the future in favor of using *API keys*.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/login?login=foo@example.com&amp;password=toosecrettoshow
+
+==============  =======  ========================================================
+name            type     description
+==============  =======  ========================================================
+**login**       string   The user's login name.
+**password**    string   The user's password.
+restrict_login  boolean  If set to a true value, the token returned by this
+                         method will only be valid from the IP address which
+                         called this method.
+==============  =======  ========================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;token&quot;: &quot;786-OLaWfBisMY&quot;,
+     &quot;id&quot;: 786
+   }
+
+========  ======  ===============================================================
+name      type    description
+========  ======  ===============================================================
+id        int     Numeric ID of the user that was logged in.
+token     string  Token which can be passed in the parameters as
+                  authentication in other calls. The token can be sent along
+                  with any future requests to the webservice, for the duration
+                  of the session, i.e. til :ref:`rest_user_logout` is called.
+========  ======  ===============================================================
+
+.. _rest_user_logout:
+
+Logout
+------
+
+Log out the user. Basically it invalidates the token provided so it cannot be
+re-used. Does nothing if the token is not in use. Will also clear any existing
+authentication cookies the client may still have stored.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/logout?token=1234-VWvO51X69r
+
+=====  ======  ===================================================
+name   type    description
+=====  ======  ===================================================
+token  string   The user's token used for authentication.
+=====  ======  ===================================================
+
+.. _rest_user_valid_login:
+
+Valid Login
+-----------
+
+This method will verify whether a client's cookies or current login token is
+still valid or have expired. A valid username that matches must be provided as
+well.
+
+**Request**
+
+.. code-block:: text
+
+   GET /rest/valid_login?login=foo@example.com&amp;token=1234-VWvO51X69r
+
+=========  =======  =============================================================
+name       type     description
+=========  =======  =============================================================
+**login**  string   The login name that matches the provided cookies or token.
+token      string   Persistent login token currently being used for
+                    authentication.
+=========  =======  =============================================================
+
+**Response**
+
+Returns true/false depending on if the current token is valid for the provided
+username.
+
+.. _rest_user_create:
+
+Create User
+-----------
+
+Creates a user account directly in Bugzilla, password and all. Instead of this,
+you should use **Offer Account by Email** when possible because that makes sure
+that the email address specified can actually receive an email. This function
+does not check that. You must be authenticated and be in the *editusers* group
+to perform this action.
+
+**Request**
+
+.. code-block:: text
+
+   POST /rest/user
+
+.. code-block:: js
+
+   {
+     &quot;email&quot; : &quot;user@bugzilla.org&quot;,
+     &quot;full_name&quot; : &quot;Test User&quot;,
+     &quot;password&quot; : &quot;K16ldRr922I1&quot;
+   }
+
+==========  ======  =============================================================
+name        type    description
+==========  ======  =============================================================
+**email**   string  The email address for the new user.
+full_name   string  The user's full name. Will be set to empty if not specified.
+password    string  The password for the new user account, in plain text. It
+                    will be stripped of leading and trailing whitespace. If
+                    blank or not specified, the new created account will
+                    exist in Bugzilla but will not be allowed to log in
+                    using DB authentication until a password is set either
+                    by the user (through resetting their password) or by the
+                    administrator.
+==========  ======  =============================================================
+
+**Response**
+
+.. code-block:: js
+
+   {
+     &quot;id&quot;: 58707
+   }
+
+====  ====  ============================================
+name  type  desciption
+====  ====  ============================================
+id    int   The numeric ID of the user that was created.
+====  ====  ============================================
+
+.. _rest_user_update:
+
+Update User
+-----------
+
+Updates an existing user account in Bugzilla. You must be authenticated and be
+in the *editusers* group to perform this action.
+
+**Request**
+
+.. code-block:: text
+
+   PUT /rest/user/(id_or_name)
+
+You can edit a single user by passing the ID or login name of the user
+in the URL. To edit more than one user, you can specify addition IDs or
+login names using the ``ids`` or ``names`` parameters respectively.
+
+=================  =======  =====================================================
+ name              type     description
+=================  =======  =====================================================
+**id_or_name**     mixed    Either the ID or the login name of the user to
+                            update.
+**ids**            array    Additional IDs of users to update.
+**names**          array    Additional login names of users to update.
+full_name          string   The new name of the user.
+email              string   The email of the user. Note that email used to
+                            login to bugzilla. Also note that you can only
+                            update one user at a time when changing the login
+                            name / email. (An error will be thrown if you try to
+                            update this field for multiple users at once.)
+password           string   The password of the user.
+email_enabled      boolean  A boolean value to enable/disable sending
+                            bug-related mail to the user.
+login_denied_text  string   A text field that holds the reason for disabling a
+                            user from logging into Bugzilla. If empty, then the
+                            user account is enabled; otherwise it is
+                            disabled/closed.
+groups             object   These specify the groups that this user is directly
+                            a member of. To set these, you should pass an object
+                            as the value. The object's items are described in
+                            the Groups update objects below.
+bless_groups       object   This is the same as groups but affects what groups
+                            a user has direct membership to bless that group.
+                            It takes the same inputs as groups.
+=================  =======  =====================================================
+
+Groups and bless groups update object:
+
+======  =====  ==================================================================
+name    type   description
+======  =====  ==================================================================
+add     array  The group IDs or group names that the user should be added to.
+remove  array  The group IDs or group names that the user should be removed from.
+set     array  Integers or strings which are an exact set of group IDs and group
+               names that the user should be a member of. This does not remove
+               groups from the user when the person making the change does not
+               have the bless privilege for the group.
+======  =====  ==================================================================
+
+If you specify ``set``, then ``add`` and ``remove`` will be ignored. A group in
+both the ``add`` and ``remove`` list will be added. Specifying a group that the
+user making the change does not have bless rights will generate an error.
+
+**Response**
+
+* users: (array) List of user change objects with the following items:
+
+=======  ======  ================================================================
+name     type    description
+=======  ======  ================================================================
+id       int     The ID of the user that was updated.
+changes  object  The changes that were actually done on this user. The keys
+                 are the names of the fields that were changed, and the values
+                 are an object with two items:
+
+                 * added: (string) The values that were added to this field,
+                   possibly a comma-and-space-separated list if multiple values
+                   were added.
+                 * removed: (string) The values that were removed from this
+                   field, possibly a comma-and-space-separated list if multiple
+                   values were removed.
+=======  ======  ================================================================
+
+.. _rest_user_get:
+
+Get User
+--------
+
+Gets information about user accounts in Bugzilla.
+
+**Request**
+
+To get information about a single user in Bugzilla:
+
+.. code-block:: text
+
+   GET /rest/user/(id_or_name)
+
+To get multiple users by name or ID:
+
+.. code-block:: text
+
+   GET /rest/user?names=foo@bar.com&amp;name=test@bugzilla.org
+   GET /rest/user?ids=123&amp;ids=321
+
+To get user matching a search string:
+
+.. code-block:: text
+
+   GET /rest/user?match=foo
+
+To get user by using an integer ID value or by using ``match``, you must be
+authenticated.
+
+================  =======  ======================================================
+name              type     description
+================  =======  ======================================================
+id_or_name        mixed    An integer user ID or login name of the user.
+ids               array    Integer user IDs. Logged=out users cannot pass
+                           this parameter to this function. If they try,
+                           they will get an error. Logged=in users will get
+                           an error if they specify the ID of a user they
+                           cannot see.
+names             array    Login names.
+match             array    This works just like &quot;user matching&quot; in Bugzilla
+                           itself. Users will be returned whose real name
+                           or login name contains any one of the specified
+                           strings. Users that you cannot see will not be
+                           included in the returned list.
+
+                           Most installations have a limit on how many
+                           matches are returned for each string; the default
+                           is 1000 but can be changed by the Bugzilla
+                           administrator.
+
+                           Logged-out users cannot use this argument, and
+                           an error will be thrown if they try. (This is to
+                           make it harder for spammers to harvest email
+                           addresses from Bugzilla, and also to enforce the
+                           user visibility restrictions that are
+                           implemented on some Bugzillas.)
+limit             int      Limit the number of users matched by the
+                           ``match`` parameter. If the value is greater than the
+                           system limit, the system limit will be used.
+                           This parameter is only valid when using the ``match``
+                           parameter.
+group_ids         array    Numeric IDs for groups that a user can be in.
+groups            array    Names of groups that a user can be in. If
+                           ``group_ids`` or ``groups`` are specified, they
+                           limit the return value to users who are in *any*
+                           of the groups specified.
+include_disabled  boolean  By default, when using the ``match`` parameter,
+                           disabled users are excluded from the returned
+                           results unless their full username is identical
+                           to the match string. Setting ``include_disabled`` to
+                           ``true`` will include disabled users in the returned
+                           results even if their username doesn't fully match
+                           the input string.
+================  =======  ======================================================
+
+**Response**
+
+* users: (array) Each object describes a user and has the following items:
+
+=================  =======  =====================================================
+name               type     description
+=================  =======  =====================================================
+id                 int      The unique integer ID that Bugzilla uses to represent
+                            this user. Even if the user's login name changes,
+                            this will not change.
+real_name          string   The actual name of the user. May be blank.
+email              string   The email address of the user.
+name               string   The login name of the user. Note that in some
+                            situations this is different than their email.
+can_login          boolean  A boolean value to indicate if the user can login
+                            into bugzilla.
+email_enabled      boolean  A boolean value to indicate if bug-related mail will
+                            be sent to the user or not.
+login_denied_text  string   A text field that holds the reason for disabling a
+                            user from logging into Bugzilla. If empty then the
+                            user account is enabled; otherwise it is
+                            disabled/closed.
+groups             array    Groups the user is a member of. If the currently
+                            logged in user is querying their own account or is a
+                            member of the 'editusers' group, the array will
+                            contain all the groups that the user is a member of.
+                            Otherwise, the array will only contain groups that
+                            the logged in user can bless. Each object describes
+                            the group and contains the items described in the
+                            Group object below.
+saved_searches     array    User's saved searches, each having the following
+                            Search object items described below.
+saved_reports      array    User's saved reports, each having the following
+                            Search object items described below.
+=================  =======  =====================================================
+
+Group object:
+
+===========  ======  ============================================================
+name         type    description
+===========  ======  ============================================================
+id           int     The group ID
+name         string  The name of the group
+description  string  The description for the group
+===========  ======  ============================================================
+
+Search object:
+
+=====  ======  ==================================================================
+name   type    description
+=====  ======  ==================================================================
+id     int     An integer ID uniquely identifying the saved report.
+name   string  The name of the saved report.
+query  string  The CGI parameters for the saved report.
+=====  ======  ==================================================================
+
+If you are not authenticated when you call this function, you will only be
+returned the ``id``, ``name``, and ``real_name`` items. If you are authenticated
+and not in 'editusers' group, you will only be returned the ``id``, ``name``,
+``real_name``, ``email``, ``can_login``, and ``groups`` items. The groups
+returned are filtered based on your permission to bless each group. The
+``saved_searches`` and ``saved_reports`` items are only returned if you are
+querying your own account, even if you are in the editusers group.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstapiindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/api/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/api/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/api/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+.. _apis:
+
+WebService API Reference
+========================
+
+This Bugzilla installation has the following WebService APIs available
+(as of the last time you compiled the documentation). Documentation for
+the deprecated :ref:`XML-RPC and JSON-RPC APIs &lt;api-list&gt;` is also available.
+
+.. toctree::
+   :glob:
+
+   core/v*/index
+   ../extensions/*/api/v*/index
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstconfpy"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/conf.py (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/conf.py                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/conf.py        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,395 @@
</span><ins>+# -*- coding: utf-8 -*-
+#
+# Bugzilla documentation build configuration file, created by
+# sphinx-quickstart on Tue Sep  3 16:11:00 2013.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os, re
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.todo', 'sphinx.ext.extlinks']
+
+if tags.has('enable_rst2pdf'):
+  extensions.append('rst2pdf.pdfbuilder')
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'Bugzilla'
+copyright = u'2014, The Bugzilla Team'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = 'Unknown'
+# The full version, including alpha/beta/rc tags.
+release = 'Unknown'
+
+for line in open(&quot;../../../Bugzilla/Constants.pm&quot;):
+    match = re.search(r'BUGZILLA_VERSION\s+=&gt;\s+&quot;([^&quot;]+)&quot;', line)
+    if (match):
+        release = match.group(1)
+        match = re.search(r'^\d+\.\d+', release)
+        if (match):
+            version = match.group(0)
+        else:
+            version = release
+        break
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = ['**.inc.rst']
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+rst_prolog = &quot;&quot;&quot;
+.. role:: param
+    :class: param
+
+.. role:: paramval
+    :class: paramval
+
+.. role:: group
+    :class: group
+
+.. role:: field
+    :class: field
+
+.. |min-perl-ver| replace:: 5.10.1
+&quot;&quot;&quot;
+
+rst_epilog = &quot;&quot;&quot;
+
+----------
+
+This documentation undoubtedly has bugs; if you find some, please file
+them `here &lt;https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&amp;component=Documentation&gt;`_.
+&quot;&quot;&quot;
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# &quot;&lt;project&gt; v&lt;release&gt; documentation&quot;.
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+html_style = &quot;bugzilla.css&quot;
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+html_logo = &quot;../images/bugzilla.png&quot;
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+html_favicon = '../../../images/favicon.ico'
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named &quot;default.css&quot; will overwrite the builtin &quot;default.css&quot;.
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+# Switched off because it converted --long-option to –long-option
+html_use_smartypants = False
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+html_use_index = False
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+html_show_sourcelink = False
+
+# If true, &quot;Created using Sphinx&quot; is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, &quot;(C) Copyright ...&quot; is shown in the HTML footer. Default is True.
+html_show_copyright = False
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a &lt;link&gt; tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. &quot;.xhtml&quot;).
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'Bugzilladoc'
+
+# -- Options for LaTeX output --------------------------------------------------
+
+latex_elements = {
+# The paper size ('letterpaper' or 'a4paper').
+#'papersize': 'letterpaper',
+
+# The font size ('10pt', '11pt' or '12pt').
+#'pointsize': '10pt',
+
+# Additional stuff for the LaTeX preamble.
+#'preamble': '',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('index', 'Bugzilla.tex', u'Bugzilla Documentation',
+   u'The Bugzilla Team', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For &quot;manual&quot; documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('index', 'bugzilla', u'Bugzilla Documentation',
+     [u'The Bugzilla Team'], 1)
+]
+
+# If true, show URL addresses after external links.
+#man_show_urls = False
+
+
+# -- Options for Texinfo output ------------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+#  dir menu entry, description, category)
+texinfo_documents = [
+  ('index', 'Bugzilla', u'Bugzilla Documentation',
+   u'The Bugzilla Team', 'Bugzilla', 'One line description of project.',
+   'Miscellaneous'),
+]
+
+# Documents to append as an appendix to all manuals.
+#texinfo_appendices = []
+
+# If false, no module index is generated.
+#texinfo_domain_indices = True
+
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
+#texinfo_show_urls = 'footnote'
+
+# -- Options for PDF output --------------------------------------------------
+
+# Grouping the document tree into PDF files. List of tuples
+# (source start file, target name, title, author, options).
+#
+# If there is more than one author, separate them with \\.
+# For example: r'Guido van Rossum\\Fred L. Drake, Jr., editor'
+#
+# The options element is a dictionary that lets you override
+# this config per-document.
+# For example,
+# ('index', u'MyProject', u'My Project', u'Author Name',
+#  dict(pdf_compressed = True))
+# would mean that specific document would be compressed
+# regardless of the global pdf_compressed setting.
+
+pdf_documents = [
+('index', u'Bugzilla', u'Bugzilla Documentation', u'The Bugzilla Team'),
+]
+
+# A comma-separated list of custom stylesheets. Example:
+pdf_stylesheets = ['sphinx','kerning','a4']
+
+# A list of folders to search for stylesheets. Example:
+pdf_style_path = ['.', '_styles']
+
+# Create a compressed PDF
+# Use True/False or 1/0
+# Example: compressed=True
+pdf_compressed = True
+
+# A colon-separated list of folders to search for fonts. Example:
+# pdf_font_path = ['/usr/share/fonts', '/usr/share/texmf-dist/fonts/']
+
+# Language to be used for hyphenation support
+#pdf_language = &quot;en_US&quot;
+
+# Mode for literal blocks wider than the frame. Can be
+# overflow, shrink or truncate
+pdf_fit_mode = &quot;shrink&quot;
+
+# Section level that forces a break page.
+# For example: 1 means top-level sections start in a new page
+# 0 means disabled
+pdf_break_level = 2
+
+# When a section starts in a new page, force it to be 'even', 'odd',
+# or just use 'any'
+#pdf_breakside = 'any'
+
+# Insert footnotes where they are defined instead of
+# at the end.
+#pdf_inline_footnotes = True
+
+# verbosity level. 0 1 or 2
+pdf_verbosity = 0
+
+# If false, no index is generated.
+pdf_use_index = False
+
+# If false, no modindex is generated.
+pdf_use_modindex = False
+
+# If false, no coverpage is generated.
+#pdf_use_coverpage = True
+
+# Name of the cover page template to use
+#pdf_cover_template = 'sphinxcover.tmpl'
+
+# Documents to append as an appendix to all manuals.
+#pdf_appendices = []
+
+# Enable experimental feature to split table cells. Use it
+# if you get &quot;DelayedTable too big&quot; errors
+#pdf_splittables = False
+
+# Set the default DPI for images
+#pdf_default_dpi = 72
+
+# Enable rst2pdf extension modules (default is only vectorpdf)
+# you need vectorpdf if you want to use sphinx's graphviz support
+pdf_extensions = ['vectorpdf', 'dotted_toc']
+
+# Page template name for &quot;regular&quot; pages
+#pdf_page_template = 'cutePage'
+
+# Show Table Of Contents at the beginning?
+pdf_use_toc = True
+
+# How many levels deep should the table of contents be?
+pdf_toc_depth = 5
+
+# Add section number to section references
+pdf_use_numbered_links = True
+
+# Background images fitting mode
+pdf_fit_background_mode = 'scale'
+
+# -- Options for Sphinx extensions -------------------------------------------
+
+# Temporary highlighting of TODO items
+todo_include_todos = False
+
+# The readthedocs.org website cannot access POD.
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+if on_rtd:
+    base_api_url = 'https://www.bugzilla.org/docs/5.0/en/html/api/'
+else:
+    base_api_url = '../integrating/api/'
+
+extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug  '),
+            'api': (base_api_url + '%s', '')}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+======================
+Bugzilla Documentation
+======================
+
+.. toctree::
+   :maxdepth: 1
+   :numbered: 4
+
+   about/index
+   using/index
+   installing/index
+   administering/index
+   integrating/index
+   api/index
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingapachewindowsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache-windows.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache-windows.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache-windows.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,136 @@
</span><ins>+.. _apache-windows:
+
+Apache on Windows
+#################
+
+Bugzilla supports all versions of Apache 2.2.x and 2.4.x.
+
+Installing
+==========
+
+Download the Apache HTTP Server as a :file:`.zip` archive either from the
+`Apache Lounge website &lt;http://www.apachelounge.com/download&gt;`_ or from the
+`Apache Haus website &lt;http://www.apachehaus.com/cgi-bin/download.plx&gt;`_.
+
+Unzip the archive into :file:`C:\\Apache24`. If you move it elsewhere, then
+you must edit several variables in :file:`httpd.conf`, including ``ServerRoot``
+and ``DocumentRoot``.
+
+You must now edit the Apache configuration file :file:`C:\\Apache24\\conf\\httpd.conf`
+and do the following steps:
+
+#. Uncomment ``LoadModule cgi_module modules/mod_cgi.so`` at the beginning of the
+   file to enable CGI support.
+#. Uncomment ``AddHandler cgi-script .cgi`` to register :file:`.cgi` files
+   as CGI scripts. For this handler to work, you must create a key in the
+   Windows registry named ``HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command`` with
+   the default value pointing to the full path of :file:`perl.exe` with a ``-T``
+   parameter. For example :file:`C:\\Perl\\bin\\perl.exe -T` if you use ActivePerl,
+   or :file:`C:\\Strawberry\\perl\\bin\\perl.exe -T` if you use Strawberry Perl.
+#. Add an Alias and a Directory for Bugzilla:
+
+.. code-block:: apache
+
+    Alias &quot;/bugzilla/&quot; &quot;C:/bugzilla/&quot;
+    &lt;Directory &quot;C:/bugzilla&quot;&gt;
+        ScriptInterpreterSource Registry-Strict
+        Options +ExecCGI +FollowSymLinks
+        DirectoryIndex index.cgi index.html
+        AllowOverride All
+        Require all granted
+    &lt;/Directory&gt;
+
+.. warning:: The above block takes a simple approach to access control and is
+             correct for Apache 2.4. For Apache 2.2, replace ``Require all granted``
+             with ``Allow from all``. If you have other access control
+             requirements, you may need to make further modifications.
+
+You now save your changes and start Apache as a service. From the Windows
+command line (:file:`cmd.exe`):
+
+:command:`C:\\Apache24\\bin&gt;httpd.exe -k install`
+
+That's it! Bugzilla is now accessible from http://localhost/bugzilla.
+
+Apache Account Permissions
+==========================
+
+By default Apache installs itself to run as the SYSTEM account. For security
+reasons it's better the reconfigure the service to run as an Apache user.
+Create a new Windows user that is a member of **no** groups, and reconfigure
+the Apache2 service to run as that account.
+
+Whichever account you are running Apache as, SYSTEM or otherwise, needs write
+and modify access to the following directories and all their subdirectories.
+Depending on your version of Windows, this access may already be granted.
+
+* :file:`C:\\Bugzilla\\data`
+* :file:`C:\\Apache24\\logs`
+* :file:`C:\\Windows\\Temp`
+
+Note that :file:`C:\\Bugzilla\\data` is created the first time you run
+:file:`checksetup.pl`.
+
+Logging
+=======
+
+Unless you want to keep statistics on how many hits your Bugzilla install is
+getting, it's a good idea to disable logging by commenting out the
+``CustomLog`` directive in the Apache config file.
+
+If you don't disable logging, you should at least disable logging of &quot;query
+strings&quot;. When external systems interact with Bugzilla via webservices
+(REST/XMLRPC/JSONRPC) they include the user's credentials as part of the URL
+(in the query string). Therefore, to avoid storing passwords in clear text
+on the server we recommend configuring Apache to not include the query string
+in its log files.
+
+#. Find the following line in the Apache config file, which defines the
+   logging format for ``vhost_combined``:
+
+   .. code-block:: apache
+
+      LogFormat &quot;%v:%p %h %l %u %t \&quot;%r\&quot; %&gt;s %O \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; vhost_combined
+
+#. Replace ``%r`` with ``%m %U``.
+
+(If you have configured Apache differently, a different log line might apply.
+Adjust these instructions accordingly.)
+
+Using Apache with SSL
+=====================
+
+If you want to enable SSL with Apache, i.e. access Bugzilla from
+https://localhost/bugzilla, you need to do some extra steps:
+
+#. Edit :file:`C:\\Apache24\\conf\\httpd.conf` and uncomment these lines:
+
+   * ``LoadModule ssl_module modules/mod_ssl.so``
+   * ``LoadModule socache_shmcb_module modules/mod_socache_shmcb.so``
+   * ``Include conf/extra/httpd-ssl.conf``
+
+#. Create your :file:`.key` and :file:`.crt` files using :file:`openssl.exe`
+   provided with Apache:
+
+   :command:`C:\\Apache24\\bin&gt;openssl.exe req -x509 -nodes -days 730 -newkey rsa:2048 -keyout server.key -out server.crt`
+
+   :file:`openssl.exe` will ask you a few questions about your location and
+   your company name to populate fields of the certificate.
+
+#. Once the key and the certificate for your server are generated, move them
+   into :file:`C:\\Apache24\\conf` so that their location matches the
+   ``SSLCertificateFile`` and ``SSLCertificateKeyFile`` variables defined in
+   :file:`C:\\Apache24\\conf\\extra\\httpd-ssl.conf` (which you don't need to
+   edit).
+
+.. note:: This process leads to a self-signed certificate which will generate
+         browser warnings on first visit. If your Bugzilla has a public DNS
+         name, you can get a cert from a CA which will not have this problem.
+
+Restart Apache
+==============
+
+Finally, restart Apache to pick up the changes, either from the Services
+console or from the command line:
+
+:command:`C:\\Apache24\\bin&gt;httpd.exe -k restart`
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingapacherst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/apache.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,145 @@
</span><ins>+.. This document is shared among all non-Windows OSes.
+
+.. _apache:
+
+Apache
+######
+
+You have two options for running Bugzilla under Apache - mod_cgi (the
+default) and mod_perl. mod_perl is faster but takes more resources. You
+should probably only consider mod_perl if your Bugzilla is going to be heavily
+used.
+
+These instructions require editing the Apache configuration file, which is:
+
+* Fedora/Red Hat: :file:`/etc/httpd/conf/httpd.conf`
+* Debian/Ubuntu: :file:`/etc/apache2/apache2.conf`
+* Mac OS X: :file:`/etc/apache2/httpd.conf`
+
+Alternatively, on Debian or Ubuntu, you can instead put the below code into a
+separate file in the directory :file:`/etc/apache2/sites-enabled/`.
+
+In these instructions, when asked to restart Apache, the command is:
+
+:command:`sudo apachectl start`
+
+(or run it as root if your OS installation does not use sudo).
+
+Securing Apache
+===============
+
+When external systems interact with Bugzilla via webservices
+(REST/XMLRPC/JSONRPC) they include the user's credentials as part of the URL
+(in the &quot;query string&quot;). Therefore, to avoid storing passwords in clear text
+on the server we recommend configuring Apache to not include the query string
+in its log files.
+
+#. Edit the Apache configuration file (see above).
+
+#. Find the following line in the above mentioned file, which defines the
+   logging format for ``vhost_combined``:
+
+   .. code-block:: apache
+
+      LogFormat &quot;%v:%p %h %l %u %t \&quot;%r\&quot; %&gt;s %O \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; vhost_combined
+
+#. Replace ``%r`` with ``%m %U``.
+
+#. Restart Apache.
+
+.. _apache-mod_cgi:
+
+Apache with mod_cgi
+===================
+
+To configure your Apache web server to work with Bugzilla while using
+mod_cgi, do the following:
+
+#. Edit the Apache configuration file (see above).
+
+#. Create a ``&lt;Directory&gt;`` directive that applies to the location
+   of your Bugzilla installation. In this example, Bugzilla has
+   been installed at :file:`/var/www/html/bugzilla`. On Mac OS X, use
+   :file:`/Library/WebServer/Documents/bugzilla`.
+
+.. code-block:: apache
+
+   &lt;Directory /var/www/html/bugzilla&gt;
+     AddHandler cgi-script .cgi
+     Options +ExecCGI +FollowSymLinks
+     DirectoryIndex index.cgi index.html
+     AllowOverride All
+   &lt;/Directory&gt;
+
+These instructions allow Apache to run .cgi files found within the Bugzilla
+directory; instructs the server to look for a file called :file:`index.cgi`
+or, if not found, :file:`index.html` if someone only types the directory name
+into the browser; and allows Bugzilla's :file:`.htaccess` files to override
+some global permissions.
+
+On some Linux distributions you will need to enable the Apache CGI
+module. On Debian/Ubuntu, this is done with:
+
+:command:`sudo a2enmod cgi`
+
+If you find that the webserver is returning the Perl code as text rather
+than executing it, then this is the problem.
+
+.. _apache-mod_perl:
+
+Apache with mod_perl
+====================
+
+Some configuration is required to make Bugzilla work with Apache
+and mod_perl.
+
+.. note:: It is not known whether anyone has even tried mod_perl on Mac OS X.
+
+#. Edit the Apache configuration file (see above).
+
+#. Add the following information, substituting where appropriate with your
+   own local paths.
+
+   .. code-block:: apache
+
+       PerlSwitches -w -T
+       PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
+
+   .. note:: This should be used instead of the &lt;Directory&gt; block
+      shown above. This should also be above any other ``mod_perl``
+      directives within the :file:`httpd.conf` and the directives must be
+      specified in the order above.
+
+   .. warning:: You should also ensure that you have disabled ``KeepAlive``
+      support in your Apache install when utilizing Bugzilla under mod_perl
+      or you may suffer a
+      `performance penalty &lt;http://modperlbook.org/html/11-4-KeepAlive.html&gt;`_.
+
+On restarting Apache, Bugzilla should now be running within the
+mod_perl environment.
+
+Please bear the following points in mind when considering using Bugzilla
+under mod_perl:
+
+* mod_perl support in Bugzilla can take up a HUGE amount of RAM - easily
+  30MB per httpd child. The more RAM you can get, the better. mod_perl is
+  basically trading RAM for speed. At least 2GB total system RAM is
+  recommended for running Bugzilla under mod_perl.
+  
+* Under mod_perl, you have to restart Apache if you make any manual change to
+  any Bugzilla file. You can't just reload--you have to actually
+  *restart* the server (as in make sure it stops and starts
+  again). You *can* change :file:`localconfig` and the :file:`params` file
+  manually, if you want, because those are re-read every time you load a page.
+
+* You must run in Apache's Prefork MPM (this is the default). The Worker MPM
+  may not work -- we haven't tested Bugzilla's mod_perl support under threads.
+  (And, in fact, we're fairly sure it *won't* work.)
+
+* Bugzilla generally expects to be the only mod_perl application running on
+  your entire server. It may or may not work if there are other applications also
+  running under mod_perl. It does try its best to play nice with other mod_perl
+  applications, but it still may have conflicts.
+
+* It is recommended that you have one Bugzilla instance running under mod_perl
+  on your server. Bugzilla has not been tested with more than one instance running.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingbackupsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/backups.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/backups.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/backups.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+.. _backups:
+
+Backups
+#######
+
+Database
+========
+
+Here are some sample commands you could use to backup
+your database, depending on what database system you're
+using. You may have to modify these commands for your
+particular setup. Replace the $VARIABLEs with appropriate values for your
+setup.
+
+MySQL
+-----
+
+:command:`mysqldump --max-allowed-packet=32M -u $USERNAME -p $DATABASENAME &gt; backup.sql`
+
+The value for :command:`max-allowed-packet` should be the value you've set in
+your :ref:`MySQL configuration file &lt;mysql&gt;`, and should be larger than the
+largest attachment in your database. See the
+`mysqldump documentation &lt;http://dev.mysql.com/doc/mysql/en/mysqldump.html&gt;`_
+for more information on :file:`mysqldump`.
+
+PostgreSQL
+----------
+
+:command:`pg_dump --no-privileges --no-owner -h localhost -U $USERNAME &gt; bugs.sql`
+
+Bugzilla
+========
+
+The Bugzilla directory contains some data files and configuration files which
+you would want to retain. A simple recursive copy will do the job here.
+
+:command:`cp -rp $BUGZILLA_HOME /var/backups/bugzilla`
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingdb_serverrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/db_server.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/db_server.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/db_server.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+.. _db_server:
+
+Database Server
+###############
+
+Bugzilla requires a database to store its data. We recommend either MySQL or
+PostgreSQL for production installations. Oracle 10 should work fine, but very
+little or no testing has been done with Oracle 11 and 12. SQLite is easy to
+configure but, due to its limitations, it should only be used for testing
+purposes and very small installations.
+
+.. toctree::
+   :maxdepth: 1
+
+   mysql
+   postgresql
+   oracle
+   sqlite
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingessentialpostinstallconfigrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/essential-post-install-config.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/essential-post-install-config.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/essential-post-install-config.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,172 @@
</span><ins>+.. _essential-post-install-config:
+
+Essential Post-Installation Configuration
+#########################################
+
+Bugzilla is configured in the Administration Parameters. Log in with the
+administrator account you defined in the last :file:`checksetup.pl` run,
+then click :guilabel:`Administration` in the header, and then
+:guilabel:`Parameters`. You will see the different parameter sections
+down the left hand side of the page.
+
+.. _config-essential-params:
+
+Parameters
+==========
+
+There are a few parameters which it is very important to define (or
+explicitly decide not to change).
+
+The first set of these are in the :guilabel:`Required Settings` section.
+
+* :param:`urlbase`: this is the URL by which people should access
+  Bugzilla's front page.
+* :param:`sslbase`: if you have configured SSL on your Bugzilla server,
+  this is the SSL URL by which people should access Bugzilla's front page.
+* :param:`ssl_redirect`: Set this if you want everyone to be redirected
+  to use the SSL version. Recommended if you have set up SSL.
+* :param:`cookiepath`: Bugzilla uses cookies to remember who each user is.
+  In order to set those cookies in the correct scope, you may need to set a
+  cookiepath. If your Bugzilla is at the root of your domain, you don't need
+  to change the default value.
+
+You may want to put your email address in the :param:`maintainer`
+parameter in the :guilabel:`General` section. This will then let people
+know who to contact if they see problems or hit errors.
+
+If you don't want just anyone able to read your Bugzilla, set the
+:param:`requirelogin` parameter in the :guilabel:`User Authentication`
+section, and change or clear the :param:`createemailregexp` parameter.
+
+.. _email:
+
+Email
+=====
+
+Bugzilla requires the ability to set up email. You have a number of choices
+here. The simplest is to get Gmail or some other email provider to do the
+work for you, but you can also hand the mail off to a local email server,
+or run one yourself on the Bugzilla machine.
+
+Bugzilla's approach to email is configured in the :guilabel:`Email` section
+of the Parameters.
+
+.. _install-MTA:
+
+Use Another Mail Server
+-----------------------
+
+This section corresponds to choosing a :param:`mail_delivery_method` of
+:paramval:`SMTP`.
+
+This method passes the email off to an existing mail server. Your
+organization may well already have one running for their internal email, and
+may prefer to use it for confidentiality reasons. If so, you need the
+following information about it:
+
+* The domain name of the server (Parameter: :param:`smtpserver`)
+* The username and password to use (Parameters: :param:`smtp_username` and 
+  :param:`smtp_password`)
+* Whether the server uses SSL (Parameter: :param:`smtp_ssl`)
+* The address you should be sending mail 'From' (Parameter:
+  :param:`mailfrom`)
+
+If your organization does not run its own mail server, you can use the
+services of one of any number of popular email providers.
+
+Gmail
+'''''
+
+Visit https://gmail.com and create a new Gmail account for your Bugzilla to
+use. Then, set the following parameter values in the &quot;Email&quot; section:
+
+* :param:`mail_delivery_method`: :paramval:`SMTP`
+* :param:`mailfrom`: :paramval:`new_gmail_address@gmail.com`
+* :param:`smtpserver`: :paramval:`smtp.gmail.com:465`
+* :param:`smtp_username`: :paramval:`new_gmail_address@gmail.com`
+* :param:`smtp_password`: :paramval:`new_gmail_password`
+* :param:`smtp_ssl`: :paramval:`On`
+
+Run Your Own Mail Server
+------------------------
+
+This section corresponds to choosing a :param:`mail_delivery_method` of
+:paramval:`Sendmail`.
+
+Unless you know what you are doing, and can deal with the possible problems
+of spam, bounces and blacklists, it is probably unwise to set up your own
+mail server just for Bugzilla. However, if you wish to do so, some guidance
+follows.
+
+On Linux, any Sendmail-compatible MTA (Mail Transfer Agent) will
+suffice.  Sendmail, Postfix, qmail and Exim are examples of common
+MTAs. Sendmail is the original Unix MTA, but the others are easier to
+configure, and therefore many people replace Sendmail with Postfix or
+Exim. They are drop-in replacements, so Bugzilla will not
+distinguish between them.
+
+If you are using Sendmail, version 8.7 or higher is required. If you are
+using a Sendmail-compatible MTA, it must be compatible with at least version
+8.7 of Sendmail.
+
+On Mac OS X 10.3 and later, `Postfix &lt;http://www.postfix.org/&gt;`_
+is used as the built-in email server.  Postfix provides an executable
+that mimics sendmail enough to satisfy Bugzilla.
+
+On Windows, if you find yourself unable to use Bugzilla's built-in SMTP
+support (e.g. because the necessary Perl modules are not available), you can
+use :paramval:`Sendmail` with a little application called
+`sendmail.exe &lt;http://glob.com.au/sendmail/&gt;`_, which provides
+sendmail-compatible calling conventions and encapsulates the SMTP
+communication to another mail server. Like Bugzilla, :command:`sendmail.exe`
+can be configured to log SMTP communication to a file in case of problems.
+
+Detailed information on configuring an MTA is outside the scope of this
+document. Consult the manual for the specific MTA you choose for detailed
+installation instructions. Each of these programs will have their own
+configuration files where you must configure certain parameters to
+ensure that the mail is delivered properly. They are implemented
+as services, and you should ensure that the MTA is in the auto-start
+list of services for the machine.
+
+If a simple mail sent with the command-line :file:`mail` program
+succeeds, then Bugzilla should also be fine.
+
+Troubleshooting
+---------------
+
+If you are having trouble, check that any configured SMTP server can be
+reached from your Bugzilla server and that any given authentication
+credentials are valid. If these things seem correct and your mails are still
+not sending, check if your OS uses SELinux or AppArmor. Either of these
+may prevent your web server from sending email. The SELinux boolean
+`httpd_can_sendmail &lt;http://selinuxproject.org/page/ApacheRecipes#Allow_the_Apache_HTTP_Server_to_send_mail&gt;`_
+may need to be set to True.
+   
+If all those things don't help, activate the :param:`smtp_debug` parameter
+and check your webserver logs.
+
+.. _config-products:
+
+Products, Components, Versions and Milestones
+=============================================
+
+Bugs in Bugzilla are categorised into Products and, inside those Products,
+Components (and, optionally, if you turn on the :param:`useclassifications`
+parameter, Classifications as a level above Products).
+
+Bugzilla comes with a single Product, called &quot;TestProduct&quot;, which contains a
+single component, imaginatively called &quot;TestComponent&quot;. You will want to
+create your own Products and their Components. It's OK to have just one
+Component inside a Product. Products have Versions (which represents the
+version of the software in which a bug was found) and Target Milestones
+(which represent the future version of the product in which the bug is
+hopefully to be fixed - or, for RESOLVED bugs, was fixed. You may also want
+to add some of those.
+
+Once you've created your own, you will want to delete TestProduct (which
+will delete TestComponent automatically). Note that if you've filed a bug in
+TestProduct to try Bugzilla out, you'll need to move it elsewhere before it's
+possible to delete TestProduct.
+
+Now, you may want to do some of the :ref:`optional-post-install-config`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingiisrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/iis.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/iis.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/iis.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,130 @@
</span><ins>+.. _iis:
+
+Microsoft IIS
+#############
+
+Bugzilla works with IIS as a normal CGI application. These instructions assume
+that you are using Windows 7 or Windows 10. Procedures for other versions are
+probably similar.
+
+Begin by starting Internet Information Services (IIS) Manager.
+:guilabel:`Start` --&gt; :guilabel:`Administrators Tools` --&gt;
+:guilabel:`Internet Information Services (IIS) Manager`. Or run the command:
+
+:command:`inetmgr`
+
+Create a New Application
+========================
+
+Expand your :guilabel:`Server` until the :guilabel:`Default Web Site` shows
+its children.
+
+Right-click :guilabel:`Default Web Site` and select
+:guilabel:`Add Application` from the menu.
+
+Unde :guilabel:`Alias`, enter the alias for the website. This is the path
+below the domain where you want Bugzilla to appear.
+
+Under :guilabel:`Physical Path`, enter the path to Bugzilla,
+:file:`C:\\Bugzilla`.
+
+When finished, click :guilabel:`OK`.
+
+Configure the Default Document
+==============================
+
+Click on the Application that you just created. Double-click on
+:guilabel:`Default Document`, and click :guilabel:`Add` underneath the
+Actions menu.
+
+Under :guilabel:`Name`, enter ``index.cgi``.
+
+All other default documents can be removed for this application.
+
+.. warning:: Do not delete the default document from the :guilabel:`Default Website`.
+
+Add Handler Mappings
+====================
+
+Ensure that you are at the Default Website. Under :guilabel:`IIS`,
+double-click :guilabel:`Handler Mappings`. Under :guilabel:`Actions`, click
+:guilabel:`Add Script Map`. You need to do this twice.
+
+For the first one, set the following values (replacing paths if necessary):
+
+* :guilabel:`Request Path`: ``*.pl``
+* :guilabel:`Executable`: ``C:\Perl\bin\perl.exe &quot;%s&quot; %s``
+* :guilabel:`Name`: ``Perl Script Map``
+
+At the prompt select :guilabel:`Yes`.
+
+.. note:: The ActiveState Perl installer may have already created an entry for
+   .pl files that is limited to ``GET,HEAD,POST``. If so, this mapping should
+   be removed, as Bugzilla's .pl files are not designed to be run via a web
+   server.
+
+For the second one, set the following values (replacing paths if necessary):
+
+* :guilabel:`Request Path`: ``*.cgi``
+* :guilabel:`Executable`: ``C:\Perl\bin\perl.exe &quot;%s&quot; %s``
+* :guilabel:`Name`: ``CGI Script Map``
+
+At the prompt select :guilabel:`Yes`.
+
+Bugzilla Application
+====================
+
+Ensure that you are at the Bugzilla Application. Under :guilabel:`IIS`,
+double-click :guilabel:`Handler Mappings`. Under :guilabel:`Actions`, click
+:guilabel:`Add Script Map`.
+
+Set the following values (replacing paths if necessary):
+
+* :guilabel:`Request Path`: ``*.cgi``
+* :guilabel:`Executable`: ``C:\Perl\bin\perl.exe -x&quot;C:\Bugzilla&quot; -wT &quot;%s&quot; %s``
+* :guilabel:`Name`: ``Bugzilla``
+
+At the prompt select :guilabel:`Yes`.
+
+Now it's time to restart the IIS server to take these changes into account.
+From the top-level menu, which contains the name of your machine, click
+:guilabel:`Restart` under :guilabel:`Manage Server`. Or run the command:
+
+:command:`iisreset`
+
+Enable Rewrite Rules for REST
+=============================
+
+REST URLs are usually of the form http://.../bugzilla/rest/version instead of
+http://.../bugzilla/rest.cgi/version. To let IIS redirect rest/ URLs to rest.cgi,
+you need to download and install the
+`URL Rewrite extension for IIS &lt;http://www.iis.net/downloads/microsoft/url-rewrite&gt;`_.
+Direct download links are available at the bottom of the page for both x86 and
+x64 Windows.
+
+Once installed, you open the IIS Manager again and go to your Bugzilla
+Application. From here, double-click :guilabel:`URL Rewrite`. Then click
+:guilabel:`Add Rule(s)` under the :guilabel:`Actions` menu and click
+:guilabel:`Blank rule` in the :guilabel:`Inbound rules` section.
+
+Fill the fields as follows. Other fields do not need to be edited.
+
+* :guilabel:`Name`: ``REST``
+* :guilabel:`Pattern`: ``^rest/(.*)$``
+* :guilabel:`Rewrite URL`: ``rest.cgi/{R:1}``
+
+There is no need to restart IIS. Changes take effect immediately.
+
+Common Problems
+===============
+
+Bugzilla runs but it's not possible to log in
+  You've probably configured IIS to use ActiveState's ISAPI DLL -- in other
+  words you're using PerlEx, or the executable IIS is configured to use is
+  :file:`PerlS.dll` or :file:`Perl30.dll`.
+
+  Reconfigure IIS to use :file:`perl.exe`.
+
+IIS returns HTTP 502 errors
+  You probably forgot the ``-T`` argument to :file:`perl` when configuring the
+  executable in IIS.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+.. highlight:: console
+
+.. _installing:
+
+==================================
+Installation and Maintenance Guide
+==================================
+
+.. note:: If you just want to *use* Bugzilla,
+   you do not need to install it. None of this chapter is relevant to
+   you. Ask your Bugzilla administrator for the URL to access it from
+   your web browser. You may want to read the :ref:`using`.
+
+Bugzilla can be installed under Linux, Windows, Mac OS X, and perhaps other
+operating systems. However, if you are setting it up on a dedicated machine
+and you have control of the operating system to use, the Bugzilla team
+wholeheartedly recommends Linux as an extremely versatile, stable, and robust
+operating system that provides an ideal environment for Bugzilla. In that
+case, you may want to read the :ref:`Quick Start instructions &lt;quick-start&gt;`.
+
+.. toctree::
+   :maxdepth: 1
+
+   quick-start
+   linux
+   windows
+   mac-os-x
+   web_server
+   db_server
+   essential-post-install-config
+   optional-post-install-config
+   migrating
+   moving
+   upgrading
+   backups
+   sanity-check
+   merging-accounts
+   multiple-bugzillas
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallinginstallingendincrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/installing-end.inc.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/installing-end.inc.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/installing-end.inc.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+localconfig
+===========
+
+You should now change into the Bugzilla directory and run
+:file:`checksetup.pl`, without any parameters:
+
+|checksetupcommand|
+
+:file:`checksetup.pl` will write out a file called :file:`localconfig`.
+This file contains the default settings for a number of
+Bugzilla parameters, the most important of which are the group your web
+server runs as, and information on how to connect to your database.
+
+Load this file in your editor. You will need to check/change ``$db_driver``
+and ``$db_pass``, which are respectively the type of the database you are
+using and the password for the ``bugs`` database user you have created.
+``$db_driver`` can be either ``mysql``, ``Pg`` (PostgreSQL), ``Oracle`` or
+``Sqlite``. All values are case sensitive.
+
+Set the value of ``$webservergroup`` to the group your web server runs as.
+
+* Fedora/Red Hat: ``apache``
+* Debian/Ubuntu: ``www-data``
+* Mac OS X: ``_www``
+* Windows: ignore this setting; it does nothing
+
+The other options in the :file:`localconfig` file are documented by their
+accompanying comments. If you have a non-standard database setup, you may
+need to change one or more of the other ``$db_*`` parameters.
+
+.. note:: If you are using Oracle, ``$db_name`` should be set to
+   the SID name of your database (e.g. ``XE`` if you are using Oracle XE).
+
+checksetup.pl
+=============
+
+Next, run :file:`checksetup.pl` an additional time:
+
+|checksetupcommand|
+
+It reconfirms that all the modules are present, and notices the altered
+localconfig file, which it assumes you have edited to your
+satisfaction. It compiles the UI templates,
+connects to the database using the ``bugs``
+user you created and the password you defined, and creates the
+``bugs`` database and the tables therein.
+
+After that, it asks for details of an administrator account. Bugzilla
+can have multiple administrators - you can create more later - but
+it needs one to start off with.
+Enter the email address of an administrator, his or her full name,
+and a suitable Bugzilla password.
+
+:file:`checksetup.pl` will then finish. You may rerun
+:file:`checksetup.pl` at any time if you wish.
+
+Success
+=======
+
+Your Bugzilla should now be working. Check by running:
+
+|testservercommand|
+
+If that passes, access ``http://&lt;your-bugzilla-server&gt;/`` in your browser -
+you should see the Bugzilla front page. Of course, if you installed Bugzilla
+in a subdirectory, make sure that's in the URL.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallinglinuxrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/linux.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/linux.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/linux.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,203 @@
</span><ins>+.. _linux:
+
+Linux
+#####
+
+Some Linux distributions include Bugzilla and its dependencies in their
+package management systems. If you have root access, installing Bugzilla on
+any Linux system could be as simple as finding the Bugzilla package in the
+package management application and installing it. There may be a small bit
+of additional configuration required.
+
+If you are installing your machine from scratch, :ref:`quick-start` may be
+the best instructions for you.
+
+.. _linux-install-packages:
+
+Install Packages
+================
+
+Use your distribution's package manager to install Perl, your preferred
+database engine (MySQL if in doubt), and a webserver (Apache if in doubt).
+Some distributions even have a Bugzilla package, although that will vary
+in age.
+
+The commands below will install those things and some of Bugzilla's other
+prerequisites as well. If you find a package doesn't install or the name
+is not found, just remove it from the list and reissue the command. If you
+want to use a different database or webserver, substitute the package
+names as appropriate.
+
+Fedora and Red Hat
+------------------
+
+The following command will install Red Hat's packaged version of Bugzilla:
+
+:command:`yum install bugzilla httpd mysql-server`
+
+Then, you can skip to :ref:`configuring your database &lt;linux-config-database&gt;`.
+It may be useful to know that Fedora stores the Bugzilla files in
+:file:`/usr/share/bugzilla`, so that's where you'll run :file:`checksetup.pl`.
+
+If you want to install a version of Bugzilla from the Bugzilla project, you
+will instead need:
+
+:command:`yum install httpd mysql-server mod_perl mod_perl-devel httpd-devel
+gd-devel mysql-devel
+graphviz patchutils gcc 'perl(Apache2::SizeLimit)' 'perl(Authen::Radius)'
+'perl(Authen::SASL)' 'perl(Cache::Memcached)' 'perl(CGI)' 'perl(Chart::Lines)'
+'perl(Daemon::Generic)' 'perl(Date::Format)' 'perl(DateTime)'
+'perl(DateTime::TimeZone)' 'perl(DBI)' 'perl(Digest::SHA)' 'perl(Email::MIME)'
+'perl(Email::Reply)' 'perl(Email::Sender)' 'perl(Encode)' 'perl(Encode::Detect)'
+'perl(File::MimeInfo::Magic)' 'perl(File::Slurp)' 'perl(GD)' 'perl(GD::Graph)'
+'perl(GD::Text)' 'perl(HTML::FormatText::WithLinks)' 'perl(HTML::Parser)'
+'perl(HTML::Scrubber)' 'perl(IO::Scalar)' 'perl(JSON::RPC)' 'perl(JSON::XS)'
+'perl(List::MoreUtils)' 'perl(LWP::UserAgent)' 'perl(Math::Random::ISAAC)'
+'perl(MIME::Parser)' 'perl(mod_perl2)' 'perl(Net::LDAP)' 'perl(Net::SMTP::SSL)'
+'perl(PatchReader)' 'perl(SOAP::Lite)' 'perl(Template)'
+'perl(Template::Plugin::GD::Image)' 'perl(Test::Taint)' 'perl(TheSchwartz)'
+'perl(URI)' 'perl(XMLRPC::Lite)' 'perl(XML::Twig)'`
+
+If you are running RHEL6, you will have to enable the &quot;RHEL Server Optional&quot;
+channel in RHN to get some of those packages. 
+
+If you plan to use a database other than MySQL, you will need to also install
+the appropriate packages for that.
+
+Ubuntu and Debian
+-----------------
+
+:command:`apt-get install git nano`
+
+:command:`apt-get install apache2 mysql-server libappconfig-perl
+libdate-calc-perl libtemplate-perl libmime-perl build-essential
+libdatetime-timezone-perl libdatetime-perl libemail-sender-perl
+libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl
+libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl
+apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev
+libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl
+libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl
+libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl
+libtest-taint-perl libauthen-radius-perl libfile-slurp-perl
+libencode-detect-perl libmodule-build-perl libnet-ldap-perl
+libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl
+libhtml-formattext-withlinks-perl libgd-dev libmysqlclient-dev lynx-cur
+graphviz python-sphinx`
+
+If you plan to use a database other than MySQL, you will need to also install
+the appropriate packages for that.
+
+Gentoo
+------
+
+:command:`emerge -av bugzilla`
+
+will install Bugzilla and all its dependencies. If you don't have the vhosts
+USE flag enabled, Bugzilla will end up in :file:`/var/www/localhost/bugzilla`.
+
+Then, you can skip to :ref:`configuring your database
+&lt;linux-config-database&gt;`.
+
+.. _linux-install-perl:
+
+Perl
+====
+
+Test which version of Perl you have installed with:
+::
+
+    $ perl -v
+
+Bugzilla requires at least Perl |min-perl-ver|.
+
+.. _linux-install-bzfiles:
+
+Bugzilla
+========
+
+The best way to get Bugzilla is to check it out from git:
+
+:command:`git clone --branch release-X.X-stable https://git.mozilla.org/bugzilla/bugzilla`
+
+Run the above command in your home directory, replacing &quot;X.X&quot; with the 2-digit
+version number of the stable release of Bugzilla that you want - e.g. &quot;4.4&quot;.
+
+If that's not possible, you can
+`download a tarball of Bugzilla &lt;http://www.bugzilla.org/download/&gt;`_.
+
+Place Bugzilla in a suitable directory, accessible by the default web server
+user (probably ``apache`` or ``www-data``).
+Good locations are either directly in the web server's document directory
+(often :file:`/var/www/html`) or in :file:`/usr/local`, either with a
+symbolic link to the web server's document directory or an alias in the web
+server's configuration.
+
+.. warning:: The default Bugzilla distribution is NOT designed to be placed
+   in a :file:`cgi-bin` directory. This
+   includes any directory which is configured using the
+   ``ScriptAlias`` directive of Apache.
+
+.. _linux-install-perl-modules:
+
+Perl Modules
+============
+
+Bugzilla requires a number of Perl modules. You can install these globally
+using your system's package manager, or install Bugzilla-only copies. At
+times, Bugzilla may require a version of a Perl module newer than the one
+your distribution packages, in which case you will need to install a
+Bugzilla-only copy of the newer version.
+
+At this point you probably need to become ``root``, e.g. by using
+:command:`su`. You should remain as root until the end of the install. This
+can be avoided in some circumstances if you are a member of your webserver's
+group, but being root is easier and will always work.
+
+To check whether you have all the required modules, run:
+
+:command:`./checksetup.pl --check-modules`
+
+You can run this command as many times as necessary.
+
+If you have not already installed the necessary modules, and want to do it
+system-wide, invoke your package manager appropriately at this point.
+Alternatively, you can install all missing modules locally (i.e. just for
+Bugzilla) like this:
+
+:command:`./install-module.pl --all`
+
+Or, you can pass an individual module name:
+
+:command:`./install-module.pl &lt;modulename&gt;`
+
+.. _linux-config-webserver:
+
+Web Server
+==========
+
+Any web server that is capable of running CGI scripts can be made to work.
+We have specific configuration instructions for the following:
+
+* :ref:`apache`
+
+.. _linux-config-database:
+
+Database Engine
+===============
+
+Bugzilla supports MySQL, PostgreSQL, Oracle and SQLite as database servers.
+You only require one of these systems to make use of Bugzilla. MySQL is
+most commonly used. SQLite is good for trial installations as it requires no
+setup. Configure your server according to the instructions below:
+
+* :ref:`mysql`
+* :ref:`postgresql`
+* :ref:`oracle`
+* :ref:`sqlite`
+
+.. |checksetupcommand| replace:: :command:`./checksetup.pl`
+.. |testservercommand| replace:: :command:`./testserver.pl http://&lt;your-bugzilla-server&gt;/`
+
+.. include:: installing-end.inc.rst
+
+Next, do the :ref:`essential-post-install-config`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmacosxrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mac-os-x.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mac-os-x.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mac-os-x.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,130 @@
</span><ins>+.. _mac-os-x:
+
+Mac OS X
+########
+
+.. _macosx-install-packages:
+
+.. note:: The Bugzilla team has very little Mac expertise and we've not been
+          able to do a successful install of the latest version. We got
+          close, though. If you've managed it, tell us how and we can update
+          these docs!
+
+Install Packages
+================
+
+OS X 10.7 provides Perl 5.12 and Apache 2.2. Install the following additional
+packages:
+
+* git: Download an installer from
+  `the git website &lt;http://www.git-scm.com/downloads&gt;`_. 
+* MySQL: Download an installer from
+  `the MySQL website &lt;http://dev.mysql.com/downloads/mysql/&gt;`_.
+
+.. _macosx-install-bzfiles:
+
+Bugzilla
+========
+
+The best way to get Bugzilla is to check it out from git:
+
+:command:`git clone --branch release-X.X-stable https://git.mozilla.org/bugzilla/bugzilla`
+
+Run the above command in your home directory, replacing &quot;X.X&quot; with the 2-digit
+version number of the stable release of Bugzilla that you want - e.g. &quot;4.4&quot;.
+This will place Bugzilla in the directory :file:`$HOME/bugzilla`.
+
+If that's not possible, you can
+`download a tarball of Bugzilla &lt;http://www.bugzilla.org/download/&gt;`_.
+
+.. _macosx-libraries:
+
+Additional System Libraries
+===========================
+
+Apple does not include the GD library with Mac OS X. Bugzilla needs this if
+you want to display bug graphs, and you need to install it before you try
+installing the GD Perl module.
+
+You can use `MacPorts &lt;http://www.macports.org/&gt;`_, `Homebrew &lt;http://brew.sh/&gt;`_ or
+`Fink &lt;http://sourceforge.net/projects/fink/&gt;`_, all of which can install common
+Unix programs on Mac OS X.
+
+If you don't have one of the above installed already, pick one and follow the
+instructions for setting it up. Then, use it to install the :file:`gd2` package
+(MacPorts/Fink) or the :file:`gd` package (Brew).
+
+The package manager may prompt you to install a number of dependencies; you
+will need to agree to this.
+
+.. note:: To prevent creating conflicts with the software that Apple
+   installs by default, Fink creates its own directory tree at :file:`/sw`
+   where it installs most of
+   the software that it installs. This means your libraries and headers
+   will be at :file:`/sw/lib` and :file:`/sw/include` instead
+   of :file:`/usr/lib` and :file:`/usr/include`. When the
+   Perl module config script for the GD module asks where your :file:`libgd`
+   is, be sure to tell it :file:`/sw/lib`.
+
+.. _macosx-install-perl-modules:
+
+Perl Modules
+============
+
+Bugzilla requires a number of Perl modules. On Mac OS X, the easiest thing to
+do is to install local copies (rather than system-wide copies) of any ones
+that you don't already have. However, if you do want to install them
+system-wide, run the below commands as root with the :command:`--global`
+option.
+
+To check whether you have all the required modules and what is still missing,
+run:
+
+:command:`perl checksetup.pl --check-modules`
+
+You can run this command as many times as necessary.
+
+Install all missing modules locally like this:
+
+:command:`perl install-module.pl --all`
+
+.. _macosx-config-webserver:
+
+Web Server
+==========
+
+Any web server that is capable of running CGI scripts can be made to work.
+We have specific configuration instructions for the following:
+
+* :ref:`apache`
+
+You'll need to create a symbolic link so the webserver can see Bugzilla:
+
+:command:`cd /Library/WebServer/Documents`
+
+:command:`sudo ln -s $HOME/bugzilla bugzilla`
+
+In :guilabel:`System Preferences` --&gt; :guilabel:`Sharing`, enable the
+:guilabel:`Web Sharing` checkbox to start Apache. 
+
+.. _macosx-config-database:
+
+Database Engine
+===============
+
+Bugzilla supports MySQL, PostgreSQL, Oracle and SQLite as database servers.
+You only require one of these systems to make use of Bugzilla. MySQL is
+most commonly used on Mac OS X. (In fact, we have no reports of anyone using
+anything else.) Configure your server according to the instructions below:
+
+* :ref:`mysql`
+* :ref:`postgresql`
+* :ref:`oracle`
+* :ref:`sqlite`
+
+.. |checksetupcommand| replace:: :command:`perl checksetup.pl`
+.. |testservercommand| replace:: :command:`perl testserver.pl http://&lt;your-bugzilla-server&gt;/`
+
+.. include:: installing-end.inc.rst
+
+Next, do the :ref:`essential-post-install-config`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmergingaccountsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/merging-accounts.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/merging-accounts.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/merging-accounts.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+Merging Accounts
+################
+
+Sometimes, users create a second account, perhaps because they don't realise
+they can change the email address associated with their original account.
+And then, once they discover this, they don't want to abandon the history
+associated with either account.
+
+The best way forward in this case would be to merge one of their accounts
+into the other one, so it looked like the target account had done all the
+actions of both. In Bugzilla's :file:`contrib` directory, there is a script
+called :file:`merge-users.pl`. While code in this directory is not officially
+supported by the Bugzilla team, this script may be useful to you in
+solving the above problem.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrom1incrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-1.inc.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-1.inc.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-1.inc.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+.. This file is included in multiple places, so can't have labels as they
+   appear as duplicates.
+   
+The procedure to migrate to Git is as follows. The idea is to switch version
+control systems without changing the version of Bugzilla you are using,
+to minimise the risk of conflict or problems. Any upgrade can then
+happen as a separate step.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrom2incrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-2.inc.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-2.inc.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-2.inc.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,149 @@
</span><ins>+.. This file is included in multiple places, so can't have labels as they
+   appear as duplicates.
+
+Download Code from Git
+======================
+
+First, you need to find what version of Bugzilla you are using. It should be
+in the top right corner of the front page but, if not, open the file
+:file:`Bugzilla/Constants.pm` in your Bugzilla directory and search for
+``BUGZILLA_VERSION``.
+
+Then, you need to download an additional copy of your *current* version of
+Bugzilla from the git repository, and place it in a separate directory
+alongside your existing Bugzilla installation (which we will assume is in a
+directory called :file:`bugzilla`).
+
+To do this, you will need a copy of the :command:`git` program. All Linux
+distributions have it; search your package manager for &quot;git&quot;. On Windows or
+Mac OS X, you can
+`download the official build &lt;http://www.git-scm.com/downloads&gt;`_.
+
+Once git is installed, run these commands to pull a copy of Bugzilla:
+
+:command:`git clone https://git.mozilla.org/bugzilla/bugzilla bugzilla-new`
+
+:command:`cd bugzilla-new`
+
+:command:`git checkout release-$VERSION`
+
+Replace $VERSION with the three-digit version number of your current Bugzilla,
+e.g. &quot;4.2.2&quot;. (If the the final digit would have been a 0, omit it - so use
+&quot;4.4&quot; for the first release in the 4.4 series.)
+
+You will get a message about a 'detached HEAD'. Don't worry; your head is
+still firmly attached to your shoulders.
+
+Save Any Local Customizations
+=============================
+
+Go into your original Bugzilla directory and run this command:
+
+|diffcommand|
+
+If you have made customizations to your Bugzilla, and you made them by
+changing the Bugzilla code itself (rather than using the Extension system),
+then :file:`patch.diff` will have significant content. You will want to keep a copy
+of those changes by keeping a copy of this file and any files referenced in it
+by &quot;Only in&quot; lines. If the file has zero size or only insignificant content,
+you haven't made any local customizations of this sort.
+
+Shut Down Bugzilla
+==================
+
+At this point, you should shut down Bugzilla to make sure nothing changes
+while you make the switch. Go into the administrative interface and put an
+appropriate message into the :param:`shutdownhtml` parameter, which is in the
+&quot;General&quot; section of the administration parameters. As the name implies, HTML
+is allowed.
+
+This would be a good time to make :ref:`backups`. We shouldn't be affecting
+the database, but you can't be too careful.
+
+Copy Across Data and Modules
+============================
+
+Copy the contents of the following directories from your current installation
+of Bugzilla into the corresponding directory in :file:`bugzilla-new/`:
+
+.. code-block:: none
+
+  lib/
+  data/
+  template/en/custom (may or may not exist)
+
+You also need to copy any extensions you have written or installed, which are
+in the :file:`extensions/` directory. |extstatusinfo|
+
+Lastly, copy the following file from your current installation of Bugzilla
+into the corresponding place in :file:`bugzilla-new/`:
+
+.. code-block:: none
+
+  localconfig
+
+This file contains your database password and access details. Because your
+two versions of Bugzilla are the same, this should all work fine.
+
+Reapply Local Customizations
+============================
+
+If your :file:`patch.diff` file was zero sized, you can
+jump to the next step. Otherwise, you have to apply the patch to your new
+installation. If you are on Windows and you don’t have the :command:`patch`
+program, you can download it from
+`GNUWin &lt;http://gnuwin32.sourceforge.net/packages/patch.htm&gt;`_. Once
+downloaded, you must copy patch.exe into the Windows directory. 
+
+Copy :file:`patch.diff` into the :file:`bugzilla-new` directory and then do:
+
+:command:`patch -p0 --dry-run &lt; patch.diff`
+
+The patch should apply cleanly because you have exactly the same version of
+Bugzilla in both directories. If it does, remove the :command:`--dry-run` and
+rerun the command to apply it for real. If it does not apply cleanly, it is
+likely that you have managed to get a Bugzilla version mismatch between the
+two directories.
+
+Swap The New Version In
+=======================
+
+Now we swap the directories over, and run checksetup.pl to confirm that all
+is well. From the directory containing the :file:`bugzilla` and
+:file:`bugzilla-new` directories, run:
+
+:command:`mv bugzilla bugzilla-old`
+
+:command:`mv bugzilla-new bugzilla`
+
+:command:`cd bugzilla`
+
+:command:`./checksetup.pl`
+
+Running :file:`checksetup.pl` should not result in any changes to your database at
+the end of the run. If it does, then it's most likely that the two versions
+of Bugzilla you have are not, in fact, the same.
+
+Re-enable Bugzilla
+==================
+
+Go into the administrative interface and clear the contents of the
+:param:`shutdownhtml` parameter.
+
+Test Bugzilla
+=============
+
+Use your Bugzilla for several days to check that the switch has had no
+detrimental effects. Then, if necessary, follow the instructions in
+:ref:`upgrading-with-git` to upgrade to the latest version of Bugzilla.
+
+Rolling Back
+============
+
+If something goes wrong at any stage of the switching process (e.g. your
+patch doesn't apply, or checksetup doesn't complete), you can always just
+switch the directories back (if you've got that far) and re-enable Bugzilla
+(if you disabled it) and then seek help. Even if you have re-enabled Bugzilla,
+and find a problem a little while down the road, you are still using the same
+version so there would be few side effects to switching the directories back
+a day or three later.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfromatarballrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-a-tarball.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-a-tarball.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-a-tarball.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+.. _migrating-from-a-tarball:
+
+Migrating from a Tarball
+########################
+
+.. |diffcommand|   replace:: :command:`diff -ru -x data -x lib -x docs -x .git -x CVS -x .cvsignore -x .bzr -x .bzrignore -x .bzrrev ../bugzilla-new . &gt; ../patch.diff`
+
+.. |extstatusinfo| replace:: Copy across any subdirectories which do not exist
+                             in your new install.
+
+The procedure to migrate to Git is as follows. The idea is to switch without
+changing the version of Bugzilla you are using, to minimise the risk of
+conflict or problems. Any upgrade can then happen as a separate step. 
+
+.. include:: migrating-from-2.inc.rst
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfrombzrrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-bzr.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-bzr.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-bzr.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+.. _migrating-from-bazaar:
+
+Migrating from Bazaar
+#####################
+
+.. |updatecommand| replace:: :command:`bzr up -r tag:bugzilla-$VERSION`
+.. |diffcommand|   replace:: :command:`bzr diff &gt; patch.diff`
+.. |extstatusinfo| replace:: The command :command:`bzr status extensions/` should help you work out what you added, if anything.
+
+.. include:: migrating-from-1.inc.rst
+
+The old bzr.mozilla.org server has been decommissioned. This may not
+be a problem but, in some cases, running some of the commands below will
+make :command:`bzr` attempt to contact the server and time out. If and
+only if that happens to you, you will need to switch to the new server,
+as follows. Enter your Bugzilla directory and run:
+
+:command:`bzr info`
+
+and look at the Location: section of the output.
+If it says &quot;light checkout root&quot; then run:
+
+:command:`bzr -Ossl.cert_reqs=none switch https://bzr.bugzilla.org/bugzilla/$VERSION`
+
+Alternatively, if it says &quot;branch root&quot; or &quot;checkout root&quot; then run:
+
+:command:`bzr -Ossl.cert_reqs=none pull --remember https://bzr.bugzilla.org/bugzilla/$VERSION`
+
+Replace $VERSION with the two-digit version number of your current
+Bugzilla, e.g. &quot;4.2&quot; (see below for how to find that).
+
+.. include:: migrating-from-2.inc.rst
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingfromcvsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-cvs.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-cvs.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating-from-cvs.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+.. _migrating-from-cvs:
+
+Migrating from CVS
+##################
+
+.. |updatecommand| replace:: :command:`cvs update -rBUGZILLA-$VERSION-STABLE -dP`
+.. |diffcommand|   replace:: :command:`cvs diff -puN &gt; patch.diff`
+.. |extstatusinfo| replace:: The command :command:`cvs status extensions/` should help you work out what you added, if anything.
+
+.. include:: migrating-from-1.inc.rst
+.. include:: migrating-from-2.inc.rst
+
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmigratingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/migrating.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+.. _migrating-from-other-btses:
+
+Migrating From Other Bug-Tracking Systems
+#########################################
+
+Bugzilla has a framework you can use for migrating from other bug-tracking
+systems -
+`Bugzilla::Migrate &lt;http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/Migrate.html&gt;`_.
+It provides the infrastructure you will need,
+but requires a module to be written to define the specifics of the system you
+are coming from. One exists for
+`Gnats &lt;https://www.gnu.org/software/gnats/&gt;`_. If you write one for a
+popular system, please share your code with us.
+
+Alternatively, Bugzilla comes with a script, :file:`importxml.pl`, which
+imports bugs in Bugzilla's XML format. You can see examples of this format
+by clicking the :guilabel:`XML` link at the bottom of a bug in a running
+Bugzilla. You would need to read the script to see how it handles errors,
+default values, creating non-existing values and so on.
+
+Bugzilla::Migrate is preferred if possible.
+
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmovingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/moving.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/moving.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/moving.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+.. _moving:
+
+Moving Bugzilla Between Machines
+################################
+
+Sometimes it's necessary to take a working installation of Bugzilla and move
+it to new hardware. This page explains how to do that, assuming that you
+have Bugzilla's webserver and database on the same machine, and you are moving
+both of them.
+
+You are advised to install the same version of Bugzilla on the new
+machine as the old machine - any :ref:`upgrade &lt;upgrading&gt;` you also need to
+do can then be done as a separate step. But if you do install a newer version,
+things should still work.
+
+1. Shut down your Bugzilla by loading the front page, going to
+   :guilabel:`Administration` | :guilabel:`Parameters` | :guilabel:`General`
+   and putting some explanatory text into the :param:`shutdownhtml` parameter.
+
+2. Make a :ref:`backup &lt;backups&gt;` of the bugs database.
+
+3. On your new machine, install Bugzilla using the instructions at
+   :ref:`installing`. Look at the old machine if you need to know what values
+   you used for configuring e.g. MySQL.
+
+4. Copy the :file:`data` directory and the :file:`localconfig` file from the
+   old Bugzilla installation to the new one.
+
+5. If anything about your database configuration changed (location of the
+   server, username, password, etc.) as part of the move, update the
+   appropriate variables in :file:`localconfig`.
+
+6. If the new URL to your new Bugzilla installation is different from the old
+   one, update the :param:`urlbase` parameter in :file:`data/params.json`
+   using a text editor.
+
+7. Copy the database backup file from your old server to the new one.
+
+8. Create an empty ``bugs`` database on the new server. For MySQL, that would
+   look like this:
+
+   :command:`mysql -u root -p -e &quot;CREATE DATABASE bugs DEFAULT CHARACTER SET utf8;&quot;`
+
+9. Import your backup file into your new ``bugs`` database. Again, for MySQL:
+
+   :command:`mysql -u root -p bugs &lt; $BACKUP_FILE_NAME`
+
+   If you get an error about &quot;packet too large&quot; or &quot;MySQL server has gone
+   away&quot;, you need to adjust the ``max_allowed_packet`` setting in
+   your :file:`my.cnf` file (usually :file:`/etc/my.cnf`) file to match or
+   exceed the value configured in the same file in your old version of MySQL.
+
+   If there are *any* errors during this step, you have to work out what
+   went wrong, and then drop the database, create it again using the step
+   above, and run the import again.
+
+10. Run :file:`checksetup.pl` to make sure all is OK.
+    (Unless you are using a newer version of Bugzilla on your new server, this
+    should not make any changes.)
+
+    :command:`./checksetup.pl`
+
+11. Activate your new Bugzilla by loading the front page on the new server,
+    going to :guilabel:`Administration` | :guilabel:`Parameters` |
+    :guilabel:`General` and removing the text from the :param:`shutdownhtml`
+    parameter.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmultiplebugzillasrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/multiple-bugzillas.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/multiple-bugzillas.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/multiple-bugzillas.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+.. _multiple-bz-dbs:
+
+One Installation, Multiple Instances
+####################################
+
+This is a somewhat specialist feature; if you don't know whether you need it,
+you don't. It is useful to admins who want to run many separate instances of
+Bugzilla from a single installed codebase.
+
+This is possible by using the ``PROJECT`` environment variable. When accessed,
+Bugzilla checks for the existence of this variable, and if present, uses
+its value to check for an alternative configuration file named
+:file:`localconfig.&lt;PROJECT&gt;` in the same location as
+the default one (:file:`localconfig`). It also checks for
+customized templates in a directory named
+:file:`&lt;PROJECT&gt;` in the same location as the
+default one (:file:`template/&lt;langcode&gt;`). By default
+this is :file:`template/en/default` so ``PROJECT``'s templates
+would be located at :file:`template/en/PROJECT`.
+
+To set up an alternate installation, just export ``PROJECT=foo`` before
+running :command:`checksetup.pl` for the first time. It will
+result in a file called :file:`localconfig.foo` instead of
+:file:`localconfig`. Edit this file as described above, with
+reference to a new database, and re-run :command:`checksetup.pl`
+to populate it. That's all.
+
+Now you have to configure the web server to pass this environment
+variable when accessed via an alternate URL, such as virtual host for
+instance. The following is an example of how you could do it in Apache,
+other Webservers may differ.
+
+.. code-block:: apache
+
+    &lt;VirtualHost 12.34.56.78:80&gt;
+        ServerName bugzilla.example.com
+        SetEnv PROJECT foo
+    &lt;/VirtualHost&gt;
+
+Don't forget to also export this variable before accessing Bugzilla
+by other means, such as repeating tasks like those above.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingmysqlrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mysql.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mysql.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/mysql.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,143 @@
</span><ins>+.. _mysql:
+
+MySQL
+#####
+
+You need MySQL version 5.0.15 or higher.
+
+It's possible to test which version of MySQL you have installed with:
+
+:command:`mysql -V`
+
+Installing
+==========
+
+Windows
+-------
+
+Download the MySQL 32-bit or 64-bit MSI installer from the
+`MySQL website &lt;http://www.mysql.com/downloads/mysql/&gt;`_ (~28 MB).
+
+MySQL has a standard Windows installer. It's ok to select a Typical MySQL
+install (the default). The rest of this documentation assumes assume you
+have installed MySQL into :file:`C:\\mysql`. Adjust paths appropriately if not.
+
+Linux/Mac OS X
+--------------
+
+The package install instructions given previously should have installed MySQL
+on your machine, if it didn't come with it already. Run:
+
+:command:`mysql_secure_installation`
+
+and follow its advice.
+
+If you did install MySQL manually rather than from a package, make sure the
+server is started when the machine boots.
+
+.. _mysql-add-user:
+
+Add a User
+==========
+
+You need to add a new MySQL user for Bugzilla to use. Run the :file:`mysql`
+command-line client and enter:
+
+::
+
+    GRANT SELECT, INSERT,
+    UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
+    CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.*
+    TO bugs@localhost IDENTIFIED BY '$DB_PASS';
+
+    FLUSH PRIVILEGES;
+
+You need to replace ``$DB_PASS`` with a strong password you have chosen.
+Write that password down somewhere.
+
+The above command permits an account called ``bugs``
+to connect from the local machine, ``localhost``. Modify the command to
+reflect your setup if you will be connecting from another
+machine or as a different user.
+
+Change Configuration
+====================
+
+To change MySQL's configuration, you need to edit your MySQL
+configuration file, which is:
+
+* Red Hat/Fedora: :file:`/etc/my.cnf`
+* Debian/Ubuntu: :file:`/etc/mysql/my.cnf`
+* Windows: :file:`C:\\mysql\\bin\\my.ini`
+* Mac OS X: :file:`/etc/my/cnf`
+
+.. _mysql-max-allowed-packet:
+
+Allow Large Attachments and Many Comments
+-----------------------------------------
+
+By default on some systems, MySQL will only allow you to insert things
+into the database that are smaller than 1MB.
+
+Bugzilla attachments
+may be larger than this. Also, Bugzilla combines all comments
+on a single bug into one field for full-text searching, and the
+combination of all comments on a single bug could in some cases
+be larger than 1MB.
+
+We recommend that you allow at least 16MB packets by
+adding or altering the ``max_allowed_packet`` parameter in your MySQL
+configuration in the ``[mysqld]`` section, so that the number is at least
+16M, like this (note that it's ``M``, not ``MB``):
+
+::
+
+    [mysqld]
+    # Allow packets up to 16M
+    max_allowed_packet=16M
+
+.. _mysql-small-words:
+
+Allow Small Words in Full-Text Indexes
+--------------------------------------
+
+By default, words must be at least four characters in length
+in order to be indexed by MySQL's full-text indexes. This causes
+a lot of Bugzilla-specific words to be missed, including &quot;cc&quot;,
+&quot;ftp&quot; and &quot;uri&quot;.
+
+MySQL can be configured to index those words by setting the
+``ft_min_word_len`` param to the minimum size of the words to index.
+
+::
+
+    [mysqld]
+    # Allow small words in full-text indexes
+    ft_min_word_len=2
+
+.. _mysql-attach-table-size:
+
+Permit Attachments Table to Grow Beyond 4GB
+===========================================
+
+This is optional configuration for Bugzillas which are expected to become
+very large, and needs to be done after Bugzilla is fully installed.
+
+By default, MySQL will limit the size of a table to 4GB.
+This limit is present even if the underlying filesystem
+has no such limit.  To set a higher limit, run the :file:`mysql`
+command-line client and enter the following, replacing ``$bugs_db``
+with your Bugzilla database name (which is ``bugs`` by default):
+
+.. code-block:: sql
+
+    USE $bugs_db;
+    
+    ALTER TABLE attachments AVG_ROW_LENGTH=1000000, MAX_ROWS=20000;
+
+The above command will change the limit to 20GB. MySQL will have
+to make a temporary copy of your entire table to do this, so ideally
+you should do this when your attachments table is still small.
+
+.. note:: If you have set the setting in Bugzilla which allows large
+   attachments to be stored on disk, the above change does not affect that.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingoptionalpostinstallconfigrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/optional-post-install-config.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/optional-post-install-config.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/optional-post-install-config.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,174 @@
</span><ins>+.. _optional-post-install-config:
+
+Optional Post-Install Configuration
+###################################
+
+Bugzilla has a number of optional features. This section describes how
+to configure or enable them.
+
+.. _recurring-tasks:
+
+Recurring Tasks
+===============
+
+Several of the below features require you to set up a script to run at
+recurring intervals. The method of doing this varies by operating system.
+
+Linux
+-----
+
+Run:
+
+:command:`crontab -e`
+
+This should bring up the crontab file in your editor. Add the relevant
+cron line from the sections below in order to enable the corresponding
+feature.
+
+Windows
+-------
+
+Windows comes with a Task Scheduler. To run a particular script, do the
+following:
+
+#. :guilabel:`Control Panel` --&gt; :guilabel:`Scheduled Tasks` --&gt;
+   :guilabel:`Add Scheduled Task`
+
+#. Next
+
+#. Browse
+
+#. Find :file:`perl.exe` (normally :file:`C:\\Perl\\bin\\perl.exe`)
+
+#. Give the task a name, such as &quot;Bugzilla &lt;scriptname&gt;&quot;
+
+#. Request the task be performed at your desired time and interval
+
+#. If you're running Apache as a user, not as SYSTEM, enter that user
+   here. Otherwise you're best off creating an account that has write access
+   to the Bugzilla directory and using that
+
+#. Tick &quot;Open Advanced Properties..&quot; and click Finish
+
+#. Append the script name to the end of the &quot;Run&quot; field. eg
+   :command:`C:\\Perl\\bin\\perl.exe C:\\Bugzilla\\&lt;scriptname&gt;`
+
+#. Change &quot;start in&quot; to the Bugzilla directory
+
+.. _installation-bug-graphs:
+
+Bug Graphs
+==========
+
+If you have installed the necessary Perl modules, as indicated by
+:file:`checksetup.pl`, you can ask Bugzilla to regularly collect statistics
+so that you can see graphs and charts.
+
+On Linux, use a cron line as follows:
+
+.. code-block:: none
+
+    5 0 * * * cd &lt;your-bugzilla-directory&gt; &amp;&amp; ./collectstats.pl
+
+On Windows, schedule the :file:`collectstats.pl` script to run daily.
+
+After two days have passed you'll be able to view bug graphs from
+the Reports page.
+
+.. _installation-whining:
+
+Whining
+=======
+
+Users can configure Bugzilla to annoy them at regular intervals, by having
+Bugzilla execute saved searches at certain times and emailing the results to
+the user.  This is known as &quot;Whining&quot;.  The details of how a user configures
+Whining is described in :ref:`whining`, but for it to work a Perl script must
+be executed at regular intervals.
+
+On Linux, use a cron line as follows:
+
+.. code-block:: none
+
+    */15 * * * * cd &lt;your-bugzilla-directory&gt; &amp;&amp; ./whine.pl
+
+On Windows, schedule the :file:`whine.pl` script to run every 15 minutes.
+
+.. _installation-whining-cron:
+
+Whining at Untriaged Bugs
+=========================
+
+It's possible for bugs to languish in an untriaged state. Bugzilla has a
+specific system to issue complaints about this particular problem to all the
+relevant engineers automatically by email.
+
+On Linux, use a cron line as follows:
+
+.. code-block:: none
+
+    55 0 * * * cd &lt;your-bugzilla-directory&gt; &amp;&amp; ./whineatnews.pl
+
+On Windows, schedule the :file:`whineatnews.pl` script to run daily.
+
+Dependency Graphs
+=================
+
+Bugzilla can draw graphs of the dependencies (depends on/blocks relationships)
+between bugs, if you install a package called :file:`graphviz`.
+
+Linux
+-----
+
+Put the complete path to the :file:`dot` command (from the ``graphviz``
+package) in the :param:`webdotbase` parameter. E.g. :paramval:`/usr/bin/dot`.
+
+Windows
+-------
+
+Download and install Graphviz from
+`the Graphviz website &lt;http://www.graphviz.org/Download_windows.php&gt;`_. Put
+the complete path to :file:`dot.exe` in the :param:`webdotbase` parameter,
+e.g. :paramval:`C:\\Program Files (x86)\\Graphviz2.38\\bin\\dot.exe`.
+
+Documentation
+=============
+
+Bugzilla has extensive documentation and help, written in
+`reStructured Text &lt;http://sphinx-doc.org/rest.html&gt;`_
+format. A generic compiled copy exists on
+`bugzilla.readthedocs.org &lt;https://bugzilla.readthedocs.org/&gt;`_, and
+:guilabel:`Help` links point to it by default. You can also build and use
+a local copy of the documentation, for instance because you have added Bugzilla
+extensions which come with documentation, or because your users don't have
+Internet access from their machines.
+
+Bugzilla will automatically detect that you've compiled the documentation
+and link to it in preference to the copy on the Internet. Don't forget to
+recompile it when you upgrade Bugzilla or install new extensions.
+
+Linux
+-----
+
+* Install `Sphinx &lt;http://sphinx-doc.org/&gt;`_. Most Linux distros have it in
+  a package named :file:`python-sphinx`.
+
+* Then go to your Bugzilla directory and run:
+
+  :command:`docs/makedocs.pl`
+
+Windows
+-------
+
+* Download and install `Python &lt;https://www.python.org/downloads/&gt;`_.
+  Both Python 2.7 and 3.x will work. Adding :file:`python` to the :param:`PATH`
+  environment variable, as suggested by the Python installer, will make your
+  life easier.
+
+* Install `Sphinx &lt;http://sphinx-doc.org/&gt;`_. Run :command:`cmd.exe` and type:
+
+  :command:`pip install sphinx`
+
+* Then go to your :file:`C:\\bugzilla\\docs` directory and run:
+
+  :command:`makedocs.pl`
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingoraclerst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/oracle.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/oracle.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/oracle.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+.. _oracle:
+
+Oracle
+######
+
+.. warning:: Bugzilla supports Oracle, but none of the current developers run
+   it. Your mileage may vary.
+
+You need Oracle version 10.02.0 or later.
+
+.. _oracle-tablespace:
+
+Create a New Tablespace
+=======================
+
+You can use the existing tablespace or create a new one for Bugzilla.
+To create a new tablespace, run the following command:
+
+::
+
+    CREATE TABLESPACE bugs
+    DATAFILE '*$path_to_datafile*' SIZE 500M
+    AUTOEXTEND ON NEXT 30M MAXSIZE UNLIMITED
+
+Here, the name of the tablespace is 'bugs', but you can
+choose another name. *$path_to_datafile* is
+the path to the file containing your database, for instance
+:file:`/u01/oradata/bugzilla.dbf`.
+The initial size of the database file is set in this example to 500 Mb,
+with an increment of 30 Mb everytime we reach the size limit of the file.
+
+.. _oracle-add-user:
+
+Add a User to Oracle
+====================
+
+The user name and password must match what you set in :file:`localconfig`
+(``$db_user`` and ``$db_pass``, respectively). Here, we assume that
+the user name is 'bugs' and the tablespace name is the same
+as above.
+
+::
+
+    CREATE USER bugs
+    IDENTIFIED BY &quot;$db_pass&quot;
+    DEFAULT TABLESPACE bugs
+    TEMPORARY TABLESPACE TEMP
+    PROFILE DEFAULT;
+    -- GRANT/REVOKE ROLE PRIVILEGES
+    GRANT CONNECT TO bugs;
+    GRANT RESOURCE TO bugs;
+    -- GRANT/REVOKE SYSTEM PRIVILEGES
+    GRANT UNLIMITED TABLESPACE TO bugs;
+    GRANT EXECUTE ON CTXSYS.CTX_DDL TO bugs;
+
+.. _oracle_webserver:
+
+Configure the Web Server
+========================
+
+If you use Apache, append these lines to :file:`httpd.conf`
+to set ORACLE_HOME and LD_LIBRARY_PATH. For instance:
+
+.. code-block:: apache
+
+    SetEnv ORACLE_HOME /u01/app/oracle/product/10.2.0/
+    SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/10.2.0/lib/
+
+When this is done, restart your web server.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingpostgresqlrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/postgresql.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/postgresql.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/postgresql.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,58 @@
</span><ins>+.. _postgresql:
+
+PostgreSQL
+##########
+
+Test which version of PostgreSQL you have installed with:
+
+:command:`psql -V`
+
+You need PostgreSQL version 8.03.0000 or higher.
+
+If you install PostgreSQL manually rather than from a package, make sure the
+server is started when the machine boots.
+
+.. _posgresql-add-user:
+
+Add a User
+==========
+
+You need to add a new user to PostgreSQL for the Bugzilla
+application to use when accessing the database. The following instructions
+assume the defaults in :file:`localconfig`; if you
+changed those, you need to modify the commands appropriately.
+
+On most systems, to create a user in PostgreSQL, login as the root user, and
+then switch to being the postgres (Unix) user:
+
+:command:`su - postgres`
+
+As the postgres user, you then need to create a new user:
+
+:command:`createuser -U postgres -dRSP bugs`
+
+When asked for a password, provide one and write it down for later reference.
+
+The created user will not be a superuser (-S) and will not be able to create
+new users (-R). He will only have the ability to create databases (-d).
+
+.. _postgresql-access:
+
+Permit Access
+=============
+
+Edit the file :file:`pg_hba.conf` which is
+usually located in :file:`/var/lib/pgsql/data/`. In this file,
+you will need to add a new line to it as follows:
+
+::
+
+    host   all    bugs   127.0.0.1    255.255.255.255  md5
+
+This means that for TCP/IP (host) connections, allow connections from
+'127.0.0.1' to 'all' databases on this server from the 'bugs' user, and use
+password authentication ('md5') for that user.
+
+Now, you will need to stop and start PostgreSQL fully. (Do not use any
+'restart' command, due to the possibility of a change to
+:file:`postgresql.conf`.)
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingquickstartrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/quick-start.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/quick-start.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/quick-start.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,219 @@
</span><ins>+.. _quick-start:
+
+Quick Start (Ubuntu Linux 14.04)
+################################
+
+This quick start guide makes installing Bugzilla as simple as possible for
+those who are able to choose their environment. It creates a system using
+Ubuntu Linux 14.04 LTS, Apache and MySQL. It requires a little familiarity
+with Linux and the command line.
+
+Obtain Your Hardware
+====================
+
+Ubuntu 14.04 LTS Server requires a 64-bit processor.
+Bugzilla itself has no prerequisites beyond that, although you should pick
+reliable hardware. You can also probably use any 64-bit virtual machine
+or cloud instance that you have root access on. 
+
+Install the OS
+==============
+
+Get `Ubuntu Server 14.04 LTS &lt;http://www.ubuntu.com/download/server&gt;`_
+and follow the `installation instructions &lt;http://www.ubuntu.com/download/server/install-ubuntu-server&gt;`_.
+Here are some tips:
+
+* Choose any server name you like.
+* When creating the initial Linux user, call it ``bugzilla``, give it a 
+  strong password, and write that password down.
+* You do not need an encrypted home directory.
+* Choose all the defaults for the &quot;partitioning&quot; part (excepting of course
+  where the default is &quot;No&quot; and you need to press &quot;Yes&quot; to continue).
+* Choose &quot;install security updates automatically&quot; unless you want to do
+  them manually.
+* From the install options, choose &quot;OpenSSH Server&quot; and &quot;LAMP Server&quot;.
+* Set the password for the MySQL root user to a strong password, and write
+  that password down.
+* Install the Grub boot loader to the Master Boot Record.
+
+Reboot when the installer finishes.
+
+Become root
+===========
+
+ssh to the machine as the 'bugzilla' user, or start a console. Then:
+
+:command:`sudo su`
+   
+Install Prerequisites
+=====================
+
+:command:`apt-get install git nano`
+
+:command:`apt-get install apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libgd-dev libmysqlclient-dev lynx-cur graphviz python-sphinx`
+
+This will take a little while. It's split into two commands so you can do
+the next steps (up to step 7) in another terminal while you wait for the
+second command to finish. If you start another terminal, you will need to
+:command:`sudo su` again.
+
+Download Bugzilla
+=================
+
+Get it from our Git repository:
+
+:command:`cd /var/www/html`
+
+:command:`git clone --branch release-X.X-stable https://git.mozilla.org/bugzilla/bugzilla bugzilla`
+
+(where &quot;X.X&quot; is the 2-digit version number of the stable release of Bugzilla
+that you want - e.g. 5.0)
+
+Configure MySQL
+===============
+
+The following instructions use the simple :file:`nano` editor, but feel
+free to use any text editor you are comfortable with.
+
+:command:`nano /etc/mysql/my.cnf`
+
+Set the following values, which increase the maximum attachment size and
+make it possible to search for short words and terms:
+
+* Alter on Line 52: ``max_allowed_packet=100M``
+* Add as new line 32, in the ``[mysqld]`` section: ``ft_min_word_len=2``
+
+Save and exit.
+
+Then, add a user to MySQL for Bugzilla to use:
+
+:command:`mysql -u root -p -e &quot;GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'&quot;`
+
+Replace ``$db_pass`` with a strong password you have generated. Write it down.
+When you run the above command, it will prompt you for the MySQL root password
+that you configured when you installed Ubuntu. You should make ``$db_pass``
+different to that password.
+
+Restart MySQL:
+
+:command:`service mysql restart`
+
+Configure Apache
+================
+
+:command:`nano /etc/apache2/sites-available/bugzilla.conf`
+
+Paste in the following and save:
+
+.. code-block:: apache
+
+ ServerName localhost
+
+ &lt;Directory /var/www/html/bugzilla&gt;
+   AddHandler cgi-script .cgi
+   Options +ExecCGI
+   DirectoryIndex index.cgi index.html
+   AllowOverride All
+ &lt;/Directory&gt;
+
+:command:`a2ensite bugzilla`
+
+:command:`a2enmod cgi headers expires`
+
+:command:`service apache2 restart`
+
+Check Setup
+===========
+
+Bugzilla comes with a :file:`checksetup.pl` script which helps with the
+installation process. It will need to be run twice. The first time, it
+generates a config file (called :file:`localconfig`) for the database
+access information, and the second time (step 10)
+it uses the info you put in the config file to set up the database.
+
+:command:`cd /var/www/html/bugzilla`
+
+:command:`./checksetup.pl`
+
+Edit :file:`localconfig`
+========================
+
+:command:`nano localconfig`
+
+You will need to set the following values:
+
+* Line 29: set ``$webservergroup`` to ``www-data``
+* Line 67: set ``$db_pass`` to the password for the ``bugs`` user you created
+  in MySQL a few steps ago
+
+Check Setup (again)
+===================
+
+Run the :file:`checksetup.pl` script again to set up the database.
+
+:command:`./checksetup.pl`
+
+It will ask you to give an email address, real name and password for the
+first Bugzilla account to be created, which will be an administrator.
+Write down the email address and password you set.
+
+Test Server
+===========
+
+:command:`./testserver.pl http://localhost/bugzilla`
+
+All the tests should pass. You will get warnings about deprecation from
+the ``Chart::Base`` Perl module; just ignore those.
+
+.. todo:: Chart::Base gives confusing deprecation warnings :-|
+          https://rt.cpan.org/Public/Bug/Display.html?id=79658 , unfixed for
+          2 years. :bug:`1070117`.
+
+Access Via Web Browser
+======================
+
+Access the front page:
+
+:command:`lynx http://localhost/bugzilla`
+
+It's not really possible to use Bugzilla for real through Lynx, but you
+can view the front page to validate visually that it's up and running.
+
+You might well need to configure your DNS such that the server has, and
+is reachable by, a name rather than IP address. Doing so is out of scope
+of this document. In the mean time, it is available on your local network
+at ``http://&lt;ip address&gt;/bugzilla``, where ``&lt;ip address&gt;`` is (unless you
+have a complex network setup) the &quot;inet addr&quot; value displayed when you run
+:command:`ifconfig eth0`.
+
+Configure Bugzilla
+==================
+
+Once you have worked out how to access your Bugzilla in a graphical
+web browser, bring up the front page, click :guilabel:`Log In` in the
+header, and log in as the admin user you defined in step 10.
+
+Click the :guilabel:`Parameters` link on the page it gives you, and set
+the following parameters in the :guilabel:`Required Settings` section:
+
+* :param:`urlbase`:
+  :paramval:`http://&lt;servername&gt;/bugzilla/` or :paramval:`http://&lt;ip address&gt;/bugzilla/`
+
+Click :guilabel:`Save Changes` at the bottom of the page.
+
+There are several ways to get Bugzilla to send email. The easiest is to
+use Gmail, so we do that here so you have it working. Visit
+https://gmail.com and create a new Gmail account for your Bugzilla to use.
+Then, open the :guilabel:`Email` section of the Parameters using the link
+in the left column, and set the following parameter values:
+
+* :param:`mail_delivery_method`: :paramval:`SMTP`
+* :param:`mailfrom`: :paramval:`new_gmail_address@gmail.com`
+* :param:`smtpserver`: :paramval:`smtp.gmail.com:465`
+* :param:`smtp_username`: :paramval:`new_gmail_address@gmail.com`
+* :param:`smtp_password`: :paramval:`new_gmail_password`
+* :param:`smtp_ssl`: :paramval:`On`
+
+Click :guilabel:`Save Changes` at the bottom of the page.
+
+And you're all ready to go. :-)
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingsanitycheckrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sanity-check.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sanity-check.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sanity-check.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+.. _sanity-check:
+
+Sanity Check
+############
+
+Over time it is possible for the Bugzilla database to become corrupt
+or to have anomalies. This could happen through manual database
+administration outside of the Bugzilla user interface, or from some
+other unexpected event. Bugzilla includes a &quot;Sanity Check&quot; that
+can perform several basic database checks, and repair certain problems or
+inconsistencies.
+
+To run a Sanity Check, log in as an Administrator and click the
+:guilabel:`Sanity Check` link in the admin page. Any problems that are found
+will be displayed in red letters. If the script is capable of fixing a
+problem, it will present a link to initiate the fix. If the script cannot
+fix the problem it will require manual database administration or recovery.
+
+Sanity Check can also be run from the command line via the perl
+script :file:`sanitycheck.pl`. The script can also be run as
+a :command:`cron` job. Results will be delivered by email to an address
+specified on the command line.
+
+Sanity Check should be run on a regular basis as a matter of
+best practice.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingsqliterst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sqlite.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sqlite.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/sqlite.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+.. _sqlite:
+
+SQLite
+######
+
+.. warning:: Due to SQLite's `concurrency
+   limitations &lt;http://sqlite.org/faq.html#q5&gt;`_ we recommend SQLite only for
+   small and development Bugzilla installations.
+
+Once you have SQLite installed, no additional configuration is required to
+run Bugzilla.
+
+The database will be stored in :file:`$BUGZILLA_HOME/data/db/$db_name`, where
+``$db_name`` is the database name defined in :file:`localconfig`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingcustomizationsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-customizations.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-customizations.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-customizations.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+.. _upgrading-customizations:
+
+Upgrading a Customized or Extended Bugzilla
+###########################################
+
+If your Bugzilla has been customized or uses extensions, you will need to
+make your customizations or extensions work with your new version of Bugzilla.
+If this is the case, you are particularly strongly recommended to do a test
+upgrade on a test system and use that to help you port forward your
+customizations.
+
+If your extension came from a third party, look to see if an updated version
+is available for the version of Bugzilla you are upgrading to. If not, and
+you want to continue using it, you'll need to port it forward yourself.
+
+If you are upgrading from a version of Bugzilla earlier than 3.6 and have
+extensions for which a newer version is not available from an upstream source,
+then you need to convert them. This is because the extension format changed
+in version 3.6. There is a file called :file:`extension-convert.pl` in the
+:file:`contrib` directory which may be able to help you with that.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwith1incrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-1.inc.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-1.inc.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-1.inc.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+Before You Upgrade
+==================
+
+Before you start your upgrade, there are a few important
+steps to take:
+
+#. Read the
+   `Release Notes &lt;http://www.bugzilla.org/releases/&gt;`_ of the version you're
+   upgrading to and all intermediate versions, particularly the &quot;Notes for
+   Upgraders&quot; sections, if present. They may make you aware of additional
+   considerations.
+
+#. Run the :ref:`sanity-check` on your installation. Attempt to fix all
+   warnings that the page produces before you start, or it's
+   possible that you may experience problems during your upgrade.
+
+#. Work out how to :ref:`back up &lt;backups&gt;` your Bugzilla entirely, and
+   how to restore from a backup if need be.
+
+Customized Bugzilla?
+--------------------
+
+If you have modified the code or templates of your Bugzilla,
+then upgrading requires a bit more thought and effort than the simple process
+below. See :ref:`template-method` for a discussion of the various methods of
+code customization that may have been used.
+
+The larger the jump you are trying to make, the more difficult it
+is going to be to upgrade if you have made local code customizations.
+Upgrading from 4.2 to 4.2.1 should be fairly painless even if
+you are heavily customized, but going from 2.18 to 4.2 is going
+to mean a fair bit of work re-writing your local changes to use
+the new files, logic, templates, etc. If you have done no local
+changes at all, however, then upgrading should be approximately
+the same amount of work regardless of how long it has been since
+your version was released.
+
+If you have made customizations, you should do the upgrade on a test system
+with the same configuration and make sure all your customizations still work.
+If not, port and test them so you have them ready to reapply once you do
+the upgrade for real.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwith2incrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-2.inc.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-2.inc.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-2.inc.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+Upgrading the Database
+======================
+
+Run :file:`checksetup.pl`. This will do everything required to convert
+your existing database and settings to the new version.
+
+:command:`cd $BUGZILLA_HOME`
+
+:command:`./checksetup.pl`
+
+   .. warning:: For some upgrades, running :file:`checksetup.pl` on a large
+      installation (75,000 or more bugs) can take a long time,
+      possibly several hours, if e.g. indexes need to be rebuilt. If this
+      length of downtime would be a problem for you, you can determine
+      timings for your particular situation by doing a test upgrade on a
+      development server with the production data.
+
+:file:`checksetup.pl` may also tell you that you need some additional
+Perl modules, or newer versions of the ones you have. You will need to
+install these, either system-wide or using the :file:`install-module.pl`
+script that :file:`checksetup.pl` recommends.
+
+Finishing The Upgrade
+=====================
+
+#. Reactivate Bugzilla by clear the text that you put into the
+   :param:`shutdownhtml` parameter.
+
+#. Run another :ref:`sanity-check` on your
+   upgraded Bugzilla. It is recommended that you fix any problems
+   you see immediately. Failure to do this may mean that Bugzilla
+   may not work entirely correctly. 
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwithatarballrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-a-tarball.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-a-tarball.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-a-tarball.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,74 @@
</span><ins>+.. _upgrading-with-a-tarball:
+
+Upgrading with a Tarball
+########################
+
+If you are unable (or unwilling) to use Git, another option is to obtain a
+tarball of the latest version from our website and upgrade your Bugzilla
+installation using that.
+
+Without a source code management system to help you, the process may be
+trickier.
+
+.. include:: upgrading-with-1.inc.rst
+
+As you are using a tarball and not an SCM, it's not at all easy to see if
+you've made local code customizations. You may have to use institutional
+knowledge, or download a fresh copy of your *current* version of Bugzilla
+and compare the two directories. If you find that you have, you'll need
+to turn them into a patch file, perhaps by diffing the two directories,
+and then reapply that patch file later. If you are customizing Bugzilla
+locally, please consider
+:ref:`rebasing your install on top of git &lt;migrating-from-a-tarball&gt;`.
+
+.. _upgrade-files-tarball:
+
+Getting The New Bugzilla
+========================
+
+Download a copy of the latest version of Bugzilla from the
+`Download Page &lt;http://www.bugzilla.org/download/&gt;`_ into a separate
+directory (which we will call :file:`bugzilla-new`) alongside your existing
+Bugzilla installation (which we will assume is in a directory called
+:file:`bugzilla`).
+
+Copy Across Data and Modules
+============================
+
+Copy the contents of the following directories from your current installation
+of Bugzilla into the corresponding directory in :file:`bugzilla-new/`:
+
+.. code-block:: none
+
+  lib/
+  data/
+  template/en/custom (may or may not exist)
+
+You also need to copy any extensions you have written or installed, which are
+in the :file:`extensions/` directory. Bugzilla ships with some extensions,
+so again if you want to know if any of the installed extensions are yours,
+you may have to compare with a clean copy of your current version. You can
+disregard any which have a :file:`disabled` file - those are not enabled.
+
+Lastly, copy the following file from your current installation of Bugzilla
+into the corresponding place in :file:`bugzilla-new/`:
+
+.. code-block:: none
+
+  localconfig
+
+This file contains your database password and access details.
+
+Swap The New Version In
+=======================
+
+Now we swap the directories over. From the directory containing the
+:file:`bugzilla` and :file:`bugzilla-new` directories, run:
+
+:command:`mv bugzilla bugzilla-old`
+
+:command:`mv bugzilla-new bugzilla`
+
+:command:`cd bugzilla`
+
+.. include:: upgrading-with-2.inc.rst
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingwithgitrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-git.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-git.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading-with-git.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+.. _upgrading-with-git:
+
+Upgrading with Git
+##################
+
+Upgrading to new Bugzilla releases is very simple, and you can upgrade
+from any version to any later version in one go - there is no need for
+intermediate steps. There is a script named :file:`checksetup.pl` included
+with Bugzilla that will automatically do all of the database migration
+for you.
+
+.. include:: upgrading-with-1.inc.rst
+
+You can see if you have local code customizations using:
+
+:command:`git diff`
+
+If that comes up empty, then run:
+
+:command:`git log | head`
+
+and see if the last commit looks like one made by the Bugzilla team, or
+by you. If it looks like it was made by us, then you have made no local
+code customizations.
+
+.. _start-upgrade-git:
+
+Starting the Upgrade
+====================
+
+When you are ready to go:
+
+#. Shut down your Bugzilla installation by putting some explanatory text
+   in the :param:`shutdownhtml` parameter.
+
+#. Make all necessary :ref:`backups &lt;backups&gt;`.
+   *THIS IS VERY IMPORTANT*. If anything goes wrong during the upgrade,
+   having a backup allows you to roll back to a known good state.
+
+.. _upgrade-files-git:
+
+Getting The New Bugzilla
+========================
+
+In the commands below, ``$BUGZILLA_HOME`` represents the directory
+in which Bugzilla is installed. Assuming you followed the installation
+instructions and your Bugzilla is a checkout of a stable branch,
+you can get the latest point release of your current version by simply doing:
+
+:command:`cd $BUGZILLA_HOME`
+
+:command:`git pull`
+
+If you want to upgrade to a newer release of Bugzilla, then you will
+additionally need to do:
+
+:command:`git checkout release-X.X-stable`
+
+where &quot;X.X&quot; is the 2-digit version number of the stable version you want to
+upgrade to (e.g. &quot;4.4&quot;).
+
+.. note:: Do not attempt to downgrade Bugzilla this way - it won't work.
+
+If you have local code customizations, git will attempt to merge them. If
+it fails, then you should implement the plan you came up with when you
+detected these customizations in the step above, before you started the
+upgrade.
+
+.. include:: upgrading-with-2.inc.rst
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingupgradingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/upgrading.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+.. _upgrading:
+
+Upgrading
+#########
+
+You can upgrade Bugzilla from any version to any later version in one go -
+there is no need to pass through intermediate versions unless you are changing
+the method by which you obtain the code along the way.
+
+.. warning:: Upgrading is a one-way process. You cannot &quot;downgrade&quot; an
+   upgraded Bugzilla. If you wish to revert to the old Bugzilla
+   version for any reason, you will have to restore your system
+   from a backup. Those with critical data or large installations may wish
+   to test the upgrade on a development server first, using a copy of the
+   production data and configuration.

+Bugzilla uses the Git version control system to store its code. A modern
+Bugzilla installation consists of a checkout of a stable version of the code
+from our Git repository. This makes upgrading much easier. If this is
+already true of your installation, see :ref:`upgrading-with-git`.
+
+Before Git, we used to use Bazaar and, before that, CVS. If your installation
+of Bugzilla consists of a checkout from one of those two systems, you need to
+upgrade in three steps:
+
+1. Upgrade to the latest point release of your current Bugzilla version.
+2. Move to Git while staying on exactly the same release.
+3. Upgrade to the latest Bugzilla using the instructions for :ref:`upgrading-with-git`.
+
+See :ref:`migrating-from-bazaar` or :ref:`migrating-from-cvs` as appropriate.
+
+Some Bugzillas were installed simply by downloading a copy of the code as
+an archive file (&quot;tarball&quot;). However, recent tarballs have included source
+code management system information, so you may be able to use the Git, Bzr
+or CVS instructions.
+
+If you aren't sure which of these categories you fall into, to find out which
+version control system your copy of Bugzilla recognizes, look for the
+following subdirectories in your root Bugzilla directory:
+
+* :file:`.git`: you installed using Git - follow :ref:`upgrading-with-git`.
+* :file:`.bzr`: you installed using Bazaar - follow :ref:`migrating-from-bazaar`.
+* :file:`CVS`: you installed using CVS - follow :ref:`migrating-from-cvs`.
+* None of the above: you installed using an old tarball - follow
+  :ref:`migrating-from-a-tarball`.
+
+It is also possible, particularly if your server machine does not have and
+cannot be configured to have access to the public internet, to upgrade using
+a tarball. See :ref:`upgrading-with-a-tarball`.
+
+Whichever path you use, you may need help with
+:ref:`upgrading-customizations`.
+
+.. toctree::
+   :maxdepth: 1
+
+   upgrading-with-git
+   migrating-from-bzr
+   migrating-from-cvs
+   migrating-from-a-tarball
+   upgrading-with-a-tarball
+   upgrading-customizations
+
+Bugzilla can automatically notify administrators when new releases are
+available if the :param:`upgrade_notification` parameter is set.
+Administrators will see these notifications when they access the Bugzilla home
+page. Bugzilla will check once per day for new releases. If you are behind a
+proxy, you may have to set the :param:`proxy_url` parameter accordingly. If
+the proxy requires authentication, use the
+:paramval:`http://user:pass@proxy_url/` syntax.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingweb_serverrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/web_server.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/web_server.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/web_server.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+.. _web_server:
+
+Web Server
+##########
+
+Bugzilla requires a web server to run CGI scripts. It supports the following:
+
+.. toctree::
+   :maxdepth: 1
+
+   apache
+   apache-windows
+   iis
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstinstallingwindowsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/installing/windows.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/installing/windows.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/installing/windows.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,184 @@
</span><ins>+.. _windows:
+
+Windows
+#######
+
+Making Bugzilla work on Windows is not more difficult than making it work on
+Linux. However, fewer developers use Windows to test Bugzilla and so we would
+still recommend using Linux for large sites to get better support.
+
+.. windows-install-perl:
+
+Perl
+====
+
+You have two main choices to install Perl on Windows: ActivePerl and Strawberry
+Perl.
+
+The ActivePerl Windows Installer can be downloaded from the
+`ActiveState website &lt;http://www.activestate.com/activeperl/downloads&gt;`_.
+Perl will be installed by default into :file:`C:\\Perl`. It is not
+recommended to install Perl into a directory containing a space, such as
+:file:`C:\\Program Files`. Once the install has completed, log out and log in
+again to pick up the changes to the ``PATH`` environment variable.
+
+The Strawberry Perl Windows Installer can be downloaded from the
+`Strawberry Perl website &lt;http://strawberryperl.com&gt;`_. Perl will be installed
+by default into :file:`C:\\Strawberry`.
+
+One big advantage of Strawberry Perl over ActivePerl is that with Strawberry
+Perl, you can use the usual tools available on other OSes to install missing
+Perl modules directly from CPAN, whereas ActivePerl requires you to use its own
+:file:`ppm` tool to download pre-compiled Perl modules from ActiveState.
+The modules in the ActivePerl repository may be a bit older than those on CPAN.
+
+.. _windows-install-bzfiles:
+
+Bugzilla
+========
+
+The best way to get Bugzilla is to check it out from git. Download and install
+git from the `git website &lt;http://git-scm.com/download&gt;`_, and then run:
+
+:command:`git clone --branch release-X.X-stable https://git.mozilla.org/bugzilla/bugzilla C:\\bugzilla`
+
+where &quot;X.X&quot; is the 2-digit version number of the stable release of Bugzilla
+that you want (e.g. 5.0).
+
+The rest of this documentation assumes you have installed Bugzilla into
+:file:`C:\\bugzilla`. Adjust paths appropriately if not.
+
+If it's not possible to use git (e.g. because your Bugzilla machine has no
+internet access), you can
+`download a tarball of Bugzilla &lt;http://www.bugzilla.org/download/&gt;`_ and
+copy it across. Bugzilla comes as a 'tarball' (:file:`.tar.gz` extension),
+which any competent Windows archiving tool should be able to open.
+
+.. windows-install-perl-modules:
+
+Perl Modules
+============
+
+Bugzilla requires a number of Perl modules to be installed. Some of them are
+mandatory, and some others, which enable additional features, are optional.
+
+If you are using ActivePerl, these modules are available in the ActiveState
+repository, and are installed with the :file:`ppm` tool. You can either use it
+on the command line as below, or just type :command:`ppm`, and you will get a GUI.
+If you use a proxy server or a firewall you may have trouble running PPM.
+This is covered in the
+`ActivePerl FAQ &lt;http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html#ppm_and_proxies&gt;`_.
+
+Install the following mandatory modules with:
+
+:command:`ppm install &lt;modulename&gt;`
+
+* CGI.pm
+* Digest-SHA
+* TimeDate
+* DateTime
+* DateTime-TimeZone
+* DBI
+* Template-Toolkit
+* Email-Sender
+* Email-MIME
+* URI
+* List-MoreUtils
+* Math-Random-ISAAC
+* File-Slurp
+* JSON-XS
+* Win32
+* Win32-API
+* DateTime-TimeZone-Local-Win32
+
+The following modules enable various optional Bugzilla features; try and
+install them, but don't worry too much to begin with if you can't get them
+installed:
+
+* GD
+* Chart
+* Template-GD
+* GDTextUtil
+* GDGraph
+* MIME-tools
+* libwww-perl
+* XML-Twig
+* PatchReader
+* perl-ldap
+* Authen-SASL
+* Net-SMTP-SSL
+* RadiusPerl
+* SOAP-Lite
+* XMLRPC-Lite
+* JSON-RPC
+* Test-Taint
+* HTML-Parser
+* HTML-Scrubber
+* Encode
+* Encode-Detect
+* Email-Reply
+* HTML-FormatText-WithLinks
+* TheSchwartz
+* Daemon-Generic
+* mod_perl
+* Apache-SizeLimit
+* File-MimeInfo
+* IO-stringy
+* Cache-Memcached
+* File-Copy-Recursive
+
+If you are using Strawberry Perl, you should use the :file:`install-module.pl`
+script to install modules, which is the same script used for Linux. Some of
+the required modules are already installed by default. The remaining ones can
+be installed using the command:
+
+:command:`perl install-module.pl &lt;modulename&gt;`
+
+The list of modules to install will be displayed by :file:`checksetup.pl`; see
+below.
+
+.. _windows-config-webserver:
+
+Web Server
+==========
+
+Any web server that is capable of running CGI scripts can be made to work.
+We have specific instructions for the following:
+
+* :ref:`apache-windows`
+* :ref:`iis`
+
+.. windows-config-database:
+
+Database Engine
+===============
+
+Bugzilla supports MySQL, PostgreSQL, Oracle and SQLite as database servers.
+You only require one of these systems to make use of Bugzilla. MySQL is
+most commonly used, and is the only one for which Windows instructions have
+been tested. SQLite is good for trial installations as it requires no
+setup. Configure your server according to the instructions below:
+
+* :ref:`mysql`
+* :ref:`postgresql`
+* :ref:`oracle`
+* :ref:`sqlite`
+
+.. |checksetupcommand| replace:: :command:`checksetup.pl`
+.. |testservercommand| replace:: :command:`testserver.pl http://&lt;your-bugzilla-server&gt;/`
+
+.. include:: installing-end.inc.rst
+
+If you don't see the main Bugzilla page, but instead see &quot;It works!!!&quot;,
+then somehow your Apache has not picked up your modifications to
+:file:`httpd.conf`. If you are on Windows 7 or later, this could be due to a
+new feature called &quot;VirtualStore&quot;. `This blog post
+&lt;http://blog.netscraps.com/bugs/apache-httpd-conf-changes-ignored-in-windows-7.html&gt;`_
+may help to solve the problem.
+
+If you get an &quot;Internal Error...&quot; message, it could be that
+``ScriptInterpreterSource Registry-Strict`` is not set in your
+:ref:`Apache configuration &lt;apache-windows&gt;`. Check again if it is set
+properly.
+
+Next, do the :ref:`essential-post-install-config`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingapisrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/apis.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/apis.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/apis.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,77 @@
</span><ins>+.. _api-list:
+
+APIs
+####
+
+Bugzilla has a number of APIs that you can call in your code to extract
+information from and put information into Bugzilla. Some are deprecated and
+will soon be removed. Which one to use? Short answer: the
+:ref:`REST WebService API v1 &lt;apis&gt;`
+should be used for all new integrations, but keep an eye out for version 2,
+coming soon.
+
+The APIs currently available are as follows:
+
+Core Module API
+===============
+
+Most of the core Bugzilla modules have extensive documentation inside the modules
+themselves. You can view the :api:`POD documentation &lt;index.html&gt;` to help with
+using the core modules in your extensions.
+
+Ad-Hoc APIs
+===========
+
+Various pages on Bugzilla are available in machine-parseable formats as well
+as HTML. For example, bugs can be downloaded as XML, and buglists as CSV.
+CSV is useful for spreadsheet import. There should be links on the HTML page
+to alternate data formats where they are available.
+
+XML-RPC
+=======
+
+Bugzilla has an :api:`XML-RPC API &lt;Bugzilla/WebService/Server/XMLRPC.html&gt;`.
+This will receive no further updates and will be removed in a future version
+of Bugzilla.
+
+Endpoint: :file:`/xmlrpc.cgi`
+
+JSON-RPC
+========
+
+Bugzilla has a :api:`JSON-RPC API &lt;Bugzilla/WebService/Server/JSONRPC.html&gt;`.
+This will receive no further updates and will be removed in a future version
+of Bugzilla.
+
+Endpoint: :file:`/jsonrpc.cgi`
+
+REST
+====
+
+Bugzilla has a :ref:`REST API &lt;apis&gt;` which is the currently-recommended API
+for integrating with Bugzilla. The current REST API is version 1. It is stable,
+and so will not be changed in a backwardly-incompatible way.
+
+**This is the currently-recommended API for new development.**
+
+Endpoint: :file:`/rest`
+
+BzAPI/BzAPI-Compatible REST
+===========================
+
+The first ever REST API for Bugzilla was implemented using an external proxy
+called `BzAPI &lt;https://wiki.mozilla.org/Bugzilla:BzAPI&gt;`_. This became popular
+enough that a BzAPI-compatible shim on top of the (native) REST API has been
+written, to allow code which used the BzAPI API to take advantage of the
+speed improvements of direct integration without needing to be rewritten.
+The shim is an extension which you would need to install in your Bugzilla.
+
+Neither BzAPI nor this BzAPI-compatible API shim will receive any further
+updates, and they should not be used for new code.
+
+REST v2
+=======
+
+The future of Bugzilla's APIs is version 2 of the REST API, which will take
+the best of the current REST API and the BzAPI API. It is still under
+development.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingextensionsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/extensions.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/extensions.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/extensions.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,199 @@
</span><ins>+.. _extensions:
+
+Extensions
+##########
+
+One of the best ways to customize Bugzilla is by using a Bugzilla
+Extension. Extensions can modify both the code and UI of Bugzilla in a way
+that can be distributed to other Bugzilla users and ported forward to future
+versions of Bugzilla with minimal effort. We maintain a
+`list of available extensions &lt;https://wiki.mozilla.org/Bugzilla:Addons&gt;`_
+written by other people on our wiki. You would need to
+make sure that the extension in question works with your version of Bugzilla.
+
+Or, you can write your own extension. See the `Bugzilla Extension
+documentation &lt;http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/Extension.html&gt;`_
+for the core documentation on how to do that. It would make sense to read
+the section on :ref:`templates`. There is also a sample extension in
+:file:`$BUGZILLA_HOME/extensions/Example/` which gives examples of how to
+use all the code hooks.
+
+This section explains how to achieve some common tasks using the Extension APIs.
+
+Adding A New Page to Bugzilla
+=============================
+
+There are occasions where it's useful to add a new page to Bugzilla which
+has little or no relation to other pages, and perhaps doesn't use very much
+Bugzilla data. A help page, or a custom report for example. The best mechanism
+for this is to use :file:`page.cgi` and the ``page_before_template`` hook.
+
+Altering Data On An Existing Page
+=================================
+
+The ``template_before_process`` hook can be used to tweak the data displayed
+on a particular existing page, if you know what template is used. It has
+access to all the template variables before they are passed to the templating
+engine.
+
+Adding New Fields To Bugs
+=========================
+
+To add new fields to a bug, you need to do the following:
+
+* Add an ``install_update_db`` hook to add the fields by calling
+  ``Bugzilla::Field-&gt;create`` (only if the field doesn't already exist).
+  Here's what it might look like for a single field:
+
+  .. code-block:: perl
+
+    my $field = new Bugzilla::Field({ name =&gt; $name });
+    return if $field;

+    $field = Bugzilla::Field-&gt;create({
+        name        =&gt; $name,
+        description =&gt; $description,
+        type        =&gt; $type,        # From list in Constants.pm
+        enter_bug   =&gt; 0,
+        buglist     =&gt; 0,
+        custom      =&gt; 1,
+    });
+
+* Push the name of the field onto the relevant arrays in the ``bug_columns``
+  and ``bug_fields`` hooks.
+
+* If you want direct accessors, or other functions on the object, you need to
+  add a BEGIN block to your Extension.pm:
+
+  .. code-block:: perl
+
+    BEGIN { 
+       *Bugzilla::Bug::is_foopy = \&amp;_bug_is_foopy; 
+    }

+    ...

+    sub _bug_is_foopy {
+        return $_[0]-&gt;{'is_foopy'};
+    }
+
+* You don't have to change ``Bugzilla/DB/Schema.pm``.
+
+* You can use ``bug_end_of_create``, ``bug_end_of_create_validators``, and
+  ``bug_end_of_update`` to create or update the values for your new field.
+
+Adding New Fields To Other Things
+=================================
+
+If you are adding the new fields to an object other than a bug, you need to
+go a bit lower-level. With reference to the instructions above:
+
+* In ``install_update_db``, use ``bz_add_column`` instead
+
+* Push on the columns in ``object_columns`` and ``object_update_columns``
+  instead of ``bug_columns``.
+
+* Add validators for the values in ``object_validators``
+
+The process for adding accessor functions is the same.
+
+You can use the hooks ``object_end_of_create``,
+``object_end_of_create_validators``, ``object_end_of_set_all``, and
+``object_end_of_update`` to create or update the values for the new object
+fields you have added. In the hooks you can check the object type being
+operated on and skip any objects you don't care about. For example, if you
+added a new field to the ``products`` table:
+
+.. code-block:: perl
+
+    sub object_end_of_create {
+        my ($self, $args) = @_;
+        my $class = $args-&gt;{'class'};
+        my $object = $args-&gt;{'object'};
+        if ($class-&gt;isa('Bugzilla::Product') {
+            [...]
+        }
+    }
+
+You will need to do this filtering for most of the hooks whose names begin with
+``object_``.
+
+Adding Admin Configuration Panels
+=================================
+
+If you add new functionality to Bugzilla, it may well have configurable
+options or parameters. The way to allow an administrator to set those
+is to add a new configuration panel.
+
+As well as using the ``config_add_panels`` hook, you will need a template to
+define the UI strings for the panel. See the templates in
+:file:`template/en/default/admin/params` for examples, and put your own
+template in :file:`template/en/default/admin/params` in your extension's
+directory.
+
+You can access param values from Templates using::
+
+    [% Param('param_name') %]
+
+and from code using:
+
+.. code-block:: perl
+
+    Bugzilla-&gt;params-&gt;{'param_name'}
+
+Adding User Preferences
+=======================
+
+To add a new user preference:
+
+* Call ``add_setting('setting_name', ['some_option', 'another_option'],
+  'some_option')`` in the ``install_before_final_checks`` hook. (The last
+  parameter is the name of the option which should be the default.)
+
+* Add descriptions for the identifiers for your setting and choices
+  (setting_name, some_option etc.) to the hash defined in
+  :file:`global/setting-descs.none.tmpl`. Do this in a template hook:
+  :file:`hook/global/setting-descs-settings.none.tmpl`. Your code can see the
+  hash variable; just set more members in it.
+
+* To change behaviour based on the setting, reference it in templates using
+  ``[% user.settings.setting_name.value %]``. Reference it in code using
+  ``$user-&gt;settings-&gt;{'setting_name'}-&gt;{'value'}``. The value will be one of
+  the option tag names (e.g. some_option).
+
+.. _who-can-change-what:
+
+Altering Who Can Change What
+============================
+
+Companies often have rules about which employees, or classes of employees,
+are allowed to change certain things in the bug system. For example,
+only the bug's designated QA Contact may be allowed to VERIFY the bug.
+Bugzilla has been
+designed to make it easy for you to write your own custom rules to define
+who is allowed to make what sorts of value transition.
+
+By default, assignees, QA owners and users
+with *editbugs* privileges can edit all fields of bugs,
+except group restrictions (unless they are members of the groups they
+are trying to change). Bug reporters also have the ability to edit some
+fields, but in a more restrictive manner. Other users, without
+*editbugs* privileges, cannot edit
+bugs, except to comment and add themselves to the CC list.
+
+Because this kind of change is such a common request, we have added a
+specific hook for it that :ref:`extensions` can call. It's called
+``bug_check_can_change_field``, and it's documented `in the Hooks
+documentation &lt;http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/Hook.html#bug_check_can_change_field&gt;`_.
+
+Checking Syntax
+===============
+
+It's not immediately obvious how to check the syntax of your extension's
+Perl modules, if it contains any. Running :command:`checksetup.pl` might do
+some of it, but the errors aren't necessarily massively informative.
+
+:command:`perl -Mlib=lib -MBugzilla -e 'BEGIN { Bugzilla-&gt;extensions; } use Bugzilla::Extension::ExtensionName::Class;'`
+
+(run from ``$BUGZILLA_HOME``) is what you need.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingfaqrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/faq.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/faq.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/faq.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+
+.. _customization-faq:
+
+Customization FAQ
+=================
+
+How do I...
+
+...add a new field on a bug?
+  Use :ref:`custom-fields` or, if you just want new form fields on bug entry
+  but don't need Bugzilla to track the field seperately thereafter, you can
+  use a :ref:`custom bug entry form &lt;custom-bug-entry&gt;`.
+
+...change the name of a built-in bug field?
+  :ref:`Edit &lt;templates&gt;` the relevant value in the template
+  :file:`template/en/default/global/field-descs.none.tmpl`.
+
+...use a word other than 'bug' to describe bugs?
+  :ref:`Edit or override &lt;templates&gt;` the appropriate values in the template
+  :file:`template/en/default/global/variables.none.tmpl`.
+  
+...call the system something other than 'Bugzilla'?
+  :ref:`Edit or override &lt;templates&gt;` the appropriate value in the template
+  :file:`template/en/default/global/variables.none.tmpl`.
+  
+...alter who can change what field when?
+  See :ref:`who-can-change-what`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+.. highlight:: perl
+
+.. _integrating:
+
+===================================
+Integration and Customization Guide
+===================================
+
+You may find that Bugzilla already does what you want it to do, you just
+need to configure it correctly. Read the :ref:`administering` sections
+carefully to see if that's the case for you. If not, then this chapter
+explains how to use the available mechanisms for integration and customization.
+
+.. toctree::
+   :maxdepth: 2
+
+   faq
+   languages
+   skins
+   templates
+   extensions
+   apis
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratinglanguagesrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/languages.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/languages.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/languages.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+Languages
+=========
+
+Bugzilla's templates can be localized, although it's a `big job
+&lt;https://wiki.mozilla.org/Bugzilla:L10n:Guide&gt;`_. If you have
+a localized set of templates for your version of Bugzilla, Bugzilla can 
+support multiple languages at once. In that case, Bugzilla honours the user's
+``Accept-Language`` HTTP header when deciding which language to serve. If
+multiple languages are installed, a menu will display in the header allowing
+the user to manually select a different language. If they do this, their
+choice will override the ``Accept-Language`` header.
+
+Many language templates can be obtained from
+`the localization section of the Bugzilla website
+&lt;http://www.bugzilla.org/download.html#localizations&gt;`_. Instructions
+for submitting new languages are also available from that location. There's
+also a `list of localization teams
+&lt;https://wiki.mozilla.org/Bugzilla:L10n:Localization_Teams&gt;`_; you might
+want to contact someone to ask about the status of their localization.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingskinsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/skins.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/skins.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/skins.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+.. _skins:
+
+Skins
+=====
+
+Bugzilla supports skins - ways of changing the look of the UI without altering
+its underlying structure. It ships with two - &quot;Classic&quot; and &quot;Dusk&quot;. You can
+find some more listed
+`on the wiki &lt;https://wiki.mozilla.org/Bugzilla:Addons#Skins&gt;`_, and there
+are a couple more which are part of
+`bugzilla.mozilla.org &lt;http://git.mozilla.org/?p=webtools/bmo/bugzilla.git&gt;`_.
+However, in each
+case you may need to check that the skin supports the version of Bugzilla
+you have. 
+
+To create a new custom skin, make a directory that contains all the same CSS
+file names as :file:`skins/standard/`, and put your directory in
+:file:`skins/contrib/`. Then, add your CSS to the appropriate files.
+
+After you put the directory there, make sure to run :file:`checksetup.pl` so
+that it can set the file permissions correctly.
+
+After you have installed the new skin, it will show up as an option in the
+user's :guilabel:`Preferences`, on the :guilabel:`General` tab. If you would
+like to force a particular skin on all users, just select that skin in the
+:guilabel:`Default Preferences` in the :guilabel:`Administration` UI, and
+then uncheck &quot;Enabled&quot; on the preference, so users cannot change it.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstintegratingtemplatesrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/templates.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/templates.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/integrating/templates.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,289 @@
</span><ins>+.. _templates:
+
+Templates
+#########
+
+Bugzilla uses a system of templates to define its user interface. The standard
+templates can be modified, replaced or overridden. You can also use template
+hooks in an :ref:`extension &lt;extensions&gt;` to add or modify the
+behaviour of templates using a stable interface.
+
+.. _template-directory:
+
+Template Directory Structure
+============================
+
+The template directory structure starts with top level directory
+named :file:`template`, which contains a directory
+for each installed localization. Bugzilla comes with English
+templates, so the directory name is :file:`en`,
+and we will discuss :file:`template/en` throughout
+the documentation. Below :file:`template/en` is the
+:file:`default` directory, which contains all the
+standard templates shipped with Bugzilla.
+
+.. warning:: A directory :file:`data/template` also exists;
+   this is where Template Toolkit puts the compiled versions (i.e. Perl code)
+   of the templates. *Do not* directly edit the files in this
+   directory, or all your changes will be lost the next time
+   Template Toolkit recompiles the templates.
+
+.. _template-method:
+
+Choosing a Customization Method
+===============================
+
+If you want to edit Bugzilla's templates, the first decision
+you must make is how you want to go about doing so. There are three
+choices, and which you use depends mainly on the scope of your
+modifications, and the method you plan to use to upgrade Bugzilla.
+
+#. You can directly edit the templates found in :file:`template/en/default`.
+
+#. You can copy the templates to be modified into a mirrored directory
+   structure under :file:`template/en/custom`. Templates in this
+   directory structure automatically override any identically-named
+   and identically-located templates in the
+   :file:`template/en/default` directory. (The :file:`custom` directory does
+   not exist by default and must be created if you want to use it.)
+
+#. You can use the hooks built into many of the templates to add or modify
+   the UI from an :ref:`extension &lt;extensions&gt;`. Hooks generally don't go away
+   and have a stable interface. 
+
+The third method is the best if there are hooks in the appropriate places
+and the change you want to do is possible using hooks. It's not very easy
+to modify existing UI using hooks; they are most commonly used for additions.
+You can make modifications if you add JS code which then makes the
+modifications when the page is loaded. You can remove UI by adding CSS to hide
+it.
+
+Unlike code hooks, there is no requirement to document template hooks, so
+you just have to open up the template and see (search for ``Hook.process``).
+
+If there are no hooks available, then the second method of customization
+should be used if you are going to make major changes, because it is
+guaranteed that the contents of the :file:`custom` directory will not be
+touched during an upgrade, and you can then decide whether
+to revert to the standard templates, continue using yours, or make the effort
+to merge your changes into the new versions by hand. It's also good for
+entirely new files, and for a few files like
+:file:`bug/create/user-message.html.tmpl` which are designed to be entirely
+replaced.
+
+Using the second method, your user interface may break if incompatible
+changes are made to the template interface. Templates do change regularly
+and so interface changes are not individually documented, and you would
+need to work out what had changed and adapt your template accordingly.
+
+For minor changes, the convenience of the first method is hard to beat. When
+you upgrade Bugzilla, :command:`git` will merge your changes into the new
+version for you. On the downside, if the merge fails then Bugzilla will not
+work properly until you have fixed the problem and re-integrated your code.
+
+Also, you can see what you've changed using :command:`git diff`, which you
+can't if you fork the file into the :file:`custom` directory.
+
+.. _template-edit:
+
+How To Edit Templates
+=====================
+
+.. note:: If you are making template changes that you intend on submitting 
+   back for inclusion in standard Bugzilla, you should read the relevant
+   sections of the
+   `Developers' Guide &lt;http://www.bugzilla.org/docs/developer.html&gt;`_.
+
+Bugzilla uses a templating system called Template Toolkit. The syntax of the
+language is beyond the scope of this guide. It's reasonably easy to pick up by
+looking at the current templates; or, you can read the manual, available on
+the `Template Toolkit home page &lt;http://www.template-toolkit.org&gt;`_.
+
+One thing you should take particular care about is the need
+to properly HTML filter data that has been passed into the template.
+This means that if the data can possibly contain special HTML characters
+such as ``&lt;``, and the data was not intended to be HTML, they need to be
+converted to entity form, i.e. ``&amp;lt;``.  You use the ``html`` filter in the
+Template Toolkit to do this (or the ``uri`` filter to encode special
+characters in URLs).  If you forget, you may open up your installation
+to cross-site scripting attacks.
+
+
+You should run :command:`./checksetup.pl` after editing any templates. Failure
+to do so may mean either that your changes are not picked up, or that the
+permissions on the edited files are wrong so the webserver can't read them. 
+
+.. _template-formats:
+
+Template Formats and Types
+==========================
+
+Some CGI's have the ability to use more than one template. For example,
+:file:`buglist.cgi` can output itself as two formats of HTML (complex and
+simple). Each of these is a separate template. The mechanism that provides
+this feature is extensible - you can create new templates to add new formats.
+
+You might use this feature to e.g. add a custom bug entry form for a
+particular subset of users or a particular type of bug.
+
+Bugzilla can also support different types of output - e.g. bugs are available
+as HTML and as XML, and this mechanism is extensible also to add new content
+types. However, instead of using such interfaces or enhancing Bugzilla to add
+more, you would be better off using the :ref:`apis` to integrate with
+Bugzilla.
+
+To see if a CGI supports multiple output formats and types, grep the
+CGI for ``get_format``. If it's not present, adding
+multiple format/type support isn't too hard - see how it's done in
+other CGIs, e.g. :file:`config.cgi`.
+
+To make a new format template for a CGI which supports this,
+open a current template for
+that CGI and take note of the INTERFACE comment (if present.) This
+comment defines what variables are passed into this template. If
+there isn't one, I'm afraid you'll have to read the template and
+the code to find out what information you get.
+
+Write your template in whatever markup or text style is appropriate.
+
+You now need to decide what content type you want your template
+served as. The content types are defined in the
+:file:`Bugzilla/Constants.pm` file in the :file:`contenttypes`
+constant. If your content type is not there, add it. Remember
+the three- or four-letter tag assigned to your content type.
+This tag will be part of the template filename.
+
+Save your new template as
+:file:`&lt;stubname&gt;-&lt;formatname&gt;.&lt;contenttypetag&gt;.tmpl`.
+Try out the template by calling the CGI as
+``&lt;cginame&gt;.cgi?format=&lt;formatname&gt;``. Add ``&amp;ctype=&lt;type&gt;`` if the type is
+not HTML.
+
+.. _template-specific:
+
+Particular Templates
+====================
+
+There are a few templates you may be particularly interested in
+customizing for your installation.
+
+:file:`index.html.tmpl`:
+  This is the Bugzilla front page.
+
+:file:`global/header.html.tmpl`:
+  This defines the header that goes on all Bugzilla pages.
+  The header includes the banner, which is what appears to users
+  and is probably what you want to edit instead.  However the
+  header also includes the HTML HEAD section, so you could for
+  example add a stylesheet or META tag by editing the header.
+
+:file:`global/banner.html.tmpl`:
+  This contains the ``banner``, the part of the header that appears
+  at the top of all Bugzilla pages.  The default banner is reasonably
+  barren, so you'll probably want to customize this to give your
+  installation a distinctive look and feel.  It is recommended you
+  preserve the Bugzilla version number in some form so the version
+  you are running can be determined, and users know what docs to read.
+
+:file:`global/footer.html.tmpl`:
+  This defines the footer that goes on all Bugzilla pages.  Editing
+  this is another way to quickly get a distinctive look and feel for
+  your Bugzilla installation.
+
+:file:`global/variables.none.tmpl`:
+  This allows you to change the word 'bug' to something else (e.g. &quot;issue&quot;)
+  throughout the interface, and also to change the name Bugzilla to something
+  else (e.g. &quot;FooCorp Bug Tracker&quot;).
+
+:file:`list/table.html.tmpl`:
+  This template controls the appearance of the bug lists created
+  by Bugzilla. Editing this template allows per-column control of
+  the width and title of a column, the maximum display length of
+  each entry, and the wrap behaviour of long entries.
+  For long bug lists, Bugzilla inserts a 'break' every 100 bugs by
+  default; this behaviour is also controlled by this template, and
+  that value can be modified here.
+
+:file:`bug/create/user-message.html.tmpl`:
+  This is a message that appears near the top of the bug reporting page.
+  By modifying this, you can tell your users how they should report
+  bugs.
+
+:file:`bug/process/midair.html.tmpl`:
+  This is the page used if two people submit simultaneous changes to the
+  same bug.  The second person to submit their changes will get this page
+  to tell them what the first person did, and ask if they wish to
+  overwrite those changes or go back and revisit the bug.  The default
+  title and header on this page read &quot;Mid-air collision detected!&quot;  If
+  you work in the aviation industry, or other environment where this
+  might be found offensive (yes, we have true stories of this happening)
+  you'll want to change this to something more appropriate for your
+  environment.
+
+.. _custom-bug-entry:
+
+:file:`bug/create/create.html.tmpl` and :file:`bug/create/comment.txt.tmpl`:
+    You may not wish to go to the effort of creating custom fields in
+    Bugzilla, yet you want to make sure that each bug report contains
+    a number of pieces of important information for which there is not
+    a special field. The bug entry system has been designed in an
+    extensible fashion to enable you to add arbitrary HTML widgets,
+    such as drop-down lists or textboxes, to the bug entry page
+    and have their values appear formatted in the initial comment.
+
+    An example of this is the `guided bug submission form
+    &lt;http://landfill.bugzilla.org/bugzilla-tip/enter_bug.cgi?product=WorldControl;format=guided&gt;`_.
+    The code for this comes with the Bugzilla distribution as an example for
+    you to copy. It can be found in the files
+    :file:`create-guided.html.tmpl` and :file:`comment-guided.html.tmpl`.
+        
+    A hidden field that indicates the format should be added inside
+    the form in order to make the template functional. Its value should
+    be the suffix of the template filename. For example, if the file
+    is called :file:`create-guided.html.tmpl`, then
+
+    ::
+
+        &lt;input type=&quot;hidden&quot; name=&quot;format&quot; value=&quot;guided&quot;&gt;
+
+    is used inside the form.
+
+    So to use this feature, create a custom template for
+    :file:`enter_bug.cgi`. The default template, on which you
+    could base it, is
+    :file:`default/bug/create/create.html.tmpl`.
+    Call it :file:`custom/bug/create/create-&lt;formatname&gt;.html.tmpl`, and
+    in it, add form inputs for each piece of information you'd like
+    collected - such as a build number, or set of steps to reproduce.
+
+    Then, create a template based on
+    :file:`default/bug/create/comment.txt.tmpl`, and call it
+    :file:`custom/bug/create/comment-&lt;formatname&gt;.txt.tmpl`.
+    It needs a couple of lines of boilerplate at the top like this::
+
+        [% USE Bugzilla %]
+        [% cgi = Bugzilla.cgi %
+
+    Then, this template can reference the form fields you have created using
+    the syntax ``[% cgi.param(&quot;field_name&quot;) %]``. When a bug report is
+    submitted, the initial comment attached to the bug report will be
+    formatted according to the layout of this template.
+
+    For example, if your custom enter_bug template had a field::
+
+        &lt;input type=&quot;text&quot; name=&quot;buildid&quot; size=&quot;30&quot;&gt;
+
+    and then your comment.txt.tmpl had::
+
+        [% USE Bugzilla %]
+        [% cgi = Bugzilla.cgi %]
+        Build Identifier: [%+ cgi.param(&quot;buildid&quot;) %]
+
+    then something like::
+
+        Build Identifier: 20140303
+
+    would appear in the initial comment.
+
+    This system allows you to gather structured data in bug reports without
+    the overhead and UI complexity of a large number of custom fields.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrststylerst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/style.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/style.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/style.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,122 @@
</span><ins>+:orphan:
+
+.. _style-guide:
+
+==============================
+Writing Bugzilla Documentation
+==============================
+
+The Bugzilla documentation uses
+`reStructured Text (reST) &lt;http://docutils.sourceforge.net/rst.html&gt;`_,
+as extended by our documentation compilation tool,
+`Sphinx &lt;http://sphinx-doc.org/&gt;`_. This document is a reST document for
+demonstration purposes. To learn from it, you need to read it in reST form.
+
+When you build the docs, this document gets built (at least in
+the HTML version) as a standalone file, although it isn't as useful in that
+form because some of the directives discussed are invisible or change when
+rendered.
+
+`The Sphinx documentation &lt;http://sphinx-doc.org/latest/rest.html&gt;`_
+gives a good introduction to reST and the Sphinx-specific extensions. Reading
+that one immediately-linked page should be enough to get started. Later, the
+`inline markup section &lt;http://sphinx-doc.org/latest/markup/inline.html&gt;`_
+is worth a read.
+
+Bugzilla's particular documentation conventions are as follows:
+
+Block Directives
+################
+
+Chapter headings use the double-equals, page title headings the #, and then
+the three other levels are headings within a page. Every heading should be
+preceded by an anchor, with a globally-unique name with no spaces. Now, we
+demonstrate the available heading levels we haven't used yet:
+
+.. _uniqueanchorname:
+
+Third Level Heading
+===================
+
+Fourth Level Heading
+--------------------
+
+Fifth Level Heading
+~~~~~~~~~~~~~~~~~~~
+
+(Although try not to use headings as deep as the 5th level.)
+
+Make links to anchors like this: :ref:`uniqueanchorname`. It'll pick up the
+following heading name automatically and use it as the link text. Don't use
+standard reST internal links like `uniqueanchorname`_ - they don't work
+across files.
+
+Comments are done like this:
+
+.. This is a comment. It can go on to multiple lines. Follow-on lines need to
+   be indented.
+
+Other block types:
+
+.. note:: This is just a note, for your information. Like all double-dot
+   blocks, follow-on lines need to be indented.
+
+.. warning:: This is a warning of a potential serious problem you should be
+   aware of.
+
+.. todo:: This is some documentation-related task that still needs doing.
+   
+Use both of the above block types sparingly. Consider putting the information
+in the main text, omitting it, or (if long) placing it in a subsidiary file.
+
+Code gets highlighted using Pygments. Choose the highlighter at the top of
+each file using:
+
+.. highlight:: console
+
+You can change the highlighter for a particular block by introducing it like
+this:
+
+.. code-block:: perl
+
+   # This is some Perl code
+   print &quot;Hello&quot;;
+
+There is a
+`list of all available lexer names &lt;http://pygments.org/docs/lexers/&gt;`_
+available. We currently use ``console``, ``perl``, and ``sql``. ``none`` is
+also a valid value.
+
+Use 4-space indentation, except where a different value is better so that
+things line up. So normally two spaces for bulleted lists, and 3 spaces
+for .. blocks.
+
+Inline Directives
+#################
+
+.. warning:: Remember that reST does not support nested inline markup. So you
+   can't have a substitution inside a link, or bold inside italics.
+
+* A filename or a path to a filename:
+  :file:`/path/to/{variable-bit-of-path}/filename.ext`
+
+* A command to type in the shell:
+  :command:`command --arguments`
+
+* A parameter name:
+  :param:`shutdownhtml`
+
+* A parameter value:
+  :paramval:`DB`
+
+* A group name:
+  :group:`editbugs`
+
+* A bug field name:
+  :field:`Summary`
+
+* Any string from the UI:
+  :guilabel:`Administration`
+
+* A specific BMO bug:
+  :bug:`201069`
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingcreatinganaccountrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/creating-an-account.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/creating-an-account.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/creating-an-account.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+.. _creating-an-account:
+
+Creating an Account
+###################
+
+If you want to use a particular installation of Bugzilla, first you need to
+create an account. Ask the administrator responsible for your installation
+for the URL you should use to access it. If you're test-driving Bugzilla,
+you can use one of the installations on
+`Landfill &lt;http://landfill.bugzilla.org/&gt;`_.
+
+The process of creating an account is similar to many other websites.
+
+#. On the home page, click the :guilabel:`New Account` link in the header.
+   Enter your email address, then click the ``Send``
+   button.
+
+   .. note:: If the :guilabel:`New Account` link is not available, this means that the
+      administrator of the installation has disabled self-registration.
+      Speak to the administrator to find out how to get an account.
+
+#. Within moments, you should
+   receive an email to the address you provided, which contains your
+   login name (generally the same as the email address), and a URL to
+   click to confirm your registration.
+
+#. Once you confirm your registration, Bugzilla will ask you your real name
+   (optional, but recommended) and ask you to choose a password. Depending
+   on how your Bugzilla is configured, there may be minimum complexity
+   requirements for the password.
+
+#. Now all you need to do is to click the :guilabel:`Log In`
+   link in the header or footer,
+   enter your email address and the password you just chose into the
+   login form, and click the :guilabel:`Log in` button.
+
+You are now logged in. Bugzilla uses cookies to remember you are
+logged in, so, unless you have cookies disabled or your IP address changes,
+you should not have to log in again during your session.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingeditingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/editing.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/editing.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/editing.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,98 @@
</span><ins>+.. _editing:
+
+Editing a Bug
+#############
+
+.. _attachments:
+
+Attachments
+===========
+
+Attachments are used to attach relevant files to bugs - patches, screenshots,
+test cases, debugging aids or logs, or anything else binary or too large to
+fit into a comment.
+
+You should use attachments, rather than comments, for large chunks of plain
+text data, such as trace, debugging output files, or log files. That way, it
+doesn't bloat the bug for everyone who wants to read it, and cause people to
+receive large, useless mails.
+
+You should make sure to trim screenshots. There's no need to show the
+whole screen if you are pointing out a single-pixel problem.
+
+Bugzilla stores and uses a Content-Type for each attachment
+(e.g. text/html). To download an attachment as a different
+Content-Type (e.g. application/xhtml+xml), you can override this
+using a 'content_type' parameter on the URL, e.g.
+:file:`&amp;content_type=text/plain`.
+
+Also, you can enter the URL pointing to the attachment instead of
+uploading the attachment itself. For example, this is useful if you want to
+point to an external application, a website or a very large file.
+
+It's also possible to create an attachment by pasting text directly in a text
+field; Bugzilla will convert it into an attachment. This is pretty useful
+when you are copying and pasting, to avoid the extra step of saving the text
+in a temporary file.
+
+.. _editing-flags:
+
+Flags
+=====
+
+To set a flag, select either :guilabel:`+` or :guilabel:`-` from the drop-down
+menu next to the name of the flag in the :guilabel:`Flags` list. The meaning
+of these values are flag-specific and thus cannot be described in this
+documentation, but by way of example, setting a flag named :guilabel:`review`
+:guilabel:`+` may indicate that the bug/attachment has passed review, while
+setting it to :guilabel:`-` may indicate that the bug/attachment has failed
+review.
+
+To unset a flag, click its drop-down menu and select the blank value.
+Note that marking an attachment as obsolete automatically cancels all
+pending requests for the attachment.
+
+If your administrator has enabled requests for a flag, request a flag
+by selecting :guilabel:`?` from the drop-down menu and then entering the
+username of the user you want to set the flag in the text field next to the
+menu.
+
+.. _time-tracking:
+
+Time Tracking
+=============
+
+Users who belong to the group specified by the ``timetrackinggroup``
+parameter have access to time-related fields. Developers can see
+deadlines and estimated times to fix bugs, and can provide time spent
+on these bugs. Users who do not belong to this group can only see the deadline
+but not edit it. Other time-related fields remain invisible to them.
+
+At any time, a summary of the time spent by developers on bugs is
+accessible either from bug lists when clicking the ``Time Summary``
+button or from individual bugs when clicking the ``Summarize time``
+link in the time tracking table. The :file:`summarize_time.cgi`
+page lets you view this information either per developer or per bug
+and can be split on a month basis to have greater details on how time
+is spent by developers.
+
+As soon as a bug is marked as RESOLVED, the remaining time expected
+to fix the bug is set to zero. This lets QA people set it again for
+their own usage, and it will be set to zero again when the bug is
+marked as VERIFIED.
+
+.. _lifecycle:
+
+Life Cycle of a Bug
+===================
+
+The life cycle of a bug, also known as workflow, is customizable to match
+the needs of your organization (see :ref:`workflow`).
+The image below contains a graphical representation of
+the default workflow using the default bug statuses. If you wish to
+customize this image for your site, the
+`diagram file &lt;../../images/bzLifecycle.xml&gt;`_
+is available in `Dia's &lt;http://www.gnome.org/projects/dia&gt;`_
+native XML format.
+
+.. image:: ../../images/bzLifecycle.png
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingextensionsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/extensions.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/extensions.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/extensions.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+.. _installed-extensions-user:
+
+Installed Extensions
+====================
+
+Bugzilla can be enhanced using extensions (see :ref:`extensions`). If an
+extension comes with documentation in the appropriate format, and you build
+your own copy of the Bugzilla documentation using :file:`makedocs.pl`, then
+the documentation for your installed extensions will show up here.
+
+Your Bugzilla installation has the following extensions available (as of the
+last time you compiled the documentation):
+
+.. toctree::
+   :maxdepth: 1
+   :glob:
+   
+   ../extensions/*/index-user
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingfilingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/filing.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/filing.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/filing.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,82 @@
</span><ins>+.. _filing:
+
+Filing a Bug
+############
+
+Reporting a New Bug
+===================
+
+Years of bug writing experience has been distilled for your
+reading pleasure into the
+`Bug Writing Guidelines &lt;http://landfill.bugzilla.org/bugzilla-tip/page.cgi?id=bug-writing.html&gt;`_.
+While some of the advice is Mozilla-specific, the basic principles of
+reporting Reproducible, Specific bugs and isolating the Product you are
+using, the Version of the Product, the Component which failed, the Hardware
+Platform, and Operating System you were using at the time of the failure go a
+long way toward ensuring accurate, responsible fixes for the bug that bit you.
+
+.. note:: If you want to file a test bug to see how Bugzilla works,
+   you can do it on one of our test installations on
+   `Landfill &lt;http://landfill.bugzilla.org/&gt;`_. Please don't do it on anyone's
+   production Bugzilla installation.
+
+The procedure for filing a bug is as follows:
+
+#. Click the :guilabel:`New` link available in the header or footer
+   of pages, or the :guilabel:`File a Bug` link on the home page.
+
+#. First, you have to select the product in which you found a bug.
+
+#. You now see a form where you can specify the component (part of
+   the product which is affected by the bug you discovered; if you have
+   no idea, just select :guilabel:`General` if such a component exists),
+   the version of the program you were using, the operating system and
+   platform your program is running on and the severity of the bug (if the
+   bug you found crashes the program, it's probably a major or a critical
+   bug; if it's a typo somewhere, that's something pretty minor; if it's
+   something you would like to see implemented, then that's an enhancement).
+
+#. You also need to provide a short but descriptive summary of the bug you found.
+   &quot;My program is crashing all the time&quot; is a very poor summary
+   and doesn't help developers at all. Try something more meaningful or
+   your bug will probably be ignored due to a lack of precision.
+   In the Description, give a detailed list of steps to reproduce
+   the problem you encountered. Try to limit these steps to a minimum set
+   required to reproduce the problem. This will make the life of
+   developers easier, and the probability that they consider your bug in
+   a reasonable timeframe will be much higher.
+
+   .. note:: Try to make sure that everything in the Summary is also in the 
+      Description. Summaries are often updated and this will ensure your original
+      information is easily accessible.
+
+#. As you file the bug, you can also attach a document (testcase, patch,
+   or screenshot of the problem).
+
+#. Depending on the Bugzilla installation you are using and the product in
+   which you are filing the bug, you can also request developers to consider
+   your bug in different ways (such as requesting review for the patch you
+   just attached, requesting your bug to block the next release of the
+   product, and many other product-specific requests).
+
+#. Now is a good time to read your bug report again. Remove all misspellings;
+   otherwise, your bug may not be found by developers running queries for some
+   specific words, and so your bug would not get any attention.
+   Also make sure you didn't forget any important information developers
+   should know in order to reproduce the problem, and make sure your
+   description of the problem is explicit and clear enough.
+   When you think your bug report is ready to go, the last step is to
+   click the :guilabel:`Submit Bug` button to add your report into the database.
+
+.. _cloning-a-bug:
+
+Clone an Existing Bug
+=====================
+
+Bugzilla allows you to &quot;clone&quot; an existing bug. The newly created bug will
+inherit most settings from the old bug. This allows you to track similar
+concerns that require different handling in a new bug. To use this, go to
+the bug that you want to clone, then click the :guilabel:`Clone This Bug`
+link on the bug page. This will take you to the :guilabel:`Enter Bug`
+page that is filled with the values that the old bug has.
+You can then change the values and/or text if needed.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingfindingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/finding.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/finding.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/finding.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,259 @@
</span><ins>+.. _finding:
+
+Finding Bugs
+############
+
+Bugzilla has a number of different search options.
+
+.. note:: Bugzilla queries are case-insensitive and accent-insensitive when
+    used with either MySQL or Oracle databases. When using Bugzilla with
+    PostgreSQL, however, some queries are case sensitive. This is due to
+    the way PostgreSQL handles case and accent sensitivity.
+
+.. _quicksearch:
+
+Quicksearch
+===========
+
+Quicksearch is a single-text-box query tool. You'll find it in
+Bugzilla's header or footer.
+
+Quicksearch uses
+metacharacters to indicate what is to be searched. For example, typing
+
+  ``foo|bar``
+
+into Quicksearch would search for &quot;foo&quot; or &quot;bar&quot; in the
+summary and status whiteboard of a bug; adding
+
+  ``:BazProduct``
+
+would search only in that product.
+
+You can also use it to go directly to a bug by entering its number or its
+alias.
+
+Simple Search
+=============
+
+Simple Search is good for finding one particular bug. It works like internet
+search engines - just enter some keywords and off you go.
+
+Advanced Search
+===============
+
+The Advanced Search page is used to produce a list of all bugs fitting
+exact criteria. `You can play with it on
+Landfill &lt;http://landfill.bugzilla.org/bugzilla-tip/query.cgi?format=advanced&gt;`_.
+
+Advanced Search has controls for selecting different possible
+values for all of the fields in a bug, as described above. For some
+fields, multiple values can be selected. In those cases, Bugzilla
+returns bugs where the content of the field matches any one of the selected
+values. If none is selected, then the field can take any value.
+
+After a search is run, you can save it as a Saved Search, which
+will appear in the page footer. If you are in the group defined
+by the &quot;querysharegroup&quot; parameter, you may share your queries
+with other users; see :ref:`saved-searches` for more details.
+
+.. _custom-search:
+
+Custom Search
+=============
+
+Highly advanced querying is done using the :guilabel:`Custom Search` feature
+of the :guilabel:`Advanced Search` page.
+
+The search criteria here further restrict the set of results
+returned by a query, over and above those defined in the fields at the top
+of the page. It is thereby possible to search for bugs
+based on elaborate combinations of criteria.
+
+The simplest custom searches have only one term. These searches
+permit the selected *field*
+to be compared using a
+selectable *operator* to a
+specified *value.* Much of this could be reproduced using the standard
+fields. However, you can then combine terms using &quot;Match ANY&quot; or &quot;Match ALL&quot;,
+using parentheses for combining and priority, in order to construct searches
+of almost arbitrary complexity.
+
+There are three fields in each row (known as a &quot;term&quot;) of a custom search:
+
+- *Field:*
+  the name of the field being searched
+
+- *Operator:*
+  the comparison operator
+
+- *Value:*
+  the value to which the field is being compared
+
+The list of available *fields* contains all the fields defined for a bug,
+including any custom fields, and then also some pseudofields like
+:guilabel:`Assignee Real Name`, :guilabel:`Days Since Bug Changed`,
+:guilabel:`Time Since Assignee Touched` and other things it may be useful to
+search on.
+
+There are a wide range of *operators* available, not all of which may make
+sense for a particular field. There are various string-matching operations
+(including regular expressions), numerical comparisons (which also work for
+dates), and also the ability to search for change information—when a field
+changed, what it changed from or to, and who did it. There are special
+operators for :guilabel:`is empty` and :guilabel:`is not empty`, because
+Bugzilla can't tell the difference between a value field left blank on
+purpose and one left blank by accident.
+
+You can have an arbitrary number of rows, and the dropdown box above them
+defines how they relate—:guilabel:`Match ALL of the following separately`,
+:guilabel:`Match ANY of the following separately`, or :guilabel:`Match ALL of
+the following against the same field`. The difference between the first and
+the third can be illustrated with a comment search. If you have a search::
+
+    Comment   contains the string   &quot;Fred&quot;
+    Comment   contains the string   &quot;Barney&quot;
+
+then under the first regime (match separately) the search would return bugs
+where &quot;Fred&quot; appeared in one comment and &quot;Barney&quot; in the same or any other
+comment, whereas under the second (match against the same field), both strings
+would need to occur in exactly the same comment.
+
+.. _advanced-features:
+
+Advanced Features
+-----------------
+
+If you click :guilabel:`Show Advanced Features`, then more capabilities appear.
+You can negate any row with a checkbox (see below) and also group lines of the
+search with parentheses to determine how different search terms relate. Within
+each bracketed set, you get the choice of combining them using ALL (i.e. AND)
+or ANY (i.e. OR).
+
+Negation
+--------
+
+At first glance, negation seems redundant. Rather than
+searching for::
+
+    NOT ( summary   contains the string   &quot;foo&quot; )
+
+one could search for::
+
+    summary   does not contain the string   &quot;foo&quot;
+
+However, the search::
+
+    CC   does not contain the string   &quot;@mozilla.org&quot;
+
+would find every bug where anyone on the CC list did not contain
+&quot;@mozilla.org&quot; while::
+
+    NOT ( CC   contains the string   &quot;@mozilla.org&quot; )
+
+would find every bug where there was nobody on the CC list who
+did contain the string. Similarly, the use of negation also permits
+complex expressions to be built using terms OR'd together and then
+negated. Negation permits queries such as::
+
+    NOT ( ( product   equals   &quot;Update&quot; )
+          OR
+          ( component   equals   &quot;Documentation&quot; )
+        )
+
+to find bugs that are neither
+in the :guilabel:`Update` product or in the :guilabel:`Documentation` component
+or::
+
+    NOT ( ( commenter   equals   &quot;%assignee%&quot; )
+          OR
+          (component   equals   &quot;Documentation&quot; )
+        )
+
+to find non-documentation bugs on which the assignee has never commented.
+
+.. _pronouns:
+
+Pronoun Substitution
+--------------------
+
+Sometimes, a query needs to compare a user-related field
+(such as :guilabel:`Reporter`) with a role-specific user (such as the
+user running the query or the user to whom each bug is assigned). For
+example, you may want to find all bugs that are assigned to the person
+who reported them.
+
+When the :guilabel:`Custom Search` operator is either :guilabel:`equals` or
+:guilabel:`notequals`, the value can be &quot;%reporter%&quot;, &quot;%assignee%&quot;,
+&quot;%qacontact%&quot;, or &quot;%user%&quot;. These are known as &quot;pronouns&quot;. The user pronoun
+refers to the user who is executing the query or, in the case
+of whining reports, the user who will be the recipient
+of the report. The reporter, assignee, and qacontact
+pronouns refer to the corresponding fields in the bug.
+
+This feature also lets you search by a user's group memberships. If the
+operator is either :guilabel:`equals`, :guilabel:`notequals` or
+:guilabel:`anyexact`, you can search for
+whether a user belongs (or not) to the specified group. The group name must be
+entered using &quot;%group.foo%&quot; syntax, where &quot;foo&quot; is the group name.
+So if you are looking for bugs reported by any user being in the
+&quot;editbugs&quot; group, then you can use::
+
+    reporter   equals   &quot;%group.editbugs%&quot;
+
+.. _list:
+
+Bug Lists
+=========
+
+The result of a search is a list of matching bugs.
+
+The format of the list is configurable. For example, it can be
+sorted by clicking the column headings. Other useful features can be
+accessed using the links at the bottom of the list:
+
+Long Format:
+    this gives you a large page with a non-editable summary of the fields
+    of each bug.
+
+XML (icon):
+    get the buglist in an XML format.
+
+CSV (icon):
+    get the buglist as comma-separated values, for import into e.g.
+    a spreadsheet.
+
+Feed (icon):
+    get the buglist as an Atom feed.  Copy this link into your
+    favorite feed reader.  If you are using Firefox, you can also
+    save the list as a live bookmark by clicking the live bookmark
+    icon in the status bar.  To limit the number of bugs in the feed,
+    add a limit=n parameter to the URL.
+
+iCalendar (icon):
+    Get the buglist as an iCalendar file. Each bug is represented as a
+    to-do item in the imported calendar.
+
+Change Columns:
+    change the bug attributes which appear in the list.
+
+Change Several Bugs At Once:
+    If your account is sufficiently empowered, and more than one bug
+    appears in the bug list, this link is displayed and lets you easily make
+    the same change to all the bugs in the list - for example, changing
+    their assignee.
+
+Send Mail to Bug Assignees:
+    If more than one bug appear in the bug list and there are at least
+    two distinct bug assignees, this links is displayed which lets you
+    easily send a mail to the assignees of all bugs on the list.
+
+Edit Search:
+    If you didn't get exactly the results you were looking for, you can
+    return to the Query page through this link and make small revisions
+    to the query you just made so you get more accurate results.
+
+Remember Search As:
+    You can give a search a name and remember it; a link will appear
+    in your page footer giving you quick access to run it again later.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingindexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+.. _using:
+
+==========
+User Guide
+==========
+
+.. toctree::
+   :maxdepth: 2
+
+   creating-an-account
+   filing
+   understanding
+   editing
+   finding
+   reports-and-charts
+   tips
+   preferences
+   extensions
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingpreferencesrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/preferences.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/preferences.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/preferences.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,195 @@
</span><ins>+.. _user-preferences:
+
+User Preferences
+################
+
+Once logged in, you can customize various aspects of
+Bugzilla via the &quot;Preferences&quot; link in the page footer.
+The preferences are split into a number of tabs, detailed in the sections
+below.
+
+.. _generalpreferences:
+
+General Preferences
+===================
+
+This tab allows you to change several default settings of Bugzilla.
+Administrators have the power to remove preferences from this list, so you
+may not see all the preferences available.
+
+Each preference should be self-explanatory.
+
+.. _emailpreferences:
+
+Email Preferences
+=================
+
+This tab allows you to enable or disable email notification on
+specific events.
+
+In general, users have almost complete control over how much (or
+how little) email Bugzilla sends them. If you want to receive the
+maximum amount of email possible, click the ``Enable All
+Mail`` button. If you don't want to receive any email from
+Bugzilla at all, click the ``Disable All Mail`` button.
+
+.. note:: A Bugzilla administrator can stop a user from receiving
+   bugmail by clicking the ``Bugmail Disabled`` checkbox
+   when editing the user account. This is a drastic step
+   best taken only for disabled accounts, as it overrides
+   the user's individual mail preferences.
+
+There are two global options -- ``Email me when someone
+asks me to set a flag`` and ``Email me when someone
+sets a flag I asked for``. These define how you want to
+receive bugmail with regards to flags. Their use is quite
+straightforward: enable the checkboxes if you want Bugzilla to
+send you mail under either of the above conditions.
+
+If you'd like to set your bugmail to something besides
+'Completely ON' and 'Completely OFF', the
+``Field/recipient specific options`` table
+allows you to do just that. The rows of the table
+define events that can happen to a bug -- things like
+attachments being added, new comments being made, the
+priority changing, etc. The columns in the table define
+your relationship with the bug - reporter, assignee, QA contact (if enabled)
+or CC list member.
+
+To fine-tune your bugmail, decide the events for which you want
+to receive bugmail; then decide if you want to receive it all
+the time (enable the checkbox for every column) or only when
+you have a certain relationship with a bug (enable the checkbox
+only for those columns). For example, if you didn't want to
+receive mail when someone added themselves to the CC list, you
+could uncheck all the boxes in the ``CC Field Changes``
+line. As another example, if you never wanted to receive email
+on bugs you reported unless the bug was resolved, you would
+uncheck all boxes in the ``Reporter`` column
+except for the one on the ``The bug is resolved or
+verified`` row.
+
+.. note:: Bugzilla adds the ``X-Bugzilla-Reason`` header to
+   all bugmail it sends, describing the recipient's relationship
+   (AssignedTo, Reporter, QAContact, CC, or Voter) to the bug.
+   This header can be used to do further client-side filtering.
+
+Bugzilla has a feature called ``User Watching``.
+When you enter one or more comma-delineated user accounts (usually email
+addresses) into the text entry box, you will receive a copy of all the
+bugmail those users are sent (security settings permitting).
+This powerful functionality enables seamless transitions as developers
+change projects or users go on holiday.
+
+Each user listed in the ``Users watching you`` field
+has you listed in their ``Users to watch`` list
+and can get bugmail according to your relationship to the bug and
+their ``Field/recipient specific options`` setting.
+
+Lastly, you can define a list of bugs on which you no longer wish to receive
+any email, ever. (You can also add bugs to this list individually by checking
+the &quot;Ignore Bug Mail&quot; checkbox on the bug page for that bug.) This is useful
+for ignoring bugs where you are the reporter, as that's a role it's not
+possible to stop having.
+
+.. _saved-searches:
+
+Saved Searches
+==============
+
+On this tab you can view and run any Saved Searches that you have
+created, and any Saved Searches that other members of the group
+defined in the :param:`querysharegroup` parameter have shared.
+Saved Searches can be added to the page footer from this screen.
+If somebody is sharing a Search with a group they are allowed to
+:ref:`assign users to &lt;groups&gt;`, the sharer may opt to have
+the Search show up in the footer of the group's direct members by default.
+
+.. _account-information:
+
+Account Information
+===================
+
+On this tab, you can change your basic account information,
+including your password, email address and real name. For security
+reasons, in order to change anything on this page you must type your
+*current* password into the ``Password``
+field at the top of the page.
+If you attempt to change your email address, a confirmation
+email is sent to both the old and new addresses with a link to use to
+confirm the change. This helps to prevent account hijacking.
+
+.. _api-keys:
+
+API Keys
+========
+
+API keys allow you to give a &quot;token&quot; to some external software so it can log
+in to the WebService API as you without knowing your password. You can then
+revoke that token if you stop using the web service, and you don't need to
+change your password everywhere.
+
+You can create more than one API key if required. Each API key has an optional
+description which can help you record what it is used for.
+
+On this page, you can unrevoke, revoke and change the description of existing
+API keys for your login. A revoked key means that it cannot be used. The
+description is optional and purely for your information.
+
+You can also create a new API key by selecting the checkbox under the 'New
+API key' section of the page.
+
+.. _permissions:
+
+Permissions
+===========
+
+This is a purely informative page which outlines your current
+permissions on this installation of Bugzilla.
+
+A complete list of permissions in a default install of Bugzilla is below.
+Your administrator may have defined other permissions. Only users with
+*editusers* privileges can change the permissions of other users.
+
+admin
+    Indicates user is an Administrator.
+
+bz_canusewhineatothers
+    Indicates user can configure whine reports for other users.
+
+bz_canusewhines
+    Indicates user can configure whine reports for self.
+
+bz_quip_moderators
+    Indicates user can moderate quips.
+
+bz_sudoers
+    Indicates user can perform actions as other users.
+
+bz_sudo_protect
+    Indicates user cannot be impersonated by other users.
+
+canconfirm
+    Indicates user can confirm a bug or mark it a duplicate.
+
+creategroups
+    Indicates user can create and destroy groups.
+
+editbugs
+    Indicates user can edit all bug fields.
+
+editclassifications
+    Indicates user can create, destroy and edit classifications.
+
+editcomponents
+    Indicates user can create, destroy and edit products, components,
+    versions, milestones and flag types.
+
+editkeywords
+    Indicates user can create, destroy and edit keywords.
+
+editusers
+    Indicates user can create, disable and edit users.
+
+tweakparams
+    Indicates user can change :ref:`Parameters &lt;parameters&gt;`.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingreportsandchartsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/reports-and-charts.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/reports-and-charts.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/reports-and-charts.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,120 @@
</span><ins>+.. _reports-and-charts:
+
+Reports and Charts
+##################
+
+As well as the standard buglist, Bugzilla has two more ways of
+viewing sets of bugs. These are the reports (which give different
+views of the current state of the database) and charts (which plot
+the changes in particular sets of bugs over time).
+
+.. _reports:
+
+Reports
+=======
+
+A report is a view of the current state of the bug database.
+
+You can run either an HTML-table-based report, or a graphical
+line/pie/bar-chart-based one. The two have different pages to
+define them but are close cousins - once you've defined and
+viewed a report, you can switch between any of the different
+views of the data at will.
+
+Both report types are based on the idea of defining a set of bugs
+using the standard search interface and then choosing some
+aspect of that set to plot on the horizontal and/or vertical axes.
+You can also get a form of 3-dimensional report by choosing to have
+multiple images or tables.
+
+So, for example, you could use the search form to choose &quot;all
+bugs in the WorldControl product&quot; and then plot their severity
+against their component to see which component had had the largest
+number of bad bugs reported against it.
+
+Once you've defined your parameters and hit :guilabel:`Generate Report`,
+you can switch between HTML, CSV, Bar, Line and Pie. (Note: Pie
+is only available if you didn't define a vertical axis, as pie
+charts don't have one.) The other controls are fairly self-explanatory;
+you can change the size of the image if you find text is overwriting
+other text, or the bars are too thin to see.
+
+.. _charts:
+
+Charts
+======
+
+A chart is a view of the state of the bug database over time.
+
+Bugzilla currently has two charting systems - Old Charts and New
+Charts. Old Charts have been part of Bugzilla for a long time; they
+chart each status and resolution for each product, and that's all.
+They are deprecated, and going away soon - we won't say any more
+about them.
+New Charts are the future - they allow you to chart anything you
+can define as a search.
+
+.. note:: Both charting forms require the administrator to set up the
+   data-gathering script. If you can't see any charts, ask them whether
+   they have done so.
+
+An individual line on a chart is called a data set.
+All data sets are organised into categories and subcategories. The
+data sets that Bugzilla defines automatically use the Product name
+as a :guilabel:`Category` and Component names as :guilabel:`Subcategories`,
+but there is no need for you to follow that naming scheme with your own
+charts if you don't want to.
+
+Data sets may be public or private. Everyone sees public data sets in
+the list, but only their creator sees private data sets. Only
+administrators can make data sets public.
+No two data sets, even two private ones, can have the same set of
+category, subcategory and name. So if you are creating private data
+sets, one idea is to have the :guilabel:`Category` be your username.
+
+Creating Charts
+---------------
+
+You create a chart by selecting a number of data sets from the
+list and pressing :guilabel:`Add To List` for each. In the
+:guilabel:`List Of Data Sets To Plot`, you can define the label that data
+set will have in the chart's legend and also ask Bugzilla to :guilabel:`Sum`
+a number of data sets (e.g. you could :guilabel:`Sum` data sets representing
+:guilabel:`RESOLVED`, :guilabel:`VERIFIED` and :guilabel:`CLOSED` in a
+particular product to get a data set representing all the resolved bugs in
+that product.)
+
+If you've erroneously added a data set to the list, select it
+using the checkbox and click :guilabel:`Remove`. Once you add more than one
+data set, a :guilabel:`Grand Total` line
+automatically appears at the bottom of the list. If you don't want
+this, simply remove it as you would remove any other line.
+
+You may also choose to plot only over a certain date range, and
+to cumulate the results, that is, to plot each one using the
+previous one as a baseline so the top line gives a sum of all
+the data sets. It's easier to try than to explain :-)
+
+Once a data set is in the list, you can also perform certain
+actions on it. For example, you can edit the
+data set's parameters (name, frequency etc.) if it's one you
+created or if you are an administrator.
+
+Once you are happy, click :guilabel:`Chart This List` to see the chart.
+
+.. _charts-new-series:
+
+Creating New Data Sets
+----------------------
+
+You may also create new data sets of your own. To do this,
+click the :guilabel:`create a new data set` link on the
+:guilabel:`Create Chart` page. This takes you to a search-like interface
+where you can define the search that Bugzilla will plot. At the bottom of the
+page, you choose the category, sub-category and name of your new
+data set.
+
+If you have sufficient permissions, you can make the data set public,
+and reduce the frequency of data collection to less than the default
+of seven days.
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingtipsrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/tips.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/tips.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/tips.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+.. _pro-tips:
+
+Pro Tips
+########
+
+This section distills some Bugzilla tips and best practices
+that have been developed.
+
+Autolinkification
+=================
+
+Bugzilla comments are plain text - so typing &lt;U&gt; will
+produce less-than, U, greater-than rather than underlined text.
+However, Bugzilla will automatically make hyperlinks out of certain
+sorts of text in comments. For example, the text
+``http://www.bugzilla.org`` will be turned into a link:
+`&lt;http://www.bugzilla.org&gt;`_.
+Other strings which get linkified in the obvious manner are:
+
++ bug 12345
+
++ bugs 123, 456, 789
+
++ comment 7
+
++ comments 1, 2, 3, 4
+
++ bug 23456, comment 53
+
++ attachment 4321
+
++ mailto\:george\@example.com
+
++ george\@example.com
+
++ ftp\://ftp.mozilla.org
+
++ Most other sorts of URL
+
+A corollary here is that if you type a bug number in a comment,
+you should put the word &quot;bug&quot; before it, so it gets autolinkified
+for the convenience of others.
+
+.. _commenting:
+
+Comments
+========
+
+If you are changing the fields on a bug, only comment if
+either you have something pertinent to say or Bugzilla requires it.
+Otherwise, you may spam people unnecessarily with bugmail.
+To take an example: a user can set up their account to filter out messages
+where someone just adds themselves to the CC field of a bug
+(which happens a lot). If you come along, add yourself to the CC field,
+and add a comment saying &quot;Adding self to CC&quot;, then that person
+gets a pointless piece of mail they would otherwise have avoided.
+
+Don't use sigs in comments. Signing your name (&quot;Bill&quot;) is acceptable,
+if you do it out of habit, but full mail/news-style
+four line ASCII art creations are not.
+
+If you feel a bug you filed was incorrectly marked as a
+DUPLICATE of another, please question it in your bug, not
+the bug it was duped to. Feel free to CC the person who duped it
+if they are not already CCed.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsenrstusingunderstandingrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/docs/en/rst/using/understanding.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/en/rst/using/understanding.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/docs/en/rst/using/understanding.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,303 @@
</span><ins>+.. _understanding:
+
+Understanding a Bug
+###################
+
+The core of Bugzilla is the screen which displays a particular
+bug. Note that the labels for most fields are hyperlinks;
+clicking them will take you to context-sensitive help on that
+particular field. Fields marked * may not be present on every
+installation of Bugzilla.
+
+*Summary:*
+   A one-sentence summary of the problem, displayed in the header next to
+   the bug number.
+
+*Status (and Resolution):*
+   These define exactly what state the bug is in—from not even
+   being confirmed as a bug, through to being fixed and the fix
+   confirmed by Quality Assurance. The different possible values for
+   Status and Resolution on your installation should be documented in the
+   context-sensitive help for those items.
+
+*Alias:*
+   A unique short text name for the bug, which can be used instead of the
+   bug number.
+
+*Product and Component*:
+   Bugs are divided up by Product and Component, with a Product
+   having one or more Components in it. 
+
+*Version:*
+   The &quot;Version&quot; field usually contains the numbers or names of released
+   versions of the product. It is used to indicate the version(s) affected by
+   the bug report.
+
+*Hardware (Platform and OS):*
+   These indicate the computing environment where the bug was
+   found.
+
+*Importance (Priority and Severity):*
+   The Priority field is used to prioritize bugs, either by the assignee,
+   or someone else with authority to direct their time such as a project
+   manager. It's a good idea not to change this on other people's bugs. The
+   default values are P1 to P5.
+
+   The Severity field indicates how severe the problem is—from blocker
+   (&quot;application unusable&quot;) to trivial (&quot;minor cosmetic issue&quot;). You
+   can also use this field to indicate whether a bug is an enhancement
+   request.
+
+*\*Target Milestone:*
+   A future version by which the bug is to
+   be fixed. e.g. The Bugzilla Project's milestones for future
+   Bugzilla versions are 4.4, 5.0, 6.0, etc. Milestones are not
+   restricted to numbers, though—you can use any text strings, such
+   as dates.
+
+*Assigned To:*
+   The person responsible for fixing the bug.
+
+*\*QA Contact:*
+   The person responsible for quality assurance on this bug.
+
+*URL:*
+   A URL associated with the bug, if any.
+
+*\*Whiteboard:*
+   A free-form text area for adding short notes and tags to a bug.
+
+*Keywords:*
+   The administrator can define keywords which you can use to tag and
+   categorise bugs—e.g. ``crash`` or ``regression``.
+
+*Personal Tags:*
+   Unlike Keywords which are global and visible by all users, Personal Tags
+   are personal and can only be viewed and edited by their author. Editing
+   them won't send any notifications to other users. Use them to tag and keep
+   track of sets of bugs that you personally care about, using your own
+   classification system.
+
+*Dependencies (Depends On and Blocks):*
+   If this bug cannot be fixed unless other bugs are fixed (depends
+   on), or this bug stops other bugs being fixed (blocks), their
+   numbers are recorded here.
+
+   Clicking the :guilabel:`Dependency tree` link shows
+   the dependency relationships of the bug as a tree structure.
+   You can change how much depth to show, and you can hide resolved bugs
+   from this page. You can also collapse/expand dependencies for
+   each non-terminal bug on the tree view, using the [-]/[+] buttons that
+   appear before the summary.
+
+*Reported:*
+   The person who filed the bug, and the date and time they did it.
+
+*Modified:*
+   The date and time the bug was last changed.
+
+*CC List:*
+   A list of people who get mail when the bug changes, in addition to the
+   Reporter, Assignee and QA Contact (if enabled).
+
+*Ignore Bug Mail:*
+   Set this if you want never to get bugmail from this bug again. See also
+   :ref:`emailpreferences`.
+
+*\*See Also:*
+   Bugs, in this Bugzilla, other Bugzillas, or other bug trackers, that are
+   related to this one.
+
+*Flags:*
+   A flag is a kind of status that can be set on bugs or attachments
+   to indicate that the bugs/attachments are in a certain state.
+   Each installation can define its own set of flags that can be set
+   on bugs or attachments. See :ref:`flags`.
+
+*\*Time Tracking:*
+   This form can be used for time tracking.
+   To use this feature, you have to be a member of the group
+   specified by the :param:`timetrackinggroup` parameter. See
+   :ref:`time-tracking` for more information.
+
+   Orig. Est.:
+       This field shows the original estimated time.
+   Current Est.:
+       This field shows the current estimated time.
+       This number is calculated from ``Hours Worked``
+       and ``Hours Left``.
+   Hours Worked:
+       This field shows the number of hours worked.
+   Hours Left:
+       This field shows the ``Current Est.`` -
+       ``Hours Worked``.
+       This value + ``Hours Worked`` will become the
+       new Current Est.
+   %Complete:
+       This field shows what percentage of the task is complete.
+   Gain:
+       This field shows the number of hours that the bug is ahead of the
+       ``Orig. Est.``.
+   Deadline:
+       This field shows the deadline for this bug.
+
+*Attachments:*
+   You can attach files (e.g. test cases or patches) to bugs. If there
+   are any attachments, they are listed in this section. See
+   :ref:`attachments` for more information.
+
+*Additional Comments:*
+   You can add your two cents to the bug discussion here, if you have
+   something worthwhile to say.
+
+.. _flags:
+
+Flags
+=====
+
+Flags are a way to attach a specific status to a bug or attachment,
+either ``+`` or ``-``. The meaning of these symbols depends on the name of
+the flag itself, but contextually they could mean pass/fail,
+accept/reject, approved/denied, or even a simple yes/no. If your site
+allows requestable flags, then users may set a flag to ``?`` as a
+request to another user that they look at the bug/attachment and set
+the flag to its correct status.
+
+A set flag appears in bug reports and on &quot;edit attachment&quot; pages with the
+abbreviated username of the user who set the flag prepended to the
+flag name. For example, if Jack sets a &quot;review&quot; flag to ``+``, it appears
+as :guilabel:`Jack: review [ + ]`.
+
+A requested flag appears with the user who requested the flag prepended
+to the flag name and the user who has been requested to set the flag
+appended to the flag name within parentheses.  For example, if Jack
+asks Jill for review, it appears as :guilabel:`Jack: review [ ? ] (Jill)`.
+
+You can browse through open requests made of you and by you by selecting
+:guilabel:`My Requests` from the footer. You can also look at open requests
+limited by other requesters, requestees, products, components, and flag names.
+Note that you can use '-' for requestee to specify flags with no requestee
+set.
+
+.. _flags-simpleexample:
+
+A Simple Example
+----------------
+
+A developer might want to ask their manager,
+&quot;Should we fix this bug before we release version 2.0?&quot;
+They might want to do this for a *lot* of bugs,
+so they decide to streamline the process. So:
+
+#. The Bugzilla administrator creates a flag type called blocking2.0 for bugs
+   in your product. It shows up on the :guilabel:`Show Bug` screen as the text
+   :guilabel:`blocking2.0` with a drop-down box next to it. The drop-down box
+   contains four values: an empty space, ``?``, ``-``, and ``+``.
+
+#. The developer sets the flag to ``?``.
+
+#. The manager sees the :guilabel:`blocking2.0`
+   flag with a ``?`` value.
+
+#. If the manager thinks the feature should go into the product
+   before version 2.0 can be released, they set the flag to
+   ``+``. Otherwise, they set it to ``-``.
+
+#. Now, every Bugzilla user who looks at the bug knows whether or
+   not the bug needs to be fixed before release of version 2.0.
+
+.. _flags-about:
+
+About Flags
+-----------
+
+Flags can have four values:
+
+``?``
+    A user is requesting that a status be set. (Think of it as 'A question is being asked'.)
+
+``-``
+    The status has been set negatively. (The question has been answered ``no``.)
+
+``+``
+    The status has been set positively.
+    (The question has been answered ``yes``.)
+
+``_``
+    ``unset`` actually shows up as a blank space. This just means that nobody
+    has expressed an opinion (or asked someone else to express an opinion)
+    about the matter covered by this flag.
+
+.. _flag-askto:
+
+Flag Requests
+-------------
+
+If a flag has been defined as :guilabel:`requestable`, and a user has enough
+privileges to request it (see below), the user can set the flag's status to
+``?``. This status indicates that someone (a.k.a. &quot;the requester&quot;) is asking
+someone else to set the flag to either ``+`` or ``-``.
+
+If a flag has been defined as :guilabel:`specifically requestable`,
+a text box will appear next to the flag into which the requester may
+enter a Bugzilla username. That named person (a.k.a. &quot;the requestee&quot;)
+will receive an email notifying them of the request, and pointing them
+to the bug/attachment in question.
+
+If a flag has *not* been defined as :guilabel:`specifically requestable`,
+then no such text box will appear. A request to set this flag cannot be made
+of any specific individual; these requests are open for anyone to answer. In
+Bugzilla this is known as &quot;asking the wind&quot;. A requester may ask the wind on
+any flag simply by leaving the text box blank.
+
+.. _flag-types:
+
+.. _flag-type-attachment:
+
+Attachment Flags
+----------------
+
+There are two types of flags: bug flags and attachment flags.
+
+Attachment flags are used to ask a question about a specific
+attachment on a bug.
+
+Many Bugzilla installations use this to
+request that one developer review another
+developer's code before they check it in. They attach the code to
+a bug report, and then set a flag on that attachment called
+:guilabel:`review` to
+:guilabel:`review? reviewer@example.com`.
+reviewer\@example.com is then notified by email that
+they have to check out that attachment and approve it or deny it.
+
+For a Bugzilla user, attachment flags show up in three places:
+
+#. On the list of attachments in the :guilabel:`Show Bug`
+   screen, you can see the current state of any flags that
+   have been set to ``?``, ``+``, or ``-``. You can see who asked about
+   the flag (the requester), and who is being asked (the
+   requestee).
+
+#. When you edit an attachment, you can
+   see any settable flag, along with any flags that have
+   already been set. The :guilabel:`Edit Attachment`
+   screen is where you set flags to ``?``, ``-``, ``+``, or unset them.
+
+#. Requests are listed in the :guilabel:`Request Queue`, which
+   is accessible from the :guilabel:`My Requests` link (if you are
+   logged in) or :guilabel:`Requests` link (if you are logged out)
+   visible on all pages.
+
+.. _flag-type-bug:
+
+Bug Flags
+---------
+
+Bug flags are used to set a status on the bug itself. You can
+see Bug Flags in the :guilabel:`Show Bug` and :guilabel:`Requests`
+screens, as described above.
+
+Only users with enough privileges (see below) may set flags on bugs.
+This doesn't necessarily include the assignee, reporter, or users with the
+:group:`editbugs` permission.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocslibPodSimpleHTMLBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTML/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTML/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTML/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Pod::Simple::HTML::Bugzilla;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Pod::Simple::HTML);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Pod::Simple::HTML);
+
</ins><span class="cx"> # Without this constant, HTMLBatch will throw undef warnings.
</span><span class="cx"> use constant VERSION    =&gt; $Pod::Simple::HTML::VERSION;
</span><span class="cx"> use constant CODE_CLASS =&gt; ' class=&quot;code&quot;';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocslibPodSimpleHTMLBatchBugzillapm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*- 
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2006
-# Everything Solved. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Pod::Simple::HTMLBatch::Bugzilla;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Pod::Simple::HTMLBatch);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Pod::Simple::HTMLBatch);
+
</ins><span class="cx"> # This is the same hack that HTMLBatch does to &quot;import&quot; this subroutine.
</span><span class="cx"> BEGIN { *esc = \&amp;Pod::Simple::HTML::esc }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsmakedocspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/docs/makedocs.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/makedocs.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/makedocs.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,136 +1,65 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+# This script compiles all the documentation.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
</del><ins>+# Required software:
</ins><span class="cx"> #
</span><del>-# The Original Code is the Bugzilla Bug Tracking System.
</del><ins>+# 1) Sphinx documentation builder (python-sphinx package on Debian/Ubuntu)
</ins><span class="cx"> #
</span><del>-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
</del><ins>+# 2a) rst2pdf
+# or
+# 2b) pdflatex, which means the following Debian/Ubuntu packages:
+#     * texlive-latex-base
+#     * texlive-latex-recommended
+#     * texlive-latex-extra
+#     * texlive-fonts-recommended
</ins><span class="cx"> #
</span><del>-# Contributor(s): Matthew Tuck &lt;matty@chariot.net.au&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Colin Ogilvie &lt;colin.ogilvie@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# All these TeX packages together are close to a gig :-| But after you've
+# installed them, you can remove texlive-latex-extra-doc to save 400MB.
</ins><span class="cx"> 
</span><del>-# This script compiles all the documentation.
-
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use Cwd;
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-# We need to be in this directory to use our libraries.
-BEGIN {
-    require File::Basename;
-    import File::Basename qw(dirname);
-    chdir dirname($0);
-}
</del><ins>+use File::Basename;
+BEGIN { chdir dirname($0); }
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(.. ../lib lib);
</span><span class="cx"> 
</span><del>-# We only compile our POD if Pod::Simple is installed. We do the checks
-# this way so that if there's a compile error in Pod::Simple::HTML::Bugzilla,
-# makedocs doesn't just silently fail, but instead actually tells us there's
-# a compile error.
-my $pod_simple;
-if (eval { require Pod::Simple }) {
-    require Pod::Simple::HTMLBatch::Bugzilla;
-    require Pod::Simple::HTML::Bugzilla;
-    $pod_simple = 1;
-};
</del><ins>+use Cwd;
+use File::Copy::Recursive qw(rcopy);
+use File::Find;
+use File::Path qw(rmtree make_path);
+use File::Which qw(which);
+use Pod::Simple;
</ins><span class="cx"> 
</span><del>-use Bugzilla::Install::Requirements 
-    qw(REQUIRED_MODULES OPTIONAL_MODULES);
-use Bugzilla::Constants qw(DB_MODULE BUGZILLA_VERSION);
</del><ins>+use Bugzilla::Constants qw(BUGZILLA_VERSION bz_locations);
+use Pod::Simple::HTMLBatch::Bugzilla;
+use Pod::Simple::HTML::Bugzilla;
</ins><span class="cx"> 
</span><span class="cx"> ###############################################################################
</span><del>-# Generate minimum version list
-###############################################################################
-
-my $modules = REQUIRED_MODULES;
-my $opt_modules = OPTIONAL_MODULES;
-
-open(ENTITIES, '&gt;', 'bugzilla.ent') or die('Could not open bugzilla.ent: ' . $!);
-print ENTITIES '&lt;?xml version=&quot;1.0&quot;?&gt;' .&quot;\n\n&quot;;
-print ENTITIES '&lt;!-- Module Versions --&gt;' . &quot;\n&quot;;
-foreach my $module (@$modules, @$opt_modules)
-{
-    my $name = $module-&gt;{'module'};
-    $name =~ s/::/-/g;
-    $name = lc($name);
-    #This needs to be a string comparison, due to the modules having
-    #version numbers like 0.9.4
-    my $version = $module-&gt;{'version'} eq 0 ? 'any' : $module-&gt;{'version'};
-    print ENTITIES '&lt;!ENTITY min-' . $name . '-ver &quot;'.$version.'&quot;&gt;' . &quot;\n&quot;;
-}
-
-print ENTITIES &quot;\n &lt;!-- Database Versions --&gt; \n&quot;;
-
-my $db_modules = DB_MODULE;
-foreach my $db (keys %$db_modules) {
-    my $dbd  = $db_modules-&gt;{$db}-&gt;{dbd};
-    my $name = $dbd-&gt;{module};
-    $name =~ s/::/-/g;
-    $name = lc($name);
-    my $version    = $dbd-&gt;{version} || 'any';
-    my $db_version = $db_modules-&gt;{$db}-&gt;{'db_version'};
-    print ENTITIES '&lt;!ENTITY min-' . $name . '-ver &quot;'.$version.'&quot;&gt;' . &quot;\n&quot;;
-    print ENTITIES '&lt;!ENTITY min-' . lc($db) . '-ver &quot;'.$db_version.'&quot;&gt;' . &quot;\n&quot;;
-}
-close(ENTITIES);
-
-###############################################################################
-# Environment Variable Checking
-###############################################################################
-
-my ($JADE_PUB, $LDP_HOME, $build_docs);
-$build_docs = 1;
-if (defined $ENV{JADE_PUB} &amp;&amp; $ENV{JADE_PUB} ne '') {
-    $JADE_PUB = $ENV{JADE_PUB};
-}
-else {
-    print &quot;To build 'The Bugzilla Guide', you need to set the &quot;;
-    print &quot;JADE_PUB environment variable first.\n&quot;;
-    $build_docs = 0;
-}
-
-if (defined $ENV{LDP_HOME} &amp;&amp; $ENV{LDP_HOME} ne '') {
-    $LDP_HOME = $ENV{LDP_HOME};
-}
-else {
-    print &quot;To build 'The Bugzilla Guide', you need to set the &quot;;
-    print &quot;LDP_HOME environment variable first.\n&quot;;
-    $build_docs = 0;
-}
-
-###############################################################################
</del><span class="cx"> # Subs
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><ins>+my $error_found = 0;
</ins><span class="cx"> sub MakeDocs {
</span><del>-
</del><span class="cx">     my ($name, $cmdline) = @_;
</span><span class="cx"> 
</span><del>-    print &quot;Creating $name documentation ...\n&quot; if defined $name;
-    print &quot;$cmdline\n\n&quot;;
-    system $cmdline;
</del><ins>+    say &quot;Creating $name documentation ...&quot; if defined $name;
+    system('make', $cmdline) == 0
+        or $error_found = 1;
</ins><span class="cx">     print &quot;\n&quot;;
</span><del>-
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub make_pod {
</span><ins>+    say &quot;Creating API documentation...&quot;;
</ins><span class="cx"> 
</span><del>-    print &quot;Creating API documentation...\n&quot;;
-
</del><span class="cx">     my $converter = Pod::Simple::HTMLBatch::Bugzilla-&gt;new;
</span><span class="cx">     # Don't output progress information.
</span><span class="cx">     $converter-&gt;verbose(0);
</span><span class="lines">@@ -153,10 +82,11 @@
</span><span class="cx"> 
</span><span class="cx">     $converter-&gt;contents_page_start($contents_start);
</span><span class="cx">     $converter-&gt;contents_page_end(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);
</span><del>-    $converter-&gt;add_css('./../../../style.css');
</del><ins>+    $converter-&gt;add_css('./../../../../style.css');
</ins><span class="cx">     $converter-&gt;javascript_flurry(0);
</span><span class="cx">     $converter-&gt;css_flurry(0);
</span><del>-    $converter-&gt;batch_convert(['../../'], 'html/api/');
</del><ins>+    make_path('html/integrating/api');
+    $converter-&gt;batch_convert(['../../'], 'html/integrating/api');
</ins><span class="cx"> 
</span><span class="cx">     print &quot;\n&quot;;
</span><span class="cx"> }
</span><span class="lines">@@ -166,11 +96,11 @@
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><span class="cx"> my @langs;
</span><del>-# search for sub directories which have a 'xml' sub-directory
</del><ins>+# search for sub directories which have a 'rst' sub-directory
</ins><span class="cx"> opendir(LANGS, './');
</span><span class="cx"> foreach my $dir (readdir(LANGS)) {
</span><span class="cx">     next if (($dir eq '.') || ($dir eq '..') || (! -d $dir));
</span><del>-    if (-d &quot;$dir/xml&quot;) {
</del><ins>+    if (-d &quot;$dir/rst&quot;) {
</ins><span class="cx">         push(@langs, $dir);
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -179,50 +109,54 @@
</span><span class="cx"> my $docparent = getcwd();
</span><span class="cx"> foreach my $lang (@langs) {
</span><span class="cx">     chdir &quot;$docparent/$lang&quot;;
</span><del>-    MakeDocs(undef, 'cp ../bugzilla.ent ./xml/');
</del><span class="cx"> 
</span><del>-    if (!-d 'txt') {
-        unlink 'txt';
-        mkdir 'txt', 0755;
</del><ins>+    make_pod();
+
+    next if grep { $_ eq '--pod-only' } @ARGV;
+
+    chdir $docparent;
+
+    # Generate extension documentation, both normal and API
+    my $ext_dir = bz_locations()-&gt;{'extensionsdir'};
+    my @ext_paths = grep { $_ !~ /\/create\.pl$/ &amp;&amp; ! -e &quot;$_/disabled&quot; }
+                    glob(&quot;$ext_dir/*&quot;);
+    my %extensions;
+    foreach my $item (@ext_paths) {
+        my $basename = basename($item);
+        if (-d &quot;$item/docs/$lang/rst&quot;) {
+            $extensions{$basename} = &quot;$item/docs/$lang/rst&quot;;
+        }
</ins><span class="cx">     }
</span><del>-    if (!-d 'pdf') {
-        unlink 'pdf';
-        mkdir 'pdf', 0755;
</del><ins>+
+    # Collect up local extension documentation into the extensions/ dir.
+    rmtree(&quot;$lang/rst/extensions&quot;, 0, 1);
+
+    foreach my $ext_name (keys %extensions) {
+        my $src = $extensions{$ext_name} . &quot;/*&quot;;
+        my $dst = &quot;$docparent/$lang/rst/extensions/$ext_name&quot;;
+        mkdir($dst) unless -d $dst;
+        rcopy($src, $dst);
</ins><span class="cx">     }
</span><del>-    if (!-d 'html') {
-        unlink 'html';
-        mkdir 'html', 0755;
-    }
-    if (!-d 'html/api') {
-        unlink 'html/api';
-        mkdir 'html/api', 0755;
-    }
</del><span class="cx"> 
</span><del>-    make_pod() if $pod_simple;
-    next unless $build_docs;
</del><ins>+    chdir &quot;$docparent/$lang&quot;;
</ins><span class="cx"> 
</span><del>-    chdir 'html';
</del><ins>+    MakeDocs('HTML', 'html');
+    MakeDocs('TXT', 'text');
</ins><span class="cx"> 
</span><del>-    MakeDocs('separate HTML', &quot;jade -t sgml -i html -d $LDP_HOME/ldp.dsl\#html &quot; .
-         &quot;$JADE_PUB/xml.dcl ../xml/Bugzilla-Guide.xml&quot;);
-    MakeDocs('big HTML', &quot;jade -V nochunks -t sgml -i html -d &quot; .
-         &quot;$LDP_HOME/ldp.dsl\#html $JADE_PUB/xml.dcl &quot; .
-         &quot;../xml/Bugzilla-Guide.xml &gt; Bugzilla-Guide.html&quot;);
-    MakeDocs('big text', &quot;lynx -dump -justify=off -nolist Bugzilla-Guide.html &quot; .
-         &quot;&gt; ../txt/Bugzilla-Guide.txt&quot;);
-
-    if (! grep($_ eq &quot;--with-pdf&quot;, @ARGV)) {
-        next;
</del><ins>+    if (grep { $_ eq '--with-pdf' } @ARGV) {
+        if (which('pdflatex')) {
+            MakeDocs('PDF', 'latexpdf');
+        }
+        elsif (which('rst2pdf')) {
+            rmtree('pdf', 0, 1);
+            MakeDocs('PDF', 'pdf');
+        }
+        else {
+            say 'pdflatex or rst2pdf not found. Skipping PDF file creation';
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    MakeDocs('PDF', &quot;jade -t tex -d $LDP_HOME/ldp.dsl\#print $JADE_PUB/xml.dcl &quot; .
-         '../xml/Bugzilla-Guide.xml');
-    chdir '../pdf';
-    MakeDocs(undef, 'mv ../xml/Bugzilla-Guide.tex .');
-    MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex');
-    MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex');
-    MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex');
-    MakeDocs(undef, 'rm Bugzilla-Guide.tex Bugzilla-Guide.log Bugzilla-Guide.aux Bugzilla-Guide.out');
-
</del><ins>+    rmtree('doctrees', 0, 1);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+die &quot;Error occurred building the documentation\n&quot; if $error_found;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgdocsstylecss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/docs/style.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/docs/style.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/docs/style.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Everything Solved.
- * Portions created by Everything Solved are Copyright (C) 2006 
- * Everything Solved. All Rights Reserved.
- *
- * Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><ins>+/* This style file is used by the API documentation */
+
</ins><span class="cx"> body {
</span><span class="cx">   background: white;
</span><span class="cx">   color: #111;
</span><span class="cx">   padding: 0 1em;
</span><del>-  margin: 0;
</del><span class="cx">   font-family: Verdana, Arial, sans-serif;
</span><del>-  font-size: small;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> a:link, a:active { color: #36415c; }
</span><span class="lines">@@ -72,10 +61,11 @@
</span><span class="cx">   border: 1px solid #ccc;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-pre.code {
</del><ins>+pre.code, pre.programlisting, pre.screen {
</ins><span class="cx">   margin-left: 10px;
</span><del>-  width: 90%;
-  padding: 10px;
</del><ins>+  padding: 0.5em;
+  background: #eed;
+  border: 1px solid #ccc;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* Special styles for the Contents page */
</span><span class="lines">@@ -104,4 +94,4 @@
</span><span class="cx">   background-color: #eee;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.pod_desc_table 
</del><ins>+.pod_desc_table
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgduplicatescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/duplicates.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/duplicates.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/duplicates.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): 
-#   Gervase Markham &lt;gerv@gerv.net&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -29,7 +16,7 @@
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><del>-use Bugzilla::Search;
</del><ins>+use Bugzilla::Bug;
</ins><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Product;
</span><span class="cx"> 
</span><span class="lines">@@ -187,10 +174,9 @@
</span><span class="cx">     $reso_field_id, $changedsince)};
</span><span class="cx"> add_indirect_dups(\%since_dups, \%dupe_relation);
</span><span class="cx"> 
</span><del>-# Enforce the mostfreqthreshold parameter and the &quot;bug_id&quot; cgi param.
-my $mostfreq = Bugzilla-&gt;params-&gt;{'mostfreqthreshold'};
</del><ins>+# Enforce the MOST_FREQUENT_THRESHOLD constant and the &quot;bug_id&quot; cgi param.
</ins><span class="cx"> foreach my $id (keys %total_dups) {
</span><del>-    if ($total_dups{$id} &lt; $mostfreq) {
</del><ins>+    if ($total_dups{$id} &lt; MOST_FREQUENT_THRESHOLD) {
</ins><span class="cx">         delete $total_dups{$id};
</span><span class="cx">         next;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditclassificationscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editclassifications.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editclassifications.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editclassifications.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,16 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil; cperl-indent-level: 4 -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Albert Ting
-#
-# Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -37,7 +27,6 @@
</span><span class="cx"> 
</span><span class="cx"> sub LoadTemplate {
</span><span class="cx">     my $action = shift;
</span><del>-    my $cgi = Bugzilla-&gt;cgi;
</del><span class="cx">     my $template = Bugzilla-&gt;template;
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'classifications'} = [Bugzilla::Classification-&gt;get_all]
</span><span class="lines">@@ -44,11 +33,10 @@
</span><span class="cx">       if ($action eq 'select');
</span><span class="cx">     # There is currently only one section about classifications,
</span><span class="cx">     # so all pages point to it. Let's define it here.
</span><del>-    $vars-&gt;{'doc_section'} = 'classifications.html';
</del><ins>+    $vars-&gt;{'doc_section'} = 'administering/categorization.html#classifications';
</ins><span class="cx"> 
</span><span class="cx">     $action =~ /(\w+)/;
</span><span class="cx">     $action = $1;
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/classifications/$action.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -58,11 +46,11 @@
</span><span class="cx"> # Preliminary checks:
</span><span class="cx"> #
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;login(LOGIN_REQUIRED);
</del><ins>+my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</ins><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;user-&gt;in_group('editclassifications')
</del><ins>+$user-&gt;in_group('editclassifications')
</ins><span class="cx">   || ThrowUserError(&quot;auth_failure&quot;, {group  =&gt; &quot;editclassifications&quot;,
</span><span class="cx">                                      action =&gt; &quot;edit&quot;,
</span><span class="cx">                                      object =&gt; &quot;classifications&quot;});
</span><span class="lines">@@ -179,9 +167,11 @@
</span><span class="cx">     my $class_old_name = trim($cgi-&gt;param('classificationold') || '');
</span><span class="cx">     my $classification = Bugzilla::Classification-&gt;check($class_old_name);
</span><span class="cx"> 
</span><del>-    $classification-&gt;set_name($class_name);
-    $classification-&gt;set_description(scalar $cgi-&gt;param('description'));
-    $classification-&gt;set_sortkey(scalar $cgi-&gt;param('sortkey'));
</del><ins>+    $classification-&gt;set_all({
+        name        =&gt; $class_name,
+        description =&gt; scalar $cgi-&gt;param('description'),
+        sortkey     =&gt; scalar $cgi-&gt;param('sortkey'),
+    });
</ins><span class="cx"> 
</span><span class="cx">     my $changes = $classification-&gt;update;
</span><span class="cx">     delete_token($token);
</span><span class="lines">@@ -198,9 +188,10 @@
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'reclassify') {
</span><span class="cx">     my $classification = Bugzilla::Classification-&gt;check($class_name);
</span><del>-   
</del><ins>+
</ins><span class="cx">     my $sth = $dbh-&gt;prepare(&quot;UPDATE products SET classification_id = ?
</span><span class="cx">                              WHERE name = ?&quot;);
</span><ins>+    my @names;
</ins><span class="cx"> 
</span><span class="cx">     if (defined $cgi-&gt;param('add_products')) {
</span><span class="cx">         check_token_data($token, 'reclassify_classifications');
</span><span class="lines">@@ -208,6 +199,7 @@
</span><span class="cx">             foreach my $prod ($cgi-&gt;param(&quot;prodlist&quot;)) {
</span><span class="cx">                 trick_taint($prod);
</span><span class="cx">                 $sth-&gt;execute($classification-&gt;id, $prod);
</span><ins>+                push @names, $prod;
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">         delete_token($token);
</span><span class="lines">@@ -216,7 +208,8 @@
</span><span class="cx">         if (defined $cgi-&gt;param('myprodlist')) {
</span><span class="cx">             foreach my $prod ($cgi-&gt;param(&quot;myprodlist&quot;)) {
</span><span class="cx">                 trick_taint($prod);
</span><del>-                $sth-&gt;execute(1,$prod);
</del><ins>+                $sth-&gt;execute(1, $prod);
+                push @names, $prod;
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">         delete_token($token);
</span><span class="lines">@@ -226,6 +219,11 @@
</span><span class="cx">     $vars-&gt;{'classification'} = $classification;
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('reclassify_classifications');
</span><span class="cx"> 
</span><ins>+    foreach my $name (@names) {
+        Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'products', name =&gt; $name });
+    }
+    Bugzilla-&gt;memcached-&gt;clear_config();
+
</ins><span class="cx">     LoadTemplate($action);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditcomponentscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editcomponents.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editcomponents.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editcomponents.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is Holger
-# Schurig. Portions created by Holger Schurig are
-# Copyright (C) 1999 Holger Schurig. All
-# Rights Reserved.
-#
-# Contributor(s): Holger Schurig &lt;holgerschurig@nikocity.de&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -39,7 +25,7 @@
</span><span class="cx"> my $vars = {};
</span><span class="cx"> # There is only one section about components in the documentation,
</span><span class="cx"> # so all actions point to the same page.
</span><del>-$vars-&gt;{'doc_section'} = 'components.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'administering/categorization.html#components';
</ins><span class="cx"> 
</span><span class="cx"> #
</span><span class="cx"> # Preliminary checks:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditfieldscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editfields.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editfields.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editfields.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -58,6 +52,7 @@
</span><span class="cx">     $vars-&gt;{'field'} = Bugzilla::Field-&gt;create({
</span><span class="cx">         name        =&gt; scalar $cgi-&gt;param('name'),
</span><span class="cx">         description =&gt; scalar $cgi-&gt;param('desc'),
</span><ins>+        long_desc   =&gt; scalar $cgi-&gt;param('long_desc'),
</ins><span class="cx">         type        =&gt; scalar $cgi-&gt;param('type'),
</span><span class="cx">         sortkey     =&gt; scalar $cgi-&gt;param('sortkey'),
</span><span class="cx">         mailhead    =&gt; scalar $cgi-&gt;param('new_bugmail'),
</span><span class="lines">@@ -108,6 +103,7 @@
</span><span class="cx">     $field || ThrowUserError('customfield_nonexistent', {'name' =&gt; $name});
</span><span class="cx"> 
</span><span class="cx">     $field-&gt;set_description($cgi-&gt;param('desc'));
</span><ins>+    $field-&gt;set_long_desc($cgi-&gt;param('long_desc'));
</ins><span class="cx">     $field-&gt;set_sortkey($cgi-&gt;param('sortkey'));
</span><span class="cx">     $field-&gt;set_in_new_bugmail($cgi-&gt;param('new_bugmail'));
</span><span class="cx">     $field-&gt;set_enter_bug($cgi-&gt;param('enter_bug'));
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditflagtypescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editflagtypes.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editflagtypes.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editflagtypes.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,17 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Script Initialization
-################################################################################
</del><ins>+use 5.10.1;
+use strict;
+use warnings;
</ins><span class="cx"> 
</span><del>-# Make it harder for us to do dangerous things in Perl.
-use strict;
</del><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><del>-# Use Bugzilla's flag modules for handling flag types.
</del><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Flag;
</span><span class="lines">@@ -88,7 +70,7 @@
</span><span class="cx">     my @categories;
</span><span class="cx">     if ($category_action =~ /^(in|ex)clude$/) {
</span><span class="cx">         if (!$user-&gt;in_group('editcomponents') &amp;&amp; !$product) {
</span><del>-            # The user can only add the flag type to products he can administrate.
</del><ins>+            # The user can only add the flag type to products they can administrate.
</ins><span class="cx">             foreach my $prod (@products) {
</span><span class="cx">                 push(@categories, $prod-&gt;id . ':0')
</span><span class="cx">             }
</span><span class="lines">@@ -454,17 +436,30 @@
</span><span class="cx"> 
</span><span class="cx">     my @products;
</span><span class="cx">     if ($user-&gt;in_group('editcomponents')) {
</span><del>-        @products = Bugzilla::Product-&gt;get_all;
</del><ins>+        if (Bugzilla-&gt;params-&gt;{useclassification}) {
+            # We want products grouped by classifications.
+            @products = map { @{ $_-&gt;products } } Bugzilla::Classification-&gt;get_all;
+        }
+        else {
+            @products = Bugzilla::Product-&gt;get_all;
+        }
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         @products = @{$user-&gt;get_products_by_permission('editcomponents')};
</span><ins>+
+        if (Bugzilla-&gt;params-&gt;{useclassification}) {
+            my %class;
+            push(@{$class{$_-&gt;classification_id}}, $_) foreach @products;
+
+            # Let's sort the list by classifications.
+            @products = ();
+            push(@products, @{$class{$_-&gt;id}}) foreach Bugzilla::Classification-&gt;get_all;
+        }
</ins><span class="cx">     }
</span><del>-    # We require all unique component names.
</del><ins>+
</ins><span class="cx">     my %components;
</span><span class="cx">     foreach my $product (@products) {
</span><del>-        foreach my $component (@{$product-&gt;components}) {
-            $components{$component-&gt;name} = 1;
-        }
</del><ins>+        $components{$_-&gt;name} = 1 foreach @{$product-&gt;components};
</ins><span class="cx">     }
</span><span class="cx">     $vars-&gt;{'products'} = \@products;
</span><span class="cx">     $vars-&gt;{'components'} = [sort(keys %components)];
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditgroupscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editgroups.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editgroups.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editgroups.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -37,9 +22,6 @@
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><del>-use constant SPECIAL_GROUPS =&gt; ('chartgroup', 'insidergroup',
-                                'timetrackinggroup', 'querysharegroup');
-
</del><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -153,8 +135,7 @@
</span><span class="cx"> unless ($action) {
</span><span class="cx">     my @groups = Bugzilla::Group-&gt;get_all;
</span><span class="cx">     $vars-&gt;{'groups'} = \@groups;
</span><del>-    
-    print $cgi-&gt;header();
</del><ins>+
</ins><span class="cx">     $template-&gt;process(&quot;admin/groups/list.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -173,12 +154,10 @@
</span><span class="cx"> 
</span><span class="cx">     get_current_and_available($group, $vars);
</span><span class="cx">     $vars-&gt;{'group'} = $group;
</span><del>-    $vars-&gt;{'token'}       = issue_session_token('edit_group');
</del><ins>+    $vars-&gt;{'token'} = issue_session_token('edit_group');
</ins><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/edit.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -190,10 +169,9 @@
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'add') {
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('add_group');
</span><del>-    print $cgi-&gt;header();
</del><ins>+
</ins><span class="cx">     $template-&gt;process(&quot;admin/groups/create.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-    
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -212,15 +190,9 @@
</span><span class="cx">         isactive    =&gt; scalar $cgi-&gt;param('isactive'),
</span><span class="cx">         icon_url    =&gt; scalar $cgi-&gt;param('icon_url'),
</span><span class="cx">         isbuggroup  =&gt; 1,
</span><ins>+        use_in_all_products =&gt; scalar $cgi-&gt;param('insertnew'),
</ins><span class="cx">     });
</span><span class="cx"> 
</span><del>-    # Permit all existing products to use the new group if makeproductgroups.
-    if ($cgi-&gt;param('insertnew')) {
-        $dbh-&gt;do('INSERT INTO group_control_map
-                  (group_id, product_id, membercontrol, othercontrol)
-                  SELECT ?, products.id, ?, ? FROM products',
-                  undef, ($group-&gt;id, CONTROLMAPSHOWN, CONTROLMAPNA));
-    }
</del><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'message'} = 'group_created';
</span><span class="lines">@@ -228,7 +200,6 @@
</span><span class="cx">     get_current_and_available($group, $vars);
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('edit_group');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/edit.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -252,10 +223,8 @@
</span><span class="cx">     $vars-&gt;{'group'} = $group;
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('delete_group');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/delete.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-    
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -279,7 +248,6 @@
</span><span class="cx">     $vars-&gt;{'message'} = 'group_deleted';
</span><span class="cx">     $vars-&gt;{'groups'} = [Bugzilla::Group-&gt;get_all];
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/list.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -301,7 +269,6 @@
</span><span class="cx">     $vars-&gt;{'changes'} = $changes;
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('edit_group');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/edit.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -312,6 +279,7 @@
</span><span class="cx">     $vars-&gt;{'group'} = $group;
</span><span class="cx">     $vars-&gt;{'regexp'} = CheckGroupRegexp($cgi-&gt;param('regexp'));
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('remove_group_members');
</span><ins>+
</ins><span class="cx">     $template-&gt;process('admin/groups/confirm-remove.html.tmpl', $vars)
</span><span class="cx">         || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -350,10 +318,8 @@
</span><span class="cx">     $vars-&gt;{'group'} = $group-&gt;name;
</span><span class="cx">     $vars-&gt;{'groups'} = [Bugzilla::Group-&gt;get_all];
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/groups/list.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditkeywordscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editkeywords.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editkeywords.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editkeywords.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Terry Weissman.
-# Portions created by Terry Weissman are
-# Copyright (C) 2000 Terry Weissman. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -35,10 +24,6 @@
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="cx"> my $vars = {};
</span><span class="cx"> 
</span><del>-#
-# Preliminary checks:
-#
-
</del><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="lines">@@ -58,22 +43,16 @@
</span><span class="cx"> if ($action eq &quot;&quot;) {
</span><span class="cx">     $vars-&gt;{'keywords'} = Bugzilla::Keyword-&gt;get_all_with_bug_count();
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/keywords/list.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><del>-    
</del><span class="cx"> 
</span><span class="cx"> if ($action eq 'add') {
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('add_keyword');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
-
</del><span class="cx">     $template-&gt;process(&quot;admin/keywords/create.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><del>-
</del><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -90,8 +69,6 @@
</span><span class="cx"> 
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
-
</del><span class="cx">     $vars-&gt;{'message'} = 'keyword_created';
</span><span class="cx">     $vars-&gt;{'name'} = $keyword-&gt;name;
</span><span class="cx">     $vars-&gt;{'keywords'} = Bugzilla::Keyword-&gt;get_all_with_bug_count();
</span><span class="lines">@@ -110,12 +87,11 @@
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'edit') {
</span><span class="cx">     my $keyword = new Bugzilla::Keyword($key_id)
</span><del>-        || ThrowCodeError('invalid_keyword_id', { id =&gt; $key_id });
</del><ins>+        || ThrowUserError('invalid_keyword_id', { id =&gt; $key_id });
</ins><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'keyword'} = $keyword;
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('edit_keyword');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/keywords/edit.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -129,7 +105,7 @@
</span><span class="cx"> if ($action eq 'update') {
</span><span class="cx">     check_token_data($token, 'edit_keyword');
</span><span class="cx">     my $keyword = new Bugzilla::Keyword($key_id)
</span><del>-        || ThrowCodeError('invalid_keyword_id', { id =&gt; $key_id });
</del><ins>+        || ThrowUserError('invalid_keyword_id', { id =&gt; $key_id });
</ins><span class="cx"> 
</span><span class="cx">     $keyword-&gt;set_all({
</span><span class="cx">         name        =&gt; scalar $cgi-&gt;param('name'),
</span><span class="lines">@@ -139,8 +115,6 @@
</span><span class="cx"> 
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
-
</del><span class="cx">     $vars-&gt;{'message'} = 'keyword_updated';
</span><span class="cx">     $vars-&gt;{'keyword'} = $keyword;
</span><span class="cx">     $vars-&gt;{'changes'} = $changes;
</span><span class="lines">@@ -153,12 +127,11 @@
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'del') {
</span><span class="cx">     my $keyword =  new Bugzilla::Keyword($key_id)
</span><del>-        || ThrowCodeError('invalid_keyword_id', { id =&gt; $key_id });
</del><ins>+        || ThrowUserError('invalid_keyword_id', { id =&gt; $key_id });
</ins><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'keyword'} = $keyword;
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('delete_keyword');
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     $template-&gt;process(&quot;admin/keywords/confirm-delete.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="lines">@@ -167,14 +140,12 @@
</span><span class="cx"> if ($action eq 'delete') {
</span><span class="cx">     check_token_data($token, 'delete_keyword');
</span><span class="cx">     my $keyword =  new Bugzilla::Keyword($key_id)
</span><del>-        || ThrowCodeError('invalid_keyword_id', { id =&gt; $key_id });
</del><ins>+        || ThrowUserError('invalid_keyword_id', { id =&gt; $key_id });
</ins><span class="cx"> 
</span><span class="cx">     $keyword-&gt;remove_from_db();
</span><span class="cx"> 
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><del>-    print $cgi-&gt;header();
-
</del><span class="cx">     $vars-&gt;{'message'} = 'keyword_deleted';
</span><span class="cx">     $vars-&gt;{'keyword'} = $keyword;
</span><span class="cx">     $vars-&gt;{'keywords'} = Bugzilla::Keyword-&gt;get_all_with_bug_count();
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditmilestonescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editmilestones.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editmilestones.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editmilestones.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is Matt Masson.
-# Portions created by Matt Masson are Copyright (C) 2000 Matt Masson.
-# All Rights Reserved.
-#
-# Contributors : Matt Masson &lt;matthew@zeroknowledge.com&gt;
-#                Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-#                Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -35,7 +25,7 @@
</span><span class="cx"> my $vars = {};
</span><span class="cx"> # There is only one section about milestones in the documentation,
</span><span class="cx"> # so all actions point to the same page.
</span><del>-$vars-&gt;{'doc_section'} = 'milestones.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'administering/categorization.html#milestones';
</ins><span class="cx"> 
</span><span class="cx"> #
</span><span class="cx"> # Preliminary checks:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditparamscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editparams.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editparams.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editparams.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -135,7 +122,7 @@
</span><span class="cx">                 }
</span><span class="cx">             } elsif ($name eq 'globalwatchers') {
</span><span class="cx">                 # can't check this as others, as Bugzilla::Config::Common
</span><del>-                # can not use Bugzilla::User
</del><ins>+                # cannot use Bugzilla::User
</ins><span class="cx">                 foreach my $watcher (split(/[,\s]+/, $value)) {
</span><span class="cx">                     ThrowUserError(
</span><span class="cx">                         'invalid_parameter',
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditproductscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editproducts.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editproducts.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editproducts.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is Holger
-# Schurig. Portions created by Holger Schurig are
-# Copyright (C) 1999 Holger Schurig. All
-# Rights Reserved.
-#
-# Contributor(s): Holger Schurig &lt;holgerschurig@nikocity.de&gt;
-#               Terry Weissman &lt;terry@mozilla.org&gt;
-#               Dawn Endico &lt;endico@mozilla.org&gt;
-#               Joe Robins &lt;jmrobins@tgix.com&gt;
-#               Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-#               Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#               Greg Hendricks &lt;ghendricks@novell.com&gt;
-#               Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#               Elliotte Martin &lt;elliotte.martin@yahoo.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -37,6 +18,7 @@
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> use Bugzilla::Product;
</span><ins>+use Bugzilla::Component;
</ins><span class="cx"> use Bugzilla::Classification;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><span class="lines">@@ -53,7 +35,7 @@
</span><span class="cx"> my $vars = {};
</span><span class="cx"> # Remove this as soon as the documentation about products has been
</span><span class="cx"> # improved and each action has its own section.
</span><del>-$vars-&gt;{'doc_section'} = 'products.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'administering/categorization.html#products';
</ins><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span><span class="lines">@@ -176,7 +158,13 @@
</span><span class="cx"> 
</span><span class="cx">     check_token_data($token, 'add_product');
</span><span class="cx"> 
</span><del>-    my %create_params = (
</del><ins>+    Bugzilla::User::match_field ({
+        'initialowner'     =&gt; { 'type' =&gt; 'single' },
+        'initialqacontact' =&gt; { 'type' =&gt; 'single' },
+        'initialcc'        =&gt; { 'type' =&gt; 'multi'  },
+    });
+
+    my %product_create_params = (
</ins><span class="cx">         classification   =&gt; $classification_name,
</span><span class="cx">         name             =&gt; $product_name,
</span><span class="cx">         description      =&gt; scalar $cgi-&gt;param('description'),
</span><span class="lines">@@ -186,8 +174,24 @@
</span><span class="cx">         create_series    =&gt; scalar $cgi-&gt;param('createseries'),
</span><span class="cx">         allows_unconfirmed =&gt; scalar $cgi-&gt;param('allows_unconfirmed'),
</span><span class="cx">     );
</span><del>-    my $product = Bugzilla::Product-&gt;create(\%create_params);
</del><span class="cx"> 
</span><ins>+    $dbh-&gt;bz_start_transaction();
+    my $product = Bugzilla::Product-&gt;create(\%product_create_params);
+
+    my @initial_cc = $cgi-&gt;param('initialcc');
+    my %component_create_params = (
+        product          =&gt; $product,
+        name             =&gt; trim($cgi-&gt;param('component') || ''),
+        description      =&gt; scalar $cgi-&gt;param('comp_desc'),
+        initialowner     =&gt; scalar $cgi-&gt;param('initialowner'),
+        initialqacontact =&gt; scalar $cgi-&gt;param('initialqacontact'),
+        initial_cc       =&gt; \@initial_cc,
+        create_series    =&gt; scalar $cgi-&gt;param('createseries'),
+   );
+
+    Bugzilla::Component-&gt;create(\%component_create_params);
+    $dbh-&gt;bz_commit_transaction();
+
</ins><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'message'} = 'product_created';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditsettingscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editsettings.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editsettings.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editsettings.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -62,6 +55,7 @@
</span><span class="cx">     }
</span><span class="cx">     $vars-&gt;{'message'} = 'default_settings_updated';
</span><span class="cx">     $vars-&gt;{'changes_saved'} = $changed;
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear_config();
</ins><span class="cx">     delete_token($token);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgedituserscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editusers.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editusers.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editusers.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 David Lawrence &lt;dkl@redhat.com&gt;
-#                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-#                 Gavin Shelley  &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -34,6 +23,7 @@
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> use Bugzilla::Token;
</span><ins>+use Bugzilla::Mailer;
</ins><span class="cx"> 
</span><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="lines">@@ -80,7 +70,10 @@
</span><span class="cx">     my $matchstr      = trim($cgi-&gt;param('matchstr'));
</span><span class="cx">     my $matchtype     = $cgi-&gt;param('matchtype');
</span><span class="cx">     my $grouprestrict = $cgi-&gt;param('grouprestrict') || '0';
</span><del>-    my $query = 'SELECT DISTINCT userid, login_name, realname, is_enabled ' .
</del><ins>+    # 0 = disabled only, 1 = enabled only, 2 = everyone
+    my $is_enabled    = $cgi-&gt;param('is_enabled') // 2;
+    my $query = 'SELECT DISTINCT userid, login_name, realname, is_enabled, ' .
+                $dbh-&gt;sql_date_format('last_seen_date', '%Y-%m-%d') . ' AS last_seen_date ' .
</ins><span class="cx">                 'FROM profiles';
</span><span class="cx">     my @bindValues;
</span><span class="cx">     my $nextCondition;
</span><span class="lines">@@ -157,8 +150,7 @@
</span><span class="cx">             } elsif ($matchtype eq 'exact') {
</span><span class="cx">                 $query .= $expr . ' = ?';
</span><span class="cx">             } else { # substr or unknown
</span><del>-                $query .= $dbh-&gt;sql_istrcmp($expr, '?', 'LIKE');
-                $matchstr = &quot;%$matchstr%&quot;;
</del><ins>+                $query .= $dbh-&gt;sql_iposition('?', $expr) . ' &gt; 0';
</ins><span class="cx">             }
</span><span class="cx">             $nextCondition = 'AND';
</span><span class="cx">             push(@bindValues, $matchstr);
</span><span class="lines">@@ -170,6 +162,14 @@
</span><span class="cx">                 @{Bugzilla::Group-&gt;flatten_group_membership($group-&gt;id)});
</span><span class="cx">             $query .= &quot; $nextCondition ugm.group_id IN($grouplist) &quot;;
</span><span class="cx">         }
</span><ins>+
+        detaint_natural($is_enabled);
+        if ($is_enabled &amp;&amp; ($is_enabled == 0 || $is_enabled == 1)) {
+            $query .= &quot; $nextCondition profiles.is_enabled = ?&quot;;
+            $nextCondition = 'AND';
+            push(@bindValues, $is_enabled);
+        }
+
</ins><span class="cx">         $query .= ' ORDER BY profiles.login_name';
</span><span class="cx"> 
</span><span class="cx">         $vars-&gt;{'users'} = $dbh-&gt;selectall_arrayref($query,
</span><span class="lines">@@ -224,6 +224,15 @@
</span><span class="cx"> 
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><ins>+    if ($cgi-&gt;param('notify_user')) {
+        $vars-&gt;{'new_user'} = $new_user;
+        my $message;
+      
+        $template-&gt;process('email/new-user-details.txt.tmpl', $vars, \$message)
+            || ThrowTemplateError($template-&gt;error());
+        MessageToMTA($message);
+    }
+
</ins><span class="cx">     # We already display the updated page. We have to recreate a token now.
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('edit_user');
</span><span class="cx">     $vars-&gt;{'message'} = 'account_created';
</span><span class="lines">@@ -243,7 +252,7 @@
</span><span class="cx"> 
</span><span class="cx">     # Lock tables during the check+update session.
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><del>- 
</del><ins>+
</ins><span class="cx">     $editusers || $user-&gt;can_see_user($otherUser)
</span><span class="cx">         || ThrowUserError('auth_failure', {reason =&gt; &quot;not_visible&quot;,
</span><span class="cx">                                            action =&gt; &quot;modify&quot;,
</span><span class="lines">@@ -251,6 +260,10 @@
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'loginold'} = $otherUser-&gt;login;
</span><span class="cx"> 
</span><ins>+    # Update groups
+    my @group_ids = grep { s/group_// } keys %{ Bugzilla-&gt;cgi-&gt;Vars };
+    $otherUser-&gt;set_groups({ set =&gt; \@group_ids });
+
</ins><span class="cx">     # Update profiles table entry; silently skip doing this if the user
</span><span class="cx">     # is not authorized.
</span><span class="cx">     my $changes = {};
</span><span class="lines">@@ -263,86 +276,12 @@
</span><span class="cx">         $otherUser-&gt;set_disable_mail($cgi-&gt;param('disable_mail'));
</span><span class="cx">         $otherUser-&gt;set_extern_id($cgi-&gt;param('extern_id'))
</span><span class="cx">             if defined($cgi-&gt;param('extern_id'));
</span><del>-        $changes = $otherUser-&gt;update();
-    }
</del><span class="cx"> 
</span><del>-    # Update group settings.
-    my $sth_add_mapping = $dbh-&gt;prepare(
-        qq{INSERT INTO user_group_map (
-                  user_id, group_id, isbless, grant_type
-                 ) VALUES (
-                  ?, ?, ?, ?
-                 )
-          });
-    my $sth_remove_mapping = $dbh-&gt;prepare(
-        qq{DELETE FROM user_group_map
-            WHERE user_id = ?
-              AND group_id = ?
-              AND isbless = ?
-              AND grant_type = ?
-          });
-
-    my @groupsAddedTo;
-    my @groupsRemovedFrom;
-    my @groupsGrantedRightsToBless;
-    my @groupsDeniedRightsToBless;
-
-    # Regard only groups the user is allowed to bless and skip all others
-    # silently.
-    # XXX: checking for existence of each user_group_map entry
-    #      would allow to display a friendlier error message on page reloads.
-    userDataToVars($otherUserID);
-    my $permissions = $vars-&gt;{'permissions'};
-    foreach my $blessable (@{$user-&gt;bless_groups()}) {
-        my $id = $blessable-&gt;id;
-        my $name = $blessable-&gt;name;
-
-        # Change memberships.
-        my $groupid = $cgi-&gt;param(&quot;group_$id&quot;) || 0;
-        if ($groupid != $permissions-&gt;{$id}-&gt;{'directmember'}) {
-            if (!$groupid) {
-                $sth_remove_mapping-&gt;execute(
-                    $otherUserID, $id, 0, GRANT_DIRECT);
-                push(@groupsRemovedFrom, $name);
-            } else {
-                $sth_add_mapping-&gt;execute(
-                    $otherUserID, $id, 0, GRANT_DIRECT);
-                push(@groupsAddedTo, $name);
-            }
-        }
-
-        # Only members of the editusers group may change bless grants.
-        # Skip silently if this is not the case.
-        if ($editusers) {
-            my $groupid = $cgi-&gt;param(&quot;bless_$id&quot;) || 0;
-            if ($groupid != $permissions-&gt;{$id}-&gt;{'directbless'}) {
-                if (!$groupid) {
-                    $sth_remove_mapping-&gt;execute(
-                        $otherUserID, $id, 1, GRANT_DIRECT);
-                    push(@groupsDeniedRightsToBless, $name);
-                } else {
-                    $sth_add_mapping-&gt;execute(
-                        $otherUserID, $id, 1, GRANT_DIRECT);
-                    push(@groupsGrantedRightsToBless, $name);
-                }
-            }
-        }
</del><ins>+        # Update bless groups
+        my @bless_ids = grep { s/bless_// } keys %{ Bugzilla-&gt;cgi-&gt;Vars };
+        $otherUser-&gt;set_bless_groups({ set =&gt; \@bless_ids });
</ins><span class="cx">     }
</span><del>-    if (@groupsAddedTo || @groupsRemovedFrom) {
-        $dbh-&gt;do(qq{INSERT INTO profiles_activity (
-                           userid, who,
-                           profiles_when, fieldid,
-                           oldvalue, newvalue
-                          ) VALUES (
-                           ?, ?, now(), ?, ?, ?
-                          )
-                   },
-                 undef,
-                 ($otherUserID, $userid,
-                  get_field_id('bug_group'),
-                  join(', ', @groupsRemovedFrom), join(', ', @groupsAddedTo)));
-    }
-    # XXX: should create profiles_activity entries for blesser changes.
</del><ins>+    $changes = $otherUser-&gt;update();
</ins><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><span class="lines">@@ -351,11 +290,7 @@
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'message'} = 'account_updated';
</span><del>-    $vars-&gt;{'changed_fields'} = [keys %$changes];
-    $vars-&gt;{'groups_added_to'} = \@groupsAddedTo;
-    $vars-&gt;{'groups_removed_from'} = \@groupsRemovedFrom;
-    $vars-&gt;{'groups_granted_rights_to_bless'} = \@groupsGrantedRightsToBless;
-    $vars-&gt;{'groups_denied_rights_to_bless'} = \@groupsDeniedRightsToBless;
</del><ins>+    $vars-&gt;{'changes'} = \%$changes;
</ins><span class="cx">     # We already display the updated page. We have to recreate a token now.
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('edit_user');
</span><span class="cx"> 
</span><span class="lines">@@ -490,10 +425,6 @@
</span><span class="cx">     my $sth_set_bug_timestamp =
</span><span class="cx">         $dbh-&gt;prepare('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?');
</span><span class="cx"> 
</span><del>-    my $sth_updateFlag = $dbh-&gt;prepare('INSERT INTO bugs_activity
-                  (bug_id, attach_id, who, bug_when, fieldid, removed, added)
-                  VALUES (?, ?, ?, ?, ?, ?, ?)');
-
</del><span class="cx">     # Flags
</span><span class="cx">     my $flag_ids =
</span><span class="cx">       $dbh-&gt;selectcol_arrayref('SELECT id FROM flags WHERE requestee_id = ?',
</span><span class="lines">@@ -508,7 +439,6 @@
</span><span class="cx">     # so we have to log these changes manually.
</span><span class="cx">     my %bugs;
</span><span class="cx">     push(@{$bugs{$_-&gt;bug_id}-&gt;{$_-&gt;attach_id || 0}}, $_) foreach @$flags;
</span><del>-    my $fieldid = get_field_id('flagtypes.name');
</del><span class="cx">     foreach my $bug_id (keys %bugs) {
</span><span class="cx">         foreach my $attach_id (keys %{$bugs{$bug_id}}) {
</span><span class="cx">             my @old_summaries = Bugzilla::Flag-&gt;snapshot($bugs{$bug_id}-&gt;{$attach_id});
</span><span class="lines">@@ -515,9 +445,9 @@
</span><span class="cx">             $_-&gt;_set_requestee() foreach @{$bugs{$bug_id}-&gt;{$attach_id}};
</span><span class="cx">             my @new_summaries = Bugzilla::Flag-&gt;snapshot($bugs{$bug_id}-&gt;{$attach_id});
</span><span class="cx">             my ($removed, $added) =
</span><del>-              Bugzilla::Flag-&gt;update_activity(\@old_summaries, \@new_summaries);
-            $sth_updateFlag-&gt;execute($bug_id, $attach_id || undef, $userid,
-                                     $timestamp, $fieldid, $removed, $added);
</del><ins>+                Bugzilla::Flag-&gt;update_activity(\@old_summaries, \@new_summaries);
+            LogActivityEntry($bug_id, 'flagtypes.name', $removed, $added,
+                $userid, $timestamp, undef, $attach_id);
</ins><span class="cx">         }
</span><span class="cx">         $sth_set_bug_timestamp-&gt;execute($timestamp, $bug_id);
</span><span class="cx">         $updatedbugs{$bug_id} = 1;
</span><span class="lines">@@ -645,6 +575,11 @@
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><ins>+    # It's complex to determine which items now need to be flushed from
+    # memcached.  As user deletion is expected to be a rare event, we just
+    # flush the entire cache when a user is deleted.
+    Bugzilla-&gt;memcached-&gt;clear_all();
+
</ins><span class="cx">     $vars-&gt;{'message'} = 'account_deleted';
</span><span class="cx">     $vars-&gt;{'otheruser'}{'login'} = $otherUser-&gt;login;
</span><span class="cx">     $vars-&gt;{'restrictablegroups'} = $user-&gt;bless_groups();
</span><span class="lines">@@ -707,7 +642,7 @@
</span><span class="cx">         $otherUser = new Bugzilla::User({ name =&gt; $otherUserLogin });
</span><span class="cx">         $vars-&gt;{'user_login'} = $otherUserLogin;
</span><span class="cx">     }
</span><del>-    ($otherUser &amp;&amp; $otherUser-&gt;id) || ThrowCodeError('invalid_user', $vars);
</del><ins>+    ($otherUser &amp;&amp; $otherUser-&gt;id) || ThrowUserError('invalid_user', $vars);
</ins><span class="cx"> 
</span><span class="cx">     return $otherUser;
</span><span class="cx"> }
</span><span class="lines">@@ -716,7 +651,9 @@
</span><span class="cx"> sub mirrorListSelectionValues {
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     if (defined($cgi-&gt;param('matchtype'))) {
</span><del>-        foreach ('matchvalue', 'matchstr', 'matchtype', 'grouprestrict', 'groupid') {
</del><ins>+        foreach ('matchvalue', 'matchstr', 'matchtype',
+                 'grouprestrict', 'groupid', 'is_enabled')
+        {
</ins><span class="cx">             $vars-&gt;{'listselectionvalues'}{$_} = $cgi-&gt;param($_);
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditvaluescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editvalues.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editvalues.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editvalues.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-# This is a script to edit the values of fields that have drop-down
-# or select boxes. It is largely a copy of editmilestones.cgi, but 
-# with some cleanup.
</del><ins>+use 5.10.1;
+use strict;
+use warnings;
</ins><span class="cx"> 
</span><del>-use strict;
</del><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -47,7 +38,7 @@
</span><span class="cx"> ######################################################################
</span><span class="cx"> 
</span><span class="cx"> # require the user to have logged in
</span><del>-Bugzilla-&gt;login(LOGIN_REQUIRED);
</del><ins>+my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</ins><span class="cx"> 
</span><span class="cx"> my $dbh      = Bugzilla-&gt;dbh;
</span><span class="cx"> my $cgi      = Bugzilla-&gt;cgi;
</span><span class="lines">@@ -56,14 +47,14 @@
</span><span class="cx"> 
</span><span class="cx"> # Replace this entry by separate entries in templates when
</span><span class="cx"> # the documentation about legal values becomes bigger.
</span><del>-$vars-&gt;{'doc_section'} = 'edit-values.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'administering/field-values.html';
</ins><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;user-&gt;in_group('admin') ||
-    ThrowUserError('auth_failure', {group  =&gt; &quot;admin&quot;,
-                                    action =&gt; &quot;edit&quot;,
-                                    object =&gt; &quot;field_values&quot;});
</del><ins>+$user-&gt;in_group('admin')
+  || ThrowUserError('auth_failure', {group  =&gt; &quot;admin&quot;,
+                                     action =&gt; &quot;edit&quot;,
+                                     object =&gt; &quot;field_values&quot;});
</ins><span class="cx"> 
</span><span class="cx"> #
</span><span class="cx"> # often-used variables
</span><span class="lines">@@ -181,12 +172,15 @@
</span><span class="cx"> if ($action eq 'update') {
</span><span class="cx">     check_token_data($token, 'edit_field_value');
</span><span class="cx">     $vars-&gt;{'value_old'} = $value-&gt;name;
</span><ins>+    my %params = (
+        name    =&gt; scalar $cgi-&gt;param('value_new'),
+        sortkey =&gt; scalar $cgi-&gt;param('sortkey'),
+        visibility_value =&gt; scalar $cgi-&gt;param('visibility_value_id'),
+    );
</ins><span class="cx">     if ($cgi-&gt;should_set('is_active')) {
</span><del>-        $value-&gt;set_is_active($cgi-&gt;param('is_active'));
</del><ins>+        $params{is_active} = $cgi-&gt;param('is_active');
</ins><span class="cx">     }
</span><del>-    $value-&gt;set_name($cgi-&gt;param('value_new'));
-    $value-&gt;set_sortkey($cgi-&gt;param('sortkey'));
-    $value-&gt;set_visibility_value($cgi-&gt;param('visibility_value_id'));
</del><ins>+    $value-&gt;set_all(\%params);
</ins><span class="cx">     $vars-&gt;{'changes'} = $value-&gt;update();
</span><span class="cx">     delete_token($token);
</span><span class="cx">     $vars-&gt;{'message'} = 'field_value_updated';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditversionscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editversions.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editversions.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editversions.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is Holger
-# Schurig. Portions created by Holger Schurig are
-# Copyright (C) 1999 Holger Schurig. All
-# Rights Reserved.
-#
-# Contributor(s): Holger Schurig &lt;holgerschurig@nikocity.de&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -39,7 +25,7 @@
</span><span class="cx"> my $vars = {};
</span><span class="cx"> # There is only one section about versions in the documentation,
</span><span class="cx"> # so all actions point to the same page.
</span><del>-$vars-&gt;{'doc_section'} = 'versions.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'administering/categorization.html#versions';
</ins><span class="cx"> 
</span><span class="cx"> #
</span><span class="cx"> # Preliminary checks:
</span><span class="lines">@@ -204,8 +190,10 @@
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><del>-    $version-&gt;set_name($version_name);
-    $version-&gt;set_is_active($isactive);
</del><ins>+    $version-&gt;set_all({
+        value    =&gt;  $version_name,
+        isactive =&gt;  $isactive
+    });
</ins><span class="cx">     my $changes = $version-&gt;update();
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditwhinescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editwhines.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editwhines.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editwhines.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,18 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> ################################################################################
</span><span class="cx"> # Script Initialization
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -40,6 +27,8 @@
</span><span class="cx"> use Bugzilla::Whine::Query;
</span><span class="cx"> use Bugzilla::Whine;
</span><span class="cx"> 
</span><ins>+use DateTime;
+
</ins><span class="cx"> # require the user to have logged in
</span><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="lines">@@ -82,7 +71,7 @@
</span><span class="cx">                                      object =&gt; &quot;reports&quot;});
</span><span class="cx"> 
</span><span class="cx"> # May this user send mail to other users?
</span><del>-my $can_mail_others = Bugzilla-&gt;user-&gt;in_group('bz_canusewhineatothers');
</del><ins>+my $can_mail_others = $user-&gt;in_group('bz_canusewhineatothers');
</ins><span class="cx"> 
</span><span class="cx"> # If the form was submitted, we need to look for what needs to be added or
</span><span class="cx"> # removed, then what was altered.
</span><span class="lines">@@ -412,4 +401,3 @@
</span><span class="cx"> 
</span><span class="cx">     return \%events;
</span><span class="cx"> }
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgeditworkflowcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/editworkflow.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/editworkflow.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/editworkflow.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (C) 2007
-# Frédéric Buclin. All Rights Reserved.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -87,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx">     # Part 1: Initial bug statuses.
</span><span class="cx">     foreach my $new (@$statuses) {
</span><del>-        if ($new-&gt;is_open &amp;&amp; $cgi-&gt;param('w_0_' . $new-&gt;id)) {
</del><ins>+        if ($cgi-&gt;param('w_0_' . $new-&gt;id)) {
</ins><span class="cx">             $sth_insert-&gt;execute(undef, $new-&gt;id)
</span><span class="cx">               unless defined $workflow-&gt;{0}-&gt;{$new-&gt;id};
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgemail_inpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/email_in.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/email_in.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/email_in.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,12 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Inbound Email System.
-#
-# The Initial Developer of the Original Code is Akamai Technologies, Inc.
-# Portions created by Akamai are Copyright (C) 2006 Akamai Technologies, 
-# Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span><span class="lines">@@ -38,11 +26,12 @@
</span><span class="cx"> use Email::Address;
</span><span class="cx"> use Email::Reply qw(reply);
</span><span class="cx"> use Email::MIME;
</span><del>-use Email::MIME::Attachment::Stripper;
</del><span class="cx"> use Getopt::Long qw(:config bundling);
</span><ins>+use HTML::FormatText::WithLinks;
</ins><span class="cx"> use Pod::Usage;
</span><span class="cx"> use Encode;
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><ins>+use List::MoreUtils qw(firstidx);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Attachment;
</span><span class="lines">@@ -50,6 +39,7 @@
</span><span class="cx"> use Bugzilla::BugMail;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><ins>+use Bugzilla::Field;
</ins><span class="cx"> use Bugzilla::Mailer;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> use Bugzilla::User;
</span><span class="lines">@@ -64,6 +54,15 @@
</span><span class="cx"> # in a message. RFC-compliant mailers use this.
</span><span class="cx"> use constant SIGNATURE_DELIMITER =&gt; '-- ';
</span><span class="cx"> 
</span><ins>+# These MIME types represent a &quot;body&quot; of an email if they have an
+# &quot;inline&quot; Content-Disposition (or no content disposition).
+use constant BODY_TYPES =&gt; qw(
+    text/plain
+    text/html
+    application/xhtml+xml
+    multipart/alternative
+);
+
</ins><span class="cx"> # $input_email is a global so that it can be used in die_handler.
</span><span class="cx"> our ($input_email, %switch);
</span><span class="cx"> 
</span><span class="lines">@@ -95,9 +94,6 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my ($body, $attachments) = get_body_and_attachments($input_email);
</span><del>-    if (@$attachments) {
-        $fields{'attachments'} = $attachments;
-    }
</del><span class="cx"> 
</span><span class="cx">     debug_print(&quot;Body:\n&quot; . $body, 3);
</span><span class="cx"> 
</span><span class="lines">@@ -140,6 +136,29 @@
</span><span class="cx">         $fields{'short_desc'} = $summary;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    # The Importance/X-Priority headers are only used when creating a new bug.
+    # 1) If somebody specifies a priority, use it.
+    # 2) If there is an Importance or X-Priority header, use it as
+    #    something that is relative to the default priority.
+    #    If the value is High or 1, increase the priority by 1.
+    #    If the value is Low or 5, decrease the priority by 1.
+    # 3) Otherwise, use the default priority.
+    # Note: this will only work if the 'letsubmitterchoosepriority'
+    # parameter is enabled.
+    my $importance = $input_email-&gt;header('Importance')
+                     || $input_email-&gt;header('X-Priority');
+    if (!$fields{'bug_id'} &amp;&amp; !$fields{'priority'} &amp;&amp; $importance) {
+        my @legal_priorities = @{get_legal_field_values('priority')};
+        my $i = firstidx { $_ eq Bugzilla-&gt;params-&gt;{'defaultpriority'} } @legal_priorities;
+        if ($importance =~ /(high|[12])/i) {
+            $i-- unless $i == 0;
+        }
+        elsif ($importance =~ /(low|[45])/i) {
+            $i++ unless $i == $#legal_priorities;
+        }
+        $fields{'priority'} = $legal_priorities[$i];
+    }
+
</ins><span class="cx">     my $comment = '';
</span><span class="cx">     # Get the description, except the signature.
</span><span class="cx">     foreach my $line (@body_lines) {
</span><span class="lines">@@ -155,6 +174,11 @@
</span><span class="cx"> 
</span><span class="cx">     debug_print(&quot;Parsed Fields:\n&quot; . Dumper(\%fields), 2);
</span><span class="cx"> 
</span><ins>+    debug_print(&quot;Attachments:\n&quot; . Dumper($attachments), 3);
+    if (@$attachments) {
+        $fields{'attachments'} = $attachments;
+    }
+
</ins><span class="cx">     return \%fields;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -227,7 +251,6 @@
</span><span class="cx">     foreach my $field (keys %fields) {
</span><span class="cx">         $cgi-&gt;param(-name =&gt; $field, -value =&gt; $fields{$field});
</span><span class="cx">     }
</span><del>-    $cgi-&gt;param('longdesclength', scalar @{ $bug-&gt;comments });
</del><span class="cx">     $cgi-&gt;param('token', issue_hash_token([$bug-&gt;id, $bug-&gt;delta_ts]));
</span><span class="cx"> 
</span><span class="cx">     require 'process_bug.cgi';
</span><span class="lines">@@ -249,15 +272,17 @@
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx">     my ($update_comment, $update_bug);
</span><span class="cx">     foreach my $attachment (@$attachments) {
</span><del>-        my $data = delete $attachment-&gt;{payload};
-        debug_print(&quot;Inserting Attachment: &quot; . Dumper($attachment), 2);
-        $attachment-&gt;{content_type} ||= 'application/octet-stream';
</del><ins>+        debug_print(&quot;Inserting Attachment: &quot; . Dumper($attachment), 3);
+        my $type = $attachment-&gt;content_type || 'application/octet-stream';
+        # MUAs add stuff like &quot;name=&quot; to content-type that we really don't
+        # want.
+        $type =~ s/;.*//;
</ins><span class="cx">         my $obj = Bugzilla::Attachment-&gt;create({
</span><span class="cx">             bug         =&gt; $bug,
</span><del>-            description =&gt; $attachment-&gt;{filename},
-            filename    =&gt; $attachment-&gt;{filename},
-            mimetype    =&gt; $attachment-&gt;{content_type},
-            data        =&gt; $data,
</del><ins>+            description =&gt; $attachment-&gt;filename(1),
+            filename    =&gt; $attachment-&gt;filename(1),
+            mimetype    =&gt; $type,
+            data        =&gt; $attachment-&gt;body,
</ins><span class="cx">         });
</span><span class="cx">         # If we added a comment, and our comment does not already have a type,
</span><span class="cx">         # and this is our first attachment, then we make the comment an 
</span><span class="lines">@@ -295,21 +320,36 @@
</span><span class="cx">     my ($email) = @_;
</span><span class="cx"> 
</span><span class="cx">     my $ct = $email-&gt;content_type || 'text/plain';
</span><del>-    debug_print(&quot;Splitting Body and Attachments [Type: $ct]...&quot;);
</del><ins>+    debug_print(&quot;Splitting Body and Attachments [Type: $ct]...&quot;, 2);
</ins><span class="cx"> 
</span><ins>+    my ($bodies, $attachments) = split_body_and_attachments($email);
+    debug_print(scalar(@$bodies) . &quot; body part(s) and &quot; . scalar(@$attachments)
+                . &quot; attachment part(s).&quot;);
+    debug_print('Bodies: ' . Dumper($bodies), 3);
+
+    # Get the first part of the email that contains a text body,
+    # and make all the other pieces into attachments. (This handles
+    # people or MUAs who accidentally attach text files as an &quot;inline&quot;
+    # attachment.)
</ins><span class="cx">     my $body;
</span><del>-    my $attachments = [];
-    if ($ct =~ /^multipart\/(alternative|signed)/i) {
-        $body = get_text_alternative($email);
</del><ins>+    while (@$bodies) {
+        my $possible = shift @$bodies;
+        $body = get_text_alternative($possible);
+        if (defined $body) {
+            unshift(@$attachments, @$bodies);
+            last;
+        }
</ins><span class="cx">     }
</span><del>-    else {
-        my $stripper = new Email::MIME::Attachment::Stripper(
-            $email, force_filename =&gt; 1);
-        my $message = $stripper-&gt;message;
-        $body = get_text_alternative($message);
-        $attachments = [$stripper-&gt;attachments];
</del><ins>+
+    if (!defined $body) {
+        # Note that this only happens if the email does not contain any
+        # text/plain parts. If the email has an empty text/plain part,
+        # you're fine, and this message does NOT get thrown.
+        ThrowUserError('email_no_body');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    debug_print(&quot;Picked Body:\n$body&quot;, 2);
+    
</ins><span class="cx">     return ($body, $attachments);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -325,24 +365,42 @@
</span><span class="cx">         if ($ct =~ /charset=&quot;?([^;&quot;]+)/) {
</span><span class="cx">             $charset= $1;
</span><span class="cx">         }
</span><del>-        debug_print(&quot;Part Content-Type: $ct&quot;, 2);
-        debug_print(&quot;Part Character Encoding: $charset&quot;, 2);
-        if (!$ct || $ct =~ /^text\/plain/i) {
-            $body = $part-&gt;body;
-            if (Bugzilla-&gt;params-&gt;{'utf8'} &amp;&amp; !utf8::is_utf8($body)) {
-                $body = Encode::decode($charset, $body);
-            }
-            last;
</del><ins>+        debug_print(&quot;Alternative Part Content-Type: $ct&quot;, 2);
+        debug_print(&quot;Alternative Part Character Encoding: $charset&quot;, 2);
+        # If we find a text/plain body here, return it immediately.
+        if (!$ct || $ct =~ m{^text/plain}i) {
+            return _decode_body($charset, $part-&gt;body);
</ins><span class="cx">         }
</span><ins>+        # If we find a text/html body, decode it, but don't return
+        # it immediately, because there might be a text/plain alternative
+        # later. This could be any HTML type.
+        if ($ct =~ m{^application/xhtml\+xml}i or $ct =~ m{text/html}i) {
+            my $parser = HTML::FormatText::WithLinks-&gt;new(
+                # Put footnnote indicators after the text, not before it.
+                before_link =&gt; '',
+                after_link  =&gt; '[%n]',
+                # Convert bold and italics, use &quot;*&quot; for bold instead of &quot;_&quot;.
+                with_emphasis =&gt; 1,
+                bold_marker =&gt; '*',
+                # If the same link appears multiple times, only create
+                # one footnote.
+                unique_links =&gt; 1,
+                # If the link text is the URL, don't create a footnote.
+                skip_linked_urls =&gt; 1,
+            );
+            $body = _decode_body($charset, $part-&gt;body);
+            $body = $parser-&gt;parse($body);
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (!defined $body) {
-        # Note that this only happens if the email does not contain any
-        # text/plain parts. If the email has an empty text/plain part,
-        # you're fine, and this message does NOT get thrown.
-        ThrowUserError('email_no_text_plain');
</del><ins>+    return $body;
+}
+
+sub _decode_body {
+    my ($charset, $body) = @_;
+    if (Bugzilla-&gt;params-&gt;{'utf8'} &amp;&amp; !utf8::is_utf8($body)) {
+        return Encode::decode($charset, $body);
</ins><span class="cx">     }
</span><del>-
</del><span class="cx">     return $body;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -367,7 +425,39 @@
</span><span class="cx">     return $var;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub split_body_and_attachments {
+    my ($email) = @_;
</ins><span class="cx"> 
</span><ins>+    my (@body, @attachments);
+    foreach my $part ($email-&gt;parts) {
+        my $ct = lc($part-&gt;content_type || 'text/plain');
+        my $disposition = lc($part-&gt;header('Content-Disposition') || 'inline');
+        # Remove the charset, etc. from the content-type, we don't care here.
+        $ct =~ s/;.*//;
+        debug_print(&quot;Part Content-Type: [$ct]&quot;, 2);
+        debug_print(&quot;Part Disposition: [$disposition]&quot;, 2);
+
+        if ($disposition eq 'inline' and grep($_ eq $ct, BODY_TYPES)) {
+            push(@body, $part);
+            next;
+        }
+        
+        if (scalar($part-&gt;parts) == 1) {
+            push(@attachments, $part);
+            next;
+        }
+
+        # If this part has sub-parts, analyze them similarly to how we
+        # did above and return the relevant pieces.
+        my ($add_body, $add_attachments) = split_body_and_attachments($part);
+        push(@body, @$add_body);
+        push(@attachments, @$add_attachments);
+    }
+
+    return (\@body, \@attachments);
+}
+
+
</ins><span class="cx"> sub die_handler {
</span><span class="cx">     my ($msg) = @_;
</span><span class="cx"> 
</span><span class="lines">@@ -379,7 +469,7 @@
</span><span class="cx"> 
</span><span class="cx">     # If this is inside an eval, then we should just act like...we're
</span><span class="cx">     # in an eval (instead of printing the error and exiting).
</span><del>-    die(@_) if $^S;
</del><ins>+    die @_ if ($^S // Bugzilla::Error::_in_eval());
</ins><span class="cx"> 
</span><span class="cx">     # We can't depend on the MTA to send an error message, so we have
</span><span class="cx">     # to generate one properly.
</span><span class="lines">@@ -584,9 +674,4 @@
</span><span class="cx"> per RFC2822. If you send it an incorrectly formatted message, it
</span><span class="cx"> may behave in an unpredictable fashion.
</span><span class="cx"> 
</span><del>-You cannot send an HTML mail along with attachments. If you do, Bugzilla
-will reject your email, saying that it doesn't contain any text. This
-is a bug in L&lt;Email::MIME::Attachment::Stripper&gt; that we can't work
-around.
-
</del><span class="cx"> You cannot modify Flags through the email interface.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgenter_bugcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/enter_bug.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/enter_bug.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/enter_bug.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,10 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-# 
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are Copyright (C) 1998
-# Netscape Communications Corporation. All Rights Reserved.
-# 
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Nitish Bezzala &lt;nbezzala@yahoo.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> ##############################################################################
</span><span class="cx"> #
</span><span class="lines">@@ -34,7 +16,9 @@
</span><span class="cx"> #
</span><span class="cx"> ##############################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -43,15 +27,15 @@
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Bug;
</span><del>-use Bugzilla::User;
</del><span class="cx"> use Bugzilla::Hook;
</span><del>-use Bugzilla::Product;
</del><span class="cx"> use Bugzilla::Classification;
</span><del>-use Bugzilla::Keyword;
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Status;
</span><ins>+use Bugzilla::UserAgent;
</ins><span class="cx"> 
</span><ins>+use List::MoreUtils qw(none);
+
</ins><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="cx"> my $cloned_bug;
</span><span class="lines">@@ -63,7 +47,7 @@
</span><span class="cx"> my $vars = {};
</span><span class="cx"> 
</span><span class="cx"> # All pages point to the same part of the documentation.
</span><del>-$vars-&gt;{'doc_section'} = 'bugreports.html';
</del><ins>+$vars-&gt;{'doc_section'} = 'using/filing.html';
</ins><span class="cx"> 
</span><span class="cx"> my $product_name = trim($cgi-&gt;param('product') || '');
</span><span class="cx"> # Will contain the product object the bug is created in.
</span><span class="lines">@@ -82,23 +66,7 @@
</span><span class="cx">     my @classifications;
</span><span class="cx"> 
</span><span class="cx">     unless ($classification &amp;&amp; $classification ne '__all') {
</span><del>-        if (Bugzilla-&gt;params-&gt;{'useclassification'}) {
-            my $class;
-            # Get all classifications with at least one enterable product.
-            foreach my $product (@enterable_products) {
-                $class-&gt;{$product-&gt;classification_id}-&gt;{'object'} ||=
-                    new Bugzilla::Classification($product-&gt;classification_id);
-                # Nice way to group products per classification, without querying
-                # the DB again.
-                push(@{$class-&gt;{$product-&gt;classification_id}-&gt;{'products'}}, $product);
-            }
-            @classifications = sort {$a-&gt;{'object'}-&gt;sortkey &lt;=&gt; $b-&gt;{'object'}-&gt;sortkey
-                                     || lc($a-&gt;{'object'}-&gt;name) cmp lc($b-&gt;{'object'}-&gt;name)}
-                                    (values %$class);
-        }
-        else {
-            @classifications = ({object =&gt; undef, products =&gt; \@enterable_products});
-        }
</del><ins>+        @classifications = @{sort_products_by_classification(\@enterable_products)};
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     unless ($classification) {
</span><span class="lines">@@ -109,8 +77,6 @@
</span><span class="cx">             $vars-&gt;{'classifications'} = [map {$_-&gt;{'object'}} @classifications];
</span><span class="cx"> 
</span><span class="cx">             $vars-&gt;{'target'} = &quot;enter_bug.cgi&quot;;
</span><del>-            $vars-&gt;{'format'} = $cgi-&gt;param('format');
-            $vars-&gt;{'cloned_bug_id'} = $cgi-&gt;param('cloned_bug_id');
</del><span class="cx"> 
</span><span class="cx">             print $cgi-&gt;header();
</span><span class="cx">             $template-&gt;process(&quot;global/choose-classification.html.tmpl&quot;, $vars)
</span><span class="lines">@@ -141,8 +107,6 @@
</span><span class="cx">     elsif (scalar(@enterable_products) &gt; 1) {
</span><span class="cx">         $vars-&gt;{'classifications'} = \@classifications;
</span><span class="cx">         $vars-&gt;{'target'} = &quot;enter_bug.cgi&quot;;
</span><del>-        $vars-&gt;{'format'} = $cgi-&gt;param('format');
-        $vars-&gt;{'cloned_bug_id'} = $cgi-&gt;param('cloned_bug_id');
</del><span class="cx"> 
</span><span class="cx">         print $cgi-&gt;header();
</span><span class="cx">         $template-&gt;process(&quot;global/choose-product.html.tmpl&quot;, $vars)
</span><span class="lines">@@ -166,198 +130,6 @@
</span><span class="cx">     return Bugzilla-&gt;cgi-&gt;param($name) || $default || &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Takes the name of a field and a list of possible values for that 
-# field. Returns the first value in the list that is actually a 
-# valid value for that field.
-# The field should be named after its DB table.
-# Returns undef if none of the platforms match.
-sub pick_valid_field_value (@) {
-    my ($field, @values) = @_;
-    my $dbh = Bugzilla-&gt;dbh;
-
-    foreach my $value (@values) {
-        return $value if $dbh-&gt;selectrow_array(
-            &quot;SELECT 1 FROM $field WHERE value = ?&quot;, undef, $value); 
-    }
-    return undef;
-}
-
-sub pickplatform {
-    return formvalue(&quot;rep_platform&quot;) if formvalue(&quot;rep_platform&quot;);
-
-    my @platform;
-
-    if (Bugzilla-&gt;params-&gt;{'defaultplatform'}) {
-        @platform = Bugzilla-&gt;params-&gt;{'defaultplatform'};
-    } else {
-        # If @platform is a list, this function will return the first
-        # item in the list that is a valid platform choice. If
-        # no choice is valid, we return &quot;Other&quot;.
-        for ($ENV{'HTTP_USER_AGENT'}) {
-        #PowerPC
-            /\(.*PowerPC.*\)/i &amp;&amp; do {push @platform, (&quot;PowerPC&quot;, &quot;Macintosh&quot;);};
-        #AMD64, Intel x86_64
-            /\(.*amd64.*\)/ &amp;&amp; do {push @platform, (&quot;AMD64&quot;, &quot;x86_64&quot;, &quot;PC&quot;);};
-            /\(.*x86_64.*\)/ &amp;&amp; do {push @platform, (&quot;AMD64&quot;, &quot;x86_64&quot;, &quot;PC&quot;);};
-        #Intel Itanium
-            /\(.*IA64.*\)/ &amp;&amp; do {push @platform, &quot;IA64&quot;;};
-        #Intel x86
-            /\(.*Intel.*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-            /\(.*[ix0-9]86.*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-        #Versions of Windows that only run on Intel x86
-            /\(.*Win(?:dows |)[39M].*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-            /\(.*Win(?:dows |)16.*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-        #Sparc
-            /\(.*sparc.*\)/ &amp;&amp; do {push @platform, (&quot;Sparc&quot;, &quot;Sun&quot;);};
-            /\(.*sun4.*\)/ &amp;&amp; do {push @platform, (&quot;Sparc&quot;, &quot;Sun&quot;);};
-        #Alpha
-            /\(.*AXP.*\)/i &amp;&amp; do {push @platform, (&quot;Alpha&quot;, &quot;DEC&quot;);};
-            /\(.*[ _]Alpha.\D/i &amp;&amp; do {push @platform, (&quot;Alpha&quot;, &quot;DEC&quot;);};
-            /\(.*[ _]Alpha\)/i &amp;&amp; do {push @platform, (&quot;Alpha&quot;, &quot;DEC&quot;);};
-        #MIPS
-            /\(.*IRIX.*\)/i &amp;&amp; do {push @platform, (&quot;MIPS&quot;, &quot;SGI&quot;);};
-            /\(.*MIPS.*\)/i &amp;&amp; do {push @platform, (&quot;MIPS&quot;, &quot;SGI&quot;);};
-        #68k
-            /\(.*68K.*\)/ &amp;&amp; do {push @platform, (&quot;68k&quot;, &quot;Macintosh&quot;);};
-            /\(.*680[x0]0.*\)/ &amp;&amp; do {push @platform, (&quot;68k&quot;, &quot;Macintosh&quot;);};
-        #HP
-            /\(.*9000.*\)/ &amp;&amp; do {push @platform, (&quot;PA-RISC&quot;, &quot;HP&quot;);};
-        #ARM
-            /\(.*ARM.*\)/ &amp;&amp; do {push @platform, (&quot;ARM&quot;, &quot;PocketPC&quot;);};
-        #PocketPC intentionally before PowerPC
-            /\(.*Windows CE.*PPC.*\)/ &amp;&amp; do {push @platform, (&quot;ARM&quot;, &quot;PocketPC&quot;);};
-        #PowerPC
-            /\(.*PPC.*\)/ &amp;&amp; do {push @platform, (&quot;PowerPC&quot;, &quot;Macintosh&quot;);};
-            /\(.*AIX.*\)/ &amp;&amp; do {push @platform, (&quot;PowerPC&quot;, &quot;Macintosh&quot;);};
-        #Stereotypical and broken
-            /\(.*Windows CE.*\)/ &amp;&amp; do {push @platform, (&quot;ARM&quot;, &quot;PocketPC&quot;);};
-            /\(.*Macintosh.*\)/ &amp;&amp; do {push @platform, (&quot;68k&quot;, &quot;Macintosh&quot;);};
-            /\(.*Mac OS [89].*\)/ &amp;&amp; do {push @platform, (&quot;68k&quot;, &quot;Macintosh&quot;);};
-            /\(.*Win64.*\)/ &amp;&amp; do {push @platform, &quot;IA64&quot;;};
-            /\(Win.*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-            /\(.*Win(?:dows[ -])NT.*\)/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-            /\(.*OSF.*\)/ &amp;&amp; do {push @platform, (&quot;Alpha&quot;, &quot;DEC&quot;);};
-            /\(.*HP-?UX.*\)/i &amp;&amp; do {push @platform, (&quot;PA-RISC&quot;, &quot;HP&quot;);};
-            /\(.*IRIX.*\)/i &amp;&amp; do {push @platform, (&quot;MIPS&quot;, &quot;SGI&quot;);};
-            /\(.*(SunOS|Solaris).*\)/ &amp;&amp; do {push @platform, (&quot;Sparc&quot;, &quot;Sun&quot;);};
-        #Braindead old browsers who didn't follow convention:
-            /Amiga/ &amp;&amp; do {push @platform, (&quot;68k&quot;, &quot;Macintosh&quot;);};
-            /WinMosaic/ &amp;&amp; do {push @platform, (&quot;IA32&quot;, &quot;x86&quot;, &quot;PC&quot;);};
-        }
-    }
-
-    return pick_valid_field_value('rep_platform', @platform) || &quot;Other&quot;;
-}
-
-sub pickos {
-    if (formvalue('op_sys') ne &quot;&quot;) {
-        return formvalue('op_sys');
-    }
-
-    my @os = ();
-
-    if (Bugzilla-&gt;params-&gt;{'defaultopsys'}) {
-        @os = Bugzilla-&gt;params-&gt;{'defaultopsys'};
-    } else {
-        # This function will return the first
-        # item in @os that is a valid platform choice. If
-        # no choice is valid, we return &quot;Other&quot;.
-        for ($ENV{'HTTP_USER_AGENT'}) {
-            /\(.*IRIX.*\)/ &amp;&amp; do {push @os, &quot;IRIX&quot;;};
-            /\(.*OSF.*\)/ &amp;&amp; do {push @os, &quot;OSF/1&quot;;};
-            /\(.*Linux.*\)/ &amp;&amp; do {push @os, &quot;Linux&quot;;};
-            /\(.*Solaris.*\)/ &amp;&amp; do {push @os, &quot;Solaris&quot;;};
-            /\(.*SunOS.*\)/ &amp;&amp; do {
-              /\(.*SunOS 5.11.*\)/ &amp;&amp; do {push @os, (&quot;OpenSolaris&quot;, &quot;Opensolaris&quot;, &quot;Solaris 11&quot;);};
-              /\(.*SunOS 5.10.*\)/ &amp;&amp; do {push @os, &quot;Solaris 10&quot;;};
-              /\(.*SunOS 5.9.*\)/ &amp;&amp; do {push @os, &quot;Solaris 9&quot;;};
-              /\(.*SunOS 5.8.*\)/ &amp;&amp; do {push @os, &quot;Solaris 8&quot;;};
-              /\(.*SunOS 5.7.*\)/ &amp;&amp; do {push @os, &quot;Solaris 7&quot;;};
-              /\(.*SunOS 5.6.*\)/ &amp;&amp; do {push @os, &quot;Solaris 6&quot;;};
-              /\(.*SunOS 5.5.*\)/ &amp;&amp; do {push @os, &quot;Solaris 5&quot;;};
-              /\(.*SunOS 5.*\)/ &amp;&amp; do {push @os, &quot;Solaris&quot;;};
-              /\(.*SunOS.*sun4u.*\)/ &amp;&amp; do {push @os, &quot;Solaris&quot;;};
-              /\(.*SunOS.*i86pc.*\)/ &amp;&amp; do {push @os, &quot;Solaris&quot;;};
-              /\(.*SunOS.*\)/ &amp;&amp; do {push @os, &quot;SunOS&quot;;};
-            };
-            /\(.*HP-?UX.*\)/ &amp;&amp; do {push @os, &quot;HP-UX&quot;;};
-            /\(.*BSD.*\)/ &amp;&amp; do {
-              /\(.*BSD\/(?:OS|386).*\)/ &amp;&amp; do {push @os, &quot;BSDI&quot;;};
-              /\(.*FreeBSD.*\)/ &amp;&amp; do {push @os, &quot;FreeBSD&quot;;};
-              /\(.*OpenBSD.*\)/ &amp;&amp; do {push @os, &quot;OpenBSD&quot;;};
-              /\(.*NetBSD.*\)/ &amp;&amp; do {push @os, &quot;NetBSD&quot;;};
-            };
-            /\(.*BeOS.*\)/ &amp;&amp; do {push @os, &quot;BeOS&quot;;};
-            /\(.*AIX.*\)/ &amp;&amp; do {push @os, &quot;AIX&quot;;};
-            /\(.*OS\/2.*\)/ &amp;&amp; do {push @os, &quot;OS/2&quot;;};
-            /\(.*QNX.*\)/ &amp;&amp; do {push @os, &quot;Neutrino&quot;;};
-            /\(.*VMS.*\)/ &amp;&amp; do {push @os, &quot;OpenVMS&quot;;};
-            /\(.*Win.*\)/ &amp;&amp; do {
-              /\(.*Windows XP.*\)/ &amp;&amp; do {push @os, &quot;Windows XP&quot;;};
-              /\(.*Windows NT 6\.2.*\)/ &amp;&amp; do {push @os, &quot;Windows 8&quot;;};
-              /\(.*Windows NT 6\.1.*\)/ &amp;&amp; do {push @os, &quot;Windows 7&quot;;};
-              /\(.*Windows NT 6\.0.*\)/ &amp;&amp; do {push @os, &quot;Windows Vista&quot;;};
-              /\(.*Windows NT 5\.2.*\)/ &amp;&amp; do {push @os, &quot;Windows Server 2003&quot;;};
-              /\(.*Windows NT 5\.1.*\)/ &amp;&amp; do {push @os, &quot;Windows XP&quot;;};
-              /\(.*Windows 2000.*\)/ &amp;&amp; do {push @os, &quot;Windows 2000&quot;;};
-              /\(.*Windows NT 5.*\)/ &amp;&amp; do {push @os, &quot;Windows 2000&quot;;};
-              /\(.*Win.*9[8x].*4\.9.*\)/ &amp;&amp; do {push @os, &quot;Windows ME&quot;;};
-              /\(.*Win(?:dows |)M[Ee].*\)/ &amp;&amp; do {push @os, &quot;Windows ME&quot;;};
-              /\(.*Win(?:dows |)98.*\)/ &amp;&amp; do {push @os, &quot;Windows 98&quot;;};
-              /\(.*Win(?:dows |)95.*\)/ &amp;&amp; do {push @os, &quot;Windows 95&quot;;};
-              /\(.*Win(?:dows |)16.*\)/ &amp;&amp; do {push @os, &quot;Windows 3.1&quot;;};
-              /\(.*Win(?:dows[ -]|)NT.*\)/ &amp;&amp; do {push @os, &quot;Windows NT&quot;;};
-              /\(.*Windows.*NT.*\)/ &amp;&amp; do {push @os, &quot;Windows NT&quot;;};
-            };
-            /\(.*Mac OS X.*\)/ &amp;&amp; do {
-              /\(.*Mac OS X (?:|Mach-O |\()10.8.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.8&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.7.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.7&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.6&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.5.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.5&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.4.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.4&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.3.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.3&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.2.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.2&quot;;};
-              /\(.*Mac OS X (?:|Mach-O |\()10.1.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.1&quot;;};
-        # Unfortunately, OS X 10.4 was the first to support Intel. This is
-        # fallback support because some browsers refused to include the OS
-        # Version.
-              /\(.*Intel.*Mac OS X.*\)/ &amp;&amp; do {push @os, &quot;Mac OS X 10.4&quot;;};
-        # OS X 10.3 is the most likely default version of PowerPC Macs
-        # OS X 10.0 is more for configurations which didn't setup 10.x versions
-              /\(.*Mac OS X.*\)/ &amp;&amp; do {push @os, (&quot;Mac OS X 10.3&quot;, &quot;Mac OS X 10.0&quot;, &quot;Mac OS X&quot;);};
-            };
-            /\(.*32bit.*\)/ &amp;&amp; do {push @os, &quot;Windows 95&quot;;};
-            /\(.*16bit.*\)/ &amp;&amp; do {push @os, &quot;Windows 3.1&quot;;};
-            /\(.*Mac OS \d.*\)/ &amp;&amp; do {
-              /\(.*Mac OS 9.*\)/ &amp;&amp; do {push @os, (&quot;Mac System 9.x&quot;, &quot;Mac System 9.0&quot;);};
-              /\(.*Mac OS 8\.6.*\)/ &amp;&amp; do {push @os, (&quot;Mac System 8.6&quot;, &quot;Mac System 8.5&quot;);};
-              /\(.*Mac OS 8\.5.*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.5&quot;;};
-              /\(.*Mac OS 8\.1.*\)/ &amp;&amp; do {push @os, (&quot;Mac System 8.1&quot;, &quot;Mac System 8.0&quot;);};
-              /\(.*Mac OS 8\.0.*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.0&quot;;};
-              /\(.*Mac OS 8[^.].*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.0&quot;;};
-              /\(.*Mac OS 8.*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.6&quot;;};
-            };
-            /\(.*Darwin.*\)/ &amp;&amp; do {push @os, (&quot;Mac OS X 10.0&quot;, &quot;Mac OS X&quot;);};
-        # Silly
-            /\(.*Mac.*\)/ &amp;&amp; do {
-              /\(.*Mac.*PowerPC.*\)/ &amp;&amp; do {push @os, &quot;Mac System 9.x&quot;;};
-              /\(.*Mac.*PPC.*\)/ &amp;&amp; do {push @os, &quot;Mac System 9.x&quot;;};
-              /\(.*Mac.*68k.*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.0&quot;;};
-            };
-        # Evil
-            /Amiga/i &amp;&amp; do {push @os, &quot;Other&quot;;};
-            /WinMosaic/ &amp;&amp; do {push @os, &quot;Windows 95&quot;;};
-            /\(.*PowerPC.*\)/ &amp;&amp; do {push @os, &quot;Mac System 9.x&quot;;};
-            /\(.*PPC.*\)/ &amp;&amp; do {push @os, &quot;Mac System 9.x&quot;;};
-            /\(.*68K.*\)/ &amp;&amp; do {push @os, &quot;Mac System 8.0&quot;;};
-        }
-    }
-
-    push(@os, &quot;Windows&quot;) if grep(/^Windows /, @os);
-    push(@os, &quot;Mac OS&quot;) if grep(/^Mac /, @os);
-
-    return pick_valid_field_value('op_sys', @os) || &quot;Other&quot;;
-}
</del><span class="cx"> ##############################################################################
</span><span class="cx"> # End of subroutines
</span><span class="cx"> ##############################################################################
</span><span class="lines">@@ -375,11 +147,18 @@
</span><span class="cx">     $cloned_bug_id = $cloned_bug-&gt;id;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (scalar(@{$product-&gt;components}) == 1) {
-    # Only one component; just pick it.
-    $cgi-&gt;param('component', $product-&gt;components-&gt;[0]-&gt;name);
</del><ins>+# If there is only one active component, choose it
+my @active = grep { $_-&gt;is_active } @{$product-&gt;components};
+if (scalar(@active) == 1) {
+    $cgi-&gt;param('component', $active[0]-&gt;name);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# If there is only one active version, choose it
+@active = grep { $_-&gt;is_active } @{$product-&gt;versions};
+if (scalar(@active) == 1) {
+    $cgi-&gt;param('version', $active[0]-&gt;name);
+}
+
</ins><span class="cx"> my %default;
</span><span class="cx"> 
</span><span class="cx"> $vars-&gt;{'product'}               = $product;
</span><span class="lines">@@ -434,14 +213,19 @@
</span><span class="cx">     $vars-&gt;{'deadline'}       = $cloned_bug-&gt;deadline;
</span><span class="cx">     $vars-&gt;{'estimated_time'} = $cloned_bug-&gt;estimated_time;
</span><span class="cx"> 
</span><del>-    if (defined $cloned_bug-&gt;cc) {
</del><ins>+    if (scalar @{$cloned_bug-&gt;cc}) {
</ins><span class="cx">         $vars-&gt;{'cc'}         = join (&quot;, &quot;, @{$cloned_bug-&gt;cc});
</span><span class="cx">     } else {
</span><span class="cx">         $vars-&gt;{'cc'}         = formvalue('cc');
</span><span class="cx">     }
</span><del>-    
-    if ($cloned_bug-&gt;reporter-&gt;id != $user-&gt;id) {
-        $vars-&gt;{'cc'} = join (&quot;, &quot;, $cloned_bug-&gt;reporter-&gt;login, $vars-&gt;{'cc'}); 
</del><ins>+
+    foreach my $role (qw(reporter assigned_to qa_contact)) {
+        if (defined($cloned_bug-&gt;$role)
+            &amp;&amp; $cloned_bug-&gt;$role-&gt;id != $user-&gt;id
+            &amp;&amp; none { $_ eq $cloned_bug-&gt;$role-&gt;login } @{$cloned_bug-&gt;cc})
+        {
+            $vars-&gt;{'cc'} = join (&quot;, &quot;, $cloned_bug-&gt;$role-&gt;login, $vars-&gt;{'cc'});
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     foreach my $field (@enter_bug_fields) {
</span><span class="lines">@@ -458,7 +242,7 @@
</span><span class="cx">     $vars-&gt;{'comment'} = &quot;&quot;;
</span><span class="cx">     $vars-&gt;{'comment_is_private'} = 0;
</span><span class="cx"> 
</span><del>-    if (!$isprivate || Bugzilla-&gt;user-&gt;is_insider) {
</del><ins>+    if (!$isprivate || $user-&gt;is_insider) {
</ins><span class="cx">         # We use &quot;body&quot; to avoid any format_comment text, which would be
</span><span class="cx">         # pointless to clone.
</span><span class="cx">         $vars-&gt;{'comment'} = $bug_desc-&gt;body;
</span><span class="lines">@@ -468,12 +252,13 @@
</span><span class="cx"> } # end of cloned bug entry form
</span><span class="cx"> 
</span><span class="cx"> else {
</span><del>-
</del><span class="cx">     $default{'component_'}    = formvalue('component');
</span><span class="cx">     $default{'priority'}      = formvalue('priority', Bugzilla-&gt;params-&gt;{'defaultpriority'});
</span><span class="cx">     $default{'bug_severity'}  = formvalue('bug_severity', Bugzilla-&gt;params-&gt;{'defaultseverity'});
</span><del>-    $default{'rep_platform'}  = pickplatform();
-    $default{'op_sys'}        = pickos();
</del><ins>+    $default{'rep_platform'}  = formvalue('rep_platform', 
+                                          Bugzilla-&gt;params-&gt;{'defaultplatform'} || detect_platform());
+    $default{'op_sys'}        = formvalue('op_sys', 
+                                          Bugzilla-&gt;params-&gt;{'defaultopsys'} || detect_op_sys());
</ins><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'alias'}          = formvalue('alias');
</span><span class="cx">     $vars-&gt;{'short_desc'}     = formvalue('short_desc');
</span><span class="lines">@@ -483,6 +268,7 @@
</span><span class="cx">     $vars-&gt;{'blocked'}        = formvalue('blocked');
</span><span class="cx">     $vars-&gt;{'deadline'}       = formvalue('deadline');
</span><span class="cx">     $vars-&gt;{'estimated_time'} = formvalue('estimated_time');
</span><ins>+    $vars-&gt;{'see_also'}       = formvalue('see_also');
</ins><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'cc'}             = join(', ', $cgi-&gt;param('cc'));
</span><span class="cx"> 
</span><span class="lines">@@ -533,27 +319,15 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Construct the list of allowable statuses.
</span><del>-my @statuses = @{ Bugzilla::Status-&gt;can_change_to() };
</del><ins>+my @statuses = @{ Bugzilla::Bug-&gt;new_bug_statuses($product) };
</ins><span class="cx"> # Exclude closed states from the UI, even if the workflow allows them.
</span><span class="cx"> # The back-end code will still accept them, though.
</span><ins>+# XXX We should remove this when the UI accepts closed statuses and update
+# Bugzilla::Bug-&gt;default_bug_status.
</ins><span class="cx"> @statuses = grep { $_-&gt;is_open } @statuses;
</span><span class="cx"> 
</span><del>-# UNCONFIRMED is illegal if allows_unconfirmed is false.
-if (!$product-&gt;allows_unconfirmed) {
-    @statuses = grep { $_-&gt;name ne 'UNCONFIRMED' } @statuses;
-}
</del><span class="cx"> scalar(@statuses) || ThrowUserError('no_initial_bug_status');
</span><span class="cx"> 
</span><del>-# If the user has no privs...
-unless ($has_editbugs || $has_canconfirm) {
-    # ... use UNCONFIRMED if available, else use the first status of the list.
-    my ($unconfirmed) = grep { $_-&gt;name eq 'UNCONFIRMED' } @statuses;
-
-    # Because of an apparent Perl bug, &quot;$unconfirmed || $statuses[0]&quot; doesn't
-    # work, so we're using an &quot;?:&quot; operator. See bug 603314 for details.
-    @statuses = ($unconfirmed ? $unconfirmed : $statuses[0]);
-}
-
</del><span class="cx"> $vars-&gt;{'bug_status'} = \@statuses;
</span><span class="cx"> 
</span><span class="cx"> # Get the default from a template value if it is legitimate.
</span><span class="lines">@@ -563,13 +337,9 @@
</span><span class="cx"> my $picked_status = formvalue('bug_status');
</span><span class="cx"> if ($picked_status and grep($_-&gt;name eq $picked_status, @statuses)) {
</span><span class="cx">     $default{'bug_status'} = formvalue('bug_status');
</span><del>-} elsif (scalar @statuses == 1) {
-    $default{'bug_status'} = $statuses[0]-&gt;name;
</del><ins>+} else {
+    $default{'bug_status'} = Bugzilla::Bug-&gt;default_bug_status(@statuses);
</ins><span class="cx"> }
</span><del>-else {
-    $default{'bug_status'} = ($statuses[0]-&gt;name ne 'UNCONFIRMED') 
-                             ? $statuses[0]-&gt;name : $statuses[1]-&gt;name;
-}
</del><span class="cx"> 
</span><span class="cx"> my @groups = $cgi-&gt;param('groups');
</span><span class="cx"> if ($cloned_bug) {
</span><span class="lines">@@ -591,4 +361,3 @@
</span><span class="cx"> print $cgi-&gt;header($format-&gt;{'ctype'});
</span><span class="cx"> $template-&gt;process($format-&gt;{'template'}, $vars)
</span><span class="cx">   || ThrowTemplateError($template-&gt;error());          
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsBmpConvertConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::BmpConvert;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use constant NAME =&gt; 'BmpConvert';
</span><span class="cx"> use constant REQUIRED_MODULES =&gt; [
</span><span class="cx">   {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsBmpConvertExtensionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Extension.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Extension.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/BmpConvert/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (C) 2009
-# Frédéric Buclin. All Rights Reserved.
-#
-# Contributor(s): 
-#   Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::BmpConvert;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Extension);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Extension);
+
</ins><span class="cx"> use Image::Magick;
</span><span class="cx"> 
</span><span class="cx"> our $VERSION = '1.0';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampleConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,16 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developers are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use constant NAME =&gt; 'Example';
</span><span class="cx"> use constant REQUIRED_MODULES =&gt; [
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampleExtensionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/Extension.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/Extension.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,27 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developers are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#   Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Extension);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Extension);
+
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Group;
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::User::Setting;
</span><del>-use Bugzilla::Util qw(diff_arrays html_quote);
</del><ins>+use Bugzilla::Util qw(diff_arrays html_quote remote_ip);
</ins><span class="cx"> use Bugzilla::Status qw(is_open_state);
</span><span class="cx"> use Bugzilla::Install::Filesystem;
</span><ins>+use Bugzilla::WebService::Constants;
</ins><span class="cx"> 
</span><span class="cx"> # This is extensions/Example/lib/Util.pm. I can load this here in my
</span><span class="cx"> # Extension.pm only because I have a Config.pm.
</span><span class="lines">@@ -44,6 +34,32 @@
</span><span class="cx"> 
</span><span class="cx"> our $VERSION = '1.0';
</span><span class="cx"> 
</span><ins>+sub user_can_administer {
+    my ($self, $args) = @_;
+    my $can_administer = $args-&gt;{can_administer};
+
+    # If you add an option to the admin pages (e.g. by using the Hooks in
+    # template/en/default/admin/admin.html.tmpl), you may want to allow
+    # users in another group view admin.cgi
+    #if (Bugzilla-&gt;user-&gt;in_group('other_group')) {
+    #    $$can_administer = 1;
+    #}
+}
+
+sub admin_editusers_action {
+    my ($self, $args) = @_;
+    my ($vars, $action, $user) = @$args{qw(vars action user)};
+    my $template = Bugzilla-&gt;template;
+
+    if ($action eq 'my_action') {
+        # Allow to restrict the search to any group the user is allowed to bless.
+        $vars-&gt;{'restrictablegroups'} = $user-&gt;bless_groups();
+        $template-&gt;process('admin/users/search.html.tmpl', $vars)
+            || ThrowTemplateError($template-&gt;error());
+        exit;
+    }
+}
+
</ins><span class="cx"> sub attachment_process_data {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $type     = $args-&gt;{attributes}-&gt;{mimetype};
</span><span class="lines">@@ -80,6 +96,44 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub bug_check_can_change_field {
+    my ($self, $args) = @_;
+
+    my ($bug, $field, $new_value, $old_value, $priv_results)
+        = @$args{qw(bug field new_value old_value priv_results)};
+
+    my $user = Bugzilla-&gt;user;
+
+    # Disallow a bug from being reopened if currently closed unless user 
+    # is in 'admin' group
+    if ($field eq 'bug_status' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example') {
+        if (!is_open_state($old_value) &amp;&amp; is_open_state($new_value) 
+            &amp;&amp; !$user-&gt;in_group('admin')) 
+        {
+            push(@$priv_results, PRIVILEGES_REQUIRED_EMPOWERED);
+            return;
+        }
+    }
+
+    # Disallow a bug's keywords from being edited unless user is the
+    # reporter of the bug 
+    if ($field eq 'keywords' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example' 
+        &amp;&amp; $user-&gt;login ne $bug-&gt;reporter-&gt;login) 
+    {
+        push(@$priv_results, PRIVILEGES_REQUIRED_REPORTER);
+        return;
+    }
+
+    # Allow updating of priority even if user cannot normally edit the bug 
+    # and they are in group 'engineering'
+    if ($field eq 'priority' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example'
+        &amp;&amp; $user-&gt;in_group('engineering')) 
+    {
+        push(@$priv_results, PRIVILEGES_REQUIRED_NONE);
+        return;
+    }
+}
+
</ins><span class="cx"> sub bug_columns {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $columns = $args-&gt;{'columns'};
</span><span class="lines">@@ -116,6 +170,42 @@
</span><span class="cx">     # $bug_params-&gt;{cc} = [];
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub bug_start_of_update {
+    my ($self, $args) = @_;
+
+    # This code doesn't actually *do* anything, it's just here to show you
+    # how to use this hook.
+    my ($bug, $old_bug, $timestamp, $changes) = 
+        @$args{qw(bug old_bug timestamp changes)};
+
+    foreach my $field (keys %$changes) {
+        my $used_to_be = $changes-&gt;{$field}-&gt;[0];
+        my $now_it_is  = $changes-&gt;{$field}-&gt;[1];
+    }
+
+    my $old_summary = $old_bug-&gt;short_desc;
+
+    my $status_message;
+    if (my $status_change = $changes-&gt;{'bug_status'}) {
+        my $old_status = new Bugzilla::Status({ name =&gt; $status_change-&gt;[0] });
+        my $new_status = new Bugzilla::Status({ name =&gt; $status_change-&gt;[1] });
+        if ($new_status-&gt;is_open &amp;&amp; !$old_status-&gt;is_open) {
+            $status_message = &quot;Bug re-opened!&quot;;
+        }
+        if (!$new_status-&gt;is_open &amp;&amp; $old_status-&gt;is_open) {
+            $status_message = &quot;Bug closed!&quot;;
+        }
+    }
+
+    my $bug_id = $bug-&gt;id;
+    my $num_changes = scalar keys %$changes;
+    my $result = &quot;There were $num_changes changes to fields on bug $bug_id&quot;
+                 . &quot; at $timestamp.&quot;;
+    # Uncomment this line to see $result in your webserver's error log whenever
+    # you update a bug.
+    # warn $result;
+}
+
</ins><span class="cx"> sub bug_end_of_update {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     
</span><span class="lines">@@ -249,8 +339,8 @@
</span><span class="cx">         # were on the CC list.
</span><span class="cx">         #$recipients-&gt;{$user-&gt;id}-&gt;{+REL_CC} = 1;
</span><span class="cx"> 
</span><del>-        # And this line adds the maintainer as though he had the &quot;REL_EXAMPLE&quot;
-        # relationship from the bugmail_relationships hook below.
</del><ins>+        # And this line adds the maintainer as though they had the
+        # &quot;REL_EXAMPLE&quot; relationship from the bugmail_relationships hook below.
</ins><span class="cx">         #$recipients-&gt;{$user-&gt;id}-&gt;{+REL_EXAMPLE} = 1;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -261,6 +351,13 @@
</span><span class="cx">     $relationships-&gt;{+REL_EXAMPLE} = 'Example';
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub cgi_headers {
+    my ($self, $args) = @_;
+    my $headers = $args-&gt;{'headers'};
+
+    $headers-&gt;{'-x_test_header'} = &quot;Test header from Example extension&quot;;
+}
+
</ins><span class="cx"> sub config_add_panels {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     
</span><span class="lines">@@ -324,8 +421,8 @@
</span><span class="cx">     # No other check needed if this is a valid regular user.
</span><span class="cx">     return if login_to_id($reporter);
</span><span class="cx"> 
</span><del>-    # The reporter is not a regular user. We create an account for him,
-    # but he can only comment on existing bugs.
</del><ins>+    # The reporter is not a regular user. We create an account for them,
+    # but they can only comment on existing bugs.
</ins><span class="cx">     # This is useful for people who reply by email to bugmails received
</span><span class="cx">     # in mailing-lists.
</span><span class="cx">     if ($args-&gt;{fields}-&gt;{bug_id}) {
</span><span class="lines">@@ -678,10 +775,12 @@
</span><span class="cx">     my $invocant = shift;
</span><span class="cx">     my $value = $invocant-&gt;$original(@_);
</span><span class="cx">     if ($value !~ /example/i) {
</span><del>-        # Uncomment this line to make Bugzilla throw an error every time
</del><ins>+        # Use this line to make Bugzilla throw an error every time
</ins><span class="cx">         # you try to file a bug or update a bug without the word &quot;example&quot;
</span><span class="cx">         # in the summary.
</span><del>-        #ThrowUserError('example_short_desc_invalid');
</del><ins>+        if (0) {
+            ThrowUserError('example_short_desc_invalid');
+        }
</ins><span class="cx">     }
</span><span class="cx">     return $value;
</span><span class="cx"> }
</span><span class="lines">@@ -697,6 +796,12 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub path_info_whitelist {
+    my ($self, $args) = @_;
+    my $whitelist = $args-&gt;{whitelist};
+    push(@$whitelist, &quot;page.cgi&quot;);
+}
+
</ins><span class="cx"> sub post_bug_after_creation {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     
</span><span class="lines">@@ -825,58 +930,26 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub bug_check_can_change_field {
</del><ins>+sub user_check_account_creation {
</ins><span class="cx">     my ($self, $args) = @_;
</span><span class="cx"> 
</span><del>-    my ($bug, $field, $new_value, $old_value, $priv_results)
-        = @$args{qw(bug field new_value old_value priv_results)};
</del><ins>+    my $login = $args-&gt;{login};
+    my $ip = remote_ip();
</ins><span class="cx"> 
</span><del>-    my $user = Bugzilla-&gt;user;
</del><ins>+    # Log all requests.
+    warn &quot;USER ACCOUNT CREATION REQUEST FOR $login ($ip)&quot;;
</ins><span class="cx"> 
</span><del>-    # Disallow a bug from being reopened if currently closed unless user 
-    # is in 'admin' group
-    if ($field eq 'bug_status' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example') {
-        if (!is_open_state($old_value) &amp;&amp; is_open_state($new_value) 
-            &amp;&amp; !$user-&gt;in_group('admin')) 
-        {
-            push(@$priv_results, PRIVILEGES_REQUIRED_EMPOWERED);
-            return;
-        }
</del><ins>+    # Reject requests based on their email address.
+    if ($login =~ /\@evil\.com$/) {
+        ThrowUserError('account_creation_restricted');
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Disallow a bug's keywords from being edited unless user is the
-    # reporter of the bug 
-    if ($field eq 'keywords' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example' 
-        &amp;&amp; $user-&gt;login ne $bug-&gt;reporter-&gt;login) 
-    {
-        push(@$priv_results, PRIVILEGES_REQUIRED_REPORTER);
-        return;
</del><ins>+    # Reject requests based on their IP address.
+    if ($ip =~ /^192\.168\./) {
+        ThrowUserError('account_creation_restricted');
</ins><span class="cx">     }
</span><del>-
-    # Allow updating of priority even if user cannot normally edit the bug 
-    # and they are in group 'engineering'
-    if ($field eq 'priority' &amp;&amp; $bug-&gt;product_obj-&gt;name eq 'Example'
-        &amp;&amp; $user-&gt;in_group('engineering')) 
-    {
-        push(@$priv_results, PRIVILEGES_REQUIRED_NONE);
-        return;
-    }
</del><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub admin_editusers_action {
-    my ($self, $args) = @_;
-    my ($vars, $action, $user) = @$args{qw(vars action user)};
-    my $template = Bugzilla-&gt;template;
-
-    if ($action eq 'my_action') {
-        # Allow to restrict the search to any group the user is allowed to bless.
-        $vars-&gt;{'restrictablegroups'} = $user-&gt;bless_groups();
-        $template-&gt;process('admin/users/search.html.tmpl', $vars)
-            || ThrowTemplateError($template-&gt;error());
-        exit;
-    }
-}
-
</del><span class="cx"> sub user_preferences {
</span><span class="cx">     my ($self, $args) = @_;
</span><span class="cx">     my $tab = $args-&gt;{current_tab};
</span><span class="lines">@@ -906,10 +979,85 @@
</span><span class="cx"> 
</span><span class="cx"> sub webservice_error_codes {
</span><span class="cx">     my ($self, $args) = @_;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $error_map = $args-&gt;{error_map};
</span><span class="cx">     $error_map-&gt;{'example_my_error'} = 10001;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub webservice_status_code_map {
+    my ($self, $args) = @_;
+
+    my $status_code_map = $args-&gt;{status_code_map};
+    # Uncomment this line to override the status code for the
+    # error 'object_does_not_exist' to STATUS_BAD_REQUEST
+    #$status_code_map-&gt;{51} = STATUS_BAD_REQUEST;
+}
+
+sub webservice_before_call {
+    my ($self, $args) = @_;
+
+    # This code doesn't actually *do* anything, it's just here to show you
+    # how to use this hook.
+    my $method      = $args-&gt;{method};
+    my $full_method = $args-&gt;{full_method};
+
+    # Uncomment this line to see a line in your webserver's error log whenever
+    # a webservice call is made
+    #warn &quot;RPC call $full_method made by &quot;,
+    #   Bugzilla-&gt;user-&gt;login || 'an anonymous user', &quot;\n&quot;;
+}
+
+sub webservice_fix_credentials {
+    my ($self, $args) = @_;
+    my $rpc    = $args-&gt;{'rpc'};
+    my $params = $args-&gt;{'params'};
+    # Allow user to pass in username=foo&amp;password=bar
+    if (exists $params-&gt;{'username'} &amp;&amp; exists $params-&gt;{'password'}) {
+        $params-&gt;{'Bugzilla_login'}    = $params-&gt;{'username'};
+        $params-&gt;{'Bugzilla_password'} = $params-&gt;{'password'};
+    }
+}
+
+sub webservice_rest_request {
+    my ($self, $args) = @_;
+    my $rpc    = $args-&gt;{'rpc'};
+    my $params = $args-&gt;{'params'};
+    # Internally we may have a field called 'cf_test_field' but we allow users
+    # to use the shorter 'test_field' name.
+    if (exists $params-&gt;{'test_field'}) {
+        $params-&gt;{'test_field'} = delete $params-&gt;{'cf_test_field'};
+    }
+}
+
+sub webservice_rest_resources {
+    my ($self, $args) = @_;
+    my $rpc = $args-&gt;{'rpc'};
+    my $resources = $args-&gt;{'resources'};
+    # Add a new resource that allows for /rest/example/hello
+    # to call Example.hello
+    $resources-&gt;{'Bugzilla::Extension::Example::WebService'} = [
+        qr{^/example/hello$}, {
+            GET =&gt; {
+                method =&gt; 'hello',
+            }
+        }
+    ];
+}
+
+sub webservice_rest_response {
+    my ($self, $args) = @_;
+    my $rpc      = $args-&gt;{'rpc'};
+    my $result   = $args-&gt;{'result'};
+    my $response = $args-&gt;{'response'};
+    # Convert a list of bug hashes to a single bug hash if only one is
+    # being returned.
+    if (ref $$result eq 'HASH'
+        &amp;&amp; exists $$result-&gt;{'bugs'}
+        &amp;&amp; scalar @{ $$result-&gt;{'bugs'} } == 1)
+    {
+        $$result = $$result-&gt;{'bugs'}-&gt;[0];
+    }
+}
+
</ins><span class="cx"> # This must be the last line of your extension.
</span><span class="cx"> __PACKAGE__-&gt;NAME;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampledocsenrstapiv1indexrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/v1/index.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/v1/index.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/api/v1/index.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Example API v1
+==============
+
+Here is where you place your API docs for the Example extension.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampledocsenrstindexadminrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-admin.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-admin.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-admin.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Example
+#######
+
+This is a sample Adminstration documentation file for the Example extension.
+Like all of the Bugzilla docs, it's written in
+`reStructured Text (reST) format &lt;http://sphinx-doc.org/latest/rest.html&gt;`_
+and will be compiled by `Sphinx &lt;http://sphinx-doc.org/&gt;`_.
+
+If you build the docs yourself using :file:`makedocs.pl`, this file will get
+incorporated into the Administration Guide. If you need more than one file's
+worth of admin documentation, include others using the Sphinx `toctree
+directive &lt;http://sphinx-doc.org/markup/toctree.html&gt;`_.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampledocsenrstindexuserrst"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-user.rst (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-user.rst                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/docs/en/rst/index-user.rst        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Example
+#######
+
+This is a sample User documentation file for the Example extension.
+Like all of the Bugzilla docs, it's written in
+`reStructured Text (reST) format &lt;http://sphinx-doc.org/latest/rest.html&gt;`_
+and will be compiled by `Sphinx &lt;http://sphinx-doc.org/&gt;`_.
+
+If you build the docs yourself using :file:`makedocs.pl`, this file will get
+incorporated into the User Guide. If you need more than one file's worth of
+user documentation, include others using the Sphinx `toctree directive &lt;http://sphinx-doc.org/markup/toctree.html&gt;`_.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExamplelibAuthLoginpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Login.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Login.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Login.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical are Copyright (C) 2008 Canonical Ltd.
-# All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example::Auth::Login;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Login);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::Auth::Login);
</ins><span class="cx"> use constant user_can_create_account =&gt; 0;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExamplelibAuthVerifypm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Verify.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Verify.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/lib/Auth/Verify.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical are Copyright (C) 2008 Canonical Ltd.
-# All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example::Auth::Verify;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Auth::Verify);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::Auth::Verify);
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> 
</span><span class="cx"> # A verifier that always fails.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExamplelibConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/lib/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/lib/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/lib/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,13 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical Ltd. are Copyright (C) 2008
-# Canonical Ltd. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Bradley Baetz &lt;bbaetz@acm.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example::Config;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExamplelibUtilpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/lib/Util.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/lib/Util.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/lib/Util.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,13 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved, Inc. are Copyright (C) 2009 
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example::Util;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExamplelibWebServicepm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/lib/WebService.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/lib/WebService.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/lib/WebService.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,23 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved, Inc. are Copyright (C) 2007 
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Example::WebService;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><del>-use base qw(Bugzilla::WebService);
</del><ins>+use parent qw(Bugzilla::WebService);
</ins><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> 
</span><ins>+use constant PUBLIC_METHODS =&gt; qw(
+    hello
+    throw_an_error
+);
+
</ins><span class="cx"> # This can be called as Example.hello() from the WebService.
</span><span class="cx"> sub hello { return 'Hello!'; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultaccountprefsmy_tabhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/account/prefs/my_tab.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/account/prefs/my_tab.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/account/prefs/my_tab.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%#
-  # The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Example Plugin.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultadminparamsexamplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/admin/params/example.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/admin/params/example.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/admin/params/example.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%#
-  # The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Example Plugin.
-  #
-  # The Initial Developer of the Original Code is Canonical Ltd.
-  # Portions created by Canonical Ltd. are Copyright (C) 2008
-  # Canonical Ltd. All Rights Reserved.
-  #
-  # Contributor(s): Bradley Baetz &lt;bbaetz@acm.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">     title = &quot;Example Extension&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookaccountprefsprefstabshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/account/prefs/prefs-tabs.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/account/prefs/prefs-tabs.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/account/prefs/prefs-tabs.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%#
-  # The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Example Plugin.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% tabs = tabs.import([{ name =&gt; &quot;my_tab&quot;, label =&gt; &quot;Example Custom Preferences&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookadminparamseditparamscurrent_panelhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Example Bugzilla Extension.
-  #
-  # The Initial Developer of the Original Code is Ali Ustek
-  # Portions created by the Initial Developer are Copyright (C) 2011 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Ali Ustek &lt;aliustek@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF panel.name == &quot;auth&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookadminsanitycheckmessagesstatuseshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Example Plugin.
-  #
-  # The Initial Developer of the Original Code is ITA Software
-  # Portions created by the Initial Developer are Copyright (C) 2009
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Bradley Baetz &lt;bbaetz@everythingsolved.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF    san_tag == &quot;example_check_au_user&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalfooterendhtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[% USE date %]
+
+&lt;p class=&quot;center&quot;&gt;
+  &lt;em&gt;[% component.callers.first FILTER html %]&lt;/em&gt; processed
+  on [% date.format(date.now, '%b %d, %Y at %H:%M:%S') FILTER html %].
+  &lt;br&gt;
+  (provided by the Example extension).
+&lt;/p&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalsettingdescssettingsnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/setting-descs-settings.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/setting-descs-settings.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/setting-descs-settings.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,6 +1,14 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
</ins><span class="cx"> [% 
</span><span class="cx">     setting_descs.product_chooser = &quot;Product chooser to use when entering $terms.bugs&quot;,
</span><span class="cx">     setting_descs.pretty = &quot;Pretty chooser with common products and icons&quot;,
</span><span class="cx">     setting_descs.full   = &quot;Full chooser with all products&quot;,
</span><span class="cx">     setting_descs.small  = &quot;Product chooser for mobile devices&quot;,
</span><del>-%]
</del><span class="cx">\ No newline at end of file
</span><ins>+%]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthookglobalusererrorerrorshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/user-error-errors.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,10 +1,9 @@
</span><del>-[%# Note that error messages should generally be indented four spaces, like
-  # below, because when Bugzilla translates an error message into plain
-  # text, it takes four spaces off the beginning of the lines. 
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Note also that I prefixed my error name with &quot;example&quot;, the name of my
-  # extension, so that I wouldn't conflict with other error names in
-  # Bugzilla or other extensions.
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [% IF error == &quot;example_my_error&quot; %]
</span><span class="cx">    [% title = &quot;Example Error Title&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaulthooksearchtabssearch_tabshtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/search/tabs-search_tabs.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/search/tabs-search_tabs.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/hook/search/tabs-search_tabs.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%
+    tabs.push({ name =&gt; 'newsearch', label =&gt; &quot;New Search&quot;,
+                link =&gt; &quot;query.cgi?format=newsearch&quot; })
+%]
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultpagesexamplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/pages/example.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/pages/example.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/pages/example.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%#
-  # The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Example Plugin.
-  #
-  # The Initial Developer of the Original Code is Canonical Ltd.
-  # Portions created by Canonical Ltd. are Copyright (C) 2009
-  # Canonical Ltd. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsExampletemplateendefaultsetupstringstxtpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/setup/strings.txt.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/setup/strings.txt.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Example/template/en/default/setup/strings.txt.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> %strings = (
</span><span class="cx">   feature_example_acme =&gt; 'Example Extension: Acme Feature',
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrlConfigpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Config.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Config.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use constant NAME =&gt; 'MoreBugUrl';
+
+use constant REQUIRED_MODULES =&gt; [
+];
+
+use constant OPTIONAL_MODULES =&gt; [
+];
+
+__PACKAGE__-&gt;NAME;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrlExtensionpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Extension.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Extension.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::Extension);
+
+use constant MORE_SUB_CLASSES =&gt; qw(
+    Bugzilla::Extension::MoreBugUrl::BitBucket
+    Bugzilla::Extension::MoreBugUrl::ReviewBoard
+    Bugzilla::Extension::MoreBugUrl::Rietveld
+    Bugzilla::Extension::MoreBugUrl::RT
+    Bugzilla::Extension::MoreBugUrl::GetSatisfaction
+    Bugzilla::Extension::MoreBugUrl::PHP
+    Bugzilla::Extension::MoreBugUrl::Redmine
+    Bugzilla::Extension::MoreBugUrl::Savane
+);
+
+# We need to update bug_see_also table because both
+# Rietveld and ReviewBoard were originally under Bugzilla/BugUrl/.
+sub install_update_db {
+    my $dbh = Bugzilla-&gt;dbh;
+
+    my $should_rename = $dbh-&gt;selectrow_array(
+        q{SELECT 1 FROM bug_see_also
+          WHERE class IN ('Bugzilla::BugUrl::Rietveld', 
+                          'Bugzilla::BugUrl::ReviewBoard')});
+
+    if ($should_rename) {
+        my $sth = $dbh-&gt;prepare('UPDATE bug_see_also SET class = ?
+                                 WHERE class = ?');
+        $sth-&gt;execute('Bugzilla::Extension::MoreBugUrl::ReviewBoard',
+                      'Bugzilla::BugUrl::ReviewBoard');
+
+        $sth-&gt;execute('Bugzilla::Extension::MoreBugUrl::Rietveld',
+                      'Bugzilla::BugUrl::Rietveld');
+    }
+}
+
+sub bug_url_sub_classes {
+    my ($self, $args) = @_;
+    push @{ $args-&gt;{sub_classes} }, MORE_SUB_CLASSES;
+}
+
+__PACKAGE__-&gt;NAME;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrldisabledfromrev211528trunkWebsitesbugswebkitorgdatamail"></a>
<div class="copfile"><h4>Copied: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/disabled (from rev 211528, trunk/Websites/bugs.webkit.org/data/mail) ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/BitBucket.pm
===================================================================
</span><del>--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/BitBucket.pm                                (rev 0)
</del><ins>+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/BitBucket.pm        2017-03-21 16:27:49 UTC (rev 214224)
</ins><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::BitBucket;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+
+    # BitBucket issues have the form of
+    # bitbucket.org/user/project/issue/1234
+    return (lc($uri-&gt;authority) eq &quot;bitbucket.org&quot;
+            &amp;&amp; $uri-&gt;path =~ m|[^/]+/[^/]+/issue/\d+|i) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    my ($path) = $uri-&gt;path =~ m|([^/]+/[^/]+/issue/\d+)|i;
+    $uri = new URI(&quot;https://bitbucket.org/$path&quot;);
+
+    return $uri;
+}
+
+1;
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibGetSatisfactionpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/GetSatisfaction.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/GetSatisfaction.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/GetSatisfaction.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::GetSatisfaction;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+
+    # GetSatisfaction URLs only have one form:
+    #   http(s)://getsatisfaction.com/PROJECT_NAME/topics/TOPIC_NAME
+    return (lc($uri-&gt;authority) eq 'getsatisfaction.com'
+            and $uri-&gt;path =~ m|^/[^/]+/topics/[^/]+$|) ? 1 : 0;
+}
+
+sub _check_value {
+    my ($class, $uri) = @_;
+
+    $uri = $class-&gt;SUPER::_check_value($uri);
+
+    # GetSatisfaction HTTP URLs redirect to HTTPS, so just use the HTTPS
+    # scheme.
+    $uri-&gt;scheme('https');
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibPHPpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/PHP.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/PHP.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/PHP.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::PHP;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+
+    # PHP Bug URLs have only one form:
+    #   https://bugs.php.net/bug.php?id=1234
+    return (lc($uri-&gt;authority) eq 'bugs.php.net'
+            and $uri-&gt;path =~ m|/bug\.php$|
+            and $uri-&gt;query_param('id') =~ /^\d+$/) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    # PHP Bug URLs redirect to HTTPS, so just use the HTTPS scheme.
+    $uri-&gt;scheme('https');
+
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRTpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/RT.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/RT.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/RT.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::RT;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+
+    # RT URLs can look like various things:
+    #   http://example.com/rt/Ticket/Display.html?id=1234
+    #   https://example.com/Public/Bug/Display.html?id=1234
+    return ($uri-&gt;path =~ m|/Display\.html$|
+            and $uri-&gt;query_param('id') =~ /^\d+$/) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRedminepm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Redmine.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Redmine.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Redmine.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::Redmine;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+    return ($uri-&gt;path =~ m|/issues/\d+$|) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    # Redmine URLs have only one form:
+    #   http://demo.redmine.com/issues/111
+
+    # Make sure there are no query parameters.
+    $uri-&gt;query(undef);
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibReviewBoardpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/ReviewBoard.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/ReviewBoard.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/ReviewBoard.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::ReviewBoard;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+    return ($uri-&gt;path =~ m|/r/\d+/?$|) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    # Review Board URLs have only one form (the trailing slash is optional):
+    #   http://reviews.reviewboard.org/r/111/
+
+    # Make sure there are no query parameters.
+    $uri-&gt;query(undef);
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    # make sure the trailing slash is present
+    if ($uri-&gt;path !~ m|/$|) {
+        $uri-&gt;path($uri-&gt;path . '/');
+    }
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibRietveldpm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Rietveld.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Rietveld.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Rietveld.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::Rietveld;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+    return ($uri-&gt;authority =~ /\.appspot\.com$/i
+            and $uri-&gt;path =~ m#^/\d+(?:/|/show)?$#) ? 1 : 0;
+}
+
+sub _check_value {
+    my ($class, $uri) = @_;
+
+    $uri = $class-&gt;SUPER::_check_value($uri);
+
+    # Rietveld URLs have three forms:
+    #   http(s)://example.appspot.com/1234
+    #   http(s)://example.appspot.com/1234/
+    #   http(s)://example.appspot.com/1234/show
+    if ($uri-&gt;path =~ m#^/(\d+)(?:/|/show)$#) {
+        # This is the shortest standard URL form for Rietveld issues,
+        # and so we reduce all URLs to this.
+        $uri-&gt;path('/' . $1);
+    }
+
+    # Make sure there are no query parameters.
+    $uri-&gt;query(undef);
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrllibSavanepm"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Savane.pm (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Savane.pm                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/lib/Savane.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::MoreBugUrl::Savane;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Bugzilla::BugUrl);
+
+###############################
+####        Methods        ####
+###############################
+
+sub should_handle {
+    my ($class, $uri) = @_;
+    return ($uri-&gt;as_string =~ m|/bugs/(index\.php)?\?\d+$|) ? 1 : 0;
+}
+
+sub _check_value {
+    my $class = shift;
+
+    my $uri = $class-&gt;SUPER::_check_value(@_);
+
+    # Savane URLs have only two forms:
+    #   http://gna.org/bugs/index.php?12345
+    #   http://gna.org/bugs/?12345
+
+    # And remove any # part if there is one.
+    $uri-&gt;fragment(undef);
+
+    return $uri;
+}
+
+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsMoreBugUrltemplateendefaulthookglobalusererrorbug_url_invalid_trackerhtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+&lt;li&gt;An issue on bitbucket.org.&lt;/li&gt;
+&lt;li&gt;A Review Board review request.&lt;/li&gt;
+&lt;li&gt;An issue in a Rietveld installation.&lt;/li&gt;
+&lt;li&gt;A ticket in an RT installation.&lt;/li&gt;
+&lt;li&gt;A topic on getsatisfaction.com.&lt;/li&gt;
+&lt;li&gt;A b[% %]ug on b[% %]ugs.php.net.&lt;/li&gt;
+&lt;li&gt;An issue in a Redmine installation.&lt;/li&gt;
+&lt;li&gt;A b[% %]ug in a Savane installation.&lt;/li&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMoveConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the OldBugMove Bugzilla Extension.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer is Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::OldBugMove;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use constant NAME =&gt; 'OldBugMove';
</span><span class="cx"> __PACKAGE__-&gt;NAME;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMoveExtensionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Extension.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Extension.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the OldBugMove Bugzilla Extension.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::OldBugMove;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Extension);
</del><ins>+use warnings;
+
+use parent qw(Bugzilla::Extension);
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Field::Choice;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovelibParamspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/lib/Params.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/lib/Params.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/lib/Params.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 J. Paul Reed &lt;preed@sigkill.com&gt;
-#                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::OldBugMove::Params;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Config::Common;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaultadminparamsoldbugmovehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;$terms.Bug Moving&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookbugeditafter_comment_textareahtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF oldbugmove_user_is_mover(user) AND bug.resolution != 'MOVED' %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookbugformat_commenttypetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF comment.type == constants.CMT_MOVED_TO %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookglobalusererrorauth_failure_actionhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF action == &quot;move&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthookglobalusererrorerrorshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF error == &quot;oldbugmove_no_delete_moved&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsOldBugMovetemplateendefaulthooklisteditmultipleafter_groupshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/list/edit-multiple-after_groups.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/list/edit-multiple-after_groups.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/OldBugMove/template/en/default/hook/list/edit-multiple-after_groups.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #   Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF oldbugmove_user_is_mover(user) %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingConfigpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/Config.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/Config.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/Config.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by the Initial Developer is Copyright (C) 2012 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Voting;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use constant NAME =&gt; 'Voting';
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingExtensionpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/Extension.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/Extension.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/Extension.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,18 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Stephan Niemz  &lt;st.n@gmx.net&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Bugzilla::Extension::Voting;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Bugzilla::Extension);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Extension);
+
</ins><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::BugMail;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -38,7 +23,7 @@
</span><span class="cx"> use Bugzilla::Util qw(detaint_natural);
</span><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><del>-use List::Util qw(min);
</del><ins>+use List::Util qw(min sum);
</ins><span class="cx"> 
</span><span class="cx"> use constant VERSION =&gt; BUGZILLA_VERSION;
</span><span class="cx"> use constant DEFAULT_VOTES_PER_BUG =&gt; 1;
</span><span class="lines">@@ -204,7 +189,7 @@
</span><span class="cx">         # If some votes have been removed, RemoveVotes() returns
</span><span class="cx">         # a list of messages to send to voters.
</span><span class="cx">         @msgs = _remove_votes($bug-&gt;id, 0, 'votes_bug_moved');
</span><del>-        _confirm_if_vote_confirmed($bug-&gt;id);
</del><ins>+        _confirm_if_vote_confirmed($bug);
</ins><span class="cx"> 
</span><span class="cx">         foreach my $msg (@msgs) {
</span><span class="cx">             MessageToMTA($msg);
</span><span class="lines">@@ -408,7 +393,7 @@
</span><span class="cx">     # If a bug_id is given, and we're editing, we'll add it to the votes list.
</span><span class="cx">     
</span><span class="cx">     my $bug_id = $input-&gt;{bug_id};
</span><del>-    my $bug = Bugzilla::Bug-&gt;check($bug_id) if $bug_id;
</del><ins>+    my $bug = Bugzilla::Bug-&gt;check({ id =&gt; $bug_id, cache =&gt; 1 }) if $bug_id;
</ins><span class="cx">     my $who_id = $input-&gt;{user_id} || $user-&gt;id;
</span><span class="cx"> 
</span><span class="cx">     # Logged-out users must specify a user_id.
</span><span class="lines">@@ -437,52 +422,38 @@
</span><span class="cx">     foreach my $product (@{ $user-&gt;get_selectable_products }) {
</span><span class="cx">         next unless ($product-&gt;{votesperuser} &gt; 0);
</span><span class="cx"> 
</span><del>-        my @bugs;
-        my @bug_ids;
-        my $total = 0;
-        my $onevoteonly = 0;
-
</del><span class="cx">         my $vote_list =
</span><del>-            $dbh-&gt;selectall_arrayref('SELECT votes.bug_id, votes.vote_count,
-                                             bugs.short_desc
-                                        FROM votes
-                                  INNER JOIN bugs
-                                          ON votes.bug_id = bugs.bug_id
-                                       WHERE votes.who = ?
-                                         AND bugs.product_id = ?
-                                    ORDER BY votes.bug_id',
-                                      undef, ($who-&gt;id, $product-&gt;id));
</del><ins>+          $dbh-&gt;selectall_arrayref('SELECT votes.bug_id, votes.vote_count
+                                      FROM votes
+                                INNER JOIN bugs
+                                        ON votes.bug_id = bugs.bug_id
+                                     WHERE votes.who = ?
+                                       AND bugs.product_id = ?',
+                                     undef, ($who-&gt;id, $product-&gt;id));
</ins><span class="cx"> 
</span><del>-        foreach (@$vote_list) {
-            my ($id, $count, $summary) = @$_;
-            $total += $count;
</del><ins>+        my %votes = map { $_-&gt;[0] =&gt; $_-&gt;[1] } @$vote_list;
+        my @bug_ids = sort keys %votes;
+        # Exclude bugs that the user can no longer see.
+        @bug_ids = @{ $user-&gt;visible_bugs(\@bug_ids) };
+        next unless scalar @bug_ids;
</ins><span class="cx"> 
</span><del>-            # Next if user can't see this bug. So, the totals will be correct
-            # and they can see there are votes 'missing', but not on what bug
-            # they are. This seems a reasonable compromise; the alternative is
-            # to lie in the totals.
-            next if !$user-&gt;can_see_bug($id);
</del><ins>+        push(@all_bug_ids, @bug_ids);
+        my @bugs = @{ Bugzilla::Bug-&gt;new_from_list(\@bug_ids) };
+        $_-&gt;{count} = $votes{$_-&gt;id} foreach @bugs;
+        # We include votes from bugs that the user can no longer see.
+        my $total = sum(values %votes) || 0;
</ins><span class="cx"> 
</span><del>-            push (@bugs, { id =&gt; $id,
-                           summary =&gt; $summary,
-                           count =&gt; $count });
-            push (@bug_ids, $id);
-            push (@all_bug_ids, $id);
-        }
-
</del><ins>+        my $onevoteonly = 0;
</ins><span class="cx">         $onevoteonly = 1 if (min($product-&gt;{votesperuser},
</span><span class="cx">                                  $product-&gt;{maxvotesperbug}) == 1);
</span><span class="cx"> 
</span><del>-        # Only add the product for display if there are any bugs in it.
-        if ($#bugs &gt; -1) {
-            push (@products, { name =&gt; $product-&gt;name,
-                               bugs =&gt; \@bugs,
-                               bug_ids =&gt; \@bug_ids,
-                               onevoteonly =&gt; $onevoteonly,
-                               total =&gt; $total,
-                               maxvotes =&gt; $product-&gt;{votesperuser},
-                               maxperbug =&gt; $product-&gt;{maxvotesperbug} });
-        }
</del><ins>+        push(@products, { name =&gt; $product-&gt;name,
+                          bugs =&gt; \@bugs,
+                          bug_ids =&gt; \@bug_ids,
+                          onevoteonly =&gt; $onevoteonly,
+                          total =&gt; $total,
+                          maxvotes =&gt; $product-&gt;{votesperuser},
+                          maxperbug =&gt; $product-&gt;{maxvotesperbug} });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if ($canedit &amp;&amp; $bug) {
</span><span class="lines">@@ -516,6 +487,7 @@
</span><span class="cx">     # IDs and the field values are the number of votes.
</span><span class="cx"> 
</span><span class="cx">     my @buglist = grep {/^\d+$/} keys %$input;
</span><ins>+    my (%bugs, %votes);
</ins><span class="cx"> 
</span><span class="cx">     # If no bugs are in the buglist, let's make sure the user gets notified
</span><span class="cx">     # that their votes will get nuked if they continue.
</span><span class="lines">@@ -531,20 +503,23 @@
</span><span class="cx">             exit;
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    else {
+        $user-&gt;visible_bugs(\@buglist);
+        my $bugs_obj = Bugzilla::Bug-&gt;new_from_list(\@buglist);
+        $bugs{$_-&gt;id} = $_ foreach @$bugs_obj;
+    }
</ins><span class="cx"> 
</span><del>-    # Call check() on each bug ID to make sure it is a positive
-    # integer representing an existing bug that the user is authorized 
-    # to access, and make sure the number of votes submitted is also
-    # a non-negative integer (a series of digits not preceded by a
-    # minus sign).
-    my (%votes, @bugs);
</del><ins>+    # Call check_is_visible() on each bug to make sure it is an existing bug
+    # that the user is authorized to access, and make sure the number of votes
+    # submitted is also an integer.
</ins><span class="cx">     foreach my $id (@buglist) {
</span><del>-      my $bug = Bugzilla::Bug-&gt;check($id);
-      push(@bugs, $bug);
-      $id = $bug-&gt;id;
-      $votes{$id} = $input-&gt;{$id};
-      detaint_natural($votes{$id})
-        || ThrowUserError(&quot;voting_must_be_nonnegative&quot;);
</del><ins>+        my $bug = $bugs{$id}
+          or ThrowUserError('bug_id_does_not_exist', { bug_id =&gt; $id });
+        $bug-&gt;check_is_visible;
+        $id = $bug-&gt;id;
+        $votes{$id} = $input-&gt;{$id};
+        detaint_natural($votes{$id})
+          || ThrowUserError(&quot;voting_must_be_nonnegative&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my $token = $cgi-&gt;param('token');
</span><span class="lines">@@ -557,10 +532,10 @@
</span><span class="cx"> 
</span><span class="cx">     # If the user is voting for bugs, make sure they aren't overstuffing
</span><span class="cx">     # the ballot box.
</span><del>-    if (scalar @bugs) {
</del><ins>+    if (scalar @buglist) {
</ins><span class="cx">         my (%prodcount, %products);
</span><del>-        foreach my $bug (@bugs) {
-            my $bug_id = $bug-&gt;id;
</del><ins>+        foreach my $bug_id (keys %bugs) {
+            my $bug = $bugs{$bug_id};
</ins><span class="cx">             my $prod = $bug-&gt;product;
</span><span class="cx">             $products{$prod} ||= $bug-&gt;product_obj;
</span><span class="cx">             $prodcount{$prod} ||= 0;
</span><span class="lines">@@ -584,56 +559,65 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # Update the user's votes in the database.  If the user did not submit 
-    # any votes, they may be using a form with checkboxes to remove all their
-    # votes (checkboxes are not submitted along with other form data when
-    # they are not checked, and Bugzilla uses them to represent single votes
-    # for products that only allow one vote per bug).  In that case, we still
-    # need to clear the user's votes from the database.
-    my %affected;
</del><ins>+    # Update the user's votes in the database.
</ins><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><del>-    # Take note of, and delete the user's old votes from the database.
-    my $bug_list = $dbh-&gt;selectcol_arrayref('SELECT bug_id FROM votes
</del><ins>+    my $old_list = $dbh-&gt;selectall_arrayref('SELECT bug_id, vote_count FROM votes
</ins><span class="cx">                                              WHERE who = ?', undef, $who);
</span><span class="cx"> 
</span><del>-    foreach my $id (@$bug_list) {
-        $affected{$id} = 1;
-    }
-    $dbh-&gt;do('DELETE FROM votes WHERE who = ?', undef, $who);
</del><ins>+    my %old_votes = map { $_-&gt;[0] =&gt; $_-&gt;[1] } @$old_list;
</ins><span class="cx"> 
</span><span class="cx">     my $sth_insertVotes = $dbh-&gt;prepare('INSERT INTO votes (who, bug_id, vote_count)
</span><span class="cx">                                          VALUES (?, ?, ?)');
</span><ins>+    my $sth_updateVotes = $dbh-&gt;prepare('UPDATE votes SET vote_count = ?
+                                         WHERE bug_id = ? AND who = ?');
</ins><span class="cx"> 
</span><del>-    # Insert the new values in their place
-    foreach my $id (@buglist) {
-        if ($votes{$id} &gt; 0) {
</del><ins>+    my %affected = map { $_ =&gt; 1 } (@buglist, keys %old_votes);
+    my @deleted_votes;
+
+    foreach my $id (keys %affected) {
+        if (!$votes{$id}) {
+            push(@deleted_votes, $id);
+            next;
+        }
+        if ($votes{$id} == ($old_votes{$id} || 0)) {
+            delete $affected{$id};
+            next;
+        }
+        # We use 'defined' in case 0 was accidentally stored in the DB.
+        if (defined $old_votes{$id}) {
+            $sth_updateVotes-&gt;execute($votes{$id}, $id, $who);
+        }
+        else {
</ins><span class="cx">             $sth_insertVotes-&gt;execute($who, $id, $votes{$id});
</span><span class="cx">         }
</span><del>-        $affected{$id} = 1;
</del><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (@deleted_votes) {
+        $dbh-&gt;do('DELETE FROM votes WHERE who = ? AND ' .
+                 $dbh-&gt;sql_in('bug_id', \@deleted_votes), undef, $who);
+    }
+
</ins><span class="cx">     # Update the cached values in the bugs table
</span><del>-    print $cgi-&gt;header();
</del><span class="cx">     my @updated_bugs = ();
</span><span class="cx"> 
</span><span class="cx">     my $sth_getVotes = $dbh-&gt;prepare(&quot;SELECT SUM(vote_count) FROM votes
</span><span class="cx">                                       WHERE bug_id = ?&quot;);
</span><span class="cx"> 
</span><del>-    my $sth_updateVotes = $dbh-&gt;prepare(&quot;UPDATE bugs SET votes = ?
-                                         WHERE bug_id = ?&quot;);
</del><ins>+    $sth_updateVotes = $dbh-&gt;prepare('UPDATE bugs SET votes = ? WHERE bug_id = ?');
</ins><span class="cx"> 
</span><span class="cx">     foreach my $id (keys %affected) {
</span><span class="cx">         $sth_getVotes-&gt;execute($id);
</span><span class="cx">         my $v = $sth_getVotes-&gt;fetchrow_array || 0;
</span><span class="cx">         $sth_updateVotes-&gt;execute($v, $id);
</span><del>-
-        my $confirmed = _confirm_if_vote_confirmed($id);
</del><ins>+        $bugs{$id}-&gt;{votes} = $v if $bugs{$id};
+        my $confirmed = _confirm_if_vote_confirmed($bugs{$id} || $id);
</ins><span class="cx">         push (@updated_bugs, $id) if $confirmed;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><ins>+    print $cgi-&gt;header() if scalar @updated_bugs;
</ins><span class="cx">     $vars-&gt;{'type'} = &quot;votes&quot;;
</span><span class="cx">     $vars-&gt;{'title_tag'} = 'change_votes';
</span><span class="cx">     foreach my $bug_id (@updated_bugs) {
</span><span class="lines">@@ -646,7 +630,7 @@
</span><span class="cx">         # Set header_done to 1 only after the first bug.
</span><span class="cx">         $vars-&gt;{'header_done'} = 1;
</span><span class="cx">     }
</span><del>-    $vars-&gt;{'votes_recorded'} = 1;
</del><ins>+    $vars-&gt;{'message'} = 'votes_recorded';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ######################
</span><span class="lines">@@ -674,8 +658,8 @@
</span><span class="cx">             # If some votes are removed, _remove_votes() returns a list
</span><span class="cx">             # of messages to send to voters.
</span><span class="cx">             push(@msgs, _remove_votes($id, $who, 'votes_too_many_per_bug'));
</span><del>-            my $name = user_id_to_login($who);
-
</del><ins>+            my $name = Bugzilla::User-&gt;new($who)-&gt;login;
+            
</ins><span class="cx">             push(@toomanyvotes_list, {id =&gt; $id, name =&gt; $name});
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -715,12 +699,12 @@
</span><span class="cx">                         AND votes.who = ?',
</span><span class="cx">                 undef, $product-&gt;id, $who);
</span><span class="cx"> 
</span><ins>+            my $name = Bugzilla::User-&gt;new($who)-&gt;login;
</ins><span class="cx">             foreach my $bug_id (@$bug_ids) {
</span><span class="cx">                 # _remove_votes returns a list of messages to send
</span><span class="cx">                 # in case some voters had too many votes.
</span><span class="cx">                 push(@msgs, _remove_votes($bug_id, $who, 
</span><span class="cx">                                           'votes_too_many_per_user'));
</span><del>-                my $name = user_id_to_login($who);
</del><span class="cx"> 
</span><span class="cx">                 push(@toomanytotalvotes_list, {id =&gt; $bug_id, name =&gt; $name});
</span><span class="cx">             }
</span><span class="lines">@@ -844,7 +828,7 @@
</span><span class="cx"> # confirm a bug has been reduced, check if the bug is now confirmed.
</span><span class="cx"> sub _confirm_if_vote_confirmed {
</span><span class="cx">     my $id = shift;
</span><del>-    my $bug = new Bugzilla::Bug($id);
</del><ins>+    my $bug = ref $id ? $id : new Bugzilla::Bug({ id =&gt; $id, cache =&gt; 1 });
</ins><span class="cx"> 
</span><span class="cx">     my $ret = 0;
</span><span class="cx">     if (!$bug-&gt;everconfirmed
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookaccountprefsemailrelationshipshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% relationships.push({ id = constants.REL_VOTER, description = &quot;Voter&quot; }) %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminproductseditcommonrowshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT 
</span><span class="lines">@@ -23,9 +11,9 @@
</span><span class="cx">   product.votesperuser = 0
</span><span class="cx">   product.votestoconfirm = 0
</span><span class="cx"> %]
</span><del>-  
</del><ins>+
</ins><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;Maximum votes per person:&lt;/th&gt;
</del><ins>+  &lt;th&gt;Maximum votes per person:&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;&lt;input size=&quot;5&quot; maxlength=&quot;5&quot; name=&quot;votesperuser&quot; id=&quot;votesperuser&quot;
</span><span class="cx">              value=&quot;[% product.votesperuser FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;/td&gt;
</span><span class="lines">@@ -32,7 +20,7 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;
</del><ins>+  &lt;th&gt;
</ins><span class="cx">     Maximum votes a person can put on a single [% terms.bug %]:
</span><span class="cx">   &lt;/th&gt;
</span><span class="cx">   &lt;td&gt;&lt;input size=&quot;5&quot; maxlength=&quot;5&quot; name=&quot;maxvotesperbug&quot; id=&quot;maxvotesperbug&quot;
</span><span class="lines">@@ -42,7 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;tr id=&quot;votes_to_confirm_container&quot;
</span><span class="cx">     [%- ' class=&quot;bz_default_hidden&quot;' IF !product.allows_unconfirmed %]&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;
</del><ins>+  &lt;th&gt;
</ins><span class="cx">     Confirm [% terms.abug %] if it gets this many votes:
</span><span class="cx">   &lt;/th&gt;
</span><span class="cx">   &lt;td&gt;
</span><span class="lines">@@ -57,4 +45,3 @@
</span><span class="cx">     &lt;/script&gt;
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminproductsupdatedchangeshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% SET checkvotes = 0 %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminsanitycheckmessagesstatuseshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF san_tag == &quot;voting_cache_rebuild_fix&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookadminusersconfirmdeletewarn_safehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF votes %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugeditafter_importancehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [% IF bug.product_obj.votesperuser %]
</span><span class="cx">   &lt;span id=&quot;votes_container&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugformat_commenttypetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF comment.type == constants.CMT_POPULAR_VOTES %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugprocessheadertitlehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF title_tag == &quot;change_votes&quot; %]
</span><span class="cx">   [% title = &quot;Change Votes&quot; %]
</span><span class="cx"> [% END %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugprocessresultstitlehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% title.votes = &quot;$Link confirmed by number of votes&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookbugshowheaderendhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% style_urls.push('extensions/Voting/web/style.css') %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalcodeerrorerrorshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF error == &quot;voting_no_open_bug_status&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalfielddescsendnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF in_template_var %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalmessagesmessageshtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+[%# This Source Code Form is subject to th  e terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# This is a list of all the possible messages. Please keep them in
+  # alphabetical order by message tag, and leave a blank line between messages.
+  #%]
+  
+[% IF message_tag == &quot;votes_recorded&quot; %]
+    The changes to your votes have been saved.
+[% END %]
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalreasondescsendnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% reason_descs.${constants.REL_VOTER} = &quot;You voted for the ${terms.bug}.&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthookglobalusererrorerrorshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF error == &quot;voting_must_be_nonnegative&quot; %]
</span><span class="lines">@@ -42,7 +30,7 @@
</span><span class="cx">     [% admindocslinks = {'voting.html' =&gt; 'Setting up the voting feature'} %]
</span><span class="cx">     You may only use at most [% max FILTER html %] votes for a single
</span><span class="cx">     [%+ terms.bug %] in the
</span><del>-    &lt;tt&gt;[% product FILTER html %]&lt;/tt&gt; product, but you are trying to
</del><ins>+    &lt;em&gt;[% product FILTER html %]&lt;/em&gt; product, but you are trying to
</ins><span class="cx">     use [% votes FILTER html %].
</span><span class="cx"> 
</span><span class="cx"> [% ELSIF error == &quot;voting_too_many_votes_for_product&quot; %]
</span><span class="lines">@@ -49,7 +37,7 @@
</span><span class="cx">     [% title = &quot;Illegal Vote&quot; %]
</span><span class="cx">     [% admindocslinks = {'voting.html' =&gt; 'Setting up the voting feature'} %]
</span><span class="cx">     You tried to use [% votes FILTER html %] votes in the
</span><del>-    &lt;tt&gt;[% product FILTER html %]&lt;/tt&gt; product, which exceeds the maximum of
</del><ins>+    &lt;em&gt;[% product FILTER html %]&lt;/em&gt; product, which exceeds the maximum of
</ins><span class="cx">     [%+ max FILTER html %] votes for this product.
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthooksearchformafter_freetext_fieldshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;search_field_row&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaulthooksearchsearchreportselectrep_fieldshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% rep_fields.push('votes') %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotingbughtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,8 +13,6 @@
</span><span class="cx">   #   vote_count: integer. The number of times that user has votes for this bug.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% subheader = BLOCK %]
</span><span class="cx">   [% &quot;$terms.Bug $bug.id&quot; FILTER bug_link(bug) FILTER none %] - [% bug.short_desc FILTER html %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -35,10 +20,11 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">            title = &quot;Show Votes&quot;
</span><span class="cx">            subheader = subheader
</span><ins>+           style_urls = [ &quot;extensions/Voting/web/style.css&quot; ]
</ins><span class="cx">  %]
</span><span class="cx"> 
</span><span class="cx"> [% total = 0 %]
</span><del>-&lt;table cellspacing=&quot;4&quot;&gt;
</del><ins>+&lt;table id=&quot;bug_votes&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th&gt;Who&lt;/th&gt;
</span><span class="cx">     &lt;th&gt;Number of votes&lt;/th&gt;
</span><span class="lines">@@ -53,7 +39,7 @@
</span><span class="cx">           [% voter.login_name FILTER email FILTER html %]
</span><span class="cx">         &lt;/a&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td align=&quot;right&quot;&gt;
</del><ins>+      &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">         [% voter.vote_count FILTER html %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotinguserhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/user.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/user.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting/user.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -38,8 +26,6 @@
</span><span class="cx">   # all_bug_ids: List of all bug ids the user has voted for, across all products
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% IF !header_done %]
</span><span class="cx">   [% subheader = voting_user.login FILTER html %]
</span><span class="cx">   [% IF canedit %]
</span><span class="lines">@@ -61,25 +47,15 @@
</span><span class="cx">   &lt;hr&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[% IF votes_recorded %]
-  &lt;p&gt;
-    &lt;font color=&quot;red&quot;&gt;
-      The changes to your votes have been saved.
-    &lt;/font&gt;
-  &lt;/p&gt;
-[% ELSE %]
-  &lt;br&gt;
-[% END %]
-
</del><span class="cx"> [% IF products.size %]
</span><span class="cx">   &lt;form name=&quot;voting_form&quot; method=&quot;post&quot; action=&quot;page.cgi?id=voting/user.html&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;vote&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['vote']) FILTER html %]&quot;&gt;
</span><del>-    &lt;table cellspacing=&quot;4&quot;&gt;
</del><ins>+    &lt;table id=&quot;user_votes&quot;&gt;
</ins><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td&gt;&lt;/td&gt;
</del><ins>+        &lt;th&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;th&gt;Votes&lt;/th&gt;
</span><del>-        &lt;th&gt;[% terms.Bug %] #&lt;/th&gt;
</del><ins>+        &lt;th&gt;[% terms.Bug %]&amp;nbsp;#&lt;/th&gt;
</ins><span class="cx">         &lt;th&gt;Summary&lt;/th&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -109,8 +85,7 @@
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">         [% FOREACH bug = product.bugs %]
</span><del>-          &lt;tr [% IF bug.id == this_bug.id &amp;&amp; canedit %] 
-            class=&quot;bz_bug_being_voted_on&quot; [% END %]&gt;
</del><ins>+          &lt;tr [% IF bug.id == this_bug.id &amp;&amp; canedit %] class=&quot;bz_bug_being_voted_on&quot;[% END %]&gt;
</ins><span class="cx">             &lt;td&gt;
</span><span class="cx">               [% IF bug.id == this_bug.id &amp;&amp; canedit %]
</span><span class="cx">                 [% IF product.onevoteonly %]
</span><span class="lines">@@ -120,25 +95,27 @@
</span><span class="cx">                 [% END %]
</span><span class="cx">               [%- END %]
</span><span class="cx">             &lt;/td&gt;
</span><del>-            &lt;td align=&quot;right&quot;&gt;&lt;a name=&quot;vote_[% bug.id FILTER html %]&quot;&gt;
</del><ins>+            &lt;td&gt;
+              &lt;a name=&quot;vote_[% bug.id FILTER none %]&quot;&gt;
</ins><span class="cx">               [% IF canedit %]
</span><span class="cx">                 [% IF product.onevoteonly %]
</span><del>-                  &lt;input type=&quot;checkbox&quot; name=&quot;[% bug.id FILTER html %]&quot; value=&quot;1&quot;
-                    [% &quot; checked&quot; IF bug.count %] id=&quot;bug_[% bug.id FILTER html %]&quot;&gt;
</del><ins>+                  &lt;input type=&quot;checkbox&quot; name=&quot;[% bug.id FILTER none %]&quot; value=&quot;1&quot;
+                    [% &quot; checked&quot; IF bug.count %] id=&quot;bug_[% bug.id FILTER none %]&quot;&gt;
</ins><span class="cx">                 [% ELSE %]
</span><del>-                  &lt;input name=&quot;[% bug.id FILTER html %]&quot; value=&quot;[% bug.count FILTER html %]&quot;
-                         size=&quot;2&quot; id=&quot;bug_[% bug.id FILTER html %]&quot;&gt;
</del><ins>+                  &lt;input name=&quot;[% bug.id FILTER none %]&quot; value=&quot;[% bug.count FILTER html %]&quot;
+                         size=&quot;2&quot; id=&quot;bug_[% bug.id FILTER none %]&quot;&gt;
</ins><span class="cx">                 [% END %]
</span><span class="cx">               [% ELSE %]
</span><span class="cx">                 [% bug.count FILTER html %]
</span><span class="cx">               [% END %]
</span><del>-            &lt;/a&gt;&lt;/td&gt;
-            &lt;td align=&quot;center&quot;&gt;
-              [% bug.id FILTER bug_link(bug) FILTER none %]
</del><ins>+              &lt;/a&gt;
</ins><span class="cx">             &lt;/td&gt;
</span><ins>+            &lt;td class=&quot;right&quot;&gt;
+              [% PROCESS bug/link.html.tmpl bug = bug, link_text = bug.id %]
+            &lt;/td&gt;
</ins><span class="cx">             &lt;td&gt;
</span><del>-              [% bug.summary FILTER html %]
-              (&lt;a href=&quot;page.cgi?id=voting/bug.html&amp;amp;bug_id=[% bug.id FILTER uri %]&quot;&gt;Show Votes&lt;/a&gt;)
</del><ins>+              [% bug.short_desc FILTER html %]
+              (&lt;a href=&quot;page.cgi?id=voting/bug.html&amp;amp;bug_id=[% bug.id FILTER none %]&quot;&gt;Show Votes&lt;/a&gt;)
</ins><span class="cx">             &lt;/td&gt;
</span><span class="cx">           &lt;/tr&gt;
</span><span class="cx">         [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultpagesvotinghtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/pages/voting.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% INCLUDE global/header.html.tmpl title = &quot;Voting&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;[% terms.Bugzilla %] has a &quot;voting&quot; feature. Each product allows users to 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultvotingdeleteallhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/delete-all.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/delete-all.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/delete-all.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,8 +10,6 @@
</span><span class="cx">   # This template has no interface.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">            title = &quot;Remove your votes?&quot;
</span><span class="cx">  %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingtemplateendefaultvotingvotesremovedtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Emmanuel Seyman &lt;eseyman@linagora.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% to %]
</span><span class="cx"> Subject: [% terms.Bug %] [%+ bugid %] Some or all of your votes have been removed.
</span><span class="lines">@@ -52,4 +38,3 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> [% urlbase %]show_bug.cgi?id=[% bugid %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionsVotingwebstylecss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/Voting/web/style.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/Voting/web/style.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/Voting/web/style.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,10 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  */
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> /* Highlight the row for the bug being voted on */
</span><span class="cx"> tr.bz_bug_being_voted_on {
</span><span class="lines">@@ -26,3 +19,12 @@
</span><span class="cx"> #votes_container { 
</span><span class="cx">     white-space: nowrap; 
</span><span class="cx"> }
</span><ins>+
+#user_votes th {
+    text-align: center;
+}
+
+#user_votes th, #user_votes td,
+#bug_votes th, #bug_votes td {
+    padding: 0.2em;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgextensionscreatepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/extensions/create.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/extensions/create.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/extensions/create.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,20 @@
</span><del>-#!/usr/bin/env perl -w
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use lib qw(. lib);
</del><ins>+use warnings;
+
+use File::Basename;
+BEGIN { chdir dirname($0); }
+
+use lib qw(.. ../lib);
+
</ins><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="lines">@@ -27,11 +21,11 @@
</span><span class="cx"> use Bugzilla::Util qw(get_text);
</span><span class="cx"> 
</span><span class="cx"> use File::Path qw(mkpath);
</span><del>-use DateTime;
</del><span class="cx"> 
</span><span class="cx"> my $base_dir = bz_locations()-&gt;{'extensionsdir'};
</span><span class="cx"> 
</span><span class="cx"> my $name = $ARGV[0] or ThrowUserError('extension_create_no_name');
</span><ins>+$name = ucfirst($name);
</ins><span class="cx"> if ($name !~ /^[A-Z]/) {
</span><span class="cx">     ThrowUserError('extension_first_letter_caps', { name =&gt; $name });
</span><span class="cx"> }
</span><span class="lines">@@ -41,16 +35,14 @@
</span><span class="cx">   || die &quot;$extension_dir already exists or cannot be created.\n&quot;;
</span><span class="cx"> 
</span><span class="cx"> my $lcname = lc($name);
</span><del>-foreach my $path (qw(lib web template/en/default/hook), 
</del><ins>+foreach my $path (qw(lib docs/en/rst web template/en/default/hook),
</ins><span class="cx">                   &quot;template/en/default/$lcname&quot;)
</span><span class="cx"> {
</span><span class="cx">     mkpath(&quot;$extension_dir/$path&quot;) || die &quot;$extension_dir/$path: $!&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-my $year = DateTime-&gt;now()-&gt;year;
-
</del><span class="cx"> my $template = Bugzilla-&gt;template;
</span><del>-my $vars = { year =&gt; $year, name =&gt; $name, path =&gt; $extension_dir };
</del><ins>+my $vars = { name =&gt; $name, path =&gt; $extension_dir };
</ins><span class="cx"> my %create_files = (
</span><span class="cx">     'config.pm.tmpl'       =&gt; 'Config.pm',
</span><span class="cx">     'extension.pm.tmpl'    =&gt; 'Extension.pm',
</span><span class="lines">@@ -58,6 +50,8 @@
</span><span class="cx">     'web-readme.txt.tmpl'  =&gt; 'web/README',
</span><span class="cx">     'hook-readme.txt.tmpl' =&gt; 'template/en/default/hook/README',
</span><span class="cx">     'name-readme.txt.tmpl' =&gt; &quot;template/en/default/$lcname/README&quot;,
</span><ins>+    'index-admin.rst.tmpl' =&gt; &quot;docs/en/rst/index-admin.rst&quot;,
+    'index-user.rst.tmpl'  =&gt; &quot;docs/en/rst/index-user.rst&quot;,
</ins><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> foreach my $template_file (keys %create_files) {
</span><span class="lines">@@ -65,12 +59,13 @@
</span><span class="cx">     my $output;
</span><span class="cx">     $template-&gt;process(&quot;extensions/$template_file&quot;, $vars, \$output)
</span><span class="cx">       or ThrowTemplateError($template-&gt;error());
</span><del>-   open(my $fh, '&gt;', &quot;$extension_dir/$target&quot;);
-   print $fh $output;
-   close($fh);
</del><ins>+    open(my $fh, '&gt;', &quot;$extension_dir/$target&quot;)
+      or die &quot;extension_dir/$target: $!&quot;;
+    print $fh $output;
+    close($fh);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-print get_text('extension_created', $vars), &quot;\n&quot;;
</del><ins>+say get_text('extension_created', $vars);
</ins><span class="cx"> 
</span><span class="cx"> __END__
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimagescsvpng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/images/csv.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/images/csv.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/images/csv.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+\x89PNG
+
++IHDR\xE0w=\xF8bKGD\xF9C\xBB        pHYs+\xD7+\xD7B(\x9BxtIME\xDE!\xCDAIDATHDž\x95Kh\U\xC7\xDF9w\xC6\xCC4i2}\xC7v\xD1\xC6F!ZŦ\x8A\xA2(\xA8\xA5\xE0B\xB7\xADh\xBBPԍ\xC5v\xA77\xA2\xC1\x85\xA0\xD8E\x91\x82\xB8\xB0TpQ\xAA\xA6&gt;ښ@
+Iӗmۦ\x99\xCC#\x99{\xCE\xE7\xE2\xDC\xD7ąfν\xE7\xDE\xFB\xFF\xFF\xBF\xFF\xF7\xB8Br\x9Cٷ\xF6\x89J\xFF\xC0\x87=\xBD\xBDی\x8D*\x92ޓ\xECo\xF9!\xF9\xBEWuq\xDCj\xD7&amp;\x9A\xB7\xE6\xF6\x8F~5{2{\xED\xEC+n\xD8z\xD7{\xA6ّN\xB3\x85\x88` \x88\xC4&amp;\xE7\xE9\xB5c\xB1`\x8C\x80I\xF7@\x8C Fh\xB6\xACNOL\xDC\xFE\xF9\xE5\xE4\xF4K\xAB\x9F\xF9Ao6r]\xB6@`\xE8&quot;ˮ\xBB\x80+\xC6DycA8\xFA\xAF'\xA3\xAB׼k\xDAbUL\xA2\x80\xECŢ\xF2B$fyda%!\xA8V\x95J\xEDP\xD4S]17\x90\!&amp;(        \x8A\x91&quot;\xF8rr2a(\x88*\x95\x95\xBD;&quot;cL\x8F\x88\xCF\xB4\xE1A1\x82\x88\xAF%UY\x90\xE6 \xB50\xF7NQcm5BIVTS\xF0\xD6$\xDEfʻ\x85\x98$:UP\xC0\xBD {B\xE2}\xB6Y\xB6\xFE\xF7\x9EdQ\x88Ʉ\x83u\xA0\xD4i \xE8\xF2\xD6v`՝oR\xDA\xF20\xEA:4\xEF\x83\xD6,\xE5\xC7\xDF \xBA\xF7ypK\xC4?D\xF4\xC8똾A\xE2_&gt;F'\x8FSz\xE1;\x8F\xED\xC7O\x9D \xE1\xA4E\xD6ҷ\xE7\xA2\xB5Cy\xC9Fe\xA2\x91g)\x8F\xBE\x98\xED\xD9U\x9Bљ        \xE8DjCh\xED\xEE\xD0kqw\xE9\xB7`\x93\x85\x94\xF2};\x89\xD6\xE1;\x8
 B4\xBF~+Z7`i;\xB8+w\xE5w܉C\x98\xF5#о[w!\xFD\x9B\xA16\xAE\x8E\xC3b+\x80\xFB\x811iGZ!\xDA\x94\xB8\xCBg\xE0\xFA9\xA41\x83\xF1+\xF4\xDAxP\xBEqv\xF4e\xF4\xD2O\xE8L\xD8c\xE5&amp;du pN\xA1^\xB2&lt;\xE7Ӧ\xA4\\xC9j\xCD!%ש\xEF\xE9\xFC\xFA)\xDEu\xB0\xF7&lt;\x87y`ܺ\x80o\xCDa*5\xA4\xB6%\x9C\xC3{EU\x93\xAC'\xAD\x91V\x88\xBF1\x99(}Y7 }\xEBa\xC5*\xCC\xF0.t\xF2z\xE1D\xC8KmU\xCD&quot;\x93\xDAf\\xFD:\xEE\x9F\xC9\xE0z!\x92\xDC\xF9\xF38~aS\xAEP\xD9\xFD%\x95\xBD\xDF`\xAB5̆\xFB)\xEF\xF9;\xF4LPzmu\xE0\xFE\xFE#\x80\xD8nz,\x80;\xB9\x86\xDA+XE Xנ}\xF4U\xE2\xE9\xF1\x8Bu|\xFD\xBAt\x9D\xBF\x88o\xDFƷo\x9F;\x8A\x9B8\x82\xF7஌g\x95ՙC=x\xAFx\x97'Y.\xBD\xF3\x90\xAC4]j\x8C\xE6\xA5k\xF2\xE9\xEF\x9DfM\xC0\xD2\xF34\xDDO\xECit\x84H\xA00\xC8\xD2N5a\xB6H&lt;\xED\xD08\xF7Y\xF7&amp;\xE4\xC9/\x91)\x85yBל\xC9\x80\xA4\xE4\xAF\x85(\x9C\x86\xF1\xE0u\x92E\x98Zd&quot;\xC5,5}KJ\xA1\xB3\xC92\xF0t\x80\xA9\a/\xB3        \xBC\xF7\xA8j^\xA6AT\xDB4\xE7\xE7O\x8B1]\xB3=\xD7\x
 DC_k\xE6wX%\xB3,\x86\xC3+&quot;\xE0\xB14\xE6\xEBgMsn\xEE\xC0¼\xE8r\xE5h\xF1\xE5d{MlH\x88\x935(\xD7&gt;\xA9\xAD\x96\xB4y\xEB\xF6[\xF6\xB3\xF1\xE6\xC5ݛt\xB1\xDC\xDB\xFFtO%|\xD8H\xC0ҊȒ\x98ַEs\xEF\xD3\xC4\x88\xDBw૑Ξ\xBF\xF8\xF6\xF6/\xAE\xC94\x9Fٻ\xEE\xD1\xCA@\xFF\xFBk\xEE\xEC̖$J\xC7\xC5\xC5JgI\xF9\xDFó\xD8^\xA8\x8F5o\xD6\x8C\x9E9\xF0/+rp1\xFF\x99\xE6IEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimagesicalpng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/images/ical.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/images/ical.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/images/ical.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+\x89PNG
+
++IHDR  szz\xF4\xB8IDATx^헱+\x830D\x9F-\xDA \xC4\x9E\x80        \x9C\x822LB\xEB\x82L\x90        \x98\xC0eG\x91\xF8E\x84\xF4#\xE4\xC8\xF9W\xFA&gt;\xBA\xE3߹\xB0+\xA5\xC0\xE4\xE0
+\xF4쑁E\xE1\x8F\xCD ?\x97\x80+7\xE0N{ķ        \xBF9m\xD1\xED&gt;\xD64\x97\xCBnlrO\x8D?:/\xBC\xE8zN\x86\xE8P\xA0\xE4\xAE\xCE\xD7G`\xA4\xC0\xCF1\xAE\xAA\x81\xEF\xA4Puv&lt;\xBB\x86)ԜU\xB0X\xAC\xD6\xEB\x80u`\\xFF+\x82 \xF4\xF2j\xA1\xB2l`\xE1\x88\xAEߞ\xC9\xC8+\xFF&lt;n\xBA\xBC\x93Z\xFE\xA9L\xB5\xA8IEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimagesrsspng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/images/rss.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/images/rss.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/images/rss.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+\x89PNG
+
++IHDR\xE0w=\xF8bKGD\xFF\xFF\xFF\xA0\xBD\xA7\x93        pHYs+\xD7+\xD7B(\x9BxtIME\xDE4\x95\x84\xFA[IDATHǭ\x94_lTEƿ33\xB7\xBB\xB7ۥ\xADKK[\xA4-\x8A\xB1\xA5\x80        \x81\x88\x86\xA8D|\x90HM\xC47\xC5\xF0B$j\xA2\xE2\x93&gt;\xF9c\xA2\x89&gt;51\xD1`*\xF2@5\xA5D\xB4\xA0Vi7(l\xDDn\xBB\xDD\xEE\x9F;3LJ\xDB\xDE\xED\xB6`\xB4q\xEE\xDC\xCC\xDC\xFB\xFB\xE6|g\xCE!L\x8F\xFE\xAE\x9AN\xB7\xB2\xEAh\xB8\xA2\xA2UH\xE5\x82@3{&lt;\xE6*\xAE[f\xA3u6\x97\x9E&lt;?5\x96:\xD0\xFEI\xE2t\xF0۹\xBDK\xD557\xBD*s\x86\xF2\xE9IbI E\xFE,\xE0Ϸz\xFE;\x84\x84\x8BtJs\xFC\xE2С\xB6c\xF1\xD7\xE9쓱m\xF5--\xDFr2\xAB=I \x82\x93 \xF93\x84Br\x94pm\xE0\xE2\x89-~Y
+\xD3\xF0\xF2\xB6\x9D\xE10\xEC\xF85\x98\x97A\x85\x89\xFF'A0\x9E\x87hԅ[Y\xFD\x8A
+G*ڼ\x89Lp\xF2\xE8\x83\xCFAV7L\xCB0\x89!x\x83\xA7\xA0/~\xBF\xFA/\xE0\xD6c\xB0\x99\x82\xBB\xA8b\xBD&quot;%\\x9A\xE5yi2        \xB2\xA6        \xB2\xA6        \xD8\xF4\xF4\x95\x93\xF0z\xDF&amp;\xAFͷ\x85\xC0\xADf\x8F!\xA4,`\x94xn\xD3        \xB0.\xDC\xE4\xC2\xA8\xD5;\xE0\xEE\xFE N{H\xCA\xB8\xD5\\xB7\xDA\xFA\xBF]=\xDC\xC1!\xE3\xCDK\xA8\x88T\xA1le\x9C5ۡ7*\\xA2gGzaz^t\xF6\xA6p\xEB12F\x82\x86_\xEA\xE00\xEB\xBC-2\x83\xB3a/T\xCB.@\xA8@\x84(|\xF9&lt;lfr\xDCx\x8C\x9CP\xBE\x80K:Fw\xBF Rl*3\xD4\xFFd \xBEh\xCDj8;\xDEE닑\xC4\xFB\x90\xED\xDE\x93\xD7%p\xAByǁ朼\xB2\xB2a\x9C\x96\x9D?\xF4&amp;\xDC=\xDDP\xAD\x8F\x81\x94$\xAF@\xF14\xF8\xC6ρ\x80X\xB6\xAA\xE3\x99yp6\xEC\xEF(\xB1enK\xA0\xF2\x9C{\xA0\xEC\xD1!\xA2u@&gt;\x85\xC2\xF1\xFD\xB0ɡ\xE0\x9B\xD0\xC6.Plu        \xDCj_@\xEE\xBFo\xE9\x91PQ`&quot;{c`\xB1\xA8 ъN\x98\xC1\x93\xB0\xE9\xCCpT\xCB\xC3 \xA9&quot;\x88\xE8d\xFB\x8FpkV\x90\xFB\xB7.=↊Q =N\\x80\xFD\xF5\xD8+'@\x91Š\xEAF_$ն»pz|\x90!\xA8\xDB\xEF\xF6O[\x8E\
 xFC/\xDFA\x8F%`g&quot;(w\xE6[4\xBBB\x91\xF9\xA6\xE70L\xFF\xFBE\xCF\xEBZ!\xD7=\xAB-\xB2\xA7?\x82͌{\xE1\xF6]\x9C+\x9E\xC9\xC1\xB8\\xD9        u\xD7n\x88\xDA;t\xDF1\x98K'\x8A\x9Eo\xE8\x8Bt&amp;\x83\xDC\xF9\xAF\x8Bk\xB7\xF0\x99o\xD14\\xB5u\xC1y\xE0(\xE4\xC6g\xA1\xF9\x88\xAD\x85\xF5\xF9\xEF\xDF{Yߪ\xF0&quot;\xA8U[a5#7\xD0Ȫ%P\xB1\xBE\x88\x9D}\x8Bf\xD9&quot;\x9B\xEF/it\xC7vX\xCD\xD0\xE3\xA3\xF0.aek\xB6\x80+#\xF9,`m\xB0\xAE\xEA\x9A\xC1\x96\x83%BI\xE3\xE2\xF1\x91Җ\x90*\xB40x\xA6x\xDA\xDAF\xBFz \x98\xF4_\xC5\xF5\xDB`-\xA6뀡\xACg\xB3$\x97Ȃ\xC1\xFE\xF8\xA0\P\xACz\xF0r纃&quot;ңq\xD8\xEC\x84\x9C
+        \xF5\xAE\xFFrB\xD3
+\x8E'\xB6v\x8A.\xEC[uze\xEB\xB2͒r\xB7\xEC\x8As+t\xE6\x9E\xCFN\xE8\x8C-ll\x81\xF2\xBAJ\xA4 \xA3\xA7\xC4T*up&quot;\xA9$\xFF7\xB8
+;U\x92s\xE3\xE5{?M+?\xB1\xDC\xE6Uy\xD5v\xA7,D\xECy \x86\x83&quot;u\x95PKB\x9C\xF8m\xF8\x85\xB6\x8F\xFF\xF8&lt;\xE8&lt;\xFD{j\xEFq\xAB*_ G*6A \x84\x85 \x8B|n2}f*\x99&gt;\xD8\xFE\xE9\xF5^\xF8\xB9Dl\xCB\xDEdIEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimagesrss_smallpng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/images/rss_small.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/images/rss_small.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/images/rss_small.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+\x89PNG
+
++IHDR\xF3\xFFagAMA\xAF\xC87\x8A\xE9tEXtSoftwareAdobe ImageReadyq\xC9e&lt;\x8EIDATx\xDAt\x93MHTQ\x86\xDFs\xEE\x9D;\xA3\x8E:\x99C\xCAD\x99i\xAD\x9C\xA4\\xF8QPD\x9BH&quot;s\xB4lj\x84DQ`\x8Bȍ-[\xE5&amp;[\x94A.\xAAEdX\x94ZQ\xC8\xE4OB\xE2Ug\xE6\xFE\x9C\xD3wν3\x92҅\xF0\xBD\xEFy\xBE\x9Fac璉\xCAd\xED\xF5\x98\xCBp0z1\xBE\xF1,\xFE\xA6` \xBE\x96\xEC\xFB\xF7\xE2+S\x89\xF1D\xC6[[7 \xCE\xF5\xC9M\x84g\x99\xE1IF\x89d]\xE6\xC7'2\xFCy\xB5E\x9A\x9E\x8FH2\x85\xF2֓\x94\xF83\xE3\xBF\xC6\xFF+\xD6\x9E\xC4ҢSa\xAB\xA4Hm
+\x87.\xA2\xF8Ȃ+\xF7\xC3\xFC\x89!0oe\x93\xD8/\x90\\xD5gD8\xE4\xCA\xF2\xAF\xC0\xFD\xF8by,Z        \xEB\xE0\x94\xF5 \xC3l\xEC\xDA$\xF6(\xA4/\xC1\xB2}i\xDDX/\x85\xB9c?\xAC\x8E\xCB`[\x9B5\x91\xFF\xEA6\xBC\xCF\xCFJbߑ\xC8Sh%\xB0v\xB5\xA2\xEA\xD2K\x94\x9F\xBE+\xDD+\xFC\x99\x86\xFB\xF8&lt;\xC4\xF4\x8860:\xAE\xA9\xF6\x92\xD8w\xAEД\x81j\x92\xC26\xB6\xA7i\xCF zv&lt;\xD9 A7\xFBS\x81\x89u\xB8\x82ǵX\x99\xEBrn\xF9\x87\xA7\xE0\x8Eނ\xB4g);\xF3\xF8 du
+\xCFo\xAE\xF7%}&amp;\xBB%\x82\xF5Qam\xF2\xEB\xBC'\xBD\xBA29\xD2\x9FU \xF7⮦(k\xEB\xD6be&quot;E\xB1\x84p\xCE\xD6\xD1;\x88\x9Co\xE8\x84\xF7f@\x93\xB0\xAAz\xF0\x9D\x9D\xC8M\x8CB\xE6m\xB0X%\x95\xB6GO#,Z\xACjWBV\xDF\xB6\xFB&lt;{\xCE\xFBG\xFA\xD6Hs\x97\xBE\xB1\xF0m,\xE8Ec+Q        X\xB8a\x84g%\xD9\xFC\x94\x9D\xD4߼\xBA^c;3\xC17\xA2q&quot;\x90\x92.\x9F\xEF? \xB7\xD4zID\xAC\x8Eb\x9C\xEFc\xA5Q\xA9\xB4N\xCE}y\x94Cf\xCEB\xCE|f\x8D6yef}u\xE9\xE5\xFFY\x92Ҩ†\xE9\x9A        [\xE8\xDA%b5q\xE4\xB8=`\xF46\xB1\xB7\xB9U\xCC6\x97u\xA8u\xA5\xF9\x92\xA8h\xE3%WA͢i\xC1\xE20\xCAM\xF8\x9A\xFE;\xFF`Q5S:\xE9\xC4\xC79IEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimagesxmlpng"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/images/xml.png (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/images/xml.png                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/images/xml.png        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+\x89PNG
+
++IHDR\xE0w=\xF8bKGD\xF9C\xBB        pHYs+\xD7+\xD7B(\x9BxtIME\xDE\xAD\x99\xF7\xBA        IDATHDž\x95\xDDke\xC6\xE7\xCCl\xB2\xBB\x89Iڤ\xDFA\x95&quot;\xC5 4-\x92\xB4T\xB0 x\xA3\xE0E\xF1Ə\xA2\xDE \xB1\xBDR+(\x82\xFF@\xC1B\xC1^&quot;\xA2\xDE(\xF8~\\xA4_H\xACEi\xADEi\x92\x98d7\xD9\xEC\xCE{\xBCx\xDFyg6^80;\xB3\xEF\xCC{\x9E\xE7&lt;\xE7&lt;g\x84p\|aDZ\xDA\xE0\xD0{\xD5\xFE\xFE        M\xD2\x82\xE4\xCF$\xFEl=\xA4XwfY\xA7\xB3\xBE\xB1\xBAv\xB5\xB9\xB4\xFC\xDA\xE4\x87\xF3\xDF\xC5m\x97^\xDEwz\xF7\x83\xBC\xADͶ\xB4\x9B\xEB\x88\xAA \x89 I\xB8\xCF\xFF+h&quot;H\xAA\x9A\xAF\x81\xA8 *4\xD7\xBBy\xF5\xE6\xE9\x83\xE7n\xBF+\xB3\xCF+?\xBE\xE7\xC0\x81\xAFl\xB1Q\xF0JJJX\xFC\xDFX\xD1H@ă7ք\xB3\xD7K\xFB\x86G\xDEҍ6340 n,3/e\xA2[3\xF3W8@\xBDn\xD4\xB7\x9DI\xAB\xF5\xBE\xC9N\xA3\x85\x88\x80 Q\xCF\xC43D\xCA\xC1\xB7\x82\x89` f\xD4\xFA\xA5\xAAZqŋ\x89QT1\xAF\xB5\xE4,\xCB\xF2\xE4\xC1]f\x98\x81&amp;I=\xC5+\xB3)i\xABA\xDBȼ\x9B\x88\x86\xEC\
 xCC\xC0\x9C\xEE2\xBF\x96&quot;틴u\xCB\xF5\xBF\xCF$f!\x89\x83\xCB\xC0Xf@N\x9C\xA1\xF6ȓl޺L\xEB\xF2\xA7\xDC\xF3\xD4\xB8V\x93\xB5\xB3O\xD33y\x82\xEA\xF4+\xB4\xBEyIz\x8E\xBE
+\xC0\xE6\xF9\xE3\xE06\xE0\xA1g\xA8L͐-\'\xFB\xF8E\x9C3\x9FN\x9EA\xF3\xDB\xE8\x9Dx\x82tt\\xC7o\xBE\xF2        \xB2\xB9\x8A\xEC\x8E\xED\x9B \x8F\xF5\xA4oVo\xFA!g\xE1\xF4*\xB6\xF4\xED\xB9/QM\xE8;\x84\xDB\\xA7={\xC1\xD7&amp;8\xE7\x90\xED\xE3\xE8\xB6\xFBp\xCEy\x80\xFA\xB0\xE4\x8A[\x82;\x8F\xAA\xB9\xFE\xFD\xB9Ȣ\xFD\xF3gHk\xC94Ϡq\xBA\xF6\xC1\xDA_~\xAD\xB6#\xC8Q\xCE@b4s\xBEϓ\xED\xA3\xF1%-
+߿\xCBo\\xFC+\xAACP\xC1\xAE\xF9\xB5\xEA0\x96\x81\xB3R\x8B:ìU\xF0\x9DP\x9B&gt;\xE9\xA5\xC8:T\xEE?\x82\xECڏ\xF4\xA3i\x8F߻0\x87j\x82j\x82\xCD\xCF\x99E\xCBk\xD0\xF1^\xF0\xE9\xF8\xA3\xA4{Ƶds\x9FP9|\xDCS\xE4\x82\xB8;\xE1\xBE6\xE2\xE5\xC8;f\xE7~f~\xA2g\xFA%\xDFD2\xE8\x9D\xF2\xEC\xB3߿\xA6\xF3\xEBy\xEC\xE9\xD8\xD1P\xE0 [\xF8%f\xE8\xEE^ g\xC4km\xDDC&lt;7\x80\xFC\xF9\xE6a\xD0.\x87\xAAZ0Si\xBEF\x80+:\xC5\xC5{\xC3e\xA5\xF5 O\xA3-\xA4\xA5A\x96;U\xFDl\x91r\xF0ܡ!p\xEE\xA2{-\xB6\xAC\xB9\xC2.\xA9V\xFC&lt;\xA1k\xCEt\xF9\xC9\xCB8+e\x91\x99ΰLb\x86.jj\xE8fӭK\xC5{!~H\xB6\xCF\x989 +\xADE\x99\xBCͬhSOjC\x9B++\xB3\xA2\xDA5ۋb\xFA\xBA\x8EE\xBD\xFDU\xA2d\xD0 g\x88\x80#\xA1\xB1\xB2zI\x9B\xCB˧\xD6VĶ2\xF7\xB6\xEF\xCE\xC09 2\xE0|\xEE/\xB8pX\xBDbͥf\x92\xB3W\x9A\xB7\x9E\xB5VO\xFF\xE0\xF1j\xCDآ#CG\xC4&quot;\x9Aa\x85\xF6ya:\xBD\xB8zj\xF37n\xBD~\xF0\xFC\xDFE\xCE\x9F\xDF9U|gd\xEF\xE0\x91\xA4&quot;iθ\xD36\xB2\x8E\xD1\xDE4\xFE\xF7p\xB46\xD6Vh.\xA
 E\x9E\x9A\xBCp\xE7G\x80\xA2tK\xEAz֍IEND\xAEB`\x82
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgimportxmlpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/importxml.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/importxml.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/importxml.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,18 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Gregary Hendricks &lt;ghendricks@novell.com&gt;
-#                 Vance Baarda &lt;vrb@novell.com&gt;
-#                 Guzman Braso &lt;gbn@hqso.net&gt;
-#                 Erik Purins &lt;epurins@day1studios.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This script reads in xml bug data from standard input and inserts
</span><span class="cx"> # a new bug into bugzilla. Everything before the beginning &lt;?xml line
</span><span class="cx"> # is removed so you can pipe in email messages.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> #####################################################################
</span><span class="cx"> #
</span><span class="lines">@@ -72,6 +55,7 @@
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Object;
</span><span class="cx"> use Bugzilla::Bug;
</span><ins>+use Bugzilla::Attachment;
</ins><span class="cx"> use Bugzilla::Product;
</span><span class="cx"> use Bugzilla::Version;
</span><span class="cx"> use Bugzilla::Component;
</span><span class="lines">@@ -96,7 +80,9 @@
</span><span class="cx"> my $mail  = '';
</span><span class="cx"> my $attach_path = '';
</span><span class="cx"> my $help  = 0;
</span><del>-my ($default_product_name, $default_component_name);
</del><ins>+my $bug_page = 'show_bug.cgi?id=';
+my $default_product_name = '';
+my $default_component_name = '';
</ins><span class="cx"> 
</span><span class="cx"> my $result = GetOptions(
</span><span class="cx">     &quot;verbose|debug+&quot; =&gt; \$debug,
</span><span class="lines">@@ -103,6 +89,7 @@
</span><span class="cx">     &quot;mail|sendmail!&quot; =&gt; \$mail,
</span><span class="cx">     &quot;attach_path=s&quot;  =&gt; \$attach_path,
</span><span class="cx">     &quot;help|?&quot;         =&gt; \$help,
</span><ins>+    &quot;bug_page=s&quot;     =&gt; \$bug_page,
</ins><span class="cx">     &quot;product=s&quot;      =&gt; \$default_product_name,
</span><span class="cx">     &quot;component=s&quot;    =&gt; \$default_component_name,
</span><span class="cx"> );
</span><span class="lines">@@ -121,9 +108,6 @@
</span><span class="cx"> my $params = Bugzilla-&gt;params;
</span><span class="cx"> my ($timestamp) = $dbh-&gt;selectrow_array(&quot;SELECT NOW()&quot;);
</span><span class="cx"> 
</span><del>-$default_product_name = '' if !defined $default_product_name;
-$default_component_name = '' if !defined $default_component_name;
-
</del><span class="cx"> ###############################################################################
</span><span class="cx"> # Helper sub routines                                                         #
</span><span class="cx"> ###############################################################################
</span><span class="lines">@@ -423,6 +407,8 @@
</span><span class="cx">     my $exporter_login   = $root-&gt;{'att'}-&gt;{'exporter'};
</span><span class="cx">     my $exporter         = new Bugzilla::User({ name =&gt; $exporter_login });
</span><span class="cx">     my $urlbase          = $root-&gt;{'att'}-&gt;{'urlbase'};
</span><ins>+    my $url              = $urlbase . $bug_page;
+    trick_taint($url);
</ins><span class="cx"> 
</span><span class="cx">     # We will store output information in this variable.
</span><span class="cx">     my $log = &quot;&quot;;
</span><span class="lines">@@ -523,7 +509,6 @@
</span><span class="cx">         # Same goes for bug #'s Since we don't know if the referenced bug
</span><span class="cx">         # is also being moved, lets make sure they know it means a different
</span><span class="cx">         # bugzilla.
</span><del>-        my $url = $urlbase . &quot;show_bug.cgi?id=&quot;;
</del><span class="cx">         $data =~ s/([Bb]ugs?\s*\#?\s*(\d+))/$url$2/g;
</span><span class="cx"> 
</span><span class="cx">         # Keep the original commenter if possible, else we will fall back
</span><span class="lines">@@ -544,7 +529,7 @@
</span><span class="cx">     $comments .= format_time(scalar localtime(time()), '%Y-%m-%d %R %Z') . &quot; &quot;;
</span><span class="cx">     $comments .= &quot; ---\n\n&quot;;
</span><span class="cx">     $comments .= &quot;This bug was previously known as _bug_ $bug_fields{'bug_id'} at &quot;;
</span><del>-    $comments .= $urlbase . &quot;show_bug.cgi?id=&quot; . $bug_fields{'bug_id'} . &quot;\n&quot;;
</del><ins>+    $comments .= $url . $bug_fields{'bug_id'} . &quot;\n&quot;;
</ins><span class="cx">     if ( defined $bug_fields{'dependson'} ) {
</span><span class="cx">         $comments .= &quot;This bug depended on bug(s) &quot; .
</span><span class="cx">                      join(' ', _to_array($bug_fields{'dependson'})) . &quot;.\n&quot;;
</span><span class="lines">@@ -845,8 +830,10 @@
</span><span class="cx">             push( @values, $qa_contact );
</span><span class="cx">         }
</span><span class="cx">         else {
</span><del>-            push( @values, $component-&gt;default_qa_contact-&gt;id || undef );
-            if ($component-&gt;default_qa_contact-&gt;id){
</del><ins>+            push(@values, $component-&gt;default_qa_contact ?
+                          $component-&gt;default_qa_contact-&gt;id : undef);
+
+            if ($component-&gt;default_qa_contact) {
</ins><span class="cx">                 $err .= &quot;Setting qa contact to the default for this product.\n&quot;;
</span><span class="cx">                 $err .= &quot;   This bug either had no qa contact or an invalid one.\n&quot;;
</span><span class="cx">             }
</span><span class="lines">@@ -860,7 +847,6 @@
</span><span class="cx">     my $valid_status = check_field('bug_status',  
</span><span class="cx">                                   scalar $bug_fields{'bug_status'}, 
</span><span class="cx">                                   undef, ERR_LEVEL );
</span><del>-    my $is_open = is_open_state($bug_fields{'bug_status'}); 
</del><span class="cx">     my $status = $bug_fields{'bug_status'} || undef;
</span><span class="cx">     my $resolution = $bug_fields{'resolution'} || undef;
</span><span class="cx">     
</span><span class="lines">@@ -910,7 +896,7 @@
</span><span class="cx"> 
</span><span class="cx">     if ($status) {
</span><span class="cx">         if($valid_status){
</span><del>-            if($is_open){
</del><ins>+            if (is_open_state($status)) {
</ins><span class="cx">                 if ($resolution) {
</span><span class="cx">                     $err .= &quot;Resolution set on an open status.\n&quot;;
</span><span class="cx">                     $err .= &quot;   Dropping resolution $resolution\n&quot;;
</span><span class="lines">@@ -944,7 +930,7 @@
</span><span class="cx">                     }
</span><span class="cx">                 }
</span><span class="cx">             }
</span><del>-            else{ # $is_open is false
</del><ins>+            else {
</ins><span class="cx">                if (!$resolution) {
</span><span class="cx">                    $err .= &quot;Missing Resolution. Setting status to &quot;;
</span><span class="cx">                    if($everconfirmed){
</span><span class="lines">@@ -1039,6 +1025,15 @@
</span><span class="cx">                 push(@query, $custom_field);
</span><span class="cx">                 push(@values, $value);
</span><span class="cx">             }
</span><ins>+        } elsif ($field-&gt;type == FIELD_TYPE_DATE) {
+            eval { $value = Bugzilla::Bug-&gt;_check_date_field($value); };
+            if ($@) {
+                $err .= &quot;Skipping illegal value \&quot;$value\&quot; in $custom_field.\n&quot; ;
+            }
+            else {
+                push(@query, $custom_field);
+                push(@values, $value);
+            }
</ins><span class="cx">         } else {
</span><span class="cx">             $err .= &quot;Type of custom field $custom_field is an unhandled FIELD_TYPE: &quot; .
</span><span class="cx">                     $field-&gt;type . &quot;\n&quot;;
</span><span class="lines">@@ -1060,6 +1055,7 @@
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;do( $query, undef, @values );
</span><span class="cx">     my $id = $dbh-&gt;bz_last_key( 'bugs', 'bug_id' );
</span><ins>+    my $bug_obj = Bugzilla::Bug-&gt;new($id);
</ins><span class="cx"> 
</span><span class="cx">     # We are almost certain to get some uninitialized warnings
</span><span class="cx">     # Since this is just for debugging the query, let's shut them up
</span><span class="lines">@@ -1142,34 +1138,44 @@
</span><span class="cx">             $err .= &quot;No attachment ID specified, dropping attachment\n&quot;;
</span><span class="cx">             next;
</span><span class="cx">         }
</span><del>-        if (!$exporter-&gt;is_insider &amp;&amp; $att-&gt;{'isprivate'}) {
-            $err .= &quot;Exporter not in insidergroup and attachment marked private.\n&quot;;
</del><ins>+
+        my $attacher;
+        if ($att-&gt;{'attacher'}) {
+            $attacher = Bugzilla::User-&gt;new({name =&gt; $att-&gt;{'attacher'}, cache =&gt; 1});
+        }
+        my $new_attacher = $attacher || $exporter;
+
+        if ($att-&gt;{'isprivate'} &amp;&amp; !$new_attacher-&gt;is_insider) {
+            my $who = $new_attacher-&gt;login;
+            $err .= &quot;$who not in insidergroup and attachment marked private.\n&quot;;
</ins><span class="cx">             $err .= &quot;   Marking attachment public\n&quot;;
</span><span class="cx">             $att-&gt;{'isprivate'} = 0;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        my $attacher_id = $att-&gt;{'attacher'} ? login_to_id($att-&gt;{'attacher'}) : undef;
</del><ins>+        # We log in the user so that the attachment creator is set correctly.
+        Bugzilla-&gt;set_user($new_attacher);
</ins><span class="cx"> 
</span><del>-        $dbh-&gt;do(&quot;INSERT INTO attachments 
-                 (bug_id, creation_ts, modification_time, filename, description,
-                 mimetype, ispatch, isprivate, isobsolete, submitter_id) 
-                 VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)&quot;,
-            undef, $id, $att-&gt;{'date'}, $att-&gt;{'date'}, $att-&gt;{'filename'},
-            $att-&gt;{'desc'}, $att-&gt;{'ctype'}, $att-&gt;{'ispatch'},
-            $att-&gt;{'isprivate'}, $att-&gt;{'isobsolete'}, $attacher_id || $exporterid);
-        my $att_id   = $dbh-&gt;bz_last_key( 'attachments', 'attach_id' );
-        my $att_data = $att-&gt;{'data'};
-        my $sth = $dbh-&gt;prepare(&quot;INSERT INTO attach_data (id, thedata) 
-                                 VALUES ($att_id, ?)&quot; );
-        trick_taint($att_data);
-        $sth-&gt;bind_param( 1, $att_data, $dbh-&gt;BLOB_TYPE );
-        $sth-&gt;execute();
</del><ins>+        my $attachment = Bugzilla::Attachment-&gt;create(
+            { bug           =&gt; $bug_obj,
+              creation_ts   =&gt; $att-&gt;{date},
+              data          =&gt; $att-&gt;{data},
+              description   =&gt; $att-&gt;{desc},
+              filename      =&gt; $att-&gt;{filename},
+              ispatch       =&gt; $att-&gt;{ispatch},
+              isprivate     =&gt; $att-&gt;{isprivate},
+              isobsolete    =&gt; $att-&gt;{isobsolete},
+              mimetype      =&gt; $att-&gt;{ctype},
+            });
+        my $att_id = $attachment-&gt;id;
</ins><span class="cx"> 
</span><ins>+        # We log out the attacher as the remaining steps are not on his behalf.
+        Bugzilla-&gt;logout_request;
+
</ins><span class="cx">         $comments .= &quot;Imported an attachment (id=$att_id)\n&quot;;
</span><del>-        if (!$attacher_id) {
</del><ins>+        if (!$attacher) {
</ins><span class="cx">             if ($att-&gt;{'attacher'}) {
</span><span class="cx">                 $err .= &quot;The original submitter of attachment $att_id was\n   &quot;;
</span><del>-                $err .= $att-&gt;{'attacher'} . &quot;, but he doesn't have an account here.\n&quot;;
</del><ins>+                $err .= $att-&gt;{'attacher'} . &quot;, but they don't have an account here.\n&quot;;
</ins><span class="cx">             }
</span><span class="cx">             else {
</span><span class="cx">                 $err .= &quot;The original submitter of attachment $att_id is unknown.\n&quot;;
</span><span class="lines">@@ -1208,7 +1214,7 @@
</span><span class="cx">                               $c-&gt;{isprivate}, $c-&gt;{thetext}, 0);
</span><span class="cx">     }
</span><span class="cx">     $sth_comment-&gt;execute($id, $exporterid, $timestamp, 0, $comments, $worktime);
</span><del>-    Bugzilla::Bug-&gt;new($id)-&gt;_sync_fulltext('new_bug');
</del><ins>+    Bugzilla::Bug-&gt;new($id)-&gt;_sync_fulltext( new_bug =&gt; 1);
</ins><span class="cx"> 
</span><span class="cx">     # Add this bug to each group of which its product is a member.
</span><span class="cx">     my $sth_group = $dbh-&gt;prepare(&quot;INSERT INTO bug_group_map (bug_id, group_id) 
</span><span class="lines">@@ -1220,7 +1226,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    $log .= &quot;Bug ${urlbase}show_bug.cgi?id=$bug_fields{'bug_id'} &quot;;
</del><ins>+    $log .= &quot;Bug ${url}$bug_fields{'bug_id'} &quot;;
</ins><span class="cx">     $log .= &quot;imported as bug $id.\n&quot;;
</span><span class="cx">     $log .= $params-&gt;{&quot;urlbase&quot;} . &quot;show_bug.cgi?id=$id\n\n&quot;;
</span><span class="cx">     if ($err) {
</span><span class="lines">@@ -1269,6 +1275,9 @@
</span><span class="cx">     },
</span><span class="cx">     start_tag_handlers =&gt; { bugzilla =&gt; \&amp;init }
</span><span class="cx"> );
</span><ins>+# Prevent DoS using the billion laughs attack.
+$twig-&gt;{NoExpand} = 1;
+
</ins><span class="cx"> $twig-&gt;parse($xml);
</span><span class="cx"> my $root       = $twig-&gt;root;
</span><span class="cx"> my $maintainer = $root-&gt;{'att'}-&gt;{'maintainer'};
</span><span class="lines">@@ -1314,6 +1323,13 @@
</span><span class="cx"> The path to the attachment files. (Required if encoding=&quot;filename&quot;
</span><span class="cx"> is used for attachments.)
</span><span class="cx"> 
</span><ins>+=item B&lt;--bug_page&gt;
+
+The page that links to the bug on top of urlbase. Its default value
+is &quot;show_bug.cgi?id=&quot;, which is what Bugzilla installations use.
+You only need to pass this argument if you are importing bugs from
+another bug tracking system.
+
</ins><span class="cx"> =item B&lt;--product=name&gt;
</span><span class="cx"> 
</span><span class="cx"> The product to put the bug in if the product specified in the
</span><span class="lines">@@ -1348,4 +1364,3 @@
</span><span class="cx">      importxml.pl [options] bugsfile.xml
</span><span class="cx"> 
</span><span class="cx"> =cut
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgindexcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/index.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/index.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/index.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-###############################################################################
-# Script Initialization
-###############################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><del>-# Include the Bugzilla CGI and general utility library.
</del><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -52,10 +33,6 @@
</span><span class="cx">     $cgi-&gt;delete('logout');
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-###############################################################################
-# Main Body Execution
-###############################################################################
-
</del><span class="cx"> # Return the appropriate HTTP response headers.
</span><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> 
</span><span class="lines">@@ -70,6 +47,19 @@
</span><span class="cx">     $vars-&gt;{'release'} = Bugzilla::Update::get_notifications();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if ($user-&gt;id) {
+    my $dbh = Bugzilla-&gt;dbh;
+    $vars-&gt;{assignee_count} =
+      $dbh-&gt;selectrow_array(&quot;SELECT COUNT(*) FROM bugs WHERE assigned_to = ?
+                             AND resolution = ''&quot;, undef, $user-&gt;id);
+    $vars-&gt;{reporter_count} =
+      $dbh-&gt;selectrow_array(&quot;SELECT COUNT(*) FROM bugs WHERE reporter = ?
+                             AND resolution = ''&quot;, undef, $user-&gt;id);
+    $vars-&gt;{requestee_count} =
+      $dbh-&gt;selectrow_array('SELECT COUNT(DISTINCT bug_id) FROM flags
+                             WHERE requestee_id = ?', undef, $user-&gt;id);
+}
+
</ins><span class="cx"> # Generate and return the UI (HTML page) from the appropriate template.
</span><span class="cx"> $template-&gt;process(&quot;index.html.tmpl&quot;, $vars)
</span><span class="cx">   || ThrowTemplateError($template-&gt;error());
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorginstallmodulepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/install-module.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/install-module.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/install-module.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,12 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved are Copyright (C) 2007
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span><span class="lines">@@ -35,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Install::Requirements;
</span><del>-use Bugzilla::Install::Util qw(bin_loc init_console vers_cmp);
</del><ins>+use Bugzilla::Install::Util qw(bin_loc init_console);
</ins><span class="cx"> 
</span><span class="cx"> use Data::Dumper;
</span><span class="cx"> use Getopt::Long;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjobqueuepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/jobqueue.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/jobqueue.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/jobqueue.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,14 @@
</span><span class="cx"> #!/usr/bin/perl
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Mozilla Corporation.
-# Portions created by the Initial Developer are Copyright (C) 2008
-# Mozilla Corporation. All Rights Reserved.
-#
-# Contributor(s): 
-#   Mark Smith &lt;mark@mozilla.com&gt;
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use Cwd qw(abs_path);
</span><span class="cx"> use File::Basename;
</span><span class="lines">@@ -59,7 +46,8 @@
</span><span class="cx">    restart   Stops a running jobqueue if one is running, and then
</span><span class="cx">              starts a new one.
</span><span class="cx">    once      Checks the job queue once, executes the first item found (if
</span><del>-             any) and then exits
</del><ins>+             any, up to a limit of 1000 items) and then exits
+   onepass   Checks the job queue, executes all items found, and then exits
</ins><span class="cx">    check     Report the current status of the daemon.
</span><span class="cx">    install   On some *nix systems, this automatically installs and
</span><span class="cx">              configures jobqueue.pl as a system service so that it will
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsTUIjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/TUI.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/TUI.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/TUI.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- * 
- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- * 
- * The Original Code is the Bugzilla Bug Tracking System.
- * 
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All
- * Rights Reserved.
- * 
- * Contributor(s): Dennis Melentyev &lt;dennis.melentyev@infopulse.com.ua&gt;
- *                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /* This file provides JavaScript functions to be included when one wishes
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsattachmentjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/attachment.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/attachment.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/attachment.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
- *                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
- *                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
- *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
- *                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> function validateAttachmentForm(theform) {
</span><span class="lines">@@ -40,13 +24,12 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function setContentTypeDisabledState(form)
-{
</del><ins>+function setContentTypeDisabledState(form) {
</ins><span class="cx">     var isdisabled = false;
</span><span class="cx">     if (form.ispatch.checked)
</span><span class="cx">         isdisabled = true;
</span><span class="cx"> 
</span><del>-    for (var i=0 ; i&lt;form.contenttypemethod.length ; i++)
</del><ins>+    for (var i = 0; i &lt; form.contenttypemethod.length; i++)
</ins><span class="cx">         form.contenttypemethod[i].disabled = isdisabled;
</span><span class="cx"> 
</span><span class="cx">     form.contenttypeselection.disabled = isdisabled;
</span><span class="lines">@@ -79,9 +62,8 @@
</span><span class="cx"> 
</span><span class="cx"> function TextFieldHandler() {
</span><span class="cx">     var field_text = document.getElementById(&quot;attach_text&quot;);
</span><del>-    var greyfields = new Array(&quot;data&quot;, &quot;ispatch&quot;, &quot;autodetect&quot;,
-                               &quot;list&quot;, &quot;manual&quot;, &quot;contenttypeselection&quot;,
-                               &quot;contenttypeentry&quot;);
</del><ins>+    var greyfields = new Array(&quot;data&quot;, &quot;autodetect&quot;, &quot;list&quot;, &quot;manual&quot;,
+                               &quot;contenttypeselection&quot;, &quot;contenttypeentry&quot;);
</ins><span class="cx">     var i, thisfield;
</span><span class="cx">     if (field_text.value.match(/^\s*$/)) {
</span><span class="cx">         for (i = 0; i &lt; greyfields.length; i++) {
</span><span class="lines">@@ -297,11 +279,6 @@
</span><span class="cx"> 
</span><span class="cx"> function switchToMode(mode, patchviewerinstalled)
</span><span class="cx"> {
</span><del>-    if (mode == current_mode) {
-      alert('switched to same mode!  This should not happen.');
-      return;
-    }
-
</del><span class="cx">     // Switch out of current mode
</span><span class="cx">     if (current_mode == 'edit') {
</span><span class="cx">       hideElementById('editFrame');
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsbugjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/bug.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/bug.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/bug.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Everything Solved, Inc.
- * Portions created by Everything Solved are Copyright (C) 2010 Everything
- * Solved, Inc. All Rights Reserved.
- *
- * Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /* This library assumes that the needed YUI libraries have been loaded 
</span><span class="lines">@@ -33,6 +22,7 @@
</span><span class="cx">             method : &quot;Bug.possible_duplicates&quot;,
</span><span class="cx">             id : YAHOO.bugzilla.dupTable.counter,
</span><span class="cx">             params : {
</span><ins>+                Bugzilla_api_token: BUGZILLA.api_token,
</ins><span class="cx">                 product : product_name,
</span><span class="cx">                 summary : summary_field.value,
</span><span class="cx">                 limit : 7,
</span><span class="lines">@@ -129,3 +119,125 @@
</span><span class="cx">                             [dt, data.product_name]);
</span><span class="cx">     }
</span><span class="cx"> };
</span><ins>+
+function set_assign_to(use_qa_contact) {
+    // Based on the selected component, fill the &quot;Assign To:&quot; field
+    // with the default component owner, and the &quot;QA Contact:&quot; field
+    // with the default QA Contact. It also selectively enables flags.
+    var form = document.Create;
+    var assigned_to = form.assigned_to.value;
+
+    if (use_qa_contact) {
+        var qa_contact = form.qa_contact.value;
+    }
+
+    var index = -1;
+    if (form.component.type == 'select-one') {
+        index = form.component.selectedIndex;
+    } else if (form.component.type == 'hidden') {
+        // Assume there is only one component in the list
+        index = 0;
+    }
+    if (index != -1) {
+        var owner = initialowners[index];
+        var component = components[index];
+        if (assigned_to == last_initialowner
+            || assigned_to == owner
+            || assigned_to == '') {
+            form.assigned_to.value = owner;
+            last_initialowner = owner;
+        }
+
+        document.getElementById('initial_cc').innerHTML = initialccs[index];
+        document.getElementById('comp_desc').innerHTML = comp_desc[index];
+
+        if (use_qa_contact) {
+            var contact = initialqacontacts[index];
+            if (qa_contact == last_initialqacontact
+                || qa_contact == contact
+                || qa_contact == '') {
+                  form.qa_contact.value = contact;
+                  last_initialqacontact = contact;
+            }
+        }
+
+        // We show or hide the available flags depending on the selected component.
+        var flag_rows = YAHOO.util.Dom.getElementsByClassName('bz_flag_type', 'tbody');
+        for (var i = 0; i &lt; flag_rows.length; i++) {
+            // Each flag table row should have one flag form select element
+            // We get the flag type id from the id attribute of the select.
+            var flag_select = YAHOO.util.Dom.getElementsByClassName('flag_select', 
+                                                                    'select', 
+                                                                    flag_rows[i])[0];
+            var type_id = flag_select.id.split('-')[1];
+            var can_set = flag_select.options.length &gt; 1 ? 1 : 0;
+            var show = 0;
+            // Loop through the allowed flag ids for the selected component
+            // and if we match, then show the row, otherwise hide the row.
+            for (var j = 0; j &lt; flags[index].length; j++) {
+                if (flags[index][j] == type_id) {
+                    show = 1;
+                    break;
+                }
+            }
+            if (show &amp;&amp; can_set) {
+                flag_select.disabled = false;
+                YAHOO.util.Dom.removeClass(flag_rows[i], 'bz_default_hidden');
+            } else {
+                flag_select.disabled = true;
+                YAHOO.util.Dom.addClass(flag_rows[i], 'bz_default_hidden');
+            }
+        }
+    }
+}
+
+(function(){
+    'use strict';
+    var JSON = YAHOO.lang.JSON;
+
+    YAHOO.bugzilla.bugUserLastVisit = {
+        update: function(bug_id) {
+            var args = JSON.stringify({
+                version: &quot;1.1&quot;,
+                method: 'BugUserLastVisit.update',
+                params: {
+                    Bugzilla_api_token: BUGZILLA.api_token,
+                    ids: bug_id
+                }
+            });
+            var callbacks = {
+                failure: function(res) {
+                    if (console)
+                        console.log(&quot;failed to update last visited: &quot;
+                            + res.responseText);
+                }
+            };
+
+            YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+            YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi', callbacks,
+                args)
+        },
+
+        get: function(done) {
+            var args = JSON.stringify({
+                version: &quot;1.1&quot;,
+                method: 'BugUserLastVisit.get',
+                params: {
+                    Bugzilla_api_token: BUGZILLA.api_token
+                }
+            });
+            var callbacks = {
+                success: function(res) { done(JSON.parse(res.responseText)) },
+                failure: function(res) {
+                    if (console)
+                        console.log(&quot;failed to get last visited: &quot;
+                                + res.responseText);
+                }
+            };
+
+            YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+            YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi', callbacks,
+                    args)
+        }
+    };
+})();
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjschangecolumnsjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/change-columns.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/change-columns.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/change-columns.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,10 @@
</span><del>-/*# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Pascal Held.
-  #
-  # Contributor(s): Pascal Held &lt;paheld@gmail.com&gt;
-  #
-*/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> function initChangeColumns() {
</span><span class="cx">     window.onunload = unload;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjscommenttaggingjs"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/js/comment-tagging.js (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/comment-tagging.js                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/js/comment-tagging.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,387 @@
</span><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0. */
+
+var Dom = YAHOO.util.Dom;
+
+YAHOO.bugzilla.commentTagging = {
+    ctag_div  : false,
+    ctag_add  : false,
+    counter   : 0,
+    min_len   : 3,
+    max_len   : 24,
+    tags_by_no: {},
+    nos_by_tag: {},
+    current_id: 0,
+    current_no: -1,
+    can_edit  : false,
+    pending   : {},
+
+    label        : '',
+    min_len_error: '',
+    max_len_error: '',
+
+    init : function(can_edit) {
+        this.can_edit = can_edit;
+        this.ctag_div = Dom.get('bz_ctag_div');
+        this.ctag_add = Dom.get('bz_ctag_add');
+        YAHOO.util.Event.on(this.ctag_add, 'keypress', this.onKeyPress);
+        YAHOO.util.Event.onDOMReady(function() {
+            YAHOO.bugzilla.commentTagging.updateCollapseControls();
+        });
+        if (!can_edit) return;
+
+        var ds = new YAHOO.util.XHRDataSource(&quot;jsonrpc.cgi&quot;);
+        ds.connTimeout = 30000;
+        ds.connMethodPost = true;
+        ds.connXhrMode = &quot;cancelStaleRequests&quot;;
+        ds.maxCacheEntries = 5;
+        ds.responseSchema = {
+            metaFields : { error: &quot;error&quot;, jsonRpcId: &quot;id&quot;},
+            resultsList : &quot;result&quot;
+        };
+
+        var ac = new YAHOO.widget.AutoComplete('bz_ctag_add', 'bz_ctag_autocomp', ds);
+        ac.maxResultsDisplayed = 7;
+        ac.generateRequest = function(query) {
+            query = YAHOO.lang.trim(query);
+            YAHOO.bugzilla.commentTagging.last_query = query;
+            YAHOO.bugzilla.commentTagging.counter = YAHOO.bugzilla.commentTagging.counter + 1;
+            YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+            return YAHOO.lang.JSON.stringify({
+                version: &quot;1.1&quot;,
+                method : &quot;Bug.search_comment_tags&quot;,
+                id : YAHOO.bugzilla.commentTagging.counter,
+                params : {
+                    Bugzilla_api_token: BUGZILLA.api_token,
+                    query : query,
+                    limit : 10
+                }
+            });
+        };
+        ac.minQueryLength = this.min_len;
+        ac.autoHighlight = false;
+        ac.typeAhead = true;
+        ac.queryDelay = 0.5;
+        ac.dataReturnEvent.subscribe(function(type, args) {
+            args[0].autoHighlight = args[2].length == 1;
+        });
+    },
+
+    toggle : function(comment_id, comment_no) {
+        if (!this.ctag_div) return;
+        var tags_container = Dom.get('ct_' + comment_no);
+
+        if (this.current_id == comment_id) {
+            // hide
+            this.current_id = 0;
+            this.current_no = -1;
+            Dom.addClass(this.ctag_div, 'bz_default_hidden');
+            this.hideError();
+            window.focus();
+
+        } else {
+            // show or move
+            this.rpcRefresh(comment_id, comment_no);
+            this.current_id = comment_id;
+            this.current_no = comment_no;
+            this.ctag_add.value = '';
+            tags_container.parentNode.insertBefore(this.ctag_div, tags_container);
+            Dom.removeClass(this.ctag_div, 'bz_default_hidden');
+            Dom.removeClass(tags_container, 'bz_default_hidden');
+            var comment = Dom.get('comment_text_' + comment_no);
+            if (Dom.hasClass(comment, 'collapsed')) {
+                var link = Dom.get('comment_link_' + comment_no);
+                expand_comment(link, comment, comment_no);
+            }
+            window.setTimeout(function() {
+                YAHOO.bugzilla.commentTagging.ctag_add.focus();
+            }, 50);
+        }
+    },
+
+    hideInput : function() {
+        if (this.current_id != 0) {
+            this.toggle(this.current_id, this.current_no);
+        }
+        this.hideError();
+    },
+
+    showError : function(comment_id, comment_no, error) {
+        var bz_ctag_error = Dom.get('bz_ctag_error');
+        var tags_container = Dom.get('ct_' + comment_no);
+        tags_container.parentNode.appendChild(bz_ctag_error, tags_container);
+        Dom.get('bz_ctag_error_msg').innerHTML = YAHOO.lang.escapeHTML(error);
+        Dom.removeClass(bz_ctag_error, 'bz_default_hidden');
+    },
+
+    hideError : function() {
+        Dom.addClass('bz_ctag_error', 'bz_default_hidden');
+    },
+
+    onKeyPress : function(evt) {
+        evt = evt || window.event;
+        var charCode = evt.charCode || evt.keyCode;
+        if (evt.keyCode == 27) {
+            // escape
+            YAHOO.bugzilla.commentTagging.hideInput();
+            YAHOO.util.Event.stopEvent(evt);
+
+        } else if (evt.keyCode == 13) {
+            // return
+            YAHOO.util.Event.stopEvent(evt);
+            var tags = YAHOO.bugzilla.commentTagging.ctag_add.value.split(/[ ,]/);
+            var comment_id = YAHOO.bugzilla.commentTagging.current_id;
+            var comment_no = YAHOO.bugzilla.commentTagging.current_no;
+            YAHOO.bugzilla.commentTagging.hideInput();
+            try {
+                YAHOO.bugzilla.commentTagging.add(comment_id, comment_no, tags);
+            } catch(e) {
+                YAHOO.bugzilla.commentTagging.showError(comment_id, comment_no, e.message);
+            }
+        }
+    },
+
+    showTags : function(comment_id, comment_no, tags) {
+        // remove existing tags
+        var tags_container = Dom.get('ct_' + comment_no);
+        while (tags_container.hasChildNodes()) {
+            tags_container.removeChild(tags_container.lastChild);
+        }
+        // add tags
+        if (tags != '') {
+            if (typeof(tags) == 'string') {
+                tags = tags.split(',');
+            }
+            for (var i = 0, l = tags.length; i &lt; l; i++) {
+                tags_container.appendChild(this.buildTagHtml(comment_id, comment_no, tags[i]));
+            }
+        }
+        // update tracking array
+        this.tags_by_no['c' + comment_no] = tags;
+        this.updateCollapseControls();
+    },
+
+    updateCollapseControls : function() {
+        var container = Dom.get('comment_tags_collapse_expand_container');
+        if (!container) return;
+        // build list of tags
+        this.nos_by_tag = {};
+        for (var id in this.tags_by_no) {
+            if (this.tags_by_no.hasOwnProperty(id)) {
+                for (var i = 0, l = this.tags_by_no[id].length; i &lt; l; i++) {
+                    var tag = this.tags_by_no[id][i].toLowerCase();
+                    if (!this.nos_by_tag.hasOwnProperty(tag)) {
+                        this.nos_by_tag[tag] = [];
+                    }
+                    this.nos_by_tag[tag].push(id);
+                }
+            }
+        }
+        var tags = [];
+        for (var tag in this.nos_by_tag) {
+            if (this.nos_by_tag.hasOwnProperty(tag)) {
+                tags.push(tag);
+            }
+        }
+        tags.sort();
+        if (tags.length) {
+            var div = document.createElement('div');
+            div.appendChild(document.createTextNode(this.label));
+            var ul = document.createElement('ul');
+            ul.id = 'comment_tags_collapse_expand';
+            div.appendChild(ul);
+            for (var i = 0, l = tags.length; i &lt; l; i++) {
+                var tag = tags[i];
+                var li = document.createElement('li');
+                ul.appendChild(li);
+                var a = document.createElement('a');
+                li.appendChild(a);
+                Dom.setAttribute(a, 'href', '#');
+                YAHOO.util.Event.addListener(a, 'click', function(evt, tag) {
+                    YAHOO.bugzilla.commentTagging.toggleCollapse(tag);
+                    YAHOO.util.Event.stopEvent(evt);
+                }, tag);
+                li.appendChild(document.createTextNode(' (' + this.nos_by_tag[tag].length + ')'));
+                a.innerHTML = YAHOO.lang.escapeHTML(tag);
+            }
+            while (container.hasChildNodes()) {
+                container.removeChild(container.lastChild);
+            }
+            container.appendChild(div);
+        } else {
+            while (container.hasChildNodes()) {
+                container.removeChild(container.lastChild);
+            }
+        }
+    },
+
+    toggleCollapse : function(tag) {
+        var nos = this.nos_by_tag[tag];
+        if (!nos) return;
+        toggle_all_comments('collapse');
+        for (var i = 0, l = nos.length; i &lt; l; i++) {
+            var comment_no = nos[i].match(/\d+$/)[0];
+            var comment = Dom.get('comment_text_' + comment_no);
+            var link = Dom.get('comment_link_' + comment_no);
+            expand_comment(link, comment, comment_no);
+        }
+    },
+
+    buildTagHtml : function(comment_id, comment_no, tag) {
+        var el = document.createElement('span');
+        Dom.setAttribute(el, 'id', 'ct_' + comment_no + '_' + tag);
+        Dom.addClass(el, 'bz_comment_tag');
+        if (this.can_edit) {
+            var a = document.createElement('a');
+            Dom.setAttribute(a, 'href', '#');
+            YAHOO.util.Event.addListener(a, 'click', function(evt, args) {
+                YAHOO.bugzilla.commentTagging.remove(args[0], args[1], args[2])
+                YAHOO.util.Event.stopEvent(evt);
+            }, [comment_id, comment_no, tag]);
+            a.appendChild(document.createTextNode('x'));
+            el.appendChild(a);
+            el.appendChild(document.createTextNode(&quot;\u00a0&quot;));
+        }
+        el.appendChild(document.createTextNode(tag));
+        return el;
+    },
+
+    add : function(comment_id, comment_no, add_tags) {
+        // build list of current tags from html
+        var tags = new Array();
+        var spans = Dom.getElementsByClassName('bz_comment_tag', undefined, 'ct_' + comment_no);
+        for (var i = 0, l = spans.length; i &lt; l; i++) {
+            tags.push(spans[i].textContent.substr(2));
+        }
+        // add new tags
+        var new_tags = new Array();
+        for (var i = 0, l = add_tags.length; i &lt; l; i++) {
+            var tag = YAHOO.lang.trim(add_tags[i]);
+            // validation
+            if (tag == '')
+                continue;
+            if (tag.length &lt; YAHOO.bugzilla.commentTagging.min_len)
+                throw new Error(this.min_len_error)
+            if (tag.length &gt; YAHOO.bugzilla.commentTagging.max_len)
+                throw new Error(this.max_len_error)
+            // append new tag
+            if (bz_isValueInArrayIgnoreCase(tags, tag))
+                continue;
+            new_tags.push(tag);
+            tags.push(tag);
+        }
+        tags.sort();
+        // update
+        this.showTags(comment_id, comment_no, tags);
+        this.rpcUpdate(comment_id, comment_no, new_tags, undefined);
+    },
+
+    remove : function(comment_id, comment_no, tag) {
+        var el = Dom.get('ct_' + comment_no + '_' + tag);
+        if (el) {
+            el.parentNode.removeChild(el);
+            this.rpcUpdate(comment_id, comment_no, undefined, [ tag ]);
+        }
+    },
+
+    // If multiple updates are triggered quickly, overlapping refresh events
+    // are generated. We ignore all events except the last one.
+    incPending : function(comment_id) {
+        if (this.pending['c' + comment_id] == undefined) {
+            this.pending['c' + comment_id] = 1;
+        } else {
+            this.pending['c' + comment_id]++;
+        }
+    },
+
+    decPending : function(comment_id) {
+        if (this.pending['c' + comment_id] != undefined)
+            this.pending['c' + comment_id]--;
+    },
+
+    hasPending : function(comment_id) {
+        return this.pending['c' + comment_id] != undefined
+               &amp;&amp; this.pending['c' + comment_id] &gt; 0;
+    },
+
+    rpcRefresh : function(comment_id, comment_no, noRefreshOnError) {
+        this.incPending(comment_id);
+        YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+        YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi',
+        {
+            success: function(res) {
+                YAHOO.bugzilla.commentTagging.decPending(comment_id);
+                data = YAHOO.lang.JSON.parse(res.responseText);
+                if (data.error) {
+                    YAHOO.bugzilla.commentTagging.handleRpcError(
+                        comment_id, comment_no, data.error.message, noRefreshOnError);
+                    return;
+                }
+
+                if (!YAHOO.bugzilla.commentTagging.hasPending(comment_id))
+                    YAHOO.bugzilla.commentTagging.showTags(
+                        comment_id, comment_no, data.result.comments[comment_id].tags);
+            },
+            failure: function(res) {
+                YAHOO.bugzilla.commentTagging.decPending(comment_id);
+                YAHOO.bugzilla.commentTagging.handleRpcError(
+                    comment_id, comment_no, res.responseText, noRefreshOnError);
+            }
+        },
+        YAHOO.lang.JSON.stringify({
+            version: &quot;1.1&quot;,
+            method: 'Bug.comments',
+            params: {
+                Bugzilla_api_token: BUGZILLA.api_token,
+                comment_ids: [ comment_id ],
+                include_fields: [ 'tags' ]
+            }
+        })
+        );
+    },
+
+    rpcUpdate : function(comment_id, comment_no, add, remove) {
+        this.incPending(comment_id);
+        YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+        YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi',
+        {
+            success: function(res) {
+                YAHOO.bugzilla.commentTagging.decPending(comment_id);
+                data = YAHOO.lang.JSON.parse(res.responseText);
+                if (data.error) {
+                    YAHOO.bugzilla.commentTagging.handleRpcError(comment_id, comment_no, data.error.message);
+                    return;
+                }
+
+                if (!YAHOO.bugzilla.commentTagging.hasPending(comment_id))
+                    YAHOO.bugzilla.commentTagging.showTags(comment_id, comment_no, data.result);
+            },
+            failure: function(res) {
+                YAHOO.bugzilla.commentTagging.decPending(comment_id);
+                YAHOO.bugzilla.commentTagging.handleRpcError(comment_id, comment_no, res.responseText);
+            }
+        },
+        YAHOO.lang.JSON.stringify({
+            version: &quot;1.1&quot;,
+            method: 'Bug.update_comment_tags',
+            params: {
+                Bugzilla_api_token: BUGZILLA.api_token,
+                comment_id: comment_id,
+                add: add,
+                remove: remove
+            }
+        })
+        );
+    },
+
+    handleRpcError : function(comment_id, comment_no, message, noRefreshOnError) {
+        YAHOO.bugzilla.commentTagging.showError(comment_id, comment_no, message);
+        if (!noRefreshOnError) {
+            YAHOO.bugzilla.commentTagging.rpcRefresh(comment_id, comment_no, true);
+        }
+    }
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjscommentsjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/comments.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/comments.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/comments.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
- *                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
- *                 Edmund Wong &lt;ewong@pw-wspx.org&gt;
- *                 Anthony Pipkin &lt;a.pipkin@yahoo.com&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> function updateCommentPrivacy(checkbox, id) {
</span><span class="lines">@@ -38,11 +23,11 @@
</span><span class="cx"> 
</span><span class="cx"> function toggle_comment_display(link, comment_id) {
</span><span class="cx">     var comment = document.getElementById('comment_text_' + comment_id);
</span><del>-    var re = new RegExp(/\bcollapsed\b/);
-    if (comment.className.match(re))
-        expand_comment(link, comment);
-    else
-        collapse_comment(link, comment);
</del><ins>+    if (YAHOO.util.Dom.hasClass(comment, 'collapsed')) {
+        expand_comment(link, comment, comment_id);
+    } else {
+        collapse_comment(link, comment, comment_id);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function toggle_all_comments(action) {
</span><span class="lines">@@ -55,24 +40,31 @@
</span><span class="cx">         var comment = comments[i];
</span><span class="cx">         if (!comment)
</span><span class="cx">             continue;
</span><del>-
-        var id = comments[i].id.match(/\d*$/);
</del><ins>+        var id = comment.id.match(/^comment_text_(\d*)$/);
+        if (!id)
+            continue;
+        id = id[1];
</ins><span class="cx">         var link = document.getElementById('comment_link_' + id);
</span><del>-        if (action == 'collapse')
-            collapse_comment(link, comment);
-        else
-            expand_comment(link, comment);
</del><ins>+        if (action == 'collapse') {
+            collapse_comment(link, comment, id);
+        } else {
+            expand_comment(link, comment, id);
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function collapse_comment(link, comment) {
</del><ins>+function collapse_comment(link, comment, comment_id) {
</ins><span class="cx">     link.innerHTML = &quot;[+]&quot;;
</span><span class="cx">     YAHOO.util.Dom.addClass(comment, 'collapsed');
</span><ins>+    YAHOO.util.Dom.addClass('comment_tag_' + comment_id, 'collapsed');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-function expand_comment(link, comment) {
-    link.innerHTML = &quot;[-]&quot;;
</del><ins>+function expand_comment(link, comment, comment_id) {
+    link.innerHTML = &quot;[&amp;minus;]&quot;;
+    YAHOO.util.Dom.addClass('cr' + comment_id, 'collapsed');
+    YAHOO.util.Dom.removeClass('c' + comment_id, 'bz_default_collapsed');
</ins><span class="cx">     YAHOO.util.Dom.removeClass(comment, 'collapsed');
</span><ins>+    YAHOO.util.Dom.removeClass('comment_tag_' + comment_id, 'collapsed');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function wrapReplyText(text) {
</span><span class="lines">@@ -125,11 +117,12 @@
</span><span class="cx"> /* This way, we are sure that browsers which do not support JS
</span><span class="cx">    * won't display this link  */
</span><span class="cx"> 
</span><del>-function addCollapseLink(count, title) {
</del><ins>+function addCollapseLink(count, collapsed, title) {
</ins><span class="cx">     document.write(' &lt;a href=&quot;#&quot; class=&quot;bz_collapse_comment&quot;' +
</span><span class="cx">                    ' id=&quot;comment_link_' + count +
</span><span class="cx">                    '&quot; onclick=&quot;toggle_comment_display(this, ' +  count +
</span><del>-                   '); return false;&quot; title=&quot;' + title + '&quot;&gt;[-]&lt;\/a&gt; ');
</del><ins>+                   '); return false;&quot; title=&quot;' + title + '&quot;&gt;[' +
+                   (collapsed ? '+' : '&amp;minus;') + ']&lt;\/a&gt; ');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function goto_add_comments( anchor ){
</span><span class="lines">@@ -143,3 +136,30 @@
</span><span class="cx">     },10);
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><ins>+
+if (typeof Node == 'undefined') {
+    /* MSIE doesn't define Node, so provide a compatibility object */
+    window.Node = {
+        TEXT_NODE: 3,
+        ENTITY_REFERENCE_NODE: 5
+    };
+}
+
+/* Concatenates all text from element's childNodes. This is used
+ * instead of innerHTML because we want the actual text (and
+ * innerText is non-standard).
+ */
+function getText(element) {
+    var child, text = &quot;&quot;;
+    for (var i=0; i &lt; element.childNodes.length; i++) {
+        child = element.childNodes[i];
+        var type = child.nodeType;
+        if (type == Node.TEXT_NODE || type == Node.ENTITY_REFERENCE_NODE) {
+            text += child.nodeValue;
+        } else {
+            /* recurse into nodes of other types */
+            text += getText(child);
+        }
+    }
+    return text;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjscustomsearchjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/custom-search.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/custom-search.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/custom-search.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is BugzillaSource, Inc.
- * Portions created by the Initial Developer are Copyright (C) 2011 
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s): 
- *   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> var PAREN_INDENT_EM = 2;
</span><span class="lines">@@ -40,7 +28,7 @@
</span><span class="cx">     var row = document.getElementById('custom_search_last_row');
</span><span class="cx">     var clone = row.cloneNode(true);
</span><span class="cx">     
</span><del>-    _cs_fix_ids(clone);
</del><ins>+    _cs_fix_row_ids(clone);
</ins><span class="cx">    
</span><span class="cx">     // We only want one copy of the buttons, in the new row. So the old
</span><span class="cx">     // ones get deleted.
</span><span class="lines">@@ -55,13 +43,28 @@
</span><span class="cx">     // Always make sure there's only one row with this id.
</span><span class="cx">     row.id = null;
</span><span class="cx">     row.parentNode.appendChild(clone);
</span><ins>+    cs_reconfigure(row);
</ins><span class="cx">     fix_query_string(row);
</span><span class="cx">     return clone;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+var _cs_source_any_all;
</ins><span class="cx"> function custom_search_open_paren() {
</span><span class="cx">     var row = document.getElementById('custom_search_last_row');
</span><span class="cx"> 
</span><ins>+    // create a copy of j_top and use that as the source, so we can modify
+    // j_top if required
+    if (!_cs_source_any_all) {
+        var j_top = document.getElementById('j_top');
+        _cs_source_any_all = j_top.cloneNode(true);
+    }
+
+    // find the parent any/all select, and remove the grouped option
+    var structure = _cs_build_structure(row);
+    var old_id = _cs_get_row_id(row);
+    var parent_j = document.getElementById(_cs_get_join(structure, 'f' + old_id));
+    _cs_remove_and_g(parent_j);
+
</ins><span class="cx">     // If there's an &quot;Any/All&quot; select in this row, it needs to stay as
</span><span class="cx">     // part of the parent paren set.
</span><span class="cx">     var old_any_all = _remove_any_all(row);
</span><span class="lines">@@ -78,21 +81,20 @@
</span><span class="cx">     var not_for_paren = new_not[0].cloneNode(true);
</span><span class="cx"> 
</span><span class="cx">     // Preserve the values when modifying the row.
</span><del>-    var id = _cs_fix_ids(row, true);
</del><ins>+    var id = _cs_fix_row_ids(row, true);
</ins><span class="cx">     var prev_id = id - 1;
</span><span class="cx"> 
</span><span class="cx">     var paren_row = row.cloneNode(false);
</span><span class="cx">     paren_row.id = null;
</span><span class="cx">     paren_row.innerHTML = '(&lt;input type=&quot;hidden&quot; name=&quot;f' + prev_id
</span><del>-                        + '&quot; value=&quot;OP&quot;&gt;';
</del><ins>+                        + '&quot; id=&quot;f' + prev_id + '&quot; value=&quot;OP&quot;&gt;';
</ins><span class="cx">     paren_row.insertBefore(not_for_paren, paren_row.firstChild);
</span><span class="cx">     row.parentNode.insertBefore(paren_row, row);
</span><del>-    
</del><ins>+
</ins><span class="cx">     // New paren set needs a new &quot;Any/All&quot; select.
</span><span class="cx">     var any_all_container = document.createElement('div');
</span><span class="cx">     YAHOO.util.Dom.addClass(any_all_container, ANY_ALL_SELECT_CLASS);
</span><del>-    var j_top = document.getElementById('j_top');
-    var any_all = j_top.cloneNode(true);
</del><ins>+    var any_all = _cs_source_any_all.cloneNode(true);
</ins><span class="cx">     any_all.name = 'j' + prev_id;
</span><span class="cx">     any_all.id = any_all.name;
</span><span class="cx">     any_all_container.appendChild(any_all);
</span><span class="lines">@@ -104,6 +106,7 @@
</span><span class="cx">     YAHOO.util.Dom.setStyle(row, 'margin-left', new_margin + 'em');
</span><span class="cx">     YAHOO.util.Dom.removeClass('cp_container', 'bz_default_hidden');
</span><span class="cx"> 
</span><ins>+    cs_reconfigure(any_all_container);
</ins><span class="cx">     fix_query_string(any_all_container);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -112,7 +115,7 @@
</span><span class="cx">     
</span><span class="cx">     // We need to up the new row's id by one more, because we're going
</span><span class="cx">     // to insert a &quot;CP&quot; before it.
</span><del>-    var id = _cs_fix_ids(new_row);
</del><ins>+    var id = _cs_fix_row_ids(new_row);
</ins><span class="cx"> 
</span><span class="cx">     var margin = YAHOO.util.Dom.getStyle(new_row, 'margin-left');
</span><span class="cx">     var int_match = margin.match(/\d+/);
</span><span class="lines">@@ -122,7 +125,7 @@
</span><span class="cx">     var paren_row = new_row.cloneNode(false);
</span><span class="cx">     paren_row.id = null;
</span><span class="cx">     paren_row.innerHTML = ')&lt;input type=&quot;hidden&quot; name=&quot;f' + (id - 1)
</span><del>-                        + '&quot; value=&quot;CP&quot;&gt;';
</del><ins>+                        + '&quot; id=&quot;f' + (id - 1) + '&quot; value=&quot;CP&quot;&gt;';
</ins><span class="cx">   
</span><span class="cx">     new_row.parentNode.insertBefore(paren_row, new_row);
</span><span class="cx"> 
</span><span class="lines">@@ -130,6 +133,7 @@
</span><span class="cx">         YAHOO.util.Dom.addClass('cp_container', 'bz_default_hidden');
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    cs_reconfigure(new_row);
</ins><span class="cx">     fix_query_string(new_row);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -172,19 +176,17 @@
</span><span class="cx">     document.location = url;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function _cs_fix_ids(parent, preserve_values) {
</del><ins>+function _cs_fix_row_ids(row, preserve_values) {
</ins><span class="cx">     // Update the label of the checkbox.
</span><del>-    var label = YAHOO.util.Dom.getElementBy(function() { return true },
-                                            'label', parent);
</del><ins>+    var label = YAHOO.util.Dom.getElementBy(function() { return true }, 'label', row);
</ins><span class="cx">     var id_match = label.htmlFor.match(/\d+$/);
</span><span class="cx">     var id = parseInt(id_match[0]) + 1;
</span><span class="cx">     label.htmlFor = label.htmlFor.replace(/\d+$/, id);
</span><span class="cx"> 
</span><del>-    // Sets all the inputs in the parent back to their default
</del><ins>+    // Sets all the inputs in the row back to their default
</ins><span class="cx">     // and fixes their id.
</span><span class="cx">     var fields =
</span><del>-        YAHOO.util.Dom.getElementsByClassName('custom_search_form_field', null,
-                                              parent);
</del><ins>+        YAHOO.util.Dom.getElementsByClassName('custom_search_form_field', null, row);
</ins><span class="cx">     for (var i = 0; i &lt; fields.length; i++) {
</span><span class="cx">         var field = fields[i];
</span><span class="cx"> 
</span><span class="lines">@@ -196,15 +198,141 @@
</span><span class="cx">                 field.value = '';
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        
-        // Update the numeric id for the new row.
</del><ins>+
+        // Update the numeric id for the row.
</ins><span class="cx">         field.name = field.name.replace(/\d+$/, id);
</span><span class="cx">         field.id = field.name;
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     return id;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function _cs_build_structure(form_member) {
+    // build a map of the structure of the custom fields
+    var form = YAHOO.util.Dom.getAncestorByTagName(form_member, 'form');
+    var last_id = _get_last_cs_row_id(form);
+    var structure = [ 'j_top' ];
+    var nested = [ structure ];
+    for (var id = 1; id &lt;= last_id; id++) {
+        var f = form['f' + id];
+        if (!f || !f.parentNode.parentNode) continue;
+
+        if (f.value == 'OP') {
+            var j = [ 'j' + id ];
+            nested[nested.length - 1].push(j);
+            nested.push(j);
+            continue;
+        } else if (f.value == 'CP') {
+            nested.pop();
+            continue;
+        } else {
+            nested[nested.length - 1].push('f' + id);
+        }
+    }
+    return structure;
+}
+
+function cs_reconfigure(form_member) {
+    var structure = _cs_build_structure(form_member);
+    _cs_add_listeners(structure);
+    _cs_trigger_j_listeners(structure);
+    fix_query_string(form_member);
+
+    var j = _cs_get_join(structure, 'f' + _get_last_cs_row_id());
+    document.getElementById('op_button').disabled = document.getElementById(j).value == 'AND_G';
+}
+
+function _cs_add_listeners(parents) {
+    for (var i = 0, l = parents.length; i &lt; l; i++) {
+        if (typeof(parents[i]) == 'object') {
+            // nested
+            _cs_add_listeners(parents[i]);
+        } else if (i == 0) {
+            // joiner
+            YAHOO.util.Event.removeListener(parents[i], 'change', _cs_j_change);
+            YAHOO.util.Event.addListener(parents[i], 'change', _cs_j_change, parents);
+        } else {
+            // field
+            YAHOO.util.Event.removeListener(parents[i], 'change', _cs_f_change);
+            YAHOO.util.Event.addListener(parents[i], 'change', _cs_f_change, parents);
+        }
+    }
+}
+
+function _cs_trigger_j_listeners(fields) {
+    var has_children = false;
+    for (var i = 0, l = fields.length; i &lt; l; i++) {
+        if (typeof(fields[i]) == 'undefined') {
+            continue;
+        } else if (typeof(fields[i]) == 'object') {
+            // nested
+            _cs_trigger_j_listeners(fields[i]);
+            has_children = true;
+        } else if (i == 0) {
+            _cs_j_change(undefined, fields);
+        }
+    }
+    if (has_children) {
+        _cs_remove_and_g(document.getElementById(fields[0]));
+    }
+}
+
+function _cs_get_join(parents, field) {
+    for (var i = 0, l = parents.length; i &lt; l; i++) {
+        if (typeof(parents[i]) == 'object') {
+            // nested
+            var result = _cs_get_join(parents[i], field);
+            if (result) return result;
+        } else if (parents[i] == field) {
+            return parents[0];
+        }
+    }
+    return false;
+}
+
+function _cs_remove_and_g(join_field) {
+    var index = bz_optionIndex(join_field, 'AND_G');
+    join_field.options[index] = null;
+    join_field.options[bz_optionIndex(join_field, 'AND')].innerHTML = cs_and_label;
+    join_field.options[bz_optionIndex(join_field, 'OR')].innerHTML = cs_or_label;
+}
+
+function _cs_j_change(evt, fields, field) {
+    var j = document.getElementById(fields[0]);
+    if (j &amp;&amp; j.value == 'AND_G') {
+        for (var i = 1, l = fields.length; i &lt; l; i++) {
+            if (typeof(fields[i]) == 'object') continue;
+            if (!field) {
+                field = document.getElementById(fields[i]).value;
+            } else {
+                document.getElementById(fields[i]).value = field;
+            }
+        }
+        if (evt) {
+            fix_query_string(j);
+        }
+        if ('f' + _get_last_cs_row_id() == fields[fields.length - 1]) {
+            document.getElementById('op_button').style.display = 'none';
+        }
+    } else {
+        document.getElementById('op_button').style.display = '';
+    }
+}
+
+function _cs_f_change(evt, args) {
+    var field = YAHOO.util.Event.getTarget(evt);
+    _cs_j_change(evt, args, field.value);
+}
+
+function _get_last_cs_row_id() {
+    return _cs_get_row_id('custom_search_last_row');
+}
+
+function _cs_get_row_id(row) {
+    var label = YAHOO.util.Dom.getElementBy(function() { return true }, 'label', row);
+    return parseInt(label.htmlFor.match(/\d+$/)[0]);
+}
+
</ins><span class="cx"> function _remove_any_all(parent) {
</span><span class="cx">     var any_all = YAHOO.util.Dom.getElementsByClassName(
</span><span class="cx">         ANY_ALL_SELECT_CLASS, null, parent);
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsexpandingtreejs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/expanding-tree.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/expanding-tree.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/expanding-tree.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- * 
- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- * 
- * The Original Code is the Bugzilla Bug Tracking System.
- * 
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All
- * Rights Reserved.
- * 
- * Contributor(s): Mike Shaver &lt;shaver@mozilla.org&gt;
- *                 Christian Reis &lt;kiko@async.com.br&gt;
- *                 Andr\xE9 Batosti &lt;batosti@async.com.br&gt; 
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> if (!Node) {
</span><span class="lines">@@ -154,4 +140,3 @@
</span><span class="cx">         duplicated(element);
</span><span class="cx">     }
</span><span class="cx"> }
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsfieldjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/field.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/field.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/field.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Everything Solved, Inc.
- * Portions created by Everything Solved are Copyright (C) 2007 Everything
- * Solved, Inc. All Rights Reserved.
- *
- * Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
- *                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
- *                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /* This library assumes that the needed YUI libraries have been loaded 
</span><span class="lines">@@ -55,14 +42,18 @@
</span><span class="cx"> 
</span><span class="cx">     // These are checked in the reverse order that they appear on the page,
</span><span class="cx">     // so that the one closest to the top of the form will be focused.
</span><del>-    if (attach_data.value &amp;&amp; YAHOO.lang.trim(attach_desc.value) == '') {
</del><ins>+    if (attach_data &amp;&amp; attach_data.value &amp;&amp; YAHOO.lang.trim(attach_desc.value) == '') {
</ins><span class="cx">         _errorFor(attach_desc, 'attach_desc');
</span><span class="cx">         focus_me = attach_desc;
</span><span class="cx">     }
</span><del>-    var check_description = status_comment_required[bug_status.value];
-    if (check_description &amp;&amp; YAHOO.lang.trim(description.value) == '') {
-        _errorFor(description, 'description');
-        focus_me = description;
</del><ins>+    // bug_status can be undefined if the bug_status field is not editable by
+    // the currently logged in user.
+    if (bug_status) {
+        var check_description = status_comment_required[bug_status.value];
+        if (check_description &amp;&amp; YAHOO.lang.trim(description.value) == '') {
+            _errorFor(description, 'description');
+            focus_me = description;
+        }
</ins><span class="cx">     }
</span><span class="cx">     if (YAHOO.lang.trim(short_desc.value) == '') {
</span><span class="cx">         _errorFor(short_desc);
</span><span class="lines">@@ -96,9 +87,17 @@
</span><span class="cx">     YAHOO.util.Dom.addClass(field, 'validation_error_field');
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function createCalendar(name) {
</del><ins>+/* This function is never to be called directly, but only indirectly
+ * using template/en/default/global/calendar.js.tmpl, so that localization
+ * works. For the same reason, if you modify this function's parameter list,
+ * you need to modify the documentation in said template as well. */
+function createCalendar(name, start_weekday, months_long, weekdays_short) {
</ins><span class="cx">     var cal = new YAHOO.widget.Calendar('calendar_' + name, 
</span><del>-                                        'con_calendar_' + name);
</del><ins>+                                        'con_calendar_' + name,
+                                        { START_WEEKDAY:  start_weekday,
+                                          MONTHS_LONG:    months_long,
+                                          WEEKDAYS_SHORT: weekdays_short
+                                        });
</ins><span class="cx">     YAHOO.bugzilla['calendar_' + name] = cal;
</span><span class="cx">     var field = document.getElementById(name);
</span><span class="cx">     cal.selectEvent.subscribe(setFieldFromCalendar, field, false);
</span><span class="lines">@@ -219,24 +218,19 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* Hide input/select fields and show the text with (edit) next to it */
</span><del>-function hideEditableField( container, input, action, field_array, original_value, new_value ) {
-    var field_id = field_array instanceof Array ? field_array.shift() : field_array;
</del><ins>+function hideEditableField( container, input, action, field_id, original_value, new_value, hide_input ) {
</ins><span class="cx">     YAHOO.util.Dom.removeClass(container, 'bz_default_hidden');
</span><span class="cx">     YAHOO.util.Dom.addClass(input, 'bz_default_hidden');
</span><span class="cx">     YAHOO.util.Event.addListener(action, 'click', showEditableField,
</span><span class="cx">                                  new Array(container, input, field_id, new_value));
</span><span class="cx">     if(field_id != &quot;&quot;){
</span><ins>+// if WEBKIT_CHANGES
</ins><span class="cx">         YAHOO.util.Event.addListener(field_id + '_nonedit_display', 'click', showEditableField,
</span><span class="cx">                                      new Array(container, input, undefined, undefined, field_id));
</span><ins>+// endif WEBKIT_CHANGES
</ins><span class="cx">         YAHOO.util.Event.addListener(window, 'load', checkForChangedFieldValues,
</span><del>-                        new Array(container, input, field_id, original_value));
</del><ins>+                        new Array(container, input, field_id, original_value, hide_input ));
</ins><span class="cx">     }
</span><del>-    for (var field2_id in field_array){
-        if(field2_id != &quot;&quot;){
-            YAHOO.util.Event.addListener(field2_id + '_nonedit_display', 'click', showEditableField,
-                                         new Array(container, input, undefined, undefined, field2_id));
-        }
-    }
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* showEditableField (e, ContainerInputArray)
</span><span class="lines">@@ -282,20 +276,23 @@
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="cx">         }
</span><ins>+// if WEBKIT_CHANGES
</ins><span class="cx">         var elementToFocus = YAHOO.util.Dom.get(ContainerInputArray[4]);
</span><span class="cx">         if (elementToFocus) {
</span><span class="cx">             // focus on the requested field
</span><span class="cx">             elementToFocus.focus();
</span><del>-            if ( elementToFocus.tagName.toLowerCase() == &quot;input&quot; ) {
</del><ins>+            var elementToFocusType = elementToFocus.tagName.toLowerCase();
+            if ( elementToFocusType == &quot;input&quot; || elementToFocusType == &quot;textarea&quot; ) {
</ins><span class="cx">                 elementToFocus.select();
</span><span class="cx">             }
</span><span class="cx">         } else {
</span><span class="cx">             // focus on the first field, this makes it easier to edit
</span><span class="cx">             inputs[0].focus();
</span><del>-            if ( type == &quot;input&quot; ) {
</del><ins>+            if ( type == &quot;input&quot; || type == &quot;textarea&quot; ) {
</ins><span class="cx">                 inputs[0].select();
</span><span class="cx">             }
</span><span class="cx">         }
</span><ins>+// endif WEBKIT_CHANGES
</ins><span class="cx">     }
</span><span class="cx">     YAHOO.util.Event.preventDefault(e);
</span><span class="cx"> }
</span><span class="lines">@@ -317,8 +314,10 @@
</span><span class="cx">     var el = document.getElementById(ContainerInputArray[2]);
</span><span class="cx">     var unhide = false;
</span><span class="cx">     if ( el ) {
</span><del>-        if ( el.value != ContainerInputArray[3] ||
-            ( el.value == &quot;&quot; &amp;&amp; el.id != &quot;alias&quot;) ) {
</del><ins>+        if ( !ContainerInputArray[4]
+             &amp;&amp; (el.value != ContainerInputArray[3]
+                 || (el.value == &quot;&quot; &amp;&amp; el.id != &quot;qa_contact&quot;)) )
+        {
</ins><span class="cx">             unhide = true;
</span><span class="cx">         }
</span><span class="cx">         else {
</span><span class="lines">@@ -327,7 +326,7 @@
</span><span class="cx">             if ( set_default ) {
</span><span class="cx">                 if(set_default.checked){
</span><span class="cx">                     unhide = true;
</span><del>-                }              
</del><ins>+                }
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -338,17 +337,6 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function hideAliasAndSummary(short_desc_value, alias_value) {
-    // check the short desc field
-    hideEditableField( 'summary_alias_container','summary_alias_input',
-                       'editme_action', new Array('short_desc', 'alias'), short_desc_value);  
-    // check that the alias hasn't changed
-    var bz_alias_check_array = new Array('summary_alias_container',
-                                     'summary_alias_input', 'alias', alias_value);
-    YAHOO.util.Event.addListener( window, 'load', checkForChangedFieldValues,
-                                 bz_alias_check_array);
-}
-
</del><span class="cx"> function showPeopleOnChange( field_id_list ) {
</span><span class="cx">     for(var i = 0; i &lt; field_id_list.length; i++) {
</span><span class="cx">         YAHOO.util.Event.addListener( field_id_list[i],'change', showEditableField,
</span><span class="lines">@@ -360,13 +348,19 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function assignToDefaultOnChange(field_id_list) {
-    showPeopleOnChange( field_id_list );
-    for(var i = 0; i &lt; field_id_list.length; i++) {
-        YAHOO.util.Event.addListener( field_id_list[i],'change', setDefaultCheckbox,
-                                      'set_default_assignee');
-        YAHOO.util.Event.addListener( field_id_list[i],'change',setDefaultCheckbox,
-                                      'set_default_qa_contact');    
</del><ins>+function assignToDefaultOnChange(field_id_list, default_assignee, default_qa_contact) {
+    showPeopleOnChange(field_id_list);
+    for(var i = 0, l = field_id_list.length; i &lt; l; i++) {
+        YAHOO.util.Event.addListener(field_id_list[i], 'change', function(evt, defaults) {
+            if (document.getElementById('assigned_to').value == defaults[0]) {
+                setDefaultCheckbox(evt, 'set_default_assignee');
+            }
+            if (document.getElementById('qa_contact')
+                &amp;&amp; document.getElementById('qa_contact').value == defaults[1])
+            {
+                setDefaultCheckbox(evt, 'set_default_qa_contact');
+            }
+        }, [default_assignee, default_qa_contact]);
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -463,7 +457,7 @@
</span><span class="cx">     YAHOO.util.Event.preventDefault(e);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function setDefaultCheckbox(e, field_id ) { 
</del><ins>+function setDefaultCheckbox(e, field_id) {
</ins><span class="cx">     var el = document.getElementById(field_id);
</span><span class="cx">     var elLabel = document.getElementById(field_id + &quot;_label&quot;);
</span><span class="cx">     if( el &amp;&amp; elLabel ) {
</span><span class="lines">@@ -529,7 +523,8 @@
</span><span class="cx">     var controller = args[1];
</span><span class="cx">     var values = args[2];
</span><span class="cx"> 
</span><del>-    var label_container = 
</del><ins>+    var field = document.getElementById(controlled_id);
+    var label_container =
</ins><span class="cx">         document.getElementById('field_label_' + controlled_id);
</span><span class="cx">     var field_container =
</span><span class="cx">         document.getElementById('field_container_' + controlled_id);
</span><span class="lines">@@ -544,51 +539,185 @@
</span><span class="cx">     if (selected) {
</span><span class="cx">         YAHOO.util.Dom.removeClass(label_container, 'bz_hidden_field');
</span><span class="cx">         YAHOO.util.Dom.removeClass(field_container, 'bz_hidden_field');
</span><ins>+        /* If a custom field such as a textarea field contains some text, then
+         * its content is visible by default as a readonly field (assuming that
+         * the field is displayed). But if such a custom field contains no text,
+         * then it's not displayed at all and an (edit) link is displayed instead.
+         * This is problematic if the custom field is mandatory, because at least
+         * Firefox complains that you must enter a value, but is unable to point
+         * to the custom field because this one is hidden, and so the user has
+         * to guess what the web browser is talking about, which is confusing.
+         * So in that case, we display the custom field automatically instead of
+         * the (edit) link, so that the user can enter some text in it.
+         */
+        var field_readonly = document.getElementById(controlled_id + '_readonly');
+
+        if (!field_readonly) {
+            var field_input = document.getElementById(controlled_id + '_input');
+            var edit_container =
+                document.getElementById(controlled_id + '_edit_container');
+
+            if (field_input) {
+                YAHOO.util.Dom.removeClass(field_input, 'bz_default_hidden');
+            }
+            if (edit_container) {
+                YAHOO.util.Dom.addClass(edit_container, 'bz_hidden_field');
+            }
+        }
+        // Restore the 'required' attribute for mandatory fields.
+        if (field.getAttribute('data-required') == &quot;true&quot;) {
+            field.setAttribute('required', 'true');
+            field.setAttribute('aria-required', 'true');
+        }
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         YAHOO.util.Dom.addClass(label_container, 'bz_hidden_field');
</span><span class="cx">         YAHOO.util.Dom.addClass(field_container, 'bz_hidden_field');
</span><ins>+        // A hidden field must never be required, because the user cannot set it.
+        if (field.getAttribute('data-required') == &quot;true&quot;) {
+            field.removeAttribute('required');
+            field.removeAttribute('aria-required');
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function showValueWhen(controlled_field_id, controlled_value_ids, 
-                       controller_field_id, controller_value_id)
</del><ins>+/**
+ * This is a data structure representing the tree of controlled values.
+ * Let's call the &quot;controller value&quot; the &quot;source&quot; and the &quot;controlled
+ * value&quot; the &quot;target&quot;. A target can have only one source, but a source
+ * can have an infinite number of targets.
+ *
+ * The data structure is a series of hash tables that go something
+ * like this:
+ *
+ * source_field -&gt; target_field -&gt; source_value_id -&gt; target_value_ids
+ *
+ * We always know source_field when our event handler is called, since
+ * that's the field the event is being triggered on. We can then enumerate
+ * through every target field, check the status of each source field value,
+ * and act appropriately on each target value.
+ */
+var bz_value_controllers = {};
+// This keeps track of whether or not we've added an onchange handler
+// for the source field yet.
+var bz_value_controller_has_handler = {};
+function showValueWhen(target_field_id, target_value_ids,
+                       source_field_id, source_value_id, empty_shows_all)
</ins><span class="cx"> {
</span><del>-    var controller_field = document.getElementById(controller_field_id);
-    // Note that we don't get an object for the controlled field here, 
-    // because it might not yet exist in the DOM. We just pass along its id.
-    YAHOO.util.Event.addListener(controller_field, 'change',
-        handleValControllerChange, [controlled_field_id, controlled_value_ids,
-                                    controller_field, controller_value_id]);
</del><ins>+    if (!bz_value_controllers[source_field_id]) {
+        bz_value_controllers[source_field_id] = {};
+    }
+    if (!bz_value_controllers[source_field_id][target_field_id]) {
+        bz_value_controllers[source_field_id][target_field_id] = {};
+    }
+    var source_values = bz_value_controllers[source_field_id][target_field_id];
+    source_values[source_value_id] = target_value_ids;
+
+    if (!bz_value_controller_has_handler[source_field_id]) {
+        var source_field = document.getElementById(source_field_id);
+        YAHOO.util.Event.addListener(source_field, 'change',
+            handleValControllerChange, [source_field, empty_shows_all]);
+        bz_value_controller_has_handler[source_field_id] = true;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function handleValControllerChange(e, args) {
</span><del>-    var controlled_field = document.getElementById(args[0]);
-    var controlled_value_ids = args[1];
-    var controller_field = args[2];
-    var controller_value_id = args[3];
</del><ins>+    var source = args[0];
+    var empty_shows_all = args[1];
</ins><span class="cx"> 
</span><del>-    var controller_item = document.getElementById(
-        _value_id(controller_field.id, controller_value_id));
</del><ins>+    for (var target_field_id in bz_value_controllers[source.id]) {
+        var target = document.getElementById(target_field_id);
+        if (!target) continue;
+        _update_displayed_values(source, target, empty_shows_all);
+    }
+}
</ins><span class="cx"> 
</span><del>-    for (var i = 0; i &lt; controlled_value_ids.length; i++) {
-        var item = getPossiblyHiddenOption(controlled_field,
-                                           controlled_value_ids[i]);
-        if (item.disabled &amp;&amp; controller_item &amp;&amp; controller_item.selected) {
-            item = showOptionInIE(item, controlled_field);
-            YAHOO.util.Dom.removeClass(item, 'bz_hidden_option');
-            item.disabled = false;
</del><ins>+/* See the docs for bz_option_duplicate count lower down for an explanation
+ * of this data structure.
+ */
+var bz_option_hide_count = {};
+
+function _update_displayed_values(source, target, empty_shows_all) {
+    var show_all = (empty_shows_all &amp;&amp; source.selectedIndex == -1);
+
+    bz_option_hide_count[target.id] = {};
+
+    var source_values = bz_value_controllers[source.id][target.id];
+    for (source_value_id in source_values) {
+        var source_option = getPossiblyHiddenOption(source, source_value_id);
+        var target_values = source_values[source_value_id];
+        for (var i = 0; i &lt; target_values.length; i++) {
+            var target_value_id = target_values[i];
+            _handle_source_target(source_option, target, target_value_id,
+                                  show_all);
</ins><span class="cx">         }
</span><del>-        else if (!item.disabled &amp;&amp; controller_item &amp;&amp; !controller_item.selected) {
-            YAHOO.util.Dom.addClass(item, 'bz_hidden_option');
-            if (item.selected) {
-                item.selected = false;
-                bz_fireEvent(controlled_field, 'change');
-            }
-            item.disabled = true;
-            hideOptionInIE(item, controlled_field);
</del><ins>+    }
+
+    // We may have updated which elements are selected or not selected
+    // in the target field, and it may have handlers associated with
+    // that, so we need to fire the change event on the target.
+    bz_fireEvent(target, 'change');
+}
+
+function _handle_source_target(source_option, target, target_value_id,
+                               show_all)
+{
+    var target_option = getPossiblyHiddenOption(target, target_value_id);
+
+    // We always call either _show_option or _hide_option on every single
+    // target value. Although this is not theoretically the most efficient
+    // thing we can do, it handles all possible edge cases, and there are
+    // a lot of those, particularly when this code is being used on the
+    // search form.
+    if (source_option.selected || (show_all &amp;&amp; !source_option.disabled)) {
+        _show_option(target_option, target);
+    }
+    else {
+        _hide_option(target_option, target);
+    }
+}
+
+/* When an option has duplicates (see the docs for bz_option_duplicates
+ * lower down in this file), we only want to hide it if *all* the duplicates
+ * would be hidden. So we keep a counter of how many duplicates each option
+ * has. Then, when we run through a &quot;change&quot; call for a source field,
+ * we count how many times each value gets hidden, and only actually
+ * hide it if the counter hits a number higher than the duplicate count.
+ */
+var bz_option_duplicate_count = {};
+
+function _show_option(option, field) {
+    if (!option.disabled) return;
+    option = showOptionInIE(option, field);
+    YAHOO.util.Dom.removeClass(option, 'bz_hidden_option');
+    option.disabled = false;
+}
+
+function _hide_option(option, field) {
+    if (option.disabled) return;
+
+    var value_id = option.bz_value_id;
+
+    if (field.id in bz_option_duplicate_count
+        &amp;&amp; value_id in bz_option_duplicate_count[field.id])
+    {
+        if (!bz_option_hide_count[field.id][value_id]) {
+            bz_option_hide_count[field.id][value_id] = 0;
</ins><span class="cx">         }
</span><ins>+        bz_option_hide_count[field.id][value_id]++;
+        var current = bz_option_hide_count[field.id][value_id];
+        var dups    = bz_option_duplicate_count[field.id][value_id];
+        // We check &lt;= because the value in bz_option_duplicate_count is
+        // 1 less than the total number of duplicates (since the shown
+        // option is also a &quot;duplicate&quot; but not counted in
+        // bz_option_duplicate_count).
+        if (current &lt;= dups) return;
</ins><span class="cx">     }
</span><ins>+
+    YAHOO.util.Dom.addClass(option, 'bz_hidden_option');
+    option.selected = false;
+    option.disabled = true;
+    hideOptionInIE(option, field);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // A convenience function to generate the &quot;id&quot; tag of an &lt;option&gt;
</span><span class="lines">@@ -605,7 +734,7 @@
</span><span class="cx">  * on &lt;option&gt; tags. However, you *can* insert a Comment Node as a
</span><span class="cx">  * child of a &lt;select&gt; tag. So we just insert a Comment where the &lt;option&gt;
</span><span class="cx">  * used to be. */
</span><del>-var ie_hidden_options = new Array();
</del><ins>+var ie_hidden_options = {};
</ins><span class="cx"> function hideOptionInIE(anOption, aSelect) {
</span><span class="cx">     if (browserCanHideOptions(aSelect)) return;
</span><span class="cx"> 
</span><span class="lines">@@ -625,7 +754,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Store the comment node for quick access for getPossiblyHiddenOption
</span><span class="cx">     if (!ie_hidden_options[aSelect.id]) {
</span><del>-        ie_hidden_options[aSelect.id] = new Array();
</del><ins>+        ie_hidden_options[aSelect.id] = {};
</ins><span class="cx">     }
</span><span class="cx">     ie_hidden_options[aSelect.id][anOption.id] = commentNode;
</span><span class="cx"> }
</span><span class="lines">@@ -654,6 +783,7 @@
</span><span class="cx"> function initHidingOptionsForIE(select_name) {
</span><span class="cx">     var aSelect = document.getElementById(select_name);
</span><span class="cx">     if (browserCanHideOptions(aSelect)) return;
</span><ins>+    if (!aSelect) return;
</ins><span class="cx"> 
</span><span class="cx">     for (var i = 0; ;i++) {
</span><span class="cx">         var item = aSelect.options[i];
</span><span class="lines">@@ -665,7 +795,27 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/* Certain fields, like the Component field, have duplicate values in
+ * them (the same name, but different ids). We don't display these
+ * duplicate values in the UI, but the option hiding/showing code still
+ * uses the ids of these unshown duplicates. So, whenever we get the
+ * id of an unshown duplicate in getPossiblyHiddenOption, we have to
+ * return the actually-used &lt;option&gt; instead.
+ *
+ * The structure of the data looks like:
+ *
+ *  field_name -&gt; unshown_value_id -&gt; shown_value_id_it_is_a_duplicate_of
+ */
+var bz_option_duplicates = {};
+
</ins><span class="cx"> function getPossiblyHiddenOption(aSelect, optionId) {
</span><ins>+
+    if (bz_option_duplicates[aSelect.id]
+        &amp;&amp; bz_option_duplicates[aSelect.id][optionId])
+    {
+        optionId = bz_option_duplicates[aSelect.id][optionId];
+    }
+
</ins><span class="cx">     // Works always for &lt;option&gt; tags, and works for commentNodes
</span><span class="cx">     // in IE (but not in Webkit).
</span><span class="cx">     var id = _value_id(aSelect.id, optionId);
</span><span class="lines">@@ -677,6 +827,10 @@
</span><span class="cx">         val = ie_hidden_options[aSelect.id][id];
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    // We add this property for our own convenience, it's used in
+    // other places.
+    val.bz_value_id = optionId;
+
</ins><span class="cx">     return val;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -717,6 +871,7 @@
</span><span class="cx">           method : &quot;User.get&quot;,
</span><span class="cx">           id : YAHOO.bugzilla.userAutocomplete.counter,
</span><span class="cx">           params : [ { 
</span><ins>+            Bugzilla_api_token: BUGZILLA.api_token,
</ins><span class="cx">             match : [ decodeURIComponent(enteredText) ],
</span><span class="cx">             include_fields : [ &quot;name&quot;, &quot;real_name&quot; ]
</span><span class="cx">           } ]
</span><span class="lines">@@ -778,36 +933,201 @@
</span><span class="cx">     }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-YAHOO.bugzilla.keywordAutocomplete = {
-    dataSource : null,
-    init_ds : function(){
-        this.dataSource = new YAHOO.util.LocalDataSource( YAHOO.bugzilla.keyword_array );
</del><ins>+YAHOO.bugzilla.fieldAutocomplete = {
+    dataSource : [],
+    init_ds : function( field ) {
+        this.dataSource[field] =
+          new YAHOO.util.LocalDataSource( YAHOO.bugzilla.field_array[field] );
</ins><span class="cx">     },
</span><span class="cx">     init : function( field, container ) {
</span><del>-        if( this.dataSource == null ){
-            this.init_ds();
</del><ins>+        if( this.dataSource[field] == null ) {
+            this.init_ds( field );
</ins><span class="cx">         }
</span><del>-        var keywordAutoComp = new YAHOO.widget.AutoComplete(field, container, this.dataSource);
-        keywordAutoComp.maxResultsDisplayed = YAHOO.bugzilla.keyword_array.length;
-        keywordAutoComp.formatResult = keywordAutoComp.formatEscapedResult;
-        keywordAutoComp.minQueryLength = 0;
-        keywordAutoComp.useIFrame = true;
-        keywordAutoComp.delimChar = [&quot;,&quot;,&quot; &quot;];
-        keywordAutoComp.resultTypeList = false;
-        keywordAutoComp.queryDelay = 0;
-        /*  Causes all the possibilities in the keyword to appear when a user 
</del><ins>+        var fieldAutoComp =
+          new YAHOO.widget.AutoComplete(field, container, this.dataSource[field]);
+        fieldAutoComp.maxResultsDisplayed = YAHOO.bugzilla.field_array[field].length;
+        fieldAutoComp.formatResult = fieldAutoComp.formatEscapedResult;
+        fieldAutoComp.minQueryLength = 0;
+        fieldAutoComp.useIFrame = true;
+        fieldAutoComp.delimChar = [&quot;,&quot;,&quot; &quot;];
+        fieldAutoComp.resultTypeList = false;
+        fieldAutoComp.queryDelay = 0;
+        /*  Causes all the possibilities in the field to appear when a user
</ins><span class="cx">          *  focuses on the textbox 
</span><span class="cx">          */
</span><del>-        keywordAutoComp.textboxFocusEvent.subscribe( function(){
-            var sInputValue = YAHOO.util.Dom.get('keywords').value;
-            if( sInputValue.length === 0 ){
</del><ins>+        fieldAutoComp.textboxFocusEvent.subscribe( function(){
+            var sInputValue = YAHOO.util.Dom.get(field).value;
+            if( sInputValue.length === 0
+                &amp;&amp; YAHOO.bugzilla.field_array[field].length &gt; 0 ){
</ins><span class="cx">                 this.sendQuery(sInputValue);
</span><span class="cx">                 this.collapseContainer();
</span><span class="cx">                 this.expandContainer();
</span><span class="cx">             }
</span><span class="cx">         });
</span><del>-        keywordAutoComp.dataRequestEvent.subscribe( function(type, args) {
</del><ins>+        fieldAutoComp.dataRequestEvent.subscribe( function(type, args) {
</ins><span class="cx">             args[0].autoHighlight = args[1] != '';
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> };
</span><ins>+
+/**
+ * Set the disable email checkbox to true if the user has disabled text
+ */
+function userDisabledTextOnChange(disabledtext) {
+    var disable_mail = document.getElementById('disable_mail');
+    if (disabledtext.value === &quot;&quot; &amp;&amp; !disable_mail_manually_set) {
+        disable_mail.checked = false;
+    }
+    if (disabledtext.value !== &quot;&quot; &amp;&amp; !disable_mail_manually_set) {
+        disable_mail.checked = true;
+    }
+}
+
+/**
+ * Force the browser to honour the selected option when a page is refreshed,
+ * but only if the user hasn't explicitly selected a different option.
+ */
+function initDirtyFieldTracking() {
+    // old IE versions don't provide the information we need to make this fix work
+    // however they aren't affected by this issue, so it's ok to ignore them
+    if (YAHOO.env.ua.ie &gt; 0 &amp;&amp; YAHOO.env.ua.ie &lt;= 8) return;
+    var selects = document.getElementById('changeform').getElementsByTagName('select');
+    for (var i = 0, l = selects.length; i &lt; l; i++) {
+        var el = selects[i];
+        var el_dirty = document.getElementById(el.name + '_dirty');
+        if (!el_dirty) continue;
+        if (!el_dirty.value) {
+            var preSelected = bz_preselectedOptions(el);
+            if (!el.multiple) {
+                preSelected.selected = true;
+            } else {
+                el.selectedIndex = -1;
+                for (var j = 0, m = preSelected.length; j &lt; m; j++) {
+                    preSelected[j].selected = true;
+                }
+            }
+        }
+        YAHOO.util.Event.on(el, &quot;change&quot;, function(e) {
+            var el = e.target || e.srcElement;
+            var preSelected = bz_preselectedOptions(el);
+            var currentSelected = bz_selectedOptions(el);
+            var isDirty = false;
+            if (!el.multiple) {
+                isDirty = preSelected.index != currentSelected.index;
+            } else {
+                if (preSelected.length != currentSelected.length) {
+                    isDirty = true;
+                } else {
+                    for (var i = 0, l = preSelected.length; i &lt; l; i++) {
+                        if (currentSelected[i].index != preSelected[i].index) {
+                            isDirty = true;
+                            break;
+                        }
+                    }
+                }
+            }
+            document.getElementById(el.name + '_dirty').value = isDirty ? '1' : '';
+        });
+    }
+}
+
+/**
+ * Comment preview
+ */
+
+var last_comment_text = '';
+
+function show_comment_preview(bug_id) {
+    var Dom = YAHOO.util.Dom;
+    var comment = document.getElementById('comment');
+    var preview = document.getElementById('comment_preview');
+
+    if (!comment || !preview) return;
+    if (Dom.hasClass('comment_preview_tab', 'active_comment_tab')) return;
+
+    preview.style.width = (comment.clientWidth - 4) + 'px';
+    preview.style.height = comment.offsetHeight + 'px';
+
+    var comment_tab = document.getElementById('comment_tab');
+    Dom.addClass(comment, 'bz_default_hidden');
+    Dom.removeClass(comment_tab, 'active_comment_tab');
+    comment_tab.setAttribute('aria-selected', 'false');
+
+    var preview_tab = document.getElementById('comment_preview_tab');
+    Dom.removeClass(preview, 'bz_default_hidden');
+    Dom.addClass(preview_tab, 'active_comment_tab');
+    preview_tab.setAttribute('aria-selected', 'true');
+
+    Dom.addClass('comment_preview_error', 'bz_default_hidden');
+
+    if (last_comment_text == comment.value)
+        return;
+
+    Dom.addClass('comment_preview_text', 'bz_default_hidden');
+    Dom.removeClass('comment_preview_loading', 'bz_default_hidden');
+
+    YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
+    YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi',
+    {
+        success: function(res) {
+            data = YAHOO.lang.JSON.parse(res.responseText);
+            if (data.error) {
+                Dom.addClass('comment_preview_loading', 'bz_default_hidden');
+                Dom.removeClass('comment_preview_error', 'bz_default_hidden');
+                Dom.get('comment_preview_error').innerHTML =
+                    YAHOO.lang.escapeHTML(data.error.message);
+            } else {
+                document.getElementById('comment_preview_text').innerHTML = data.result.html;
+                Dom.addClass('comment_preview_loading', 'bz_default_hidden');
+                Dom.removeClass('comment_preview_text', 'bz_default_hidden');
+                last_comment_text = comment.value;
+            }
+        },
+        failure: function(res) {
+            Dom.addClass('comment_preview_loading', 'bz_default_hidden');
+            Dom.removeClass('comment_preview_error', 'bz_default_hidden');
+            Dom.get('comment_preview_error').innerHTML =
+                YAHOO.lang.escapeHTML(res.responseText);
+        }
+    },
+    YAHOO.lang.JSON.stringify({
+        version: &quot;1.1&quot;,
+        method: 'Bug.render_comment',
+        params: {
+            Bugzilla_api_token: BUGZILLA.api_token,
+            id: bug_id,
+            text: comment.value
+        }
+    })
+    );
+}
+
+function show_comment_edit() {
+    var comment = document.getElementById('comment');
+    var preview = document.getElementById('comment_preview');
+    if (!comment || !preview) return;
+    if (YAHOO.util.Dom.hasClass(comment, 'active_comment_tab')) return;
+
+    var preview_tab = document.getElementById('comment_preview_tab');
+    YAHOO.util.Dom.addClass(preview, 'bz_default_hidden');
+    YAHOO.util.Dom.removeClass(preview_tab, 'active_comment_tab');
+    preview_tab.setAttribute('aria-selected', 'false');
+
+    var comment_tab = document.getElementById('comment_tab');
+    YAHOO.util.Dom.removeClass(comment, 'bz_default_hidden');
+    YAHOO.util.Dom.addClass(comment_tab, 'active_comment_tab');
+    comment_tab.setAttribute('aria-selected', 'true');
+}
+
+function adjustRemainingTime() {
+    // subtracts time spent from remaining time
+    // prevent negative values if work_time &gt; bz_remaining_time
+    var new_time = Math.max(bz_remaining_time - document.changeform.work_time.value, 0.0);
+    // get upto 2 decimal places
+    document.changeform.remaining_time.value = Math.round(new_time * 100)/100;
+}
+
+function updateRemainingTime() {
+    // if the remaining time is changed manually, update bz_remaining_time
+    bz_remaining_time = document.changeform.remaining_time.value;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsflagjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/flag.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/flag.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/flag.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,10 @@
</span><del>-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the &quot;License&quot;); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an &quot;AS IS&quot; basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *  Myk Melez &lt;myk@mozilla.org&gt;
- *  Frédéric Buclin &lt;LpSolit@gmail.com&gt;
- *
- * ***** END LICENSE BLOCK ***** */
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> // Shows or hides a requestee field depending on whether or not
</span><span class="cx"> // the user is requesting the corresponding flag.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsglobaljs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/global.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/global.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/global.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,11 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-* License Version 1.1 (the &quot;License&quot;); you may not use this file
-* except in compliance with the License. You may obtain a copy of
-* the License at http://www.mozilla.org/MPL/
-*
-* Software distributed under the License is distributed on an &quot;AS
-* IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-* implied. See the License for the specific language governing
-* rights and limitations under the License.
-*
-* The Original Code is the Bugzilla Bug Tracking System.
-*
-* Contributor(s): 
-*   Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-*   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-*                 
-*/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><del>-var mini_login_constants;
-
</del><span class="cx"> function show_mini_login_form( suffix ) {
</span><span class="cx">     var login_link = document.getElementById('login_link' + suffix);
</span><span class="cx">     var login_form = document.getElementById('mini_login' + suffix);
</span><span class="lines">@@ -64,53 +52,6 @@
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function init_mini_login_form( suffix ) {
-    var mini_login = document.getElementById('Bugzilla_login' +  suffix );
-    var mini_password = document.getElementById('Bugzilla_password' +  suffix );
-    var mini_dummy = document.getElementById(
-        'Bugzilla_password_dummy' + suffix);
-    // If the login and password are blank when the page loads, we display
-    // &quot;login&quot; and &quot;password&quot; in the boxes by default.
-    if (mini_login.value == &quot;&quot; &amp;&amp; mini_password.value == &quot;&quot;) {
-        mini_login.value = mini_login_constants.login;
-        YAHOO.util.Dom.addClass(mini_login, &quot;bz_mini_login_help&quot;);
-        YAHOO.util.Dom.addClass(mini_password, 'bz_default_hidden');
-        YAHOO.util.Dom.removeClass(mini_dummy, 'bz_default_hidden');
-    }
-    else {
-        show_mini_login_form(suffix);
-    }
-}
-
-// Clear the words &quot;login&quot; and &quot;password&quot; from the form when you click
-// in one of the boxes. We clear them both when you click in either box
-// so that the browser's password-autocomplete can work.
-function mini_login_on_focus( suffix ) {
-    var mini_login = document.getElementById('Bugzilla_login' +  suffix );
-    var mini_password = document.getElementById('Bugzilla_password' +  suffix );
-    var mini_dummy = document.getElementById(
-        'Bugzilla_password_dummy' + suffix);
-
-    YAHOO.util.Dom.removeClass(mini_login, &quot;bz_mini_login_help&quot;);
-    if (mini_login.value == mini_login_constants.login) {
-        mini_login.value = '';
-    }
-    YAHOO.util.Dom.removeClass(mini_password, 'bz_default_hidden');
-    YAHOO.util.Dom.addClass(mini_dummy, 'bz_default_hidden');
-}
-
-function check_mini_login_fields( suffix ) {
-    var mini_login = document.getElementById('Bugzilla_login' +  suffix );
-    var mini_password = document.getElementById('Bugzilla_password' +  suffix );
-    if( (mini_login.value != &quot;&quot; &amp;&amp; mini_password.value != &quot;&quot;) 
-         &amp;&amp;  mini_login.value != mini_login_constants.login )
-    {
-      return true;
-    }
-    window.alert( mini_login_constants.warning );
-    return false;
-}
-
</del><span class="cx"> function set_language( value ) {
</span><span class="cx">     YAHOO.util.Cookie.set('LANG', value,
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsparamsjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/params.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/params.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/params.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is the Bugzilla Bug Tracking System.
- *
- * The Initial Developer of the Original Code is Marc Schumann.
- * Portions created by Marc Schumann are Copyright (c) 2007 Marc Schumann.
- * All rights reserved.
- *
- * Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> function sortedList_moveItem(paramName, direction, separator) {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsproductformjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/productform.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/productform.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/productform.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- * 
- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- * 
- * The Original Code is the Bugzilla Bug Tracking System.
- * 
- * The Initial Developer of the Original Code is Netscape Communications
- * Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All
- * Rights Reserved.
- * 
- * Contributor(s): Christian Reis &lt;kiko@async.com.br&gt;
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> // Functions to update form select elements based on a
</span><span class="lines">@@ -22,85 +10,10 @@
</span><span class="cx"> // collection of javascript arrays containing strings.
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Reads the selected classifications and updates product, component,
- * version and milestone lists accordingly.
</del><ins>+ * Reads the selected products and updates the component list accordingly.
</ins><span class="cx">  *
</span><del>- * @param  classfield Select element that contains classifications.
</del><span class="cx">  * @param  product    Select element that contains products.
</span><del>- * @param  component  Select element that contains components. Can be null if
- *                    there is no such element to update.
- * @param  version    Select element that contains versions. Can be null if
- *                    there is no such element to update.
- * @param  milestone  Select element that contains milestones. Can be null if
- *                    there is no such element to update.
- *
- * @global prods      Array of products indexed by classification name.
- * @global first_load Boolean; true if this is the first time this page loads
- *                    or false if not.
- * @global last_sel   Array that contains last list of products so we know what
- *                    has changed, and optimize for additions.
- */
-function selectClassification(classfield, product, component, version, milestone) {
-    // This is to avoid handling events that occur before the form
-    // itself is ready, which could happen in buggy browsers.
-    if (!classfield)
-        return;
-
-    // If this is the first load and nothing is selected, no need to
-    // merge and sort all lists; they are created sorted.
-    if ((first_load) &amp;&amp; (classfield.selectedIndex == -1)) {
-        first_load = false;
-        return;
-    }
-    
-    // Don't reset first_load as done in selectProduct. That's because we
-    // want selectProduct to handle the first_load attribute.
-
-    // Stores classifications that are selected.
-    var sel = Array();
-
-    // True if sel array has a full list or false if sel contains only
-    // new classifications that are to be merged to the current list.
-    var merging = false;
-
-    // If nothing selected, pick all.
-    var findall = classfield.selectedIndex == -1;
-    sel = get_selection(classfield, findall, false);
-    if (!findall) {
-        // Save sel for the next invocation of selectClassification().
-        var tmp = sel;
-    
-        // This is an optimization: if we have just added classifications to an
-        // existing selection, no need to clear the form elements and add
-        // everything again; just merge the new ones with the existing
-        // options.
-        if ((last_sel.length &gt; 0) &amp;&amp; (last_sel.length &lt; sel.length)) {
-            sel = fake_diff_array(sel, last_sel);
-            merging = true;
-        }
-        last_sel = tmp;
-    }
-
-    // Save original options selected.
-    var saved_prods = get_selection(product, false, true, null);
-
-    // Do the actual fill/update, reselect originally selected options.
-    updateSelect(prods, sel, product, merging, null);
-    restoreSelection(product, saved_prods);
-    selectProduct(product, component, version, milestone, null);
-}
-
-/**
- * Reads the selected products and updates component, version and milestone
- * lists accordingly.
- *
- * @param  product    Select element that contains products.
- * @param  component  Select element that contains components. Can be null if
- *                    there is no such element to update.
- * @param  version    Select element that contains versions. Can be null if
- *                    there is no such element to update.
- * @param  milestone  Select element that contains milestones. Can be null if
- *                    there is no such element to update.
</del><ins>+ * @param  component  Select element that contains components.
</ins><span class="cx">  * @param  anyval     Value to use for a special &quot;Any&quot; list item. Can be null
</span><span class="cx">  *                    to not use any. If used must and will be first item in
</span><span class="cx">  *                    the select element.
</span><span class="lines">@@ -108,21 +21,15 @@
</span><span class="cx">  * @global cpts       Array of arrays, indexed by product name. The subarrays
</span><span class="cx">  *                    contain a list of components to be fed to the respective
</span><span class="cx">  *                    select element.
</span><del>- * @global vers       Array of arrays, indexed by product name. The subarrays
- *                    contain a list of versions to be fed to the respective
- *                    select element.
- * @global tms        Array of arrays, indexed by product name. The subarrays
- *                    contain a list of milestones to be fed to the respective
- *                    select element.
</del><span class="cx">  * @global first_load Boolean; true if this is the first time this page loads
</span><span class="cx">  *                    or false if not.
</span><span class="cx">  * @global last_sel   Array that contains last list of products so we know what
</span><span class="cx">  *                    has changed, and optimize for additions.
</span><span class="cx">  */
</span><del>-function selectProduct(product, component, version, milestone, anyval) {
</del><ins>+function selectProduct(product, component, anyval) {
</ins><span class="cx">     // This is to avoid handling events that occur before the form
</span><span class="cx">     // itself is ready, which could happen in buggy browsers.
</span><del>-    if (!product)
</del><ins>+    if (!product || !component)
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // Do nothing if no products are defined. This is to avoid the
</span><span class="lines">@@ -159,15 +66,8 @@
</span><span class="cx">     var findall = (product.selectedIndex == -1
</span><span class="cx">                    || (anyval != null &amp;&amp; product.options[0].selected));
</span><span class="cx"> 
</span><del>-    if (useclassification) {
-        // Update index based on the complete product array.
-        sel = get_selection(product, findall, true, anyval);
-        for (var i=0; i&lt;sel.length; i++)
-           sel[i] = prods[sel[i]];
-    }
-    else {
-        sel = get_selection(product, findall, false, anyval);
-    }
</del><ins>+    sel = get_selection(product, findall, false, anyval);
+
</ins><span class="cx">     if (!findall) {
</span><span class="cx">         // Save sel for the next invocation of selectProduct().
</span><span class="cx">         var tmp = sel;
</span><span class="lines">@@ -184,23 +84,9 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Do the actual fill/update.
</span><del>-    if (component) {
-        var saved_cpts = get_selection(component, false, true, null);
-        updateSelect(cpts, sel, component, merging, anyval);
-        restoreSelection(component, saved_cpts);
-    }
-
-    if (version) {
-        var saved_vers = get_selection(version, false, true, null);
-        updateSelect(vers, sel, version, merging, anyval);
-        restoreSelection(version, saved_vers);
-    }
-
-    if (milestone) {
-        var saved_tms = get_selection(milestone, false, true, null);
-        updateSelect(tms, sel, milestone, merging, anyval);
-        restoreSelection(milestone, saved_tms);
-    }
</del><ins>+    var saved_cpts = get_selection(component, false, true, null);
+    updateSelect(cpts, sel, component, merging, anyval);
+    restoreSelection(component, saved_cpts);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsutiljs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/js/util.js (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/js/util.js        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/js/util.js        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,10 @@
</span><del>-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">  *
</span><del>- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the &quot;License&quot;); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an &quot;AS IS&quot; basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Cross Platform JavaScript Utility Library.
- *
- * The Initial Developer of the Original Code is
- * Everything Solved.
- * Portions created by the Initial Developer are Copyright (C) 2007
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
- *   Christopher A. Aillon &lt;christopher@aillon.com&gt;
- *
- * ***** END LICENSE BLOCK ***** */
</del><ins>+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Locate where an element is on the page, x-wise.
</span><span class="lines">@@ -143,10 +125,7 @@
</span><span class="cx">  */
</span><span class="cx"> function bz_isValueInArray(aArray, aValue)
</span><span class="cx"> {
</span><del>-  var run = 0;
-  var len = aArray.length;
-
-  for ( ; run &lt; len; run++) {
</del><ins>+  for (var run = 0, len = aArray.length ; run &lt; len; run++) {
</ins><span class="cx">     if (aArray[run] == aValue) {
</span><span class="cx">       return true;
</span><span class="cx">     }
</span><span class="lines">@@ -156,6 +135,26 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><ins>+ * Checks if a specified value is in the specified array by performing a
+ * case-insensitive comparison.
+ *
+ * @param  aArray Array to search for the value.
+ * @param  aValue Value to search from the array.
+ * @return        Boolean; true if value is found in the array and false if not.
+ */
+function bz_isValueInArrayIgnoreCase(aArray, aValue)
+{
+  var re = new RegExp(aValue.replace(/([^A-Za-z0-9])/g, &quot;\\$1&quot;), 'i');
+  for (var run = 0, len = aArray.length ; run &lt; len; run++) {
+    if (aArray[run].match(re)) {
+      return true;
+    }
+  }
+
+  return false;
+}
+
+/**
</ins><span class="cx">  * Create wanted options in a select form control.
</span><span class="cx">  *
</span><span class="cx">  * @param  aSelect        Select form control to manipulate.
</span><span class="lines">@@ -220,6 +219,55 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><ins>+ * Returns all Option elements that are selected in a &lt;select&gt;,
+ * as an array. Returns an empty array if nothing is selected.
+ *
+ * @param aSelect The select you want the selected values of.
+ */
+function bz_selectedOptions(aSelect) {
+    // HTML 5
+    if (aSelect.selectedOptions) {
+        return aSelect.selectedOptions;
+    }
+
+    var start_at = aSelect.selectedIndex;
+    if (start_at == -1) return [];
+    var first_selected =  aSelect.options[start_at];
+    if (!aSelect.multiple) return first_selected;
+    // selectedIndex is specified as being the &quot;first selected item&quot;,
+    // so we can start from there.
+    var selected = [first_selected];
+    var options_length = aSelect.options.length;
+    // We start after first_selected
+    for (var i = start_at + 1; i &lt; options_length; i++) {
+        var this_option = aSelect.options[i];
+        if (this_option.selected) selected.push(this_option);
+    }
+    return selected;
+}
+
+/**
+ * Returns all Option elements that have the &quot;selected&quot; attribute, as an array.
+ * Returns an empty array if nothing is selected.
+ *
+ * @param aSelect The select you want the pre-selected values of.
+ */
+function bz_preselectedOptions(aSelect) {
+    var options = aSelect.options;
+    var selected = new Array();
+    for (var i = 0, l = options.length; i &lt; l; i++) {
+        var attributes = options[i].attributes;
+        for (var j = 0, m = attributes.length; j &lt; m; j++) {
+            if (attributes[j].name == 'selected') {
+                if (!aSelect.multiple) return options[i];
+                selected.push(options[i]);
+            }
+        }
+    }
+    return selected;
+}
+
+/**
</ins><span class="cx">  * Tells you where (what index) in a &lt;select&gt; a particular option is.
</span><span class="cx">  * Returns -1 if the value is not in the &lt;select&gt;
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgjsonrpccgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/jsonrpc.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/jsonrpc.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/jsonrpc.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla JSON Webservices Interface.
-#
-# The Initial Developer of the Original Code is the San Jose State
-# University Foundation. Portions created by the Initial Developer 
-# are Copyright (C) 2008 the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -29,7 +18,7 @@
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><span class="cx"> BEGIN {
</span><span class="cx">     if (!Bugzilla-&gt;feature('jsonrpc')) {
</span><del>-        ThrowCodeError('feature_disabled', { feature =&gt; 'jsonrpc' });
</del><ins>+        ThrowUserError('feature_disabled', { feature =&gt; 'jsonrpc' });
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> use Bugzilla::WebService::Server::JSONRPC;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorglibhtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/lib/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/lib/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/lib/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgmigratepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/migrate.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/migrate.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/migrate.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,15 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is The Bugzilla Migration Tool.
-#
-# The Initial Developer of the Original Code is Lambda Research
-# Corporation. Portions created by the Initial Developer are Copyright
-# (C) 2009 the Initial Developer. All Rights Reserved.
-#
-# Contributor(s): 
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use File::Basename;
</span><span class="cx"> BEGIN { chdir dirname($0); }
</span><span class="cx"> use lib qw(. lib);
</span><span class="lines">@@ -107,4 +96,4 @@
</span><span class="cx"> You may also need to increase the number of file handles a process is allowed
</span><span class="cx"> to hold open (as the migrator will create a file handle for each attachment
</span><span class="cx"> in your database). On Linux and simliar systems, you can do this as root
</span><del>-by typing C&lt;ulimit -n 65535&gt; before running your script.
</del><span class="cx">\ No newline at end of file
</span><ins>+by typing C&lt;ulimit -n 65535&gt; before running your script.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgmod_perlpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/mod_perl.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/mod_perl.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/mod_perl.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(/var/www/html /var/www/html/lib); # WEBKIT_CHANGES
</span><span class="cx"> package Bugzilla::ModPerl;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span><span class="lines">@@ -40,6 +33,7 @@
</span><span class="cx"> use Apache2::ServerUtil;
</span><span class="cx"> use ModPerl::RegistryLoader ();
</span><span class="cx"> use File::Basename ();
</span><ins>+use DateTime ();
</ins><span class="cx"> 
</span><span class="cx"> # This loads most of our modules.
</span><span class="cx"> use Bugzilla ();
</span><span class="lines">@@ -64,7 +58,7 @@
</span><span class="cx"> # not counting RAM it is sharing with the other httpd processes.
</span><span class="cx"> #if WEBKIT_CHANGES
</span><span class="cx"> # bugs.webkit.org children are normally about 400MB.
</span><del>-$Apache2::SizeLimit::MAX_UNSHARED_SIZE = 700000;
</del><ins>+Apache2::SizeLimit-&gt;set_max_unshared_size(700_000);
</ins><span class="cx"> #endif // WEBKIT_CHANGES
</span><span class="cx"> 
</span><span class="cx"> my $cgi_path = Bugzilla::Constants::bz_locations()-&gt;{'cgi_path'};
</span><span class="lines">@@ -85,7 +79,7 @@
</span><span class="cx">     PerlCleanupHandler  Apache2::SizeLimit Bugzilla::ModPerl::CleanupHandler
</span><span class="cx">     PerlOptions +ParseHeaders
</span><span class="cx">     Options +ExecCGI
</span><del>-    AllowOverride Limit FileInfo Indexes
</del><ins>+    AllowOverride All
</ins><span class="cx">     DirectoryIndex index.cgi index.html
</span><span class="cx"> &lt;/Directory&gt;
</span><span class="cx"> EOT
</span><span class="lines">@@ -119,9 +113,14 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::ModPerl::ResponseHandler;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(ModPerl::Registry);
</del><ins>+use warnings;
+
+use parent qw(ModPerl::Registry);
</ins><span class="cx"> use Bugzilla;
</span><ins>+use Bugzilla::Constants qw(USAGE_MODE_REST);
</ins><span class="cx"> 
</span><span class="cx"> sub handler : method {
</span><span class="cx">     my $class = shift;
</span><span class="lines">@@ -139,12 +138,23 @@
</span><span class="cx">     use warnings;
</span><span class="cx"> 
</span><span class="cx">     Bugzilla::init_page();
</span><del>-    return $class-&gt;SUPER::handler(@_);
</del><ins>+    my $result = $class-&gt;SUPER::handler(@_);
+
+    # When returning data from the REST api we must only return 200 or 304,
+    # which tells Apache not to append its error html documents to the
+    # response.
+    return Bugzilla-&gt;usage_mode == USAGE_MODE_REST &amp;&amp; $result != 304
+           ? Apache2::Const::OK
+           : $result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> package Bugzilla::ModPerl::CleanupHandler;
</span><ins>+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use Apache2::Const -compile =&gt; qw(OK);
</span><span class="cx"> 
</span><span class="cx"> sub handler {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgpagecgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/page.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/page.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/page.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,10 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> ###############################################################################
</span><span class="cx"> # This CGI is a general template display engine. To display templates using it,
</span><span class="lines">@@ -28,7 +13,9 @@
</span><span class="cx"> # a content-type, e.g. html.
</span><span class="cx"> ###############################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -69,13 +56,13 @@
</span><span class="cx">     # Be careful not to allow directory traversal.
</span><span class="cx">     if ($id =~ /\.\./) {
</span><span class="cx">         # two dots in a row is bad
</span><del>-        ThrowCodeError(&quot;bad_page_cgi_id&quot;, { &quot;page_id&quot; =&gt; $id });
</del><ins>+        ThrowUserError(&quot;bad_page_cgi_id&quot;, { &quot;page_id&quot; =&gt; $id });
</ins><span class="cx">     }
</span><span class="cx">     # Split into name and ctype.
</span><span class="cx">     $id =~ /^([\w\-\/\.]+)\.(\w+)$/;
</span><span class="cx">     if (!$2) {
</span><span class="cx">         # if this regexp fails to match completely, something bad came in
</span><del>-        ThrowCodeError(&quot;bad_page_cgi_id&quot;, { &quot;page_id&quot; =&gt; $id });
</del><ins>+        ThrowUserError(&quot;bad_page_cgi_id&quot;, { &quot;page_id&quot; =&gt; $id });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     my %vars = ( 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgpost_bugcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/post_bug.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/post_bug.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/post_bug.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -35,14 +20,12 @@
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::User;
</span><del>-use Bugzilla::Field;
</del><span class="cx"> use Bugzilla::Hook;
</span><del>-use Bugzilla::Product;
-use Bugzilla::Component;
-use Bugzilla::Keyword;
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> use Bugzilla::Flag;
</span><span class="cx"> 
</span><ins>+use List::MoreUtils qw(uniq);
+
</ins><span class="cx"> my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</span><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="lines">@@ -81,8 +64,6 @@
</span><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-umask 0;
-
</del><span class="cx"> # The format of the initial comment can be structured by adding fields to the
</span><span class="cx"> # enter_bug template and then referencing them in the comment template.
</span><span class="cx"> my $comment;
</span><span class="lines">@@ -122,7 +103,7 @@
</span><span class="cx">     version
</span><span class="cx">     target_milestone
</span><span class="cx">     status_whiteboard
</span><del>-
</del><ins>+    see_also
</ins><span class="cx">     estimated_time
</span><span class="cx">     deadline
</span><span class="cx"> ));
</span><span class="lines">@@ -223,13 +204,12 @@
</span><span class="cx"> 
</span><span class="cx"> Bugzilla::Hook::process('post_bug_after_creation', { vars =&gt; $vars });
</span><span class="cx"> 
</span><del>-ThrowCodeError(&quot;bug_error&quot;, { bug =&gt; $bug }) if $bug-&gt;error;
-
</del><span class="cx"> my $recipients = { changer =&gt; $user };
</span><span class="cx"> my $bug_sent = Bugzilla::BugMail::Send($id, $recipients);
</span><span class="cx"> $bug_sent-&gt;{type} = 'created';
</span><span class="cx"> $bug_sent-&gt;{id}   = $id;
</span><span class="cx"> my @all_mail_results = ($bug_sent);
</span><ins>+
</ins><span class="cx"> foreach my $dep (@{$bug-&gt;dependson || []}, @{$bug-&gt;blocked || []}) {
</span><span class="cx">     my $dep_sent = Bugzilla::BugMail::Send($dep, $recipients);
</span><span class="cx">     $dep_sent-&gt;{type} = 'dep';
</span><span class="lines">@@ -236,6 +216,14 @@
</span><span class="cx">     $dep_sent-&gt;{id}   = $dep;
</span><span class="cx">     push(@all_mail_results, $dep_sent);
</span><span class="cx"> }
</span><ins>+
+# Sending emails for any referenced bugs.
+foreach my $ref_bug_id (uniq @{ $bug-&gt;{see_also_changes} || [] }) {
+    my $ref_sent = Bugzilla::BugMail::Send($ref_bug_id, $recipients);
+    $ref_sent-&gt;{id} = $ref_bug_id;
+    push(@all_mail_results, $ref_sent);
+}
+
</ins><span class="cx"> $vars-&gt;{sentmail} = \@all_mail_results;
</span><span class="cx"> 
</span><span class="cx"> $format = $template-&gt;get_format(&quot;bug/create/created&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgprocess_bugcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/process_bug.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/process_bug.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/process_bug.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,47 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Dave Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Jeff Hedlund &lt;jeff.hedlund@matrixsi.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-#                 Lance Larsh &lt;lance.larsh@oracle.com&gt;
-#                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-# Implementation notes for this file:
-#
-# 1) the 'id' form parameter is validated early on, and if it is not a valid
-# bugid an error will be reported, so it is OK for later code to simply check
-# for a defined form 'id' value, and it can assume a valid bugid.
-#
-# 2) If the 'id' form parameter is not defined (after the initial validation),
-# then we are processing multiple bugs, and @idlist will contain the ids.
-#
-# 3) If we are processing just the one id, then it is stored in @idlist for
-# later processing.
-
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -51,10 +18,6 @@
</span><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><del>-use Bugzilla::Field;
-use Bugzilla::Product;
-use Bugzilla::Component;
-use Bugzilla::Keyword;
</del><span class="cx"> use Bugzilla::Flag;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> use Bugzilla::Token;
</span><span class="lines">@@ -96,7 +59,7 @@
</span><span class="cx"> # Create a list of objects for all bugs being modified in this request.
</span><span class="cx"> my @bug_objects;
</span><span class="cx"> if (defined $cgi-&gt;param('id')) {
</span><del>-  my $bug = Bugzilla::Bug-&gt;check(scalar $cgi-&gt;param('id'));
</del><ins>+  my $bug = Bugzilla::Bug-&gt;check_for_edit(scalar $cgi-&gt;param('id'));
</ins><span class="cx">   $cgi-&gt;param('id', $bug-&gt;id);
</span><span class="cx">   push(@bug_objects, $bug);
</span><span class="cx"> } else {
</span><span class="lines">@@ -103,7 +66,7 @@
</span><span class="cx">     foreach my $i ($cgi-&gt;param()) {
</span><span class="cx">         if ($i =~ /^id_([1-9][0-9]*)/) {
</span><span class="cx">             my $id = $1;
</span><del>-            push(@bug_objects, Bugzilla::Bug-&gt;check($id));
</del><ins>+            push(@bug_objects, Bugzilla::Bug-&gt;check_for_edit($id));
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -138,32 +101,50 @@
</span><span class="cx"> 
</span><span class="cx"> # Check for a mid-air collision. Currently this only works when updating
</span><span class="cx"> # an individual bug.
</span><del>-if (defined $cgi-&gt;param('delta_ts'))
-{
-    my $delta_ts_z = datetime_from($cgi-&gt;param('delta_ts'));
</del><ins>+my $delta_ts = $cgi-&gt;param('delta_ts') || '';
+
+if ($delta_ts) {
+    my $delta_ts_z = datetime_from($delta_ts)
+      or ThrowCodeError('invalid_timestamp', { timestamp =&gt; $delta_ts });
+
</ins><span class="cx">     my $first_delta_tz_z =  datetime_from($first_bug-&gt;delta_ts);
</span><ins>+
</ins><span class="cx">     if ($first_delta_tz_z ne $delta_ts_z) {
</span><del>-        ($vars-&gt;{'operations'}) =
-            Bugzilla::Bug::GetBugActivity($first_bug-&gt;id, undef,
-                                          scalar $cgi-&gt;param('delta_ts'));
</del><ins>+        ($vars-&gt;{'operations'}) = $first_bug-&gt;get_activity(undef, $delta_ts);
</ins><span class="cx"> 
</span><del>-        $vars-&gt;{'title_tag'} = &quot;mid_air&quot;;
-    
-        ThrowCodeError('undefined_field', { field =&gt; 'longdesclength' })
-            if !defined $cgi-&gt;param('longdesclength');
-
-        $vars-&gt;{'start_at'} = $cgi-&gt;param('longdesclength');
</del><span class="cx">         # Always sort midair collision comments oldest to newest,
</span><span class="cx">         # regardless of the user's personal preference.
</span><del>-        $vars-&gt;{'comments'} = $first_bug-&gt;comments({ order =&gt; &quot;oldest_to_newest&quot; });
-        $vars-&gt;{'bug'} = $first_bug;
</del><ins>+        my $comments = $first_bug-&gt;comments({ order =&gt; 'oldest_to_newest',
+                                              after =&gt; $delta_ts });
</ins><span class="cx"> 
</span><del>-        # The token contains the old delta_ts. We need a new one.
-        $cgi-&gt;param('token', issue_hash_token([$first_bug-&gt;id, $first_bug-&gt;delta_ts]));
-        # Warn the user about the mid-air collision and ask them what to do.
-        $template-&gt;process(&quot;bug/process/midair.html.tmpl&quot;, $vars)
-          || ThrowTemplateError($template-&gt;error());
-        exit;
</del><ins>+        # Show midair if previous changes made other than CC
+        # and/or one or more comments were made
+        my $do_midair = scalar @$comments ? 1 : 0;
+
+        if (!$do_midair) {
+            foreach my $operation (@{ $vars-&gt;{'operations'} }) {
+                foreach my $change (@{ $operation-&gt;{'changes'} }) {
+                    if ($change-&gt;{'fieldname'} ne 'cc') {
+                        $do_midair = 1;
+                        last;
+                    }
+                }
+                last if $do_midair;
+            }
+        }
+
+        if ($do_midair) {
+            $vars-&gt;{'title_tag'} = &quot;mid_air&quot;;
+            $vars-&gt;{'comments'} = $comments;
+            $vars-&gt;{'bug'} = $first_bug;
+            # The token contains the old delta_ts. We need a new one.
+            $cgi-&gt;param('token', issue_hash_token([$first_bug-&gt;id, $first_bug-&gt;delta_ts]));
+
+            # Warn the user about the mid-air collision and ask them what to do.
+            $template-&gt;process(&quot;bug/process/midair.html.tmpl&quot;, $vars)
+                || ThrowTemplateError($template-&gt;error());
+            exit;
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -173,7 +154,7 @@
</span><span class="cx"> my $token = $cgi-&gt;param('token');
</span><span class="cx"> 
</span><span class="cx"> if ($cgi-&gt;param('id')) {
</span><del>-    check_hash_token($token, [$first_bug-&gt;id, $first_bug-&gt;delta_ts]);
</del><ins>+    check_hash_token($token, [$first_bug-&gt;id, $delta_ts || $first_bug-&gt;delta_ts]);
</ins><span class="cx"> }
</span><span class="cx"> else {
</span><span class="cx">     check_token_data($token, 'buglist_mass_change', 'query.cgi');
</span><span class="lines">@@ -213,15 +194,6 @@
</span><span class="cx">     $action = 'nothing';
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# For each bug, we have to check if the user can edit the bug the product
-# is currently in, before we allow them to change anything.
-foreach my $bug (@bug_objects) {
-    if (!Bugzilla-&gt;user-&gt;can_edit_product($bug-&gt;product_obj-&gt;id) ) {
-        ThrowUserError(&quot;product_edit_denied&quot;,
-                      { product =&gt; $bug-&gt;product });
-    }
-}
-
</del><span class="cx"> # Component, target_milestone, and version are in here just in case
</span><span class="cx"> # the 'product' field wasn't defined in the CGI. It doesn't hurt to set
</span><span class="cx"> # them twice.
</span><span class="lines">@@ -230,9 +202,9 @@
</span><span class="cx">                     bug_file_loc status_whiteboard short_desc
</span><span class="cx">                     deadline remaining_time estimated_time
</span><span class="cx">                     work_time set_default_assignee set_default_qa_contact
</span><del>-                    cclist_accessible reporter_accessible 
</del><ins>+                    cclist_accessible reporter_accessible
</ins><span class="cx">                     product confirm_product_change
</span><del>-                    bug_status resolution dup_id);
</del><ins>+                    bug_status resolution dup_id bug_ignored);
</ins><span class="cx"> push(@set_fields, 'assigned_to') if !$cgi-&gt;param('set_default_assignee');
</span><span class="cx"> push(@set_fields, 'qa_contact')  if !$cgi-&gt;param('set_default_qa_contact');
</span><span class="cx"> my %field_translation = (
</span><span class="lines">@@ -262,13 +234,13 @@
</span><span class="cx"> }
</span><span class="cx"> if (should_set('comment')) {
</span><span class="cx">     $set_all_fields{comment} = {
</span><del>-        body       =&gt; scalar $cgi-&gt;param('comment'),
-        is_private =&gt; scalar $cgi-&gt;param('comment_is_private'),
</del><ins>+        body        =&gt; scalar $cgi-&gt;param('comment'),
+        is_private  =&gt; scalar $cgi-&gt;param('comment_is_private'),
</ins><span class="cx">     };
</span><span class="cx"> }
</span><span class="cx"> if (should_set('see_also')) {
</span><span class="cx">     $set_all_fields{'see_also'}-&gt;{add} = 
</span><del>-        [split(/[\s,]+/, $cgi-&gt;param('see_also'))];
</del><ins>+        [split(/[\s]+/, $cgi-&gt;param('see_also'))];
</ins><span class="cx"> }
</span><span class="cx"> if (should_set('remove_see_also')) {
</span><span class="cx">     $set_all_fields{'see_also'}-&gt;{remove} = [$cgi-&gt;param('remove_see_also')];
</span><span class="lines">@@ -301,7 +273,7 @@
</span><span class="cx">         }
</span><span class="cx">     } else {
</span><span class="cx">         @cc_add = $cgi-&gt;param('newcc');
</span><del>-        push(@cc_add, Bugzilla-&gt;user) if $cgi-&gt;param('addselfcc');
</del><ins>+        push(@cc_add, $user) if $cgi-&gt;param('addselfcc');
</ins><span class="cx"> 
</span><span class="cx">         # We came from show_bug which uses a select box to determine what cc's
</span><span class="cx">         # need to be removed...
</span><span class="lines">@@ -317,16 +289,26 @@
</span><span class="cx"> if (defined $cgi-&gt;param('id')) {
</span><span class="cx">     # Since aliases are unique (like bug numbers), they can only be changed
</span><span class="cx">     # for one bug at a time.
</span><del>-    if (Bugzilla-&gt;params-&gt;{&quot;usebugaliases&quot;} &amp;&amp; defined $cgi-&gt;param('alias')) {
-        $set_all_fields{alias} = $cgi-&gt;param('alias');
</del><ins>+    if (defined $cgi-&gt;param('newalias') || defined $cgi-&gt;param('removealias')) {
+        my @alias_add = split /[, ]+/, $cgi-&gt;param('newalias');
+
+        # We came from bug_form which uses a select box to determine what
+        # aliases need to be removed...
+        my @alias_remove = ();
+        if ($cgi-&gt;param('removealias') &amp;&amp; $cgi-&gt;param('alias')) {
+            @alias_remove = $cgi-&gt;param('alias');
+        }
+
+        $set_all_fields{alias} = { add =&gt; \@alias_add, remove =&gt; \@alias_remove };
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> my %is_private;
</span><span class="cx"> foreach my $field (grep(/^defined_isprivate/, $cgi-&gt;param())) {
</span><del>-    $field =~ /(\d+)$/;
-    my $comment_id = $1;
-    $is_private{$comment_id} = $cgi-&gt;param(&quot;isprivate_$comment_id&quot;);
</del><ins>+    if ($field =~ /(\d+)$/) {
+        my $comment_id = $1;
+        $is_private{$comment_id} = $cgi-&gt;param(&quot;isprivate_$comment_id&quot;);
+    }
</ins><span class="cx"> }
</span><span class="cx"> $set_all_fields{comment_is_private} = \%is_private;
</span><span class="cx"> 
</span><span class="lines">@@ -364,7 +346,26 @@
</span><span class="cx">     my ($flags, $new_flags) = Bugzilla::Flag-&gt;extract_flags_from_cgi(
</span><span class="cx">         $first_bug, undef, $vars);
</span><span class="cx">     $first_bug-&gt;set_flags($flags, $new_flags);
</span><ins>+
+    # Tags can only be set to one bug at once.
+    if (should_set('tag')) {
+        my @new_tags = grep { trim($_) } split(/,/, $cgi-&gt;param('tag'));
+        my ($tags_removed, $tags_added) = diff_arrays($first_bug-&gt;tags, \@new_tags);
+        $first_bug-&gt;remove_tag($_) foreach @$tags_removed;
+        $first_bug-&gt;add_tag($_) foreach @$tags_added;
+    }
</ins><span class="cx"> }
</span><ins>+else {
+    # Update flags on multiple bugs. The cgi params are slightly different
+    # than on a single bug, so we need to call a different sub. We also
+    # need to call this per bug, since we might be updating a flag in one
+    # bug, but adding it to a second bug
+    foreach my $b (@bug_objects) {
+        my ($flags, $new_flags)
+            = Bugzilla::Flag-&gt;multi_extract_flags_from_cgi($b, $vars);
+        $b-&gt;set_flags($flags, $new_flags);
+    }
+}
</ins><span class="cx"> 
</span><span class="cx"> ##############################
</span><span class="cx"> # Do Actual Database Updates #
</span><span class="lines">@@ -378,7 +379,7 @@
</span><span class="cx">         # status, so we should inform the user about that.
</span><span class="cx">         if (!is_open_state($new_status) &amp;&amp; $changes-&gt;{'remaining_time'}) {
</span><span class="cx">             $vars-&gt;{'message'} = &quot;remaining_time_zeroed&quot;
</span><del>-              if Bugzilla-&gt;user-&gt;is_timetracker;
</del><ins>+              if $user-&gt;is_timetracker;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -406,6 +407,10 @@
</span><span class="cx">         if ($action eq 'next_bug') {
</span><span class="cx">             $vars-&gt;{'nextbug'} = $bug-&gt;id;
</span><span class="cx">         }
</span><ins>+        # For performance reasons, preload visibility of dependencies
+        # and duplicates related to this bug.
+        Bugzilla::Bug-&gt;preload([$bug]);
+
</ins><span class="cx">         $template-&gt;process(&quot;bug/show.html.tmpl&quot;, $vars)
</span><span class="cx">           || ThrowTemplateError($template-&gt;error());
</span><span class="cx">         exit;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgquerycgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/query.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/query.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/query.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 David Gardiner &lt;david.gardiner@unisa.edu.au&gt;
-#                 Matthias Radestock &lt;matthias@sorted.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -32,15 +16,56 @@
</span><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Search;
</span><ins>+use Bugzilla::Search::Saved;
</ins><span class="cx"> use Bugzilla::User;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Product;
</span><ins>+use Bugzilla::Version;
</ins><span class="cx"> use Bugzilla::Keyword;
</span><span class="cx"> use Bugzilla::Field;
</span><del>-use Bugzilla::Install::Util qw(vers_cmp);
</del><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><ins>+###############
+# Subroutines #
+###############
+
+sub get_product_values {
+    my ($products, $field, $vars) = @_;
+    my @all_values = map { @{ $_-&gt;$field } } @$products;
+
+    my (@unique, %duplicates, %duplicate_count, %seen);
+    foreach my $value (@all_values) {
+        my $lc_name = lc($value-&gt;name);
+        if ($seen{$lc_name}) {
+            $duplicate_count{$seen{$lc_name}-&gt;id}++;
+            $duplicates{$value-&gt;id} = $seen{$lc_name};
+            next;
+        }
+        push(@unique, $value);
+        $seen{$lc_name} = $value;
+    }
+
+    $field =~ s/s$//;
+    if ($field eq 'version') {
+        @unique = sort { vers_cmp(lc($a-&gt;name), lc($b-&gt;name)) } @unique;
+    }
+    else {
+        @unique = sort { lc($a-&gt;name) cmp lc($b-&gt;name) } @unique;
+    }
+
+    $field = 'target_milestone' if $field eq 'milestone';
+    $vars-&gt;{duplicates}-&gt;{$field} = \%duplicates;
+    $vars-&gt;{duplicate_count}-&gt;{$field} = \%duplicate_count;
+    # &quot;component&quot; is a reserved word in Template Toolkit.
+    $field = 'component_' if $field eq 'component';
+    $vars-&gt;{$field} = \@unique;
+}
+
+###############
+# Main Script #
+###############
+
</ins><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -54,9 +79,11 @@
</span><span class="cx">     if ($userid) {
</span><span class="cx">         my $token = $cgi-&gt;param('token');
</span><span class="cx">         check_hash_token($token, ['nukedefaultquery']);
</span><del>-        $dbh-&gt;do(&quot;DELETE FROM namedqueries&quot; .
-                 &quot; WHERE userid = ? AND name = ?&quot;, 
-                 undef, ($userid, DEFAULT_QUERY_NAME));
</del><ins>+        my $named_queries = Bugzilla::Search::Saved-&gt;match(
+            { userid =&gt; $userid, name =&gt; DEFAULT_QUERY_NAME });
+        if (@$named_queries) {
+            $named_queries-&gt;[0]-&gt;remove_from_db();
+        }
</ins><span class="cx">     }
</span><span class="cx">     $buffer = &quot;&quot;;
</span><span class="cx"> }
</span><span class="lines">@@ -136,41 +163,18 @@
</span><span class="cx"> my @selectable_products = sort {lc($a-&gt;name) cmp lc($b-&gt;name)} 
</span><span class="cx">                                @{$user-&gt;get_selectable_products};
</span><span class="cx"> Bugzilla::Product::preload(\@selectable_products);
</span><ins>+$vars-&gt;{'product'} = \@selectable_products;
</ins><span class="cx"> 
</span><span class="cx"> # Create the component, version and milestone lists.
</span><del>-my %components;
-my %versions;
-my %milestones;
-
-# Exclude products with no components.
-@selectable_products = grep { scalar @{$_-&gt;components} } @selectable_products;
-
-foreach my $product (@selectable_products) {
-    $components{$_-&gt;name} = 1 foreach (@{$product-&gt;components});
-    $versions{$_-&gt;name}   = 1 foreach (@{$product-&gt;versions});
-    $milestones{$_-&gt;name} = 1 foreach (@{$product-&gt;milestones});
</del><ins>+foreach my $field (qw(components versions milestones)) {
+    get_product_values(\@selectable_products, $field, $vars);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-my @components = sort(keys %components);
-my @versions = sort { vers_cmp (lc($a), lc($b)) } keys %versions;
-my @milestones = sort(keys %milestones);
-
-$vars-&gt;{'product'} = \@selectable_products;
-
</del><span class="cx"> # Create data structures representing each classification
</span><span class="cx"> if (Bugzilla-&gt;params-&gt;{'useclassification'}) {
</span><span class="cx">     $vars-&gt;{'classification'} = $user-&gt;get_selectable_classifications;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# We use 'component_' because 'component' is a Template Toolkit reserved word.
-$vars-&gt;{'component_'} = \@components;
-
-$vars-&gt;{'version'} = \@versions;
-
-if (Bugzilla-&gt;params-&gt;{'usetargetmilestone'}) {
-    $vars-&gt;{'target_milestone'} = \@milestones;
-}
-
</del><span class="cx"> my @chfields;
</span><span class="cx"> 
</span><span class="cx"> push @chfields, &quot;[Bug creation]&quot;;
</span><span class="lines">@@ -188,12 +192,12 @@
</span><span class="cx">     push @chfields, $val;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (Bugzilla-&gt;user-&gt;is_timetracker) {
</del><ins>+if ($user-&gt;is_timetracker) {
</ins><span class="cx">     push @chfields, &quot;work_time&quot;;
</span><span class="cx"> } else {
</span><del>-    @chfields = grep($_ ne &quot;deadline&quot;, @chfields);
-    @chfields = grep($_ ne &quot;estimated_time&quot;, @chfields);
-    @chfields = grep($_ ne &quot;remaining_time&quot;, @chfields);
</del><ins>+    foreach my $tt_field (TIMETRACKING_FIELDS) {
+        @chfields = grep($_ ne $tt_field, @chfields);
+    }
</ins><span class="cx"> }
</span><span class="cx"> @chfields = (sort(@chfields));
</span><span class="cx"> $vars-&gt;{'chfield'} = \@chfields;
</span><span class="lines">@@ -207,13 +211,27 @@
</span><span class="cx"> # Boolean charts
</span><span class="cx"> my @fields = @{ Bugzilla-&gt;fields({ obsolete =&gt; 0 }) };
</span><span class="cx"> 
</span><ins>+my %exclude_fields = ();
+
</ins><span class="cx"> # If we're not in the time-tracking group, exclude time-tracking fields.
</span><del>-if (!Bugzilla-&gt;user-&gt;is_timetracker) {
</del><ins>+if (!$user-&gt;is_timetracker) {
</ins><span class="cx">     foreach my $tt_field (TIMETRACKING_FIELDS) {
</span><del>-        @fields = grep($_-&gt;name ne $tt_field, @fields);
</del><ins>+        $exclude_fields{$tt_field} = 1;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# Exclude fields turned off by params
+my %param_controlled_fields = ('useqacontact'        =&gt; 'qa_contact',
+                               'usetargetmilestone'  =&gt; 'target_milestone',
+                               'useclassification'   =&gt; 'classification',
+                               'usestatuswhiteboard' =&gt; 'status_whiteboard');
+
+while (my ($param, $field) = each %param_controlled_fields) {
+    $exclude_fields{$field} = 1 unless Bugzilla-&gt;params-&gt;{$param};
+}
+
+@fields = grep(!$exclude_fields{$_-&gt;name}, @fields);
+
</ins><span class="cx"> @fields = sort {lc($a-&gt;description) cmp lc($b-&gt;description)} @fields;
</span><span class="cx"> unshift(@fields, { name =&gt; &quot;noop&quot;, description =&gt; &quot;---&quot; });
</span><span class="cx"> $vars-&gt;{'fields'} = \@fields;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgquipscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/quips.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/quips.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/quips.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Owen Taylor &lt;otaylor@redhat.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 David Fallon &lt;davef@tetsubo.com&gt;
-#                 Tobias Burnus &lt;burnus@net-b.de&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -47,7 +32,7 @@
</span><span class="cx"> if ($action eq &quot;show&quot;) {
</span><span class="cx">     # Read in the entire quip list
</span><span class="cx">     my $quipsref = $dbh-&gt;selectall_arrayref(
</span><del>-                       &quot;SELECT quipid, userid, quip, approved FROM quips&quot;);
</del><ins>+                       &quot;SELECT quipid, userid, quip, approved FROM quips ORDER BY quipid&quot;);
</ins><span class="cx"> 
</span><span class="cx">     my $quips;
</span><span class="cx">     my @quipids;
</span><span class="lines">@@ -82,6 +67,10 @@
</span><span class="cx">                    || $user-&gt;in_group('bz_quip_moderators') || 0;
</span><span class="cx">     my $comment = $cgi-&gt;param(&quot;quip&quot;);
</span><span class="cx">     $comment || ThrowUserError(&quot;need_quip&quot;);
</span><ins>+    
+    ThrowUserError(&quot;quip_too_long&quot;, { length =&gt; length($comment) }) 
+        if length($comment) &gt; MAX_QUIP_LENGTH;
+
</ins><span class="cx">     trick_taint($comment); # Used in a placeholder below
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;do(&quot;INSERT INTO quips (userid, quip, approved) VALUES (?, ?, ?)&quot;,
</span><span class="lines">@@ -88,6 +77,7 @@
</span><span class="cx">              undef, ($user-&gt;id, $comment, $approved));
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'added_quip'} = $comment;
</span><ins>+    $vars-&gt;{'message'} = 'quips_added';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'approve') {
</span><span class="lines">@@ -128,6 +118,7 @@
</span><span class="cx">             join(&quot;,&quot;, @unapproved) . &quot;)&quot;) if($#unapproved &gt; -1);
</span><span class="cx">     $vars-&gt;{ 'approved' }   = \@approved;
</span><span class="cx">     $vars-&gt;{ 'unapproved' } = \@unapproved;
</span><ins>+    $vars-&gt;{'message'} = 'quips_approved_unapproved';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if ($action eq &quot;delete&quot;) {
</span><span class="lines">@@ -136,8 +127,7 @@
</span><span class="cx">                                          action =&gt; &quot;delete&quot;,
</span><span class="cx">                                          object =&gt; &quot;quips&quot;});
</span><span class="cx">     my $quipid = $cgi-&gt;param(&quot;quipid&quot;);
</span><del>-    ThrowCodeError(&quot;need_quipid&quot;) unless $quipid =~ /(\d+)/; 
-    $quipid = $1;
</del><ins>+    detaint_natural($quipid) || ThrowUserError(&quot;need_quipid&quot;);
</ins><span class="cx">     check_hash_token($token, ['quips', $quipid]);
</span><span class="cx"> 
</span><span class="cx">     ($vars-&gt;{'deleted_quip'}) = $dbh-&gt;selectrow_array(
</span><span class="lines">@@ -144,6 +134,7 @@
</span><span class="cx">                                     &quot;SELECT quip FROM quips WHERE quipid = ?&quot;,
</span><span class="cx">                                     undef, $quipid);
</span><span class="cx">     $dbh-&gt;do(&quot;DELETE FROM quips WHERE quipid = ?&quot;, undef, $quipid);
</span><ins>+    $vars-&gt;{'message'} = 'quips_deleted';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header();
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgrelogincgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/relogin.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/relogin.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/relogin.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 A. Karl Kornel &lt;karl@kornel.name&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -67,6 +54,22 @@
</span><span class="cx">     # Keep a temporary record of the user visiting this page
</span><span class="cx">     $vars-&gt;{'token'} = issue_session_token('sudo_prepared');
</span><span class="cx"> 
</span><ins>+    if ($user-&gt;authorizer-&gt;can_login) {
+        my $value = generate_random_password();
+        my %args;
+        $args{'-secure'} = 1 if Bugzilla-&gt;params-&gt;{ssl_redirect};
+
+        $cgi-&gt;send_cookie(-name =&gt; 'Bugzilla_login_request_cookie',
+                          -value =&gt; $value,
+                          -httponly =&gt; 1,
+                          %args);
+
+        # The user ID must not be set when generating the token, because
+        # that information will not be available when validating it.
+        local Bugzilla-&gt;user-&gt;{userid} = 0;
+        $vars-&gt;{'login_request_token'} = issue_hash_token(['login_request', $value]);
+    }
+
</ins><span class="cx">     # Show the sudo page
</span><span class="cx">     $vars-&gt;{'target_login_default'} = $cgi-&gt;param('target_login');
</span><span class="cx">     $vars-&gt;{'reason_default'} = $cgi-&gt;param('reason');
</span><span class="lines">@@ -146,11 +149,18 @@
</span><span class="cx"> 
</span><span class="cx">     # For future sessions, store the unique ID of the target user
</span><span class="cx">     my $token = Bugzilla::Token::_create_token($user-&gt;id, 'sudo', $target_user-&gt;id);
</span><ins>+
+    my %args;
+    if (Bugzilla-&gt;params-&gt;{ssl_redirect}) {
+        $args{'-secure'} = 1;
+    }
+
</ins><span class="cx">     $cgi-&gt;send_cookie('-name'    =&gt; 'sudo',
</span><span class="cx">                       '-expires' =&gt; $time_string,
</span><del>-                      '-value'   =&gt; $token
-    );
-    
</del><ins>+                      '-value'   =&gt; $token,
+                      '-httponly' =&gt; 1,
+                      %args);
+
</ins><span class="cx">     # For the present, change the values of Bugzilla::user &amp; Bugzilla::sudoer
</span><span class="cx">     Bugzilla-&gt;sudo_request($target_user, $user);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgreportcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/report.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/report.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/report.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#                 &lt;rdean@cambianetworks.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -30,6 +18,8 @@
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::Field;
</span><span class="cx"> use Bugzilla::Search;
</span><ins>+use Bugzilla::Report;
+use Bugzilla::Token;
</ins><span class="cx"> 
</span><span class="cx"> use List::MoreUtils qw(uniq);
</span><span class="cx"> 
</span><span class="lines">@@ -49,6 +39,7 @@
</span><span class="cx"> 
</span><span class="cx"> Bugzilla-&gt;login();
</span><span class="cx"> my $action = $cgi-&gt;param('action') || 'menu';
</span><ins>+my $token  = $cgi-&gt;param('token');
</ins><span class="cx"> 
</span><span class="cx"> if ($action eq &quot;menu&quot;) {
</span><span class="cx">     # No need to do any searching in this case, so bail out early.
</span><span class="lines">@@ -56,8 +47,54 @@
</span><span class="cx">     $template-&gt;process(&quot;reports/menu.html.tmpl&quot;, $vars)
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><ins>+
</ins><span class="cx"> }
</span><ins>+elsif ($action eq 'add') {
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+    check_hash_token($token, ['save_report']);
</ins><span class="cx"> 
</span><ins>+    my $name = clean_text($cgi-&gt;param('name'));
+    my $query = $cgi-&gt;param('query');
+
+    if (my ($report) = grep{ lc($_-&gt;name) eq lc($name) } @{$user-&gt;reports}) {
+        $report-&gt;set_query($query);
+        $report-&gt;update;
+        $vars-&gt;{'message'} = &quot;report_updated&quot;;
+    } else {
+        my $report = Bugzilla::Report-&gt;create({name =&gt; $name, query =&gt; $query});
+        $vars-&gt;{'message'} = &quot;report_created&quot;;
+    }
+
+    $user-&gt;flush_reports_cache;
+
+    print $cgi-&gt;header();
+
+    $vars-&gt;{'reportname'} = $name;
+
+    $template-&gt;process(&quot;global/message.html.tmpl&quot;, $vars)
+      || ThrowTemplateError($template-&gt;error());
+    exit;
+}
+elsif ($action eq 'del') {
+    my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
+    my $report_id = $cgi-&gt;param('saved_report_id');
+    check_hash_token($token, ['delete_report', $report_id]);
+
+    my $report = Bugzilla::Report-&gt;check({id =&gt; $report_id});
+    $report-&gt;remove_from_db();
+
+    $user-&gt;flush_reports_cache;
+
+    print $cgi-&gt;header();
+
+    $vars-&gt;{'message'} = 'report_deleted';
+    $vars-&gt;{'reportname'} = $report-&gt;name;
+
+    $template-&gt;process(&quot;global/message.html.tmpl&quot;, $vars)
+      || ThrowTemplateError($template-&gt;error());
+    exit;
+}
+
</ins><span class="cx"> # Sanitize the URL, to make URLs shorter.
</span><span class="cx"> $cgi-&gt;clean_search_url;
</span><span class="cx"> 
</span><span class="lines">@@ -69,20 +106,18 @@
</span><span class="cx">     ThrowUserError(&quot;no_axes_defined&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-my $width = $cgi-&gt;param('width');
-my $height = $cgi-&gt;param('height');
</del><ins>+# There is no UI for these parameters anymore,
+# but they are still here just in case.
+my $width = $cgi-&gt;param('width') || 1024;
+my $height = $cgi-&gt;param('height') || 600;
</ins><span class="cx"> 
</span><del>-if (defined($width)) {
-   (detaint_natural($width) &amp;&amp; $width &gt; 0)
-     || ThrowCodeError(&quot;invalid_dimensions&quot;);
-   $width &lt;= 2000 || ThrowUserError(&quot;chart_too_large&quot;);
-}
</del><ins>+(detaint_natural($width) &amp;&amp; $width &gt; 0)
+  || ThrowUserError(&quot;invalid_dimensions&quot;);
+$width &lt;= 2000 || ThrowUserError(&quot;chart_too_large&quot;);
</ins><span class="cx"> 
</span><del>-if (defined($height)) {
-   (detaint_natural($height) &amp;&amp; $height &gt; 0)
-     || ThrowCodeError(&quot;invalid_dimensions&quot;);
-   $height &lt;= 2000 || ThrowUserError(&quot;chart_too_large&quot;);
-}
</del><ins>+(detaint_natural($height) &amp;&amp; $height &gt; 0)
+  || ThrowUserError(&quot;invalid_dimensions&quot;);
+$height &lt;= 2000 || ThrowUserError(&quot;chart_too_large&quot;);
</ins><span class="cx"> 
</span><span class="cx"> my $formatparam = $cgi-&gt;param('format') || '';
</span><span class="cx"> 
</span><span class="lines">@@ -98,7 +133,7 @@
</span><span class="cx"> }
</span><span class="cx"> else {
</span><span class="cx">     if (!Bugzilla-&gt;feature('graphical_reports')) {
</span><del>-        ThrowCodeError('feature_disabled', { feature =&gt; 'graphical_reports' });
</del><ins>+        ThrowUserError('feature_disabled', { feature =&gt; 'graphical_reports' });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if ($row_field &amp;&amp; !$col_field) {
</span><span class="lines">@@ -114,13 +149,13 @@
</span><span class="cx"> # Validate the values in the axis fields or throw an error.
</span><span class="cx"> !$row_field 
</span><span class="cx">   || ($valid_columns-&gt;{$row_field} &amp;&amp; trick_taint($row_field))
</span><del>-  || ThrowCodeError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;x&quot;, val =&gt; $row_field});
</del><ins>+  || ThrowUserError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;x&quot;, val =&gt; $row_field});
</ins><span class="cx"> !$col_field 
</span><span class="cx">   || ($valid_columns-&gt;{$col_field} &amp;&amp; trick_taint($col_field))
</span><del>-  || ThrowCodeError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;y&quot;, val =&gt; $col_field});
</del><ins>+  || ThrowUserError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;y&quot;, val =&gt; $col_field});
</ins><span class="cx"> !$tbl_field 
</span><span class="cx">   || ($valid_columns-&gt;{$tbl_field} &amp;&amp; trick_taint($tbl_field))
</span><del>-  || ThrowCodeError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;z&quot;, val =&gt; $tbl_field});
</del><ins>+  || ThrowUserError(&quot;report_axis_invalid&quot;, {fld =&gt; &quot;z&quot;, val =&gt; $tbl_field});
</ins><span class="cx"> 
</span><span class="cx"> my @axis_fields = grep { $_ } ($row_field, $col_field, $tbl_field);
</span><span class="cx"> 
</span><span class="lines">@@ -131,13 +166,12 @@
</span><span class="cx">     params =&gt; scalar $params-&gt;Vars,
</span><span class="cx">     allow_unlimited =&gt; 1,
</span><span class="cx"> );
</span><del>-my $query = $search-&gt;sql;
</del><span class="cx"> 
</span><span class="cx"> $::SIG{TERM} = 'DEFAULT';
</span><span class="cx"> $::SIG{PIPE} = 'DEFAULT';
</span><span class="cx"> 
</span><del>-my $dbh = Bugzilla-&gt;switch_to_shadow_db();
-my $results = $dbh-&gt;selectall_arrayref($query);
</del><ins>+Bugzilla-&gt;switch_to_shadow_db();
+my ($results, $extra_data) = $search-&gt;data;
</ins><span class="cx"> 
</span><span class="cx"> # We have a hash of hashes for the data itself, and a hash to hold the 
</span><span class="cx"> # row/col/table names.
</span><span class="lines">@@ -153,20 +187,64 @@
</span><span class="cx"> my $row_isnumeric = 1;
</span><span class="cx"> my $tbl_isnumeric = 1;
</span><span class="cx"> 
</span><ins>+# define which fields are multiselect
+my @multi_selects = map { $_-&gt;name } @{Bugzilla-&gt;fields(
+    {
+        obsolete =&gt; 0,
+        type =&gt; [FIELD_TYPE_MULTI_SELECT, FIELD_TYPE_KEYWORDS]
+    }
+)};
+my $col_ismultiselect = scalar grep {$col_field eq $_} @multi_selects;
+my $row_ismultiselect = scalar grep {$row_field eq $_} @multi_selects;
+my $tbl_ismultiselect = scalar grep {$tbl_field eq $_} @multi_selects;
+
+
</ins><span class="cx"> foreach my $result (@$results) {
</span><span class="cx">     # handle empty dimension member names
</span><del>-    my $row = check_value($row_field, $result);
-    my $col = check_value($col_field, $result);
-    my $tbl = check_value($tbl_field, $result);
</del><ins>+    
+    my @rows = check_value($row_field, $result, $row_ismultiselect);
+    my @cols = check_value($col_field, $result, $col_ismultiselect);
+    my @tbls = check_value($tbl_field, $result, $tbl_ismultiselect);
</ins><span class="cx"> 
</span><del>-    $data{$tbl}{$col}{$row}++;
-    $names{&quot;col&quot;}{$col}++;
-    $names{&quot;row&quot;}{$row}++;
-    $names{&quot;tbl&quot;}{$tbl}++;
-    
-    $col_isnumeric &amp;&amp;= ($col =~ /^-?\d+(\.\d+)?$/o);
-    $row_isnumeric &amp;&amp;= ($row =~ /^-?\d+(\.\d+)?$/o);
-    $tbl_isnumeric &amp;&amp;= ($tbl =~ /^-?\d+(\.\d+)?$/o);
</del><ins>+    my %in_total_row;
+    my %in_total_col;
+    for my $tbl (@tbls) {
+        my %in_row_total;
+        for my $col (@cols) {
+            for my $row (@rows) {
+                $data{$tbl}{$col}{$row}++;
+                $names{&quot;row&quot;}{$row}++;
+                $row_isnumeric &amp;&amp;= ($row =~ /^-?\d+(\.\d+)?$/o);
+                if ($formatparam eq &quot;table&quot;) {
+                    if (!$in_row_total{$row}) {
+                        $data{$tbl}{'-total-'}{$row}++;
+                        $in_row_total{$row} = 1;
+                    }
+                    if (!$in_total_row{$row}) {
+                        $data{'-total-'}{'-total-'}{$row}++;
+                        $in_total_row{$row} = 1;
+                    }
+                }
+            }
+            if ($formatparam eq &quot;table&quot;) {
+                $data{$tbl}{$col}{'-total-'}++;
+                if (!$in_total_col{$col}) {
+                    $data{'-total-'}{$col}{'-total-'}++;
+                    $in_total_col{$col} = 1;
+                }
+            }
+            $names{&quot;col&quot;}{$col}++;
+            $col_isnumeric &amp;&amp;= ($col =~ /^-?\d+(\.\d+)?$/o);
+        }
+        $names{&quot;tbl&quot;}{$tbl}++;
+        $tbl_isnumeric &amp;&amp;= ($tbl =~ /^-?\d+(\.\d+)?$/o);
+        if ($formatparam eq &quot;table&quot;) {
+            $data{$tbl}{'-total-'}{'-total-'}++;
+        }
+    }
+    if ($formatparam eq &quot;table&quot;) {
+        $data{'-total-'}{'-total-'}{'-total-'}++;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> my @col_names = get_names($names{&quot;col&quot;}, $col_isnumeric, $col_field);
</span><span class="lines">@@ -210,9 +288,10 @@
</span><span class="cx"> $vars-&gt;{'col_names'} = \@col_names;
</span><span class="cx"> $vars-&gt;{'row_names'} = \@row_names;
</span><span class="cx"> $vars-&gt;{'tbl_names'} = \@tbl_names;
</span><ins>+$vars-&gt;{'note_multi_select'} = $row_ismultiselect || $col_ismultiselect;
</ins><span class="cx"> 
</span><span class="cx"> # Below a certain width, we don't see any bars, so there needs to be a minimum.
</span><del>-if ($width &amp;&amp; $formatparam eq &quot;bar&quot;) {
</del><ins>+if ($formatparam eq &quot;bar&quot;) {
</ins><span class="cx">     my $min_width = (scalar(@col_names) || 1) * 20;
</span><span class="cx"> 
</span><span class="cx">     if (!$cgi-&gt;param('cumulate')) {
</span><span class="lines">@@ -222,11 +301,11 @@
</span><span class="cx">     $vars-&gt;{'min_width'} = $min_width;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$vars-&gt;{'width'} = $width if $width;
-$vars-&gt;{'height'} = $height if $height;
</del><ins>+$vars-&gt;{'width'} = $width;
+$vars-&gt;{'height'} = $height;
+$vars-&gt;{'queries'} = $extra_data;
+$vars-&gt;{'saved_report_id'} = $cgi-&gt;param('saved_report_id');
</ins><span class="cx"> 
</span><del>-$vars-&gt;{'query'} = $query;
-
</del><span class="cx"> if ($cgi-&gt;param('debug')
</span><span class="cx">     &amp;&amp; Bugzilla-&gt;params-&gt;{debug_group}
</span><span class="cx">     &amp;&amp; Bugzilla-&gt;user-&gt;in_group(Bugzilla-&gt;params-&gt;{debug_group})
</span><span class="lines">@@ -282,24 +361,21 @@
</span><span class="cx"> # set debug=1 to always get an HTML content-type, and view the error.
</span><span class="cx"> $format-&gt;{'ctype'} = &quot;text/html&quot; if $cgi-&gt;param('debug');
</span><span class="cx"> 
</span><del>-my @time = localtime(time());
-my $date = sprintf &quot;%04d-%02d-%02d&quot;, 1900+$time[5],$time[4]+1,$time[3];
-my $filename = &quot;report-$date.$format-&gt;{extension}&quot;;
-print $cgi-&gt;header(-type =&gt; $format-&gt;{'ctype'},
-                   -content_disposition =&gt; &quot;inline; filename=$filename&quot;);
</del><ins>+$cgi-&gt;set_dated_content_disp(&quot;inline&quot;, &quot;report&quot;, $format-&gt;{extension});
+print $cgi-&gt;header($format-&gt;{'ctype'});
</ins><span class="cx"> 
</span><span class="cx"> # Problems with this CGI are often due to malformed data. Setting debug=1
</span><span class="cx"> # prints out both data structures.
</span><span class="cx"> if ($cgi-&gt;param('debug')) {
</span><span class="cx">     require Data::Dumper;
</span><del>-    print &quot;&lt;pre&gt;data hash:\n&quot;;
-    print html_quote(Data::Dumper::Dumper(%data)) . &quot;\n\n&quot;;
-    print &quot;data array:\n&quot;;
-    print html_quote(Data::Dumper::Dumper(@image_data)) . &quot;\n\n&lt;/pre&gt;&quot;;
</del><ins>+    say &quot;&lt;pre&gt;data hash:&quot;;
+    say html_quote(Data::Dumper::Dumper(%data));
+    say &quot;\ndata array:&quot;;
+    say html_quote(Data::Dumper::Dumper(@image_data)) . &quot;\n\n&lt;/pre&gt;&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # All formats point to the same section of the documentation.
</span><del>-$vars-&gt;{'doc_section'} = 'reporting.html#reports';
</del><ins>+$vars-&gt;{'doc_section'} = 'using/reports-and-charts.html#reports';
</ins><span class="cx"> 
</span><span class="cx"> disable_utf8() if ($format-&gt;{'ctype'} =~ /^image\//);
</span><span class="cx"> 
</span><span class="lines">@@ -323,7 +399,8 @@
</span><span class="cx">         foreach my $value (@{$field-&gt;legal_values}) {
</span><span class="cx">             push(@sorted, $value-&gt;name) if $names-&gt;{$value-&gt;name};
</span><span class="cx">         }
</span><del>-        unshift(@sorted, '---') if $field_name eq 'resolution';
</del><ins>+        unshift(@sorted, '---') if ($field_name eq 'resolution'
+                                    || $field-&gt;type == FIELD_TYPE_MULTI_SELECT);
</ins><span class="cx">         @sorted = uniq @sorted;
</span><span class="cx">     }  
</span><span class="cx">     elsif ($isnumeric) {
</span><span class="lines">@@ -340,7 +417,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub check_value {
</span><del>-    my ($field, $result) = @_;
</del><ins>+    my ($field, $result, $ismultiselect) = @_;
</ins><span class="cx"> 
</span><span class="cx">     my $value;
</span><span class="cx">     if (!defined $field) {
</span><span class="lines">@@ -352,9 +429,15 @@
</span><span class="cx">     else {
</span><span class="cx">         $value = shift @$result;
</span><span class="cx">         $value = ' ' if (!defined $value || $value eq '');
</span><del>-        $value = '---' if ($field eq 'resolution' &amp;&amp; $value eq ' ');
</del><ins>+        $value = '---' if (($field eq 'resolution' || $ismultiselect ) &amp;&amp;
+                           $value eq ' ');
</ins><span class="cx">     }
</span><del>-    return $value;
</del><ins>+    if ($ismultiselect) {
+        # Some DB servers have a space after the comma, some others don't.
+        return split(/, ?/, $value);
+    } else {
+        return ($value);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub get_field_restrictions {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgreportscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/reports.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/reports.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/reports.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Harrison Page &lt;harrison@netscape.com&gt;
-#                 Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dawn Endico &lt;endico@mozilla.org&gt;
-#                 Bryce Nesbitt &lt;bryce@nextbus.com&gt;
-#                 Joe Robins &lt;jmrobins@tgix.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Adam Spiers &lt;adam@spiers.net&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +19,7 @@
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> 
</span><span class="cx"> use File::Basename;
</span><del>-use Digest::MD5 qw(md5_hex);
</del><ins>+use Digest::SHA qw(hmac_sha256_base64);
</ins><span class="cx"> 
</span><span class="cx"> # If we're using bug groups for products, we should apply those restrictions
</span><span class="cx"> # to viewing reports, as well.  Time to check the login in that case.
</span><span class="lines">@@ -48,18 +28,22 @@
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="cx"> my $vars = {};
</span><span class="cx"> 
</span><ins>+# We use a dummy product instance with ID 0, representing all products
+my $product_all = {id =&gt; 0};
+bless($product_all, 'Bugzilla::Product');
+
</ins><span class="cx"> if (!Bugzilla-&gt;feature('old_charts')) {
</span><del>-    ThrowCodeError('feature_disabled', { feature =&gt; 'old_charts' });
</del><ins>+    ThrowUserError('feature_disabled', { feature =&gt; 'old_charts' });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> my $dir       = bz_locations()-&gt;{'datadir'} . &quot;/mining&quot;;
</span><span class="cx"> my $graph_dir = bz_locations()-&gt;{'graphsdir'};
</span><span class="cx"> my $graph_url = basename($graph_dir);
</span><del>-my $product_name = $cgi-&gt;param('product') || '';
</del><ins>+my $product_id = $cgi-&gt;param('product_id');
</ins><span class="cx"> 
</span><span class="cx"> Bugzilla-&gt;switch_to_shadow_db();
</span><span class="cx"> 
</span><del>-if (!$product_name) {
</del><ins>+if (! defined($product_id)) {
</ins><span class="cx">     # Can we do bug charts?
</span><span class="cx">     (-d $dir &amp;&amp; -d $graph_dir) 
</span><span class="cx">       || ThrowCodeError('chart_dir_nonexistent',
</span><span class="lines">@@ -77,28 +61,27 @@
</span><span class="cx">         push(@datasets, $datasets);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # We only want those products that the user has permissions for.
-    my @myproducts = ('-All-');
-    # Extract product names from objects and add them to the list.
-    push( @myproducts, map { $_-&gt;name } @{$user-&gt;get_selectable_products} );
-
</del><span class="cx">     $vars-&gt;{'datasets'} = \@datasets;
</span><del>-    $vars-&gt;{'products'} = \@myproducts;
</del><span class="cx"> 
</span><span class="cx">     print $cgi-&gt;header();
</span><span class="cx"> }
</span><span class="cx"> else {
</span><del>-    # For security and correctness, validate the value of the &quot;product&quot; form variable.
-    # Valid values are those products for which the user has permissions which appear
-    # in the &quot;product&quot; drop-down menu on the report generation form.
-    my ($product) = grep { $_-&gt;name eq $product_name } @{$user-&gt;get_selectable_products};
-    ($product || $product_name eq '-All-')
-      || ThrowUserError('invalid_product_name', {product =&gt; $product_name});
</del><ins>+    my $product;
+    # For security and correctness, validate the value of the &quot;product_id&quot; form
+    # variable. Valid values are IDs of those products for which the user has
+    # permissions which appear in the &quot;product_id&quot; drop-down menu on the report
+    # generation form. The product_id 0 is a special case, meaning &quot;All
+    # Products&quot;.
+    if ($product_id) {
+        $product = Bugzilla::Product-&gt;new($product_id);
+        $product &amp;&amp; $user-&gt;can_see_product($product-&gt;name)
+            || ThrowUserError('product_access_denied',
+                              {id =&gt; $product_id});
+    }
+    else {
+        $product = $product_all;
+    }
</ins><span class="cx"> 
</span><del>-    # Product names can change over time. Their ID cannot; so use the ID
-    # to generate the filename.
-    my $prod_id = $product ? $product-&gt;id : 0;
-
</del><span class="cx">     # Make sure there is something to plot.
</span><span class="cx">     my @datasets = $cgi-&gt;param('datasets');
</span><span class="cx">     scalar(@datasets) || ThrowUserError('missing_datasets');
</span><span class="lines">@@ -109,15 +92,13 @@
</span><span class="cx"> 
</span><span class="cx">     # Filenames must not be guessable as they can point to products
</span><span class="cx">     # you are not allowed to see. Also, different projects can have
</span><del>-    # the same product names.
</del><ins>+    # the same product IDs.
+    my $project = bz_locations()-&gt;{'project'} || '';
+    my $image_file =  join(':', ($project, $product-&gt;id, @datasets));
</ins><span class="cx">     my $key = Bugzilla-&gt;localconfig-&gt;{'site_wide_secret'};
</span><del>-    my $project = bz_locations()-&gt;{'project'} || '';
-    my $image_file =  join(':', ($key, $project, $prod_id, @datasets));
-    # Wide characters cause md5_hex() to die.
-    if (Bugzilla-&gt;params-&gt;{'utf8'}) {
-        utf8::encode($image_file) if utf8::is_utf8($image_file);
-    }
-    $image_file = md5_hex($image_file) . '.png';
</del><ins>+    $image_file = hmac_sha256_base64($image_file, $key) . '.png';
+    $image_file =~ s/\+/-/g;
+    $image_file =~ s/\//_/g;
</ins><span class="cx">     trick_taint($image_file);
</span><span class="cx"> 
</span><span class="cx">     if (! -e &quot;$graph_dir/$image_file&quot;) {
</span><span class="lines">@@ -140,8 +121,8 @@
</span><span class="cx">     my $dir = shift;
</span><span class="cx"> 
</span><span class="cx">     my @datasets;
</span><del>-    open(DATA, '&lt;', &quot;$dir/-All-&quot;)
-      || ThrowCodeError('chart_file_open_fail', {filename =&gt; &quot;$dir/-All-&quot;});
</del><ins>+    open(DATA, '&lt;', &quot;$dir/0&quot;)
+      || ThrowCodeError('chart_file_open_fail', {filename =&gt; &quot;$dir/0&quot;});
</ins><span class="cx"> 
</span><span class="cx">     while (&lt;DATA&gt;) {
</span><span class="cx">         if (/^# fields?: (.+)\s*$/) {
</span><span class="lines">@@ -155,18 +136,13 @@
</span><span class="cx"> 
</span><span class="cx"> sub generate_chart {
</span><span class="cx">     my ($dir, $image_file, $product, $datasets) = @_;
</span><del>-    $product = $product ? $product-&gt;name : '-All-';
-    my $data_file = $product;
-    $data_file =~ s/\//-/gs;
-    $data_file = $dir . '/' . $data_file;
</del><ins>+    my $data_file = $dir . '/' . $product-&gt;id;
</ins><span class="cx"> 
</span><del>-    if (! open FILE, $data_file) {
-        if ($product eq '-All-') {
-            $product = '';
-        }
</del><ins>+    if (!open(FILE, '&lt;', $data_file)) {
</ins><span class="cx">         ThrowCodeError('chart_data_not_generated', {'product' =&gt; $product});
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    my $product_in_title = $product-&gt;id ? $product-&gt;name : 'All Products';
</ins><span class="cx">     my @fields;
</span><span class="cx">     my @labels = qw(DATE);
</span><span class="cx">     my %datasets = map { $_ =&gt; 1 } @$datasets;
</span><span class="lines">@@ -229,7 +205,7 @@
</span><span class="cx"> 
</span><span class="cx">     my %settings =
</span><span class="cx">         (
</span><del>-         &quot;title&quot; =&gt; &quot;Status Counts for $product&quot;,
</del><ins>+         &quot;title&quot; =&gt; &quot;Status Counts for $product_in_title&quot;,
</ins><span class="cx">          &quot;x_label&quot; =&gt; &quot;Dates&quot;,
</span><span class="cx">          &quot;y_label&quot; =&gt; &quot;Bug Counts&quot;,
</span><span class="cx">          &quot;legend_labels&quot; =&gt; \@labels,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgrequestcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/request.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/request.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/request.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -46,16 +28,16 @@
</span><span class="cx"> Bugzilla-&gt;switch_to_shadow_db;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="cx"> my $action = $cgi-&gt;param('action') || '';
</span><ins>+my $format = $template-&gt;get_format('request/queue', 
+                                   scalar($cgi-&gt;param('format')),
+                                   scalar($cgi-&gt;param('ctype')));
</ins><span class="cx"> 
</span><del>-print $cgi-&gt;header();
</del><ins>+$cgi-&gt;set_dated_content_disp(&quot;inline&quot;, &quot;requests&quot;, $format-&gt;{extension});
+print $cgi-&gt;header($format-&gt;{'ctype'});
</ins><span class="cx"> 
</span><del>-################################################################################
-# Main Body Execution
-################################################################################
-
</del><span class="cx"> my $fields;
</span><span class="cx"> $fields-&gt;{'requester'}-&gt;{'type'} = 'single';
</span><del>-# If the user doesn't restrict his search to requests from the wind
</del><ins>+# If the user doesn't restrict their search to requests from the wind
</ins><span class="cx"> # (requestee ne '-'), include the requestee for completion.
</span><span class="cx"> unless (defined $cgi-&gt;param('requestee')
</span><span class="cx">         &amp;&amp; $cgi-&gt;param('requestee') eq '-')
</span><span class="lines">@@ -66,7 +48,7 @@
</span><span class="cx"> Bugzilla::User::match_field($fields);
</span><span class="cx"> 
</span><span class="cx"> if ($action eq 'queue') {
</span><del>-    queue();
</del><ins>+    queue($format);
</ins><span class="cx"> }
</span><span class="cx"> else {
</span><span class="cx">     my $flagtypes = get_flag_types();
</span><span class="lines">@@ -84,7 +66,7 @@
</span><span class="cx">     }
</span><span class="cx">     $vars-&gt;{'components'} = [ sort { $a cmp $b } keys %components ];
</span><span class="cx"> 
</span><del>-    $template-&gt;process('request/queue.html.tmpl', $vars)
</del><ins>+    $template-&gt;process($format-&gt;{'template'}, $vars)
</ins><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> }
</span><span class="cx"> exit;
</span><span class="lines">@@ -94,6 +76,7 @@
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><span class="cx"> sub queue {
</span><ins>+    my $format = shift;
</ins><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -137,20 +120,27 @@
</span><span class="cx">                   ON bugs.product_id = products.id
</span><span class="cx">           INNER JOIN components
</span><span class="cx">                   ON bugs.component_id = components.id
</span><del>-           LEFT JOIN bug_group_map AS bgmap
-                  ON bgmap.bug_id = bugs.bug_id
-                 AND bgmap.group_id NOT IN (&quot; .
-                     $user-&gt;groups_as_string . &quot;)
</del><span class="cx">            LEFT JOIN bug_group_map AS privs
</span><span class="cx">                   ON privs.bug_id = bugs.bug_id
</span><span class="cx">            LEFT JOIN cc AS ccmap
</span><span class="cx">                   ON ccmap.who = $userid
</span><span class="cx">                  AND ccmap.bug_id = bugs.bug_id
</span><del>-    &quot; .
</del><ins>+           LEFT JOIN bug_group_map AS bgmap
+                  ON bgmap.bug_id = bugs.bug_id
+    &quot;;
</ins><span class="cx"> 
</span><ins>+    if (Bugzilla-&gt;params-&gt;{or_groups}) {
+        $query .= &quot; AND bgmap.group_id IN (&quot; . $user-&gt;groups_as_string . &quot;)&quot;;
+        $query .= &quot; WHERE     (privs.group_id IS NULL OR bgmap.group_id IS NOT NULL OR&quot;;
+    }
+    else {
+        $query .= &quot; AND bgmap.group_id NOT IN (&quot; . $user-&gt;groups_as_string . &quot;)&quot;;
+        $query .= &quot; WHERE     (bgmap.group_id IS NULL OR&quot;;
+    }
+
</ins><span class="cx">     # Weed out bug the user does not have access to
</span><del>-    &quot; WHERE     ((bgmap.group_id IS NULL) OR
-                 (ccmap.who IS NOT NULL AND cclist_accessible = 1) OR
</del><ins>+    $query .=
+    &quot;            (ccmap.who IS NOT NULL AND cclist_accessible = 1) OR
</ins><span class="cx">                  (bugs.reporter = $userid AND bugs.reporter_accessible = 1) OR
</span><span class="cx">                  (bugs.assigned_to = $userid) &quot; .
</span><span class="cx">                  (Bugzilla-&gt;params-&gt;{'useqacontact'} ? &quot;OR
</span><span class="lines">@@ -174,48 +164,57 @@
</span><span class="cx">     # need to display a &quot;status&quot; column in the report because the value for that
</span><span class="cx">     # column will always be the same.
</span><span class="cx">     my @excluded_columns = ();
</span><del>-    
-    # Filter requests by status: &quot;pending&quot;, &quot;granted&quot;, &quot;denied&quot;, &quot;all&quot; 
-    # (which means any), or &quot;fulfilled&quot; (which means &quot;granted&quot; or &quot;denied&quot;).
-    if ($status) {
-        if ($status eq &quot;+-&quot;) {
-            push(@criteria, &quot;flags.status IN ('+', '-')&quot;);
-            push(@excluded_columns, 'status') unless $cgi-&gt;param('do_union');
-        }
-        elsif ($status ne &quot;all&quot;) {
-            push(@criteria, &quot;flags.status = '$status'&quot;);
-            push(@excluded_columns, 'status') unless $cgi-&gt;param('do_union');
-        }
-    }
-    
</del><ins>+    my $do_union = $cgi-&gt;param('do_union');
+
</ins><span class="cx">     # Filter results by exact email address of requester or requestee.
</span><span class="cx">     if (defined $cgi-&gt;param('requester') &amp;&amp; $cgi-&gt;param('requester') ne &quot;&quot;) {
</span><span class="cx">         my $requester = $dbh-&gt;quote($cgi-&gt;param('requester'));
</span><span class="cx">         trick_taint($requester); # Quoted above
</span><span class="cx">         push(@criteria, $dbh-&gt;sql_istrcmp('requesters.login_name', $requester));
</span><del>-        push(@excluded_columns, 'requester') unless $cgi-&gt;param('do_union');
</del><ins>+        push(@excluded_columns, 'requester') unless $do_union;
</ins><span class="cx">     }
</span><span class="cx">     if (defined $cgi-&gt;param('requestee') &amp;&amp; $cgi-&gt;param('requestee') ne &quot;&quot;) {
</span><span class="cx">         if ($cgi-&gt;param('requestee') ne &quot;-&quot;) {
</span><span class="cx">             my $requestee = $dbh-&gt;quote($cgi-&gt;param('requestee'));
</span><span class="cx">             trick_taint($requestee); # Quoted above
</span><del>-            push(@criteria, $dbh-&gt;sql_istrcmp('requestees.login_name',
-                            $requestee));
</del><ins>+            push(@criteria, $dbh-&gt;sql_istrcmp('requestees.login_name', $requestee));
</ins><span class="cx">         }
</span><del>-        else { push(@criteria, &quot;flags.requestee_id IS NULL&quot;) }
-        push(@excluded_columns, 'requestee') unless $cgi-&gt;param('do_union');
</del><ins>+        else {
+            push(@criteria, &quot;flags.requestee_id IS NULL&quot;);
+        }
+        push(@excluded_columns, 'requestee') unless $do_union;
</ins><span class="cx">     }
</span><del>-    
</del><ins>+
+    # If the user wants requester = foo OR requestee = bar, we have to join
+    # these criteria separately as all other criteria use AND.
+    if (@criteria == 2 &amp;&amp; $do_union) {
+        my $union = join(' OR ', @criteria);
+        @criteria = (&quot;($union)&quot;);
+    }
+
+    # Filter requests by status: &quot;pending&quot;, &quot;granted&quot;, &quot;denied&quot;, &quot;all&quot;
+    # (which means any), or &quot;fulfilled&quot; (which means &quot;granted&quot; or &quot;denied&quot;).
+    if ($status) {
+        if ($status eq &quot;+-&quot;) {
+            push(@criteria, &quot;flags.status IN ('+', '-')&quot;);
+            push(@excluded_columns, 'status');
+        }
+        elsif ($status ne &quot;all&quot;) {
+            push(@criteria, &quot;flags.status = '$status'&quot;);
+            push(@excluded_columns, 'status');
+        }
+    }
+
</ins><span class="cx">     # Filter results by exact product or component.
</span><span class="cx">     if (defined $cgi-&gt;param('product') &amp;&amp; $cgi-&gt;param('product') ne &quot;&quot;) {
</span><span class="cx">         my $product = Bugzilla::Product-&gt;check(scalar $cgi-&gt;param('product'));
</span><span class="cx">         push(@criteria, &quot;bugs.product_id = &quot; . $product-&gt;id);
</span><del>-        push(@excluded_columns, 'product') unless $cgi-&gt;param('do_union');
</del><ins>+        push(@excluded_columns, 'product');
</ins><span class="cx">         if (defined $cgi-&gt;param('component') &amp;&amp; $cgi-&gt;param('component') ne &quot;&quot;) {
</span><span class="cx">             my $component = Bugzilla::Component-&gt;check({ product =&gt; $product,
</span><span class="cx">                                                          name =&gt; scalar $cgi-&gt;param('component') });
</span><span class="cx">             push(@criteria, &quot;bugs.component_id = &quot; . $component-&gt;id);
</span><del>-            push(@excluded_columns, 'component') unless $cgi-&gt;param('do_union');
</del><ins>+            push(@excluded_columns, 'component');
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -233,15 +232,11 @@
</span><span class="cx">         my $quoted_form_type = $dbh-&gt;quote($form_type);
</span><span class="cx">         trick_taint($quoted_form_type); # Already SQL quoted
</span><span class="cx">         push(@criteria, &quot;flagtypes.name = &quot; . $quoted_form_type);
</span><del>-        push(@excluded_columns, 'type') unless $cgi-&gt;param('do_union');
</del><ins>+        push(@excluded_columns, 'type');
</ins><span class="cx">     }
</span><del>-    
-    # Add the criteria to the query.  We do an intersection by default 
-    # but do a union if the &quot;do_union&quot; URL parameter (for which there is no UI 
-    # because it's an advanced feature that people won't usually want) is true.
-    my $and_or = $cgi-&gt;param('do_union') ? &quot; OR &quot; : &quot; AND &quot;;
-    $query .= &quot; AND (&quot; . join($and_or, @criteria) . &quot;) &quot; if scalar(@criteria);
-    
</del><ins>+
+    $query .= ' AND ' . join(' AND ', @criteria) if scalar(@criteria);
+
</ins><span class="cx">     # Group the records by flag ID so we don't get multiple rows of data
</span><span class="cx">     # for each flag.  This is only necessary because of the code that
</span><span class="cx">     # removes flags on bugs the user is unauthorized to access.
</span><span class="lines">@@ -278,7 +273,7 @@
</span><span class="cx">     # Pass the query to the template for use when debugging this script.
</span><span class="cx">     $vars-&gt;{'query'} = $query;
</span><span class="cx">     $vars-&gt;{'debug'} = $cgi-&gt;param('debug') ? 1 : 0;
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $results = $dbh-&gt;selectall_arrayref($query);
</span><span class="cx">     my @requests = ();
</span><span class="cx">     foreach my $result (@$results) {
</span><span class="lines">@@ -310,16 +305,27 @@
</span><span class="cx">     $vars-&gt;{'requests'} = \@requests;
</span><span class="cx">     $vars-&gt;{'types'} = \@types;
</span><span class="cx"> 
</span><del>-    my %components;
-    foreach my $prod (@{$user-&gt;get_selectable_products}) {
-        foreach my $comp (@{$prod-&gt;components}) {
-            $components{$comp-&gt;name} = 1;
</del><ins>+    # This code is needed to populate the Product and Component select fields.
+    my ($products, %components);
+    if (Bugzilla-&gt;params-&gt;{useclassification}) {
+        foreach my $class (@{$user-&gt;get_selectable_classifications}) {
+            push @$products, @{$user-&gt;get_selectable_products($class-&gt;id)};
</ins><span class="cx">         }
</span><span class="cx">     }
</span><del>-    $vars-&gt;{'components'} = [ sort { $a cmp $b } keys %components ];
</del><ins>+    else {
+        $products = $user-&gt;get_selectable_products;
+    }
</ins><span class="cx"> 
</span><ins>+    foreach my $product (@$products) {
+        $components{$_-&gt;name} = 1 foreach @{$product-&gt;components};
+    }
+    $vars-&gt;{'products'} = $products;
+    $vars-&gt;{'components'} = [ sort keys %components ];
+
+    $vars-&gt;{'urlquerypart'} = $cgi-&gt;canonicalise_query('ctype');
+
</ins><span class="cx">     # Generate and return the UI (HTML page) from the appropriate template.
</span><del>-    $template-&gt;process(&quot;request/queue.html.tmpl&quot;, $vars)
</del><ins>+    $template-&gt;process($format-&gt;{'template'}, $vars)
</ins><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgrestcgi"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/rest.cgi (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/rest.cgi                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/rest.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use lib qw(. lib);
+
+use Bugzilla;
+use Bugzilla::Constants;
+use Bugzilla::Error;
+use Bugzilla::WebService::Constants;
+BEGIN {
+    if (!Bugzilla-&gt;feature('rest')
+        || !Bugzilla-&gt;feature('jsonrpc'))
+    {
+        ThrowUserError('feature_disabled', { feature =&gt; 'rest' });
+    }
+}
+use Bugzilla::WebService::Server::REST;
+Bugzilla-&gt;usage_mode(USAGE_MODE_REST);
+local @INC = (bz_locations()-&gt;{extensionsdir}, @INC);
+my $server = new Bugzilla::WebService::Server::REST;
+$server-&gt;version('1.1');
+$server-&gt;handle();
</ins><span class="cx">Property changes on: trunk/Websites/bugs.webkit.org/rest.cgi
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<ins>+*
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkWebsitesbugswebkitorgruntestspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/runtests.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/runtests.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/runtests.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,16 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System. 
-#
-# The Initial Developer of the Original Code is Mike Norton.
-# Portions created by the Initial Developer are Copyright (C) 2002
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use diagnostics;
</span><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(lib);
</span><span class="cx"> 
</span><span class="cx"> use Test::Harness qw(&amp;runtests $verbose);
</span><span class="lines">@@ -40,4 +28,3 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> runtests(glob(&quot;t/$onlytest*.t&quot;));
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgsanitycheckcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/sanitycheck.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/sanitycheck.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/sanitycheck.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Matthew Tuck &lt;matty@chariot.net.au&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -60,7 +44,7 @@
</span><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         my $start_tag = $alert ? '&lt;p class=&quot;alert&quot;&gt;' : '&lt;p&gt;';
</span><del>-        print $start_tag . get_string($san_tag, $vars) . &quot;&lt;/p&gt;\n&quot;;
</del><ins>+        say $start_tag . get_string($san_tag, $vars) . &quot;&lt;/p&gt;&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -91,6 +75,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> my $vars = {};
</span><ins>+my $clear_memcached = 0;
</ins><span class="cx"> 
</span><span class="cx"> print $cgi-&gt;header() unless Bugzilla-&gt;usage_mode == USAGE_MODE_CMDLINE;
</span><span class="cx"> 
</span><span class="lines">@@ -167,6 +152,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     Status('group_control_map_entries_repaired', {counter =&gt; $counter});
</span><ins>+    $clear_memcached = 1 if $counter;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -193,6 +179,7 @@
</span><span class="cx">         $sth_UpdateDate-&gt;execute($date, $bugid);
</span><span class="cx">     }
</span><span class="cx">     Status('bug_creation_date_fixed', {bug_count =&gt; scalar(@$bug_ids)});
</span><ins>+    $clear_memcached = 1 if @$bug_ids;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -209,6 +196,7 @@
</span><span class="cx">     $dbh-&gt;do(&quot;UPDATE bugs SET everconfirmed = 1 WHERE bug_status IN ($confirmed_open_states)&quot;);
</span><span class="cx"> 
</span><span class="cx">     Status('everconfirmed_end');
</span><ins>+    $clear_memcached = 1;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -224,11 +212,12 @@
</span><span class="cx">                                             ON bugs_fulltext.bug_id = bugs.bug_id
</span><span class="cx">                                             WHERE bugs_fulltext.bug_id IS NULL');
</span><span class="cx"> 
</span><del>-   foreach my $bugid (@$bug_ids) {
-       Bugzilla::Bug-&gt;new($bugid)-&gt;_sync_fulltext('new_bug');
-   }
</del><ins>+    foreach my $bugid (@$bug_ids) {
+        Bugzilla::Bug-&gt;new($bugid)-&gt;_sync_fulltext( new_bug =&gt; 1 );
+    }
</ins><span class="cx"> 
</span><del>-   Status('bugs_fulltext_fixed', {bug_count =&gt; scalar(@$bug_ids)});
</del><ins>+    Status('bugs_fulltext_fixed', {bug_count =&gt; scalar(@$bug_ids)});
+    $clear_memcached = 1 if @$bug_ids;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -258,13 +247,16 @@
</span><span class="cx">     # and so choosing this user as being the last one having done a change
</span><span class="cx">     # for the bug may be problematic. So the best we can do at this point
</span><span class="cx">     # is to choose the currently logged in user for email notification.
</span><del>-    $vars-&gt;{'changer'} = Bugzilla-&gt;user;
</del><ins>+    $vars-&gt;{'changer'} = $user;
</ins><span class="cx"> 
</span><span class="cx">     foreach my $bugid (@$list) {
</span><span class="cx">         Bugzilla::BugMail::Send($bugid, $vars);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Status('send_bugmail_end') if scalar(@$list);
</del><ins>+    if (@$list) {
+        Status('send_bugmail_end');
+        Bugzilla-&gt;memcached-&gt;clear_all();
+    }
</ins><span class="cx"> 
</span><span class="cx">     unless (Bugzilla-&gt;usage_mode == USAGE_MODE_CMDLINE) {
</span><span class="cx">         $template-&gt;process('global/footer.html.tmpl', $vars)
</span><span class="lines">@@ -298,6 +290,7 @@
</span><span class="cx"> 
</span><span class="cx">         if (scalar(@$bug_ids)) {
</span><span class="cx">             $dbh-&gt;do(&quot;DELETE FROM $table WHERE $field IN (&quot; . join(',', @$bug_ids) . &quot;)&quot;);
</span><ins>+            $clear_memcached = 1;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -328,6 +321,7 @@
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx">     Status('attachment_reference_deletion_end');
</span><ins>+    $clear_memcached = 1 if @$attach_ids;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -354,6 +348,7 @@
</span><span class="cx">             $dbh-&gt;do(&quot;DELETE FROM whine_schedules
</span><span class="cx">                        WHERE mailto_type = $type AND mailto IN (&quot; .
</span><span class="cx">                        join(',', @$old_ids) . &quot;)&quot;);
</span><ins>+            $clear_memcached = 1;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="lines">@@ -360,6 +355,10 @@
</span><span class="cx">     Status('whines_obsolete_target_deletion_end');
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# If any repairs were attempted or made, we need to clear memcached to ensure
+# state is consistent.
+Bugzilla-&gt;memcached-&gt;clear_all() if $clear_memcached;
+
</ins><span class="cx"> ###########################################################################
</span><span class="cx"> # Repair hook
</span><span class="cx"> ###########################################################################
</span><span class="lines">@@ -735,6 +734,7 @@
</span><span class="cx">         # Silently delete these flags, with no notification to requesters/setters.
</span><span class="cx">         $dbh-&gt;do('DELETE FROM flags WHERE id IN (' . join(',', @flag_ids) .')');
</span><span class="cx">         Status('flag_deletion_end');
</span><ins>+        Bugzilla-&gt;memcached-&gt;clear_all();
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><span class="cx">         foreach my $flag (@$invalid_flags) {
</span><span class="lines">@@ -748,6 +748,26 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ###########################################################################
</span><ins>+# Check for products with no component
+###########################################################################
+
+Status('product_check_start');
+
+my $products_missing_data = $dbh-&gt;selectcol_arrayref(
+      'SELECT DISTINCT products.name
+         FROM products
+    LEFT JOIN components
+           ON components.product_id = products.id
+    LEFT JOIN versions
+           ON versions.product_id = products.id
+        WHERE components.id IS NULL
+           OR versions.id IS NULL');
+
+if (scalar(@$products_missing_data)) {
+    Status('product_alert', { name =&gt; $_ }, 'alert') foreach @$products_missing_data;
+}
+
+###########################################################################
</ins><span class="cx"> # General bug checks
</span><span class="cx"> ###########################################################################
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgsanitycheckpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/sanitycheck.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/sanitycheck.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/sanitycheck.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,14 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by Frédéric Buclin are Copyright (C) 2007
-# Frédéric Buclin. All Rights Reserved.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgsearch_plugincgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/search_plugin.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/search_plugin.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/search_plugin.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -33,7 +27,7 @@
</span><span class="cx"> 
</span><span class="cx"> # Get the contents of favicon.ico
</span><span class="cx"> my $filename = bz_locations()-&gt;{'libpath'} . &quot;/images/favicon.ico&quot;;
</span><del>-if (open(IN, $filename)) {
</del><ins>+if (open(IN, '&lt;', $filename)) {
</ins><span class="cx">     local $/;
</span><span class="cx">     binmode IN;
</span><span class="cx">     $vars-&gt;{'favicon'} = &lt;IN&gt;;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgshow_activitycgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/show_activity.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/show_activity.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/show_activity.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -54,8 +40,7 @@
</span><span class="cx"> # visible immediately due to replication lag.
</span><span class="cx"> Bugzilla-&gt;switch_to_shadow_db;
</span><span class="cx"> 
</span><del>-($vars-&gt;{'operations'}, $vars-&gt;{'incomplete_data'}) = 
-    Bugzilla::Bug::GetBugActivity($bug-&gt;id);
</del><ins>+($vars-&gt;{'operations'}, $vars-&gt;{'incomplete_data'}) = $bug-&gt;get_activity(undef, undef, 1);
</ins><span class="cx"> 
</span><span class="cx"> $vars-&gt;{'bug'} = $bug;
</span><span class="cx"> 
</span><span class="lines">@@ -63,4 +48,3 @@
</span><span class="cx"> 
</span><span class="cx"> $template-&gt;process(&quot;bug/activity/show.html.tmpl&quot;, $vars)
</span><span class="cx">   || ThrowTemplateError($template-&gt;error());
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgshow_bugcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/show_bug.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/show_bug.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/show_bug.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -27,8 +15,7 @@
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Error;
</span><del>-use Bugzilla::User;
-use Bugzilla::Keyword;
</del><ins>+use Bugzilla::Util;
</ins><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="lines">@@ -45,23 +32,23 @@
</span><span class="cx"> 
</span><span class="cx"> # If we don't have an ID, _AND_ we're only doing a single bug, then prompt
</span><span class="cx"> if (!$cgi-&gt;param('id') &amp;&amp; $single) {
</span><del>-    print Bugzilla-&gt;cgi-&gt;header();
</del><ins>+    print $cgi-&gt;header();
</ins><span class="cx">     $template-&gt;process(&quot;bug/choose.html.tmpl&quot;, $vars) ||
</span><span class="cx">       ThrowTemplateError($template-&gt;error());
</span><span class="cx">     exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-my @bugs;
</del><ins>+my (@bugs, @illegal_bugs);
</ins><span class="cx"> my %marks;
</span><span class="cx"> 
</span><del>-# If the user isn't logged in, we use data from the shadow DB. If he plans
-# to edit the bug(s), he will have to log in first, meaning that the data
</del><ins>+# If the user isn't logged in, we use data from the shadow DB. If they plan
+# to edit the bug(s), they will have to log in first, meaning that the data
</ins><span class="cx"> # will be reloaded anyway, from the main DB.
</span><span class="cx"> Bugzilla-&gt;switch_to_shadow_db unless $user-&gt;id;
</span><span class="cx"> 
</span><span class="cx"> if ($single) {
</span><span class="cx">     my $id = $cgi-&gt;param('id');
</span><del>-    push @bugs, Bugzilla::Bug-&gt;check($id);
</del><ins>+    push @bugs, Bugzilla::Bug-&gt;check({ id =&gt; $id, cache =&gt; 1 });
</ins><span class="cx">     if (defined $cgi-&gt;param('mark')) {
</span><span class="cx">         foreach my $range (split ',', $cgi-&gt;param('mark')) {
</span><span class="cx">             if ($range =~ /^(\d+)-(\d+)$/) {
</span><span class="lines">@@ -77,22 +64,36 @@
</span><span class="cx">     foreach my $id ($cgi-&gt;param('id')) {
</span><span class="cx">         # Be kind enough and accept URLs of the form: id=1,2,3.
</span><span class="cx">         my @ids = split(/,/, $id);
</span><del>-        foreach (@ids) {
-            my $bug = new Bugzilla::Bug($_);
-            # This is basically a backwards-compatibility hack from when
-            # Bugzilla::Bug-&gt;new used to set 'NotPermitted' if you couldn't
-            # see the bug.
-            if (!$bug-&gt;{error} &amp;&amp; !$user-&gt;can_see_bug($bug-&gt;bug_id)) {
-                $bug-&gt;{error} = 'NotPermitted';
</del><ins>+        my @check_bugs;
+
+        foreach my $bug_id (@ids) {
+            next unless $bug_id;
+            my $bug = new Bugzilla::Bug({ id =&gt; $bug_id, cache =&gt; 1 });
+            if (!$bug-&gt;{error}) {
+                push(@check_bugs, $bug);
</ins><span class="cx">             }
</span><del>-            push(@bugs, $bug);
</del><ins>+            else {
+                push(@illegal_bugs, { bug_id =&gt; trim($bug_id), error =&gt; $bug-&gt;{error} });
+            }
</ins><span class="cx">         }
</span><ins>+
+        $user-&gt;visible_bugs(\@check_bugs);
+
+        foreach my $bug (@check_bugs) {
+            if ($user-&gt;can_see_bug($bug-&gt;id)) {
+                push(@bugs, $bug);
+            }
+            else {
+                my $error = 'NotPermitted'; # Trick to make 012throwables.t happy.
+                push(@illegal_bugs, { bug_id =&gt; $bug-&gt;id, error =&gt; $error });
+            }
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Bugzilla::Bug-&gt;preload(\@bugs);
</span><span class="cx"> 
</span><del>-$vars-&gt;{'bugs'} = \@bugs;
</del><ins>+$vars-&gt;{'bugs'} = [@bugs, @illegal_bugs];
</ins><span class="cx"> $vars-&gt;{'marks'} = \%marks;
</span><span class="cx"> 
</span><span class="cx"> my @bugids = map {$_-&gt;bug_id} grep {!$_-&gt;error} @bugs;
</span><span class="lines">@@ -110,8 +111,8 @@
</span><span class="cx">     @fieldlist = $cgi-&gt;param(&quot;field&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-unless (Bugzilla-&gt;user-&gt;is_timetracker) {
-    @fieldlist = grep($_ !~ /(^deadline|_time)$/, @fieldlist);
</del><ins>+unless ($user-&gt;is_timetracker) {
+    @fieldlist = grep($_ !~ /_time$/, @fieldlist);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> foreach (@fieldlist) {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgshowdependencygraphcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/showdependencygraph.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/showdependencygraph.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/showdependencygraph.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -35,7 +22,7 @@
</span><span class="cx"> use Bugzilla::Bug;
</span><span class="cx"> use Bugzilla::Status;
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;login();
</del><ins>+my $user = Bugzilla-&gt;login();
</ins><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -44,7 +31,8 @@
</span><span class="cx"> # performance.
</span><span class="cx"> my $dbh = Bugzilla-&gt;switch_to_shadow_db();
</span><span class="cx"> 
</span><del>-local our (%seen, %edgesdone, %bugtitles);
</del><ins>+our (%seen, %edgesdone, %bugtitles);
+our $bug_count = 0;
</ins><span class="cx"> 
</span><span class="cx"> # CreateImagemap: This sub grabs a local filename as a parameter, reads the 
</span><span class="cx"> # dot-generated image map datafile residing in that file and turns it into
</span><span class="lines">@@ -61,7 +49,7 @@
</span><span class="cx">     my $map = &quot;&lt;map name=\&quot;imagemap\&quot;&gt;\n&quot;;
</span><span class="cx">     my $default = &quot;&quot;;
</span><span class="cx"> 
</span><del>-    open MAP, &quot;&lt;$mapfilename&quot;;
</del><ins>+    open MAP, &quot;&lt;&quot;, $mapfilename;
</ins><span class="cx">     while(my $line = &lt;MAP&gt;) {
</span><span class="cx">         if($line =~ /^default ([^ ]*)(.*)$/) {
</span><span class="cx">             $default = qq{&lt;area alt=&quot;&quot; shape=&quot;default&quot; href=&quot;$1&quot;&gt;\n};
</span><span class="lines">@@ -74,7 +62,7 @@
</span><span class="cx">             # bugtitle hash instead of mapdata allows us to get the summary even
</span><span class="cx">             # when showsummary is off, and also gives us status and resolution.
</span><span class="cx">             # This text is safe; it has already been escaped.
</span><del>-            my $bugtitle = html_quote(clean_text($bugtitles{$bugid}));
</del><ins>+            my $bugtitle = $bugtitles{$bugid};
</ins><span class="cx"> 
</span><span class="cx">             # The URL is supposed to be safe, because it's built manually.
</span><span class="cx">             # But in case someone manages to inject code, it's safer to escape it.
</span><span class="lines">@@ -97,12 +85,13 @@
</span><span class="cx">     if (!exists $edgesdone{$key}) {
</span><span class="cx">         $edgesdone{$key} = 1;
</span><span class="cx">         print $fh &quot;$dependson -&gt; $blocked\n&quot;;
</span><ins>+        $bug_count++;
</ins><span class="cx">         $seen{$blocked} = 1;
</span><span class="cx">         $seen{$dependson} = 1;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ThrowCodeError(&quot;missing_bug_id&quot;) if !defined $cgi-&gt;param('id');
</del><ins>+ThrowUserError(&quot;missing_bug_id&quot;) unless $cgi-&gt;param('id');
</ins><span class="cx"> 
</span><span class="cx"> # The list of valid directions. Some are not proposed in the dropdrown
</span><span class="cx"> # menu despite the fact that they are valid.
</span><span class="lines">@@ -129,10 +118,10 @@
</span><span class="cx"> my $urlbase = correct_urlbase();
</span><span class="cx"> 
</span><span class="cx"> print $fh &quot;digraph G {&quot;;
</span><del>-print $fh qq{
</del><ins>+print $fh qq(
</ins><span class="cx"> graph [URL=&quot;${urlbase}query.cgi&quot;, rankdir=$rankdir]
</span><span class="cx"> node [URL=&quot;${urlbase}show_bug.cgi?id=\\N&quot;, style=filled, color=lightgrey]
</span><del>-};
</del><ins>+);
</ins><span class="cx"> 
</span><span class="cx"> my %baselist;
</span><span class="cx"> 
</span><span class="lines">@@ -190,17 +179,23 @@
</span><span class="cx">               q{SELECT bug_status, resolution, short_desc
</span><span class="cx">                   FROM bugs
</span><span class="cx">                  WHERE bugs.bug_id = ?});
</span><del>-foreach my $k (keys(%seen)) {
</del><ins>+
+my @bug_ids = keys %seen;
+$user-&gt;visible_bugs(\@bug_ids);
+foreach my $k (@bug_ids) {
</ins><span class="cx">     # Retrieve bug information from the database
</span><span class="cx">     my ($stat, $resolution, $summary) = $dbh-&gt;selectrow_array($sth, undef, $k);
</span><span class="cx"> 
</span><del>-    # Resolution and summary are shown only if user can see the bug
-    if (!Bugzilla-&gt;user-&gt;can_see_bug($k)) {
-        $resolution = $summary = '';
</del><ins>+    $vars-&gt;{'short_desc'} = $summary if ($k eq $cgi-&gt;param('id'));
+
+    # The bug summary is shown only if the user can see the bug.
+    if ($user-&gt;can_see_bug($k)) {
+        $summary = html_quote(clean_text($summary));
</ins><span class="cx">     }
</span><ins>+    else {
+        $summary = '';
+    }
</ins><span class="cx"> 
</span><del>-    $vars-&gt;{'short_desc'} = $summary if ($k eq $cgi-&gt;param('id'));
-
</del><span class="cx">     my @params;
</span><span class="cx"> 
</span><span class="cx">     if ($summary ne &quot;&quot; &amp;&amp; $cgi-&gt;param('showsummary')) {
</span><span class="lines">@@ -209,6 +204,9 @@
</span><span class="cx">             utf8::encode($summary) if utf8::is_utf8($summary);
</span><span class="cx">         }
</span><span class="cx">         $summary =~ s/([\\\&quot;])/\\$1/g;
</span><ins>+        # Newlines must be escaped too, to not break the .map file
+        # and to prevent code injection.
+        $summary =~ s/\n/\\n/g;
</ins><span class="cx">         push(@params, qq{label=&quot;$k\\n$summary&quot;});
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -229,7 +227,9 @@
</span><span class="cx">     # Push the bug tooltip texts into a global hash so that 
</span><span class="cx">     # CreateImagemap sub (used with local dot installations) can
</span><span class="cx">     # use them later on.
</span><del>-    $bugtitles{$k} = trim(&quot;$stat $resolution&quot;);
</del><ins>+    my $stat_display       = display_value('bug_status', $stat);
+    my $resolution_display = display_value('resolution', $resolution);
+    $bugtitles{$k} = trim(&quot;$stat_display $resolution_display&quot;);
</ins><span class="cx"> 
</span><span class="cx">     # Show the bug summary in tooltips only if not shown on 
</span><span class="cx">     # the graph and it is non-empty (the user can see the bug)
</span><span class="lines">@@ -242,6 +242,11 @@
</span><span class="cx"> print $fh &quot;}\n&quot;;
</span><span class="cx"> close $fh;
</span><span class="cx"> 
</span><ins>+if ($bug_count &gt; MAX_WEBDOT_BUGS) {
+    unlink($filename);
+    ThrowUserError(&quot;webdot_too_large&quot;);
+}
+
</ins><span class="cx"> my $webdotbase = Bugzilla-&gt;params-&gt;{'webdotbase'};
</span><span class="cx"> 
</span><span class="cx"> if ($webdotbase =~ /^https?:/) {
</span><span class="lines">@@ -265,7 +270,7 @@
</span><span class="cx">                                                  error =&gt; $! });
</span><span class="cx"> 
</span><span class="cx">     binmode $pngfh;
</span><del>-    open(DOT, &quot;\&quot;$webdotbase\&quot; -Tpng $filename|&quot;);
</del><ins>+    open(DOT, '-|', &quot;\&quot;$webdotbase\&quot; -Tpng $filename&quot;);
</ins><span class="cx">     binmode DOT;
</span><span class="cx">     print $pngfh $_ while &lt;DOT&gt;;
</span><span class="cx">     close DOT;
</span><span class="lines">@@ -294,7 +299,7 @@
</span><span class="cx">                                                  error =&gt; $! });
</span><span class="cx"> 
</span><span class="cx">     binmode $mapfh;
</span><del>-    open(DOT, &quot;\&quot;$webdotbase\&quot; -Tismap $filename|&quot;);
</del><ins>+    open(DOT, '-|', &quot;\&quot;$webdotbase\&quot; -Tismap $filename&quot;);
</ins><span class="cx">     binmode DOT;
</span><span class="cx">     print $mapfh $_ while &lt;DOT&gt;;
</span><span class="cx">     close DOT;
</span><span class="lines">@@ -317,7 +322,8 @@
</span><span class="cx">     # symlinks), this can't escape to delete anything it shouldn't
</span><span class="cx">     # (unless someone moves the location of $webdotdir, of course)
</span><span class="cx">     trick_taint($f);
</span><del>-    if (file_mod_time($f) &lt; $since) {
</del><ins>+    my $mtime = (stat($f))[9];
+    if ($mtime &amp;&amp; $mtime &lt; $since) {
</ins><span class="cx">         unlink $f;
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgshowdependencytreecgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/showdependencytree.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/showdependencytree.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/showdependencytree.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Andreas Franke &lt;afranke@mathweb.org&gt;
-#                 Christian Reis &lt;kiko@async.com.br&gt;
-#                 Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -53,9 +37,10 @@
</span><span class="cx"> my $id = $bug-&gt;id;
</span><span class="cx"> 
</span><span class="cx"> local our $hide_resolved = $cgi-&gt;param('hide_resolved') ? 1 : 0;
</span><del>-
</del><span class="cx"> local our $maxdepth = $cgi-&gt;param('maxdepth') || 0;
</span><del>-if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 };
</del><ins>+if ($maxdepth !~ /^\d+$/) {
+    $maxdepth = 0;
+}
</ins><span class="cx"> 
</span><span class="cx"> ################################################################################
</span><span class="cx"> # Main Section                                                                 #
</span><span class="lines">@@ -70,7 +55,7 @@
</span><span class="cx"> my $dependson_ids = {};
</span><span class="cx"> GenerateTree($id, &quot;dependson&quot;, 1, $dependson_tree, $dependson_ids);
</span><span class="cx"> $vars-&gt;{'dependson_tree'} = $dependson_tree;
</span><del>-$vars-&gt;{'dependson_ids'} = [keys(%$dependson_ids)];
</del><ins>+$vars-&gt;{'dependson_ids'}  = [keys(%$dependson_ids)];
</ins><span class="cx"> 
</span><span class="cx"> # Generate the tree of bugs that this bug blocks and a list of IDs
</span><span class="cx"> # appearing in the tree.
</span><span class="lines">@@ -78,64 +63,84 @@
</span><span class="cx"> my $blocked_ids = {};
</span><span class="cx"> GenerateTree($id, &quot;blocked&quot;, 1, $blocked_tree, $blocked_ids);
</span><span class="cx"> $vars-&gt;{'blocked_tree'} = $blocked_tree;
</span><del>-$vars-&gt;{'blocked_ids'} = [keys(%$blocked_ids)];
</del><ins>+$vars-&gt;{'blocked_ids'}  = [keys(%$blocked_ids)];
</ins><span class="cx"> 
</span><del>-$vars-&gt;{'realdepth'}      = $realdepth;
</del><ins>+$vars-&gt;{'bugid'}         = $id;
+$vars-&gt;{'realdepth'}     = $realdepth;
+$vars-&gt;{'maxdepth'}      = $maxdepth;
+$vars-&gt;{'hide_resolved'} = $hide_resolved;
</ins><span class="cx"> 
</span><del>-$vars-&gt;{'bugid'}          = $id;
-$vars-&gt;{'maxdepth'}       = $maxdepth;
-$vars-&gt;{'hide_resolved'}  = $hide_resolved;
-
</del><span class="cx"> print $cgi-&gt;header();
</span><span class="cx"> $template-&gt;process(&quot;bug/dependency-tree.html.tmpl&quot;, $vars)
</span><span class="cx">   || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><del>-################################################################################
-# Recursive Tree Generation Function                                           #
-################################################################################
</del><ins>+# Tree Generation Functions
</ins><span class="cx"> 
</span><span class="cx"> sub GenerateTree {
</span><del>-    # Generates a dependency tree for a given bug.  Calls itself recursively
-    # to generate sub-trees for the bug's dependencies.
</del><span class="cx">     my ($bug_id, $relationship, $depth, $bugs, $ids) = @_;
</span><span class="cx"> 
</span><del>-    my @dependencies;
-    if ($relationship eq 'dependson') {
-        @dependencies = @{$bugs-&gt;{$bug_id}-&gt;dependson};
</del><ins>+    # determine just the list of bug ids
+    _generate_bug_ids($bug_id, $relationship, $depth, $ids);
+    my $bug_ids = [ keys %$ids ];
+    return unless @$bug_ids;
+
+    # load all the bugs at once
+    foreach my $bug (@{ Bugzilla::Bug-&gt;new_from_list($bug_ids) }) {
+        if (!$bug-&gt;{error}) {
+            $bugs-&gt;{$bug-&gt;id} = $bug;
+        }
</ins><span class="cx">     }
</span><del>-    else {
-        @dependencies = @{$bugs-&gt;{$bug_id}-&gt;blocked};
-    }
</del><span class="cx"> 
</span><del>-    # Don't do anything if this bug doesn't have any dependencies.
-    return unless scalar(@dependencies);
</del><ins>+    # preload bug visibility
+    Bugzilla-&gt;user-&gt;visible_bugs($bug_ids);
</ins><span class="cx"> 
</span><del>-    # Record this depth in the global $realdepth variable if it's farther 
</del><ins>+    # and generate the tree
+    _generate_tree($bug_id, $relationship, $depth, $bugs, $ids);
+}
+
+sub _generate_bug_ids {
+    my ($bug_id, $relationship, $depth, $ids) = @_;
+
+    # Record this depth in the global $realdepth variable if it's farther
</ins><span class="cx">     # than we've gone before.
</span><span class="cx">     $realdepth = max($realdepth, $depth);
</span><span class="cx"> 
</span><del>-    foreach my $dep_id (@dependencies) {
-        # Get this dependency's record from the database and generate
-        # its sub-tree if we haven't already done so (which happens
-        # when bugs appear in dependency trees multiple times).
-        if (!$bugs-&gt;{$dep_id}) {
-            $bugs-&gt;{$dep_id} = new Bugzilla::Bug($dep_id);
-            GenerateTree($dep_id, $relationship, $depth+1, $bugs, $ids);
</del><ins>+    my $dependencies = _get_dependencies($bug_id, $relationship);
+    foreach my $dep_id (@$dependencies) {
+        if (!$maxdepth || $depth &lt;= $maxdepth) {
+            $ids-&gt;{$dep_id} = 1;
+            _generate_bug_ids($dep_id, $relationship, $depth + 1, $ids);
</ins><span class="cx">         }
</span><ins>+    }
+}
</ins><span class="cx"> 
</span><del>-        # Add this dependency to the list of this bug's dependencies 
-        # if it exists, if we haven't exceeded the maximum depth the user 
-        # wants the tree to go, and if the dependency isn't resolved 
-        # (if we're ignoring resolved dependencies).
-        if (!$bugs-&gt;{$dep_id}-&gt;{'error'}
-            &amp;&amp; Bugzilla-&gt;user-&gt;can_see_bug($dep_id)
-            &amp;&amp; (!$maxdepth || $depth &lt;= $maxdepth) 
-            &amp;&amp; ($bugs-&gt;{$dep_id}-&gt;isopened || !$hide_resolved))
-        {
-            # Due to AUTOLOAD in Bug.pm, we cannot add 'dependencies'
-            # as a bug object attribute from here.
-            push(@{$bugs-&gt;{'dependencies'}-&gt;{$bug_id}}, $dep_id);
-            $ids-&gt;{$dep_id} = 1;
</del><ins>+sub _generate_tree {
+    my ($bug_id, $relationship, $depth, $bugs, $ids) = @_;
+
+    my $dependencies = _get_dependencies($bug_id, $relationship);
+
+    foreach my $dep_id (@$dependencies) {
+        # recurse
+        if (!$maxdepth || $depth &lt; $maxdepth) {
+            _generate_tree($dep_id, $relationship, $depth + 1, $bugs, $ids);
</ins><span class="cx">         }
</span><ins>+
+        # remove bugs according to visiblity
+        if (!Bugzilla-&gt;user-&gt;can_see_bug($dep_id)) {
+            delete $ids-&gt;{$dep_id};
+        }
+        elsif (!grep { $_ == $dep_id } @{ $bugs-&gt;{dependencies}-&gt;{$bug_id} }) {
+            push @{ $bugs-&gt;{dependencies}-&gt;{$bug_id} }, $dep_id;
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><ins>+
+sub _get_dependencies {
+    my ($bug_id, $relationship) = @_;
+    my $cache = Bugzilla-&gt;request_cache-&gt;{dependency_cache} ||= {};
+    return $cache-&gt;{$bug_id}-&gt;{$relationship} ||=
+        $relationship eq 'dependson'
+        ? Bugzilla::Bug::EmitDependList('blocked',   'dependson', $bug_id, $hide_resolved)
+        : Bugzilla::Bug::EmitDependList('dependson', 'blocked',   $bug_id, $hide_resolved);
+}
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsREADME"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/README (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/README        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/README        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,18 @@
</span><span class="cx"> There are three directories here, standard/, custom/, and contrib/.
</span><span class="cx"> 
</span><del>-standard/ holds the standard stylesheets. These are used no matter
-what skin the user selects. If the user selects the &quot;Classic&quot; skin,
-then *only* the standard/ stylesheets are used.
</del><ins>+standard/ holds the standard stylesheets. These are used no matter what skin
+the user selects. If the user selects the &quot;Classic&quot; skin, then *only* the
+standard/ stylesheets are used.
</ins><span class="cx"> 
</span><del>-contrib/ holds &quot;skins&quot; that the user can select in their preferences.
-skins are in directories, and they contain files with the same names
-as the files in skins/standard/. Simply putting a new directory
-into the contrib/ directory adds a new skin as an option in users'
-preferences.
</del><ins>+contrib/ holds &quot;skins&quot; that the user can select in their preferences.  skins
+are in directories, and they contain files with the same names as the files in
+skins/standard/. Simply putting a new directory into the contrib/ directory
+adds a new skin as an option in users' preferences.
</ins><span class="cx"> 
</span><del>-custom/ allows you to locally override the standard/ and contrib/ CSS.
-If you put files into the custom/ directory with the same names as the CSS
-files in skins/standard/, you can override the standard/ and contrib/
-CSS. For example, if you want to override some CSS in
-skins/standard/global.css, then you should create a file called &quot;global.css&quot;
-in custom/ and put some CSS in it. The CSS you put into files in custom/ will
-be used *in addition* to the CSS in skins/standard/ or the CSS in
-skins/contrib/. It will apply to every skin.
</del><ins>+custom/ allows you to locally override the standard/ and contrib/ CSS.  If you
+put files into the custom/ directory with the same names as the CSS files in
+skins/standard/, you can override the standard/ and contrib/ CSS. For example,
+if you want to override some CSS in skins/standard/global.css, then you should
+create a file called &quot;global.css&quot; in custom/ and put some CSS in it. The CSS
+you put into files in custom/ will be used *in addition* to the CSS in
+skins/standard/ or the CSS in skins/contrib/. It will apply to every skin.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinscontribDuskbuglistcss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/buglist.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/buglist.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/buglist.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Mike Schrag.
-  * Portions created by Marc Schumann are Copyright (c) 2007 Mike Schrag.
-  * All rights reserved.
-  *
-  * Contributor(s): Mike Schrag &lt;mschrag@pobox.com&gt;
-  *                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-  *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  */
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> tr.bz_bugitem:hover {
</span><span class="cx">     background-color: #ccccff;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinscontribDuskglobalcss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/global.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/global.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/global.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,10 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Mike Schrag.
-  * Portions created by Marc Schumann are Copyright (c) 2007 Mike Schrag.
-  * All rights reserved.
-  *
-  * Contributor(s): Mike Schrag &lt;mschrag@pobox.com&gt;
-  *                 Byron Jones &lt;bugzilla@glob.com.au&gt;
-  *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  *                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  */
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> body {
</span><span class="cx">     background: #c8c8c8;
</span><span class="lines">@@ -80,12 +66,6 @@
</span><span class="cx"> 
</span><span class="cx"> /* edit */
</span><span class="cx"> 
</span><del>-#bugzilla-body th {
-    font-weight: bold;
-    vertical-align: top;
-    white-space: nowrap;
-}
-
</del><span class="cx"> #bug-form td {
</span><span class="cx">     padding-top: 2px;
</span><span class="cx"> }
</span><span class="lines">@@ -232,6 +212,10 @@
</span><span class="cx">     background-color: #f0f0f0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#page-index .outro {
+    clear:both;
+}
+
</ins><span class="cx"> /* Rules specific for printing */
</span><span class="cx"> @media print {
</span><span class="cx">     #header,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinscontribDuskindexcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/index.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/index.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/contrib/Dusk/index.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,9 +0,0 @@
</span><del>-/*
- * Custom rules for index.css.
- * The rules you put here override rules in that stylesheet.
- */
-    
-    div#page-index .outro 
-    {
-        clear:both;
-    }
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardIEfixescss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/IE-fixes.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/IE-fixes.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/IE-fixes.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,63 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-  */
-
-.bz_comment_text, .uneditable_textarea, tbody.file pre {
-     white-space: pre;
-     word-wrap: break-word;
-}
-
-.component_table {
-    margin-top: .5em;
-}
-
-form#Create #comp_desc {
-    margin: .5em 1em;
-}
-
-#footer #useful-links li {
-    padding-bottom: 0.8ex;
-}
-
-#footer .label {
-    display: block;
-    float: left;
-    width: 8.2em;
-    padding-bottom: 0.1ex;
-}
-
-#footer #links-actions .label {
-    padding-top: 0.35em;
-}
-
-#footer .links {
-    display: inline;
-}
-
-#bug_id_container, .search_field_grid, 
-.search_email_fields, ul.bug_changes li { 
-    zoom: 1;
-    display: inline;
-}
-
-#keyword_container .yui-ac-content {
-    _height: 30em; /* ie6 */
-}
-
-.bz_short_desc_column a, .bz_short_short_desc_column a {
-    /* color:inherit */
-    color: expression(this.parentNode.currentStyle['color']);
-}
-
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardadmincss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/standard/admin.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/admin.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/admin.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,14 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-  */
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> .warningmessages, .criticalmessages {
</span><span class="cx">     background-color: white;
</span><del>-    border-style: solid;
-    border-width: 1px;
</del><ins>+    border: 1px solid;
</ins><span class="cx">     padding: 1ex 1ex 1ex 4ex;
</span><span class="cx">     margin: 1ex;
</span><span class="cx"> }
</span><span class="lines">@@ -34,6 +26,12 @@
</span><span class="cx">     background-color: inherit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.confirmation {
+    background-color: red;
+    padding: 3ex;
+    width: 70%;
+}
+
</ins><span class="cx"> p.areyoureallyreallysure {
</span><span class="cx">     color: red;
</span><span class="cx">     font-size: 120%;
</span><span class="lines">@@ -40,7 +38,27 @@
</span><span class="cx">     font-weight: bold;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-tr.param_disabled {
</del><ins>+#admin_table, #flag_types_bugs, #flag_types_attachments {
+    border-collapse: collapse;
+    border: 1px solid black;
+}
+
+#admin_table th, #admin_table td,
+#flag_types_bugs th , #flag_types_bugs td,
+#flag_types_attachments th, #flag_types_attachments td {
+    border: 1px solid black;
+    padding: 0.3em;
+}
+
+table.no-border th, table.no-border td {
+    border: 0 !important;
+}
+
+table.no-border th {
+    text-align: left;
+}
+
+tr.disabled {
</ins><span class="cx">     background-color: lightgrey;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -66,14 +84,20 @@
</span><span class="cx">     cursor: default;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.col-header {
-    width: 8em;
</del><ins>+div.table {
+   display: inline-table;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.checkbox-cell {
-    border: 1px black solid;
</del><ins>+div.cell {
+    display: table-cell;
+    vertical-align: top;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.open-status, .closed-status {
+    width: 8em;
+    padding: 0.3em;
+}
+
</ins><span class="cx"> /* Grey-green color */
</span><span class="cx"> .open-status {
</span><span class="cx">     color: #286;
</span><span class="lines">@@ -114,14 +138,168 @@
</span><span class="cx">     vertical-align: middle;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#edit_custom_field tr {
-    vertical-align: top;
</del><ins>+td.max-width {
+    width: 100%;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#edit_custom_field th {
</del><ins>+#flag_types_bugs .inactive, #flag_types_attachments .inactive {
+    color: #787878;
+}
+
+#flag_types_bugs .multiplicable, #flag_types_attachments .multiplicable {
+    display: block;
+}
+
+#flagtype_form div.inline {
+    white-space: nowrap;
+}
+
+#flagtype_form label, #grant_table label {
+    font-weight:bold;
+}
+
+table.whining_list, #group_settings_desc {
+    border: 1px solid black;
+    border-collapse: collapse;
+    width: 100%;
+}
+
+#group_settings_desc th, #group_settings_desc td {
+    border: 1px solid black;
+    padding: 0.3em;
+}
+
+table.whining_list th, table.whining_list td,
+#admin_table_edit th, #admin_table_edit td {
+    padding: 0.3em;
+}
+
+table.whining_list th {
</ins><span class="cx">     text-align: right;
</span><ins>+    font-weight: normal !important;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#edit_custom_field th.narrow_label {
-    white-space: normal;
</del><ins>+table.whining_list th.subtitle {
+    font-weight: bold !important;
+    text-align: left !important;
</ins><span class="cx"> }
</span><ins>+
+table.schedule_list th, table.search_list th {
+    text-align: center;
+    font-weight: bold !important;
+}
+
+#settings #update {
+    margin-top: 2em;
+}
+
+#grant_table td, #grant_table th {
+    text-align: center;
+    padding: 0.5em;
+}
+
+#grant_table th {
+    padding: 2em 3em 0.5em 3em;
+}
+
+#grant_table tr:first-child th {
+    padding-top: 0.5em;
+}
+
+#mass-remove {
+    max-width: 50%;
+}
+
+#mass-remove legend {
+    white-space: nowrap;
+}
+
+#workflow {
+    border-collapse: collapse;
+}
+
+#workflow td {
+    border: 1px dotted black;
+    text-align: center;
+}
+
+#group_membership tr.indirect {
+    background-color: #cccccc;
+}
+
+#group_membership th {
+    text-align: left;
+    padding: 0 1ex;
+}
+
+#group_membership th.checkbox, #group_membership td.checkbox {
+    text-align: center;
+    white-space: nowrap;
+}
+
+#user_responsibilities th {
+    text-align: center;
+    padding: 0 1em 1em;
+}
+
+#user_responsibilities th.product {
+    text-align: left;
+    padding: 1em 0 0;
+}
+
+#menu {
+    width: 10em;
+    margin-right: 0.5em;
+    border: solid thin;
+    border-spacing: 0px;
+    border-collapse: collapse;
+    text-align: center;
+    color: black;
+    background-color: #edf2f2;
+    font-weight: normal;
+}
+
+#menu a:link, #menu a:visited {
+    color: #039;
+    background-color: transparent;
+}
+
+#menu a:hover, #menu a:active {
+    color: red;
+    background-color: transparent;
+}
+
+#menu td {
+    border: solid thin;
+    padding: 0.2em 0.5em;
+}
+
+#menu td.selected_section {
+    color: #090;
+    background-color: white;
+}
+
+#menu td.index {
+    color: black;
+    background-color: #edf;
+}
+
+#params_index {
+    padding-left: 1em;
+}
+
+#edit_params dd {
+    margin-bottom: 1.5em;
+}
+
+.sortlist_separator {
+    font-weight: bold;
+    font-size: 80%;
+    background-color: #dddddd;
+}
+
+#contribute {
+    border: 1px dotted black;
+    padding: .5em;
+    font-size: small;
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardattachmentcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/attachment.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/attachment.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/attachment.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,247 +0,0 @@
</span><del>- /* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  *                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  *                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-  *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  *                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  */
-
-table.attachment_entry th {
-    text-align: right;
-    vertical-align: baseline;
-    white-space: nowrap;
-}
-
-table.attachment_entry td {
-    text-align: left;
-    vertical-align: baseline;
-    padding-bottom: 5px;
-}
-
-table#flags th,
-table#flags td {
-    text-align: left;
-    vertical-align: baseline;
-    font-size: small;
-}
-
-/* Rules used to view patches in diff mode. */
-
-.file_head {
-  font-weight: bold;
-  font-size: 1em;
-  background-color: #c3c3c3;
-  border: 1px solid black;
-}
-
-.file_head a {
-  text-decoration: none;
-  font-family: monospace;
-  font-size: 1.1em;
-}
-
-.file_collapse {
-  display: none;
-}
-
-.section_head {
-  background-color: #f0f0f0;
-  border: 1px solid black;
-  text-align: left;
-}
-
-table.file_table {
-  table-layout: fixed;
-  width: 100%;
-  empty-cells: show;
-  border-spacing: 0px;
-  border-collapse: collapse;
-  /* draw border below last open context section in listing */
-  border-bottom: 1px solid black;
-}
-
-tbody.file pre {
-  display: inline;
-  font-size: 0.9em;
-}
-
-tbody.file pre:empty {
-  display: block;
-}
-
-.changed {
-  background-color: lightblue;
-}
-
-.added {
-  background-color: lightgreen;
-}
-
-.removed {
-  background-color: #FFCC99;
-}
-
-.num {
-  background-color: #ffe9ae;
-  text-align:right;
-  padding: 0 0.3em;
-  width: 3em;
-}
-
-table.attachment_info th {
-    text-align: right;
-    vertical-align: top;
-}
-
-table.attachment_info td {
-    text-align: left;
-    vertical-align: top;
-}
-
-/* Text displayed when the attachment is not viewable by the web browser */
-#noview {
-    text-align: left;
-    vertical-align: middle;
-}
-
-#attachment_attributes div {
-    padding-bottom: 0.4em;
-}
-
-#attachment_attributes label,
-#attachment_attributes span.label,
-#attachment_actions span.label
-{
-    font-weight: bold;
-}
-
-#attachment_attributes .block {
-    display: block;
-}
-
-#smallCommentFrame, #attachment_flags {
-    float: left;
-}
-
-#smallCommentFrame {
-    margin-right: 1.5em;
-}
-
-#attachment_comments_and_flags, #attachment_actions {
-    clear: both;
-    margin-bottom: 1ex;
-}
-
-#attachment_information_read_only .title {
-    font-weight: bold;
-    font-size: 1.5em;
-    padding: 0;
-    margin: 0;
-}
-
-#attachment_information_read_only .title #bz_edit {
-    font-size: 0.7em;
-}
-
-#attachment_information_read_only .details {
-    font-size: 90%;
-}
-
-#attachment_info.read #attachment_information_edit {
-    display: none;
-}
-
-#attachment_info.edit #attachment_information_read_only {
-    display: none;  
-}
-
-#attachment_info.edit #attachment_view_window {
-    float: left;
-    width: 80%;
-}
-
-#attachment_info.edit #attachment_information_edit {
-    width: 20%;
-}
-
-#attachment_info.edit #attachment_information_edit input.text,
-#attachment_info.edit #attachment_information_edit textarea {
-    width: 90%; 
-}
-
-#attachment_isobsolete {
-    padding-right: 1em;
-}
-
-#attachment_information_edit { 
-    float: left;
-}
-
-#smallCommentFrame textarea {
-    display: block;
-}
-
-textarea.bz_private {
-    border: 1px solid #F8C8BA;
-}
-
-#update {
-    clear: both; 
-    display: block;  
-}
-
-div#update_container {
-    clear: both; 
-    padding: 1.5em 0; 
-}
-
-#attachment_flags {
-    margin-bottom: 1em;
-}
-
-#attachment_flags p {
-    padding-bottom: 0;
-    margin-bottom: 0;
-}
-
-#editFrame, #viewDiffFrame, #viewFrame {
-    height: 400px; 
-    width: 95%;
-    margin-left: 2%;
-}
-
-.viewall_frame {
-    width: 75%;
-    height: 350px;
-}
-
-.details span.bz_private{
-  border-left: 1px solid darkred;
-  padding-left: 0.5em;
-}
-
-.no_javascript .bz_hide, .no_javascript .bz_edit {
-    display: none;
-}
-
-#hidden_obsolete_message {
-   text-align: left; 
-   width: 75%; 
-   margin: 0  auto; 
-   font-weight: bold
-}
-
-#description {
-    resize: vertical;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardbugcss"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/skins/standard/bug.css (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/bug.css                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/skins/standard/bug.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,597 @@
</span><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
+
+/* enter_bug.cgi (start) */
+
+/* These are specified using the class instead of the id so that they
+   don't override the YUI CSS. */
+.enter_bug_form table {
+    border-spacing: 0;
+    border-width: 0;
+}
+
+.enter_bug_form td, .enter_bug_form th {
+    padding: .25em;
+}
+
+.enter_bug_form th {
+    text-align: right;
+}
+
+/* This makes the &quot;component&quot; column as small as possible (since it
+ * contains only fixed-width content) and the Reporter column
+ * as large as possible, which makes the form not jump around
+ * when the Component Description changes size. This works
+ * pretty well on all browsers except IE 8.
+ */
+#Create #field_container_component {
+    width: 1px;
+}
+
+#Create #field_container_reporter {
+    width: 100%;
+}
+
+#Create .comment, #guided_form #description {
+    vertical-align: top;
+    overflow: auto;
+    color: green;
+}
+
+#guided_form #description {
+    display: inline;
+    margin-left: 10px;
+}
+
+#Create #comp_desc_container td {
+    padding: 0;
+}
+
+#Create #comp_desc {
+    height: 11ex;
+}
+
+#Create #os_guess_note {
+    padding-top: 0;
+}
+
+#Create #os_guess_note div {
+    max-width: 35em;
+}
+
+#Create .field_value .text_input {
+    max-width: 50em;
+}
+
+#possible_duplicates th {
+    text-align: center;
+    background: none;
+    border-collapse: collapse;
+}
+
+#possible_duplicates td {
+    vertical-align: middle;
+}
+
+/* Make the Add Me to CC button never wrap. */
+#possible_duplicates .yui-dt-col-update_token {
+    white-space: nowrap;
+}
+
+table#flags th, table#flags td,
+table#bug_flags th, table#bug_flags td,
+table#attachment_flags th, table#attachment_flags td {
+    text-align: left;
+    vertical-align: baseline;
+    font-size: small;
+}
+
+/* CSS rules for the guided form. */
+
+.guided_form_field {
+    background-color: #ffc;
+}
+
+#somebugs {
+    width: 100%;
+    height: 500px;
+}
+
+.good {
+    color: #090;
+}
+
+.bad {
+    color: #900;
+}
+
+/* enter_bug.cgi (end) */
+
+/* show_bug.cgi (start) */
+
+.bz_short_desc_container {
+    margin: 8px 0;
+    padding: 0.3em;
+    background-color: rgb(208, 208, 208);
+    border-radius: 0.5em;
+    font-size: 125%;
+    font-weight: bold;
+}
+
+.bz_bug .edit_form {
+  width: 100%;
+}
+.bz_bug .edit_form table {
+  width: 100%;
+}
+.bz_bug #alias {
+    min-width: 0;
+    width: 10em;
+}
+
+table#flags {
+    width: auto;
+}
+
+.bz_column_spacer {
+    width: 0.5em;
+}
+
+.related_actions {
+    font-size: 0.85em;
+    float: right;
+    list-style-type: none;
+    white-space: nowrap;
+    margin: 0;
+    padding: 0;
+}
+
+.related_actions li {
+    display: inline;
+}
+
+.navigation_link {
+    color: #777;
+    font-style: italic;
+}
+
+.bz_show_bug_column {
+  vertical-align: top;
+}
+
+.bz_section_spacer {
+    height: 1em;
+}
+
+#duplicate_settings {
+    white-space: nowrap;
+}
+
+#bz_big_form_parts td {
+    vertical-align: top;
+}
+
+.bz_group_visibility_section {
+    margin-left: 1em;
+}
+
+.bz_group_visibility_section .instructions {
+    font-style: italic;
+}
+
+#bz_restrict_group_visibility_help .instructions {
+    margin-top: 0;
+}
+
+#bz_enable_role_visibility_help {
+    margin-top: 1em;
+}
+
+.bz_time_tracking_table {
+    border-collapse: collapse;
+}
+
+.bz_time_tracking_table th {
+    text-align: center;
+}
+
+.bz_time_tracking_table td {
+    text-align: center;
+}
+
+.bz_time_tracking_table th,
+.bz_time_tracking_table td {
+    padding: 4px;
+}
+
+.bz_time_tracking_table .bz_summarize_time {
+    text-align: right;
+}
+.bz_time_tracking_table #deadline {
+    width: 7em;
+}
+
+#summary tr td {
+    vertical-align:top;
+}
+
+#status {
+    margin-bottom: 3ex;
+}
+
+.knob-buttons {
+    float: right;
+}
+
+.text_input, .bz_userfield, #keywords_container, #tag_container {
+    width: 100%;
+}
+.bz_bug .bz_short_desc_container {
+    width: inherit;
+}
+
+.bz_comment_tags {
+    margin-top: 3px;
+}
+
+.bz_comment_tag {
+    border: 1px solid #c8c8ba;
+    padding: 1px 3px;
+    margin-right: 2px;
+    border-radius: 0.5em;
+    background-color: #eee;
+    color: #000;
+}
+
+#bz_ctag_div {
+    display: inline-block;
+}
+
+#bz_ctag_error {
+    border: 1px solid #ff6666;
+    padding: 0px 2px;
+    border-radius: 0.5em;
+    margin: 2px;
+    display: inline-block;
+}
+
+#comment_tags_collapse_expand_container {
+    padding-top: 1em;
+}
+
+#comment_tags_collapse_expand {
+    list-style-type: none;
+    padding-left: 1em;
+}
+
+#comment_tags_collapse_expand li {
+    margin-bottom: 0px;
+}
+
+/* show_bug.cgi (end) */
+
+/* showdependencytree.cgi (start) */
+
+ul.tree {
+    padding-left: 0em;
+    margin-left: 1em;
+    display: block;
+}
+
+ul.tree ul {
+    padding-top: 3px;
+    display: block;
+}
+
+ul.tree li {
+    /* see http://www.kryogenix.org/code/browser/aqlists/ for idea */
+    padding-top: 3px;
+    text-indent: -1.2em;
+    padding-left: 0.5em;
+    padding-bottom: 3px;
+    list-style-type: none;
+    background: url(&quot;dependency-tree/bug-item.png&quot;) no-repeat;
+}
+
+ul.tree li a.b {
+    padding-left: 30px;
+    margin-right: -14px;
+    text-decoration: none;
+}
+
+ul.tree li a.b_open {
+    background: url(&quot;dependency-tree/tree-open.png&quot;) center no-repeat;
+    cursor: pointer;
+}
+
+ul.tree li a.b_closed {
+    background: url(&quot;dependency-tree/tree-closed.png&quot;) center no-repeat;
+    cursor: pointer;
+}
+
+ul.tree a.tree_link img {
+    border: 0;
+}
+
+.summ_info {
+    /* change to inline if you would like to see the full bug details
+     * displayed in the list */
+    display: none;
+    font-size: 75%;
+}
+
+.hint {
+    font-size: 90%;
+    margin: 0.2em;
+    padding: 0.1em;
+}
+
+.hint h3, .hint ul {
+    margin-top: 0.1em;
+    margin-bottom: 0.1em;
+}
+
+.summ A, .summ_deep A {
+    text-decoration: none;
+    color: darkblue;
+}
+
+.summ_h A {
+    background-color: #ffffaa;
+    color: #333;
+    font-weight: bold;
+}
+
+.dependency_tree_controls input[type=submit] {
+    min-width: 3em;
+}
+
+/* showdependencytree.cgi (end) */
+
+/* attachment.cgi (start) */
+
+table.attachment_entry th {
+    text-align: right;
+    vertical-align: baseline;
+    white-space: nowrap;
+}
+
+table.attachment_entry td {
+    text-align: left;
+    vertical-align: baseline;
+    padding-bottom: 5px;
+}
+
+/* Rules used to view patches in diff mode. */
+
+.file_head {
+    font-weight: bold;
+    font-size: 1em;
+    background-color: #c3c3c3;
+    border: 1px solid black;
+}
+
+.file_head a {
+    text-decoration: none;
+    font-family: monospace;
+    font-size: 1.1em;
+}
+
+.file_collapse {
+    display: none;
+}
+
+.section_head {
+    background-color: #f0f0f0;
+    border: 1px solid black;
+    text-align: left;
+    padding: 0.2em;
+}
+
+.section_head .link_here {
+    float: right;
+    padding-left: 1em;
+    padding-right: 0.5em;
+}
+
+.lines_count a {
+    padding-left: 0.5em;
+    padding-right: 1em;
+}
+
+table.file_table {
+    table-layout: fixed;
+    width: 100%;
+    empty-cells: show;
+    border-spacing: 0px;
+    border-collapse: collapse;
+    /* draw border below last open context section in listing */
+    border-bottom: 1px solid black;
+}
+
+tbody.file pre {
+    display: inline;
+    font-size: 0.9em;
+}
+
+tbody.file pre:empty {
+    display: block;
+}
+
+.changed {
+    background-color: lightblue;
+}
+
+.added {
+    background-color: lightgreen;
+}
+
+.removed {
+    background-color: #FFCC99;
+}
+
+.num {
+    background-color: #ffe9ae;
+    text-align:right;
+    padding: 0 0.3em;
+    width: 3em;
+}
+
+table.attachment_info th {
+    text-align: right;
+    vertical-align: top;
+}
+
+table.attachment_info td {
+    text-align: left;
+    vertical-align: top;
+}
+
+/* Text displayed when the attachment is not viewable by the web browser */
+#noview {
+    text-align: left;
+    vertical-align: middle;
+}
+
+#attachment_attributes div {
+    padding-bottom: 0.4em;
+}
+
+#attachment_attributes label {
+    font-weight: bold;
+}
+
+#attachment_attributes .block {
+    display: block;
+}
+
+#smallCommentFrame, #attachment_flags {
+    float: left;
+}
+
+#smallCommentFrame {
+    margin-right: 1.5em;
+}
+
+#attachment_comments_and_flags, #attachment_actions {
+    clear: both;
+    margin-bottom: 1ex;
+}
+
+#attachment_information_read_only .title {
+    font-weight: bold;
+    font-size: 1.5em;
+    padding: 0;
+    margin: 0;
+}
+
+#attachment_information_read_only .title #bz_edit {
+    font-size: 0.7em;
+}
+
+#attachment_information_read_only .details {
+    font-size: 90%;
+}
+
+#attachment_info.read #attachment_information_edit {
+    display: none;
+}
+
+#attachment_info.edit #attachment_information_read_only {
+    display: none;
+}
+
+#attachment_info.edit #attachment_view_window {
+    float: left;
+    width: 80%;
+}
+
+#attachment_info.edit #attachment_information_edit {
+    width: 20%;
+}
+
+#attachment_info.edit #attachment_information_edit input.text,
+#attachment_info.edit #attachment_information_edit textarea {
+    width: 90%;
+}
+
+#attachment_isobsolete {
+    padding-right: 1em;
+}
+
+#attachment_information_edit {
+    float: left;
+}
+
+#smallCommentFrame textarea {
+    display: block;
+}
+
+textarea.bz_private {
+    border: 1px solid #F8C8BA;
+}
+
+#update {
+    clear: both;
+    display: block;
+}
+
+div#update_container {
+    clear: both;
+    padding: 1.5em 0;
+}
+
+#attachment_flags {
+    margin-bottom: 1em;
+}
+
+#attachment_flags p {
+    padding-bottom: 0;
+    margin-bottom: 0;
+}
+
+#editFrame, #viewDiffFrame, #viewFrame {
+    height: 400px;
+    width: 95%;
+    margin-left: 2%;
+}
+
+.viewall_frame_container {
+    width: 75%;
+    margin: 2em auto;
+}
+
+.viewall_desc {
+    width: 100%;
+    border: 1px solid black;
+    border-spacing: 0px;
+    border-collapse: collapse;
+}
+
+.viewall_desc th, .viewall_desc td {
+    border: 1px solid black;
+    padding: 0.3em;
+}
+
+.viewall_frame {
+    width: 100%;
+    height: 350px;
+}
+
+.no_javascript .bz_hide, .no_javascript .bz_edit {
+    display: none;
+}
+
+#hidden_obsolete_message {
+   text-align: left;
+   width: 75%;
+   margin: 0  auto;
+   font-weight: bold;
+}
+
+/* attachment.cgi (end) */
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardbuglistcss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/standard/buglist.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/buglist.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/buglist.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,12 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Netscape Communications
-  * Corporation. Portions created by Netscape are
-  * Copyright (C) 1998 Netscape Communications Corporation. All
-  * Rights Reserved.
-  *
-  * Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  */
-.bz_query_head {
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
+
+#groups_edit_multiple th, .bz_query_head {
</ins><span class="cx">   text-align: center;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -53,7 +42,33 @@
</span><span class="cx"> .bz_sort_order_primary   { color: black; }
</span><span class="cx"> .bz_sort_order_secondary { color: #777;  }
</span><span class="cx"> 
</span><ins>+.bz_query_buttons #xml {
+    vertical-align: middle;
+    padding: 0;
+}
</ins><span class="cx"> 
</span><ins>+.bz_query_buttons button {
+    border: 0px;
+    background: transparent;
+}
+
+.bz_query_buttons form {
+    display: inline;
+}
+
+.bz_query_links a img {
+    vertical-align: bottom;
+    border: 0;
+}
+
+.bz_query_links a {
+    text-decoration: none;
+}
+
+.bz_query_links button, .bz_query_edit button {
+    font-size: small;
+}
+
</ins><span class="cx"> .bz_id_column {
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -75,9 +90,15 @@
</span><span class="cx"> /* Align columns in the &quot;change multiple bugs&quot; form to the right. */
</span><span class="cx"> table#form tr th { text-align: right; }
</span><span class="cx"> 
</span><del>-table.bz_buglist td, table.bz_buglist th { 
</del><ins>+table.bz_buglist {
+  border-collapse: collapse;
+  width: 100%;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+table.bz_buglist td, table.bz_buglist th {
+  padding: 0.4em;
+}
+
</ins><span class="cx"> /* we use a first-child class and not the pseudo-class because IE
</span><span class="cx">  * doesn't support it :-( */
</span><span class="cx"> tr.bz_secure td.first-child, a.bz_secure { 
</span><span class="lines">@@ -88,7 +109,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> th.first-child, td.first-child, a.bz_secure {
</span><del>-  padding-left: 20px;
</del><ins>+  padding-left: 20px !important;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> tr.bz_secure_mode_implied td.first-child {
</span><span class="lines">@@ -119,7 +140,7 @@
</span><span class="cx">   margin-top: .25em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.bz_query_explain {
</del><ins>+.bz_query_debug {
</ins><span class="cx">     text-align: left;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -127,3 +148,441 @@
</span><span class="cx">     color: inherit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.buglist_menu {
+    margin-top: 1em;
+}
+
+.buglist_menu div {
+    display: inline-block;
+    vertical-align: middle;
+}
+
+.buglist_menu .bz_query_buttons {
+    display: inline;
+}
+
+div.bz_query_buttons {
+    max-width: 15em;
+}
+
+#groups_edit_multiple, #quips {
+    border: 1px solid black;
+    border-collapse: collapse;
+}
+
+#groups_edit_multiple th, #groups_edit_multiple td,
+#quips th, #quips td {
+    border: 1px solid;
+    padding: 0.3em;
+}
+
+#groups_edit_multiple th.narrow_column {
+    width: 8em;
+}
+
+/* The &quot;filtering&quot; table is specific to request.cgi.
+ * Same for the &quot;requests&quot; class used for tables. */
+
+#filtering #requester, #filtering #requestee {
+    min-width: 8em;
+}
+
+#filtering th {
+    text-align: right;
+}
+
+table.requests {
+    border: 1px solid black;
+    border-collapse: collapse;
+    width: 100%;
+}
+
+table.requests th, table.requests td {
+    border: 1px solid;
+    padding: 0.5em;
+}
+
+table.requests th {
+    text-align: left;
+}
+
+/* query.cgi (start) */
+
+#summary_field {
+    padding: 1em;
+    margin: 1em;
+    border: 1px solid black;
+    background-color: #eee;
+    white-space: nowrap;
+}
+
+#bug_id_container {
+    display: inline-block;
+    vertical-align: middle;
+    padding-bottom: 1ex;
+}
+
+#bug_id_container input {
+    width: 9em;
+}
+
+#bug_id_container .field_help {
+    font-size: 0.75em
+}
+
+.search_field_grid {
+    margin-top: 1em;
+    display: inline-block;
+}
+
+.search_field_grid .field_help_link,
+.history_query .field_help_link {
+    display: block;
+    text-align: left;
+}
+
+#chart .section_help {
+    font-size: 0.8em;
+    font-weight: normal
+}
+
+.search_field_row {
+    white-space: nowrap;
+    margin-bottom: 0.5em;
+}
+
+.search_field_row .field_label, #field_label_short_desc {
+    width: 14em;
+    display: inline-block;
+    line-height: 2em;
+    margin-right: 0.8em;
+}
+
+.field_label_sup {
+    font-weight: normal;
+}
+
+#keywords_container {
+    padding-bottom: 0;
+}
+
+.search_field_grid .field_label,
+.search_field_grid .field_label {
+    display: block;
+    padding-bottom: 1ex;
+}
+
+.search_field_grid select {
+    width: 17em;
+    height: 15ex;
+}
+
+.search_field_grid, .search_field_row {
+    padding-left: 1.5em;
+}
+
+.search_email_fields {
+    display: inline-block;
+    width: 14.5em;
+    padding-left: 1.5em;
+}
+
+ul.bug_changes {
+    margin: 0;
+    padding: 0;
+}
+
+ul.bug_changes li {
+    display: inline-block;
+    width: 14.5em;
+    vertical-align: top;
+    padding-left: 1.5em;
+}
+
+ul.bug_changes select {
+    width: 15em;
+}
+
+ul.bug_changes li label {
+     display: block;
+}
+
+div.bz_section_title {
+    display: block;
+    margin-top: 2em;
+    font-size: 1.2em;
+}
+
+div.bz_section_title a {
+    font-weight: bold;
+}
+
+div.bz_section_title span {
+    font-size: 0.75em;
+    margin-left: 1em;
+}
+
+#queryform, #reportform {
+    margin-bottom: 2em;
+}
+
+#knob {
+    margin-top: 2em;
+}
+
+.arrow {
+    display: inline;
+    width: 16px;
+    height: 16px;
+}
+
+.bz_search_section, ul.bz_search_section {
+    margin-top: 1em;
+}
+
+/* query.cgi (end) */
+
+/* describecomponents.cgi (start) */
+
+#product_desc {
+    padding: 0 2em;
+    font-style: italic;
+    max-height: 8em;
+    overflow: auto;
+}
+
+#component_table th {
+    padding-right: 1em;
+    text-align: left;
+}
+
+#component_table td {
+    border-bottom: 1px dotted gray;
+}
+
+#component_table td.component_assignee,
+#component_table td.component_qa_contact {
+    border: none;
+    padding-top: 0.5em;
+}
+
+.component_name {
+    font-size: 115%;
+    font-weight: bold;
+    padding-right: 1em;
+    vertical-align: middle;
+    min-width: 8em;
+}
+
+.component_description {
+    padding-bottom: 0.5em;
+    color: #333;
+}
+
+/* describecomponents.cgi (end) */
+
+/* Series &amp; reports (start) */
+
+.t1 {
+    background-color: #ffffff; /* white */
+}
+
+.t2 {
+    background-color: #dfefff;  /* light blue */
+}
+
+.t3 {
+    background-color: #dddddd;  /* grey */
+}
+
+.t4 {
+    background-color: #c3d3ed; /* darker blue */
+}
+
+.ttotal, .ttotal td {
+    background-color: #cfffdf; /* light green */
+}
+
+.tabular_report_container {
+  /* Force tables to be horizontally centered */
+    margin-left: auto;
+    margin-right: auto;
+    text-align: center;
+}
+
+.tabular_report {
+    border: 1px dotted black;
+    border-collapse: collapse;
+    text-align: center;
+}
+
+.tabular_report th, .tabular_report td {
+    border: 1px dotted;
+    padding: 0.2em;
+}
+
+#graphical_report {
+    max-width: 100%;
+    height: auto;
+}
+
+.extra_info {
+    font-size: smaller;
+    font-style: italic;
+}
+
+#edit_series th, #create_chart th, #edit_charts th {
+    text-align: center;
+}
+
+#edit_series th, #edit_series td,
+#create_chart th, #create_chart td {
+    vertical-align: top;
+    padding: 0.5em;
+}
+
+#edit_series select, #create_chart select {
+    width: 15em;
+}
+
+#edit_series input {
+    width: 95%;
+}
+
+#edit_series input#frequency {
+    width: 3em;
+}
+
+#edit_charts input#action-sum, #edit_charts input#action-remove {
+    width: 7em;
+}
+
+#tabular_reports_menu, #graphical_reports_menu {
+    width: 30em;
+    margin: 2em auto;
+}
+
+#tabular_reports_menu th, #graphical_reports_menu th {
+    vertical-align: middle;
+    white-space: nowrap;
+    padding: 0.3em;
+}
+
+#tabular_reports_menu th {
+    text-align: center;
+}
+
+#graphical_reports_menu th {
+    text-align: left;
+}
+
+#graphical_reports_menu label {
+    font-weight: normal;
+}
+
+th#reports_menu_multiple_tables {
+    text-align: center;
+    width: 15em;
+    height: 15em;
+    border: 1px solid black;
+    border-collapse: collapse;
+}
+
+/* Series &amp; reports (end) */
+
+/* Show multiple bugs (start) */
+
+.bugfields {
+    font-size: small;
+    background: #eee;
+    padding: 0.3em;
+    border: 1px solid silver;
+    width: 100%;
+}
+
+.bugfields tr {
+    vertical-align: top;
+}
+
+.bugfields th {
+    max-width: 10em;
+    text-align: left;
+}
+
+.bugfields a {
+    color: black;
+    text-decoration: none;
+}
+
+.bugfields .rightcell {
+    padding-left: 1em;
+}
+
+.bugfields table.timetracking th, .bugfields table.timetracking td {
+    max-width: 10em;
+}
+
+/* Show multiple bugs (end) */
+
+/* summarize_time.cgi (start) */
+
+table.zeroitems, table.realitems {
+    margin-left: 2.0em;
+    margin-top: 2px;
+    border: 1px solid black;
+    border: 1px solid black;
+}
+
+tr.section_total {
+    background: #000000;
+    color: #ffffff;
+}
+
+td.subtotal {
+    background: #B0C0D9;
+    text-align: right;
+    font-weight: bold;
+    width: 8em;
+}
+
+.zeroitems .bug_header { background: #d0e0f0 }
+.zeroitems .bug_header2 { background: #f9f9f9 }
+
+/* the fixed headers -- .number uses bug_header so hack it here */
+.number .bug_header, .number .bug_header2 { background: #d0e0f0 }
+.owner_header { background: #d0e0f0 }
+
+
+/* the details headers */
+.number .owner_header, .owner .bug_header { background: #ffffff }
+.number .owner_header2, .owner .bug_header2 { background: #EFEFEF }
+
+table.owner, table.number, table.zeroitems {
+  width: 90%;
+  border-collapse: collapse;
+}
+
+.owner th, .owner td, .number th, .number td,
+.zeroitems th, .zeroitems td {
+    padding: 0.2em;
+}
+
+.warning_swapped_data {
+    border: 1px solid red;
+    margin: 1em;
+    padding: 0.5em;
+}
+
+.realitems th.bug_id, .realitems th.bug_status,
+.zeroitems th.bug_id, .zeroitems th.bug_status {
+    white-space: nowrap;
+    text-align: left;
+    padding-right: 2em;
+    width: 6em;
+}
+
+.time_info {
+    padding-right: 3em;
+}
+
+/* summarize_time.cgi (end) */
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandarddependencytreecss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/dependency-tree.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/dependency-tree.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/dependency-tree.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,94 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Netscape
-  * Communications
-  * Corporation. Portions created by Netscape are
-  * Copyright (C) 1998 Netscape Communications Corporation. All
-  * Rights Reserved.
-  *
-  * Contributor(s): Christian Reis &lt;kiko@async.com.br&gt;
-  *                 Andr\xE9 Batosti &lt;batosti@async.com.br&gt;
-  */
-
-ul.tree {
-    padding-left: 0em;
-    margin-left: 1em;
-    display: block;
-}
-
-ul.tree ul {
-    padding-top: 3px;
-    display: block;
-}
-
-ul.tree li { 
-    /* see http://www.kryogenix.org/code/browser/aqlists/ for idea */
-    padding-top: 3px; 
-    text-indent: -1.2em; 
-    padding-left: 0.5em; 
-    padding-bottom: 3px;
-    list-style-type: none;
-    background: url(&quot;dependency-tree/bug-item.png&quot;) no-repeat;
-}
-
-ul.tree li a.b {
-    padding-left: 30px; 
-    margin-right: -14px; 
-    text-decoration: none;
-}
-
-ul.tree li a.b_open {
-    background: url(&quot;dependency-tree/tree-open.png&quot;) center no-repeat;
-    cursor: pointer;
-}
-
-ul.tree li a.b_closed {
-    background: url(&quot;dependency-tree/tree-closed.png&quot;) center no-repeat;
-    cursor: pointer;
-}
-
-ul.tree a.tree_link img {
-    border: 0;
-}
-
-.summ_info {
-    /* change to inline if you would like to see the full bug details
-     * displayed in the list */
-    display: none; 
-    font-size: 75%;
-}
-
-.hint {
-    font-size: 90%;
-    margin: 0.2em;
-    padding: 0.1em;
-}
-
-.hint h3, .hint ul {
-    margin-top: 0.1em;
-    margin-bottom: 0.1em;
-}
-
-.summ A, .summ_deep A {
-    text-decoration: none;
-    color: darkblue;
-}
-
-.summ_deep {
-}
-
-.summ_h A {
-    background-color: #ffffaa;
-    color: #333;
-    font-weight: bold;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardduplicatescss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/duplicates.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/duplicates.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/duplicates.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,49 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the &quot;License&quot;); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- * 
- * Software distributed under the License is distributed on an &quot;AS
- * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- * 
- * The Original Code is the Bugzilla Bug Tracking System.
- * 
- * The Initial Developer of the Original Code is Everything Solved, Inc.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.
- * 
- * Contributor(s):
- *   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
- */
-
-#duplicates_table {
-  border-collapse: collapse;
-}
-
-#duplicates_table .resolved {
-  background-color: #d9d9d9; 
-  color: black;
-}
-
-#duplicates_table thead tr {
-  background-color: #ccc;
-  color: black;
-}
-
-#duplicates_table thead tr th {
-  vertical-align: middle;
-}
-
-#duplicates_table td, #duplicates_table th {
-  border: 1px solid black;
-  padding: .1em .25em;
-}
-
-#duplicates_table tbody td {
-  text-align: center;
-}
-#duplicates_table tbody td.short_desc {
-  text-align: left;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardedituserscss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/editusers.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/editusers.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/editusers.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,71 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-  */
-
-table.main {
-    border-spacing: 1em;
-}
-table.main tr {
-    vertical-align: top;
-    border-top: solid thin black;
-}
-table.main th {
-    text-align: right;
-    white-space: nowrap;
-}
-table.main th,
-table.main td {
-    padding: 0;
-}
-table.main ul {
-    list-style-type: none;
-    padding-left: 0
-}
-
-table.groups {
-    border-spacing: 1px;
-}
-table.groups tr.indirect {
-    background-color: #cccccc;
-}
-table.groups th {
-    text-align: left;
-    padding: 0 0 0 1ex;
-}
-table.groups td {
-    padding: 2px;
-}
-table.groups td.checkbox {
-    text-align: center;
-    white-space: nowrap;
-}
-
-table#user_responsibilities th {
-    text-align: center;
-    padding: 0 1em 1em;
-}
-
-table#user_responsibilities th.product {
-    text-align: left;
-    padding: 1em 0 0;
-}
-
-table#user_responsibilities td.center {
-    text-align: center;
-}
-
-.missing {
-    color: red;
-    border-color: inherit;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardenter_bugcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/enter_bug.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/enter_bug.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/enter_bug.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,72 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Netscape Communications
-  * Corporation. Portions created by Netscape are Copyright (C) 1998
-  * Netscape Communications Corporation. All Rights Reserved.
-  *
-  * Contributor(s): Byron Jones &lt;bugzilla@glob.com.au&gt;
-  *                 Christian Reis &lt;kiko@async.com.br&gt;
-  *                 Vitaly Harisov &lt;vitaly@rathedg.com&gt;
-  *                 Svetlana Harisova &lt;light@rathedg.com&gt;
-  *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  *                 Pascal Held &lt;paheld@gmail.com&gt;
-  *                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  */
-
-/* These are specified using the class instead of the id so that they
-   don't override the YUI CSS. */
-.enter_bug_form table {
-    border-spacing: 0;
-    border-width: 0;
-}
-.enter_bug_form td, .enter_bug_form th { padding: .25em; }
-.enter_bug_form th { text-align: right; }
-
-/* This makes the &quot;component&quot; column as small as possible (since it
- * contains only fixed-width content) and the Reporter column
- * as large as possible, which makes the form not jump around
- * when the Component Description changes size. This works
- * pretty well on all browsers except IE 8.
- */
-#Create #field_container_component { width: 1px; }
-#Create #field_container_reporter  { width: 100%; }
-
-#Create .comment {
-    vertical-align: top;
-    overflow: auto;
-    color: green;
-}
-#Create #comp_desc_container td { padding: 0; }
-#Create #comp_desc { height: 11ex; }
-#Create #os_guess_note {
-    padding-top: 0;
-}
-#Create #os_guess_note div {
-    max-width: 35em;
-}
-
-/* Text inputs need to be a little shorter on enter_bug
- * than the 100% that they are on show_bug.
- */
-#Create .field_value .text_input { max-width: 50em; }
-
-/* The Possible Duplicates table on enter_bug. */
-#possible_duplicates th {
-    text-align: center; 
-    background: none;
-    border-collapse: collapse;
-}
-/* Make the Add Me to CC button never wrap. */
-#possible_duplicates .yui-dt-col-update_token { white-space: nowrap; }
-
-form#Create #possible_duplicates td { vertical-align: middle; }
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardglobalcss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/skins/standard/global.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/global.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/global.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,10 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Netscape Communications
-  * Corporation. Portions created by Netscape are
-  * Copyright (C) 1998 Netscape Communications Corporation. All
-  * Rights Reserved.
-  *
-  * Contributor(s): Byron Jones &lt;bugzilla@glob.com.au&gt;
-  *                 Christian Reis &lt;kiko@async.com.br&gt;
-  *                 Vitaly Harisov &lt;vitaly@rathedg.com&gt;
-  *                 Svetlana Harisova &lt;light@rathedg.com&gt;
-  *                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  *                 Pascal Held &lt;paheld@gmail.com&gt;
-  */
</del><ins>+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+ * defined by the Mozilla Public License, v. 2.0.
+ */
</ins><span class="cx"> 
</span><span class="cx"> /* global (begin) */
</span><span class="cx">     body {
</span><span class="lines">@@ -29,7 +12,7 @@
</span><span class="cx">         color: #000;
</span><span class="cx">         background: #fff url(&quot;global/body-back.gif&quot;) repeat-x;
</span><span class="cx">     }
</span><del>-    body, td, th, input {
</del><ins>+    body, td, th, input, dt, #titles {
</ins><span class="cx">         font-family: Verdana, sans-serif;
</span><span class="cx">         font-size: small;
</span><span class="cx">     }
</span><span class="lines">@@ -37,6 +20,16 @@
</span><span class="cx">     pre, code, kbd {
</span><span class="cx">         font-size: medium;
</span><span class="cx">     }
</span><ins>+
+    #bugzilla-body {
+        clear: both;
+    }
+
+    #bugzilla-body th {
+        font-weight: bold;
+        vertical-align: top;
+    }
+
</ins><span class="cx"> /* global (end) */
</span><span class="cx"> 
</span><span class="cx"> /* header (begin) */
</span><span class="lines">@@ -62,7 +55,9 @@
</span><span class="cx"> 
</span><span class="cx">     #lang_links_container {
</span><span class="cx">         float: right;
</span><ins>+        white-space: nowrap;
</ins><span class="cx">     }
</span><ins>+
</ins><span class="cx">     #lang_links_container .links {
</span><span class="cx">         border: none;
</span><span class="cx">         padding: .5em;
</span><span class="lines">@@ -88,9 +83,6 @@
</span><span class="cx">     form.mini_login input.bz_remember {
</span><span class="cx">         margin: 0;
</span><span class="cx">     }
</span><del>-    .bz_mini_login_help {
-        color: #777;
-    }
</del><span class="cx"> 
</span><span class="cx"> /* header (end)   */
</span><span class="cx"> 
</span><span class="lines">@@ -107,10 +99,9 @@
</span><span class="cx">         color: #fff;
</span><span class="cx">         border-top-left-radius: 5px;
</span><span class="cx">         border-top-right-radius: 5px;
</span><del>-        font-size: 110%;
</del><span class="cx">         margin: 0;
</span><del>-        padding: 0.5em;
</del><span class="cx">         vertical-align: bottom;
</span><ins>+        display: table;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     #titles a {
</span><span class="lines">@@ -124,20 +115,25 @@
</span><span class="cx"> 
</span><span class="cx">     #titles #title {
</span><span class="cx">         font-weight: bold;
</span><ins>+        padding: 0.5em;
</ins><span class="cx">         white-space: nowrap;
</span><ins>+        display: table-cell;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     #titles #subtitle {
</span><span class="cx">         font-weight: normal;
</span><del>-        width: 100%;
</del><span class="cx">         text-align: center;
</span><del>-    }
</del><ins>+        padding: 0.5em;
+        display: table-cell;
+   }
</ins><span class="cx"> 
</span><span class="cx">     #titles #information {
</span><span class="cx">         font-weight: normal;
</span><span class="cx">         text-align: right;
</span><span class="cx">         font-size: 90%;
</span><ins>+        padding: 0.5em;
</ins><span class="cx">         white-space: nowrap;
</span><ins>+        display: table-cell;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> /* titles (end) */
</span><span class="lines">@@ -194,6 +190,14 @@
</span><span class="cx"> /* link lists (end) */
</span><span class="cx"> 
</span><span class="cx"> /* tabs (begin) */
</span><ins>+    table.tabs {
+        width: 100%;
+    }
+
+    .tabs th, .tabs td {
+        padding: 1em;
+    }
+
</ins><span class="cx">     .tabs td {
</span><span class="cx">         background: #eee;
</span><span class="cx">         text-align: center;
</span><span class="lines">@@ -201,7 +205,7 @@
</span><span class="cx">         border-color: black;
</span><span class="cx">         border-width: 0px 0px 2px 0px;
</span><span class="cx">     }
</span><del>-        
</del><ins>+
</ins><span class="cx">     .tabs td.selected {
</span><span class="cx">         background: white;
</span><span class="cx">         border-width: 2px 2px 0px 2px;
</span><span class="lines">@@ -254,6 +258,12 @@
</span><span class="cx">     margin: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.rss {
+    background: transparent url(../../images/rss_small.png) no-repeat;
+    padding-left: 16px;
+    line-height: 1.5em;
+}
+
</ins><span class="cx"> /**************************/
</span><span class="cx"> /* Bug links and statuses */
</span><span class="cx"> /**************************/
</span><span class="lines">@@ -262,7 +272,7 @@
</span><span class="cx">     /* Catch-all if you want common styles for all bug links */
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.bz_bug_link .bz_status_UNCONFIRMED {
</del><ins>+.bz_bug_link.bz_status_UNCONFIRMED {
</ins><span class="cx">     font-style: italic;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -306,6 +316,14 @@
</span><span class="cx">      width: 50em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.bz_comment_text span.quote {
+    color: #65379c;
+    /* Make quoted text not wrap. */
+    white-space: pre;
+    overflow: auto;
+    display: block;
+}
+
</ins><span class="cx"> .bz_comment_user, .bz_comment_time, .bz_comment_number, 
</span><span class="cx"> .bz_private_checkbox, .bz_comment_actions
</span><span class="cx"> {
</span><span class="lines">@@ -350,6 +368,11 @@
</span><span class="cx">     padding: 1em 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.bz_comment_collapse_reason,
+.bz_default_collapsed .bz_comment_number {
+    font-weight: normal;
+}
+
</ins><span class="cx"> /** End Comments **/
</span><span class="cx"> 
</span><span class="cx"> .bz_default_hidden, .bz_tui_hidden, .bz_hidden_field, .bz_hidden_option {
</span><span class="lines">@@ -359,12 +382,6 @@
</span><span class="cx">     display: none !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.bz_comment_text span.quote {
-    color: #65379c;
-    /* Make quoted text not wrap. */
-    white-space: pre;
-}
-
</del><span class="cx"> table#flags th,
</span><span class="cx"> table#flags td {
</span><span class="cx">     vertical-align: middle;
</span><span class="lines">@@ -371,6 +388,65 @@
</span><span class="cx">     text-align: left;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#email_prefs, #saved_search_prefs, #shared_search_prefs,
+#bug_activity {
+    border: 1px solid black;
+    border-collapse: collapse;
+}
+
+#email_prefs th,
+#shared_search_prefs th,
+#saved_search_prefs th {
+    text-align: center;
+}
+
+#email_prefs th, #email_prefs td,
+#shared_search_prefs th, #shared_search_prefs td,
+#saved_search_prefs th, #saved_search_prefs td,
+#bug_activity td {
+    border: 1px solid;
+    padding: 0.3em;
+}
+
+#email_prefs th.role_header {
+    width: 10%;
+}
+
+#bug_activity td {
+    vertical-align: top;
+}
+
+#user_prefs th, #user_prefs td {
+    padding: 0.5em;
+}
+
+#permissions {
+    margin-left: auto;
+    margin-right: auto;
+    width: 40em;
+}
+
+#permissions p {
+    margin-top: 2em;
+    margin-bottom: 0.5em;
+}
+
+#permissions li {
+    list-style-type: none;
+}
+
+#permissions table td {
+    vertical-align: top;
+}
+
+.column_header {
+    background-color: #66f;
+}
+
+.column_header th {
+    text-align: center;
+}
+
</ins><span class="cx"> .flag_select {
</span><span class="cx">     min-width: 3em;
</span><span class="cx"> }
</span><span class="lines">@@ -383,18 +459,31 @@
</span><span class="cx">     font-size: x-large;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#post_err_msg, form#check {
+    clear: both;
+}
+
</ins><span class="cx"> .warning {
</span><span class="cx">   color: red;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .throw_error {
</span><del>-    background-color: #ff0000;
</del><ins>+    background-color: red;
</ins><span class="cx">     color: black;
</span><span class="cx">     font-size: 120%;
</span><del>-    margin: 1em;
</del><ins>+    margin-bottom: 2em;
</ins><span class="cx">     padding: 0.5em 1em;
</span><ins>+    float: left;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.label {
+    font-weight: bold;
+}
+
+.throw_error a:visited {
+    color: darkblue ;
+}
+
</ins><span class="cx"> dt {
</span><span class="cx">     font-weight: bold;
</span><span class="cx"> }
</span><span class="lines">@@ -405,10 +494,6 @@
</span><span class="cx">     border-top: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#admin_table th {
-    white-space: normal !important;
-}
-
</del><span class="cx"> /* Arrow buttons are buttons with only &amp;uarr;, &amp;darr;, &amp;larr; or &amp;rarr; on
</span><span class="cx">  * them. We want these to look a little less spidery. */
</span><span class="cx"> .arrow_button {
</span><span class="lines">@@ -421,7 +506,8 @@
</span><span class="cx">     border: 1px solid #333333;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#attachment_table th, .bz_attach_footer, .bz_time_tracking_table th {
</del><ins>+#attachment_table th, .bz_attach_footer, .bz_time_tracking_table th,
+.dependency_tree_controls {
</ins><span class="cx">     background-color: #E0E0E0;
</span><span class="cx">     color: black;
</span><span class="cx"> }
</span><span class="lines">@@ -430,11 +516,15 @@
</span><span class="cx">     border: 1px solid #333333;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.bz_attach_extra_info {
</del><ins>+#attachment_table th, #attachment_table td {
+    padding: 0.3em;
+}
+
+.bz_attach_extra_info, .bz_info {
</ins><span class="cx">     font-size: smaller;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.bz_attach_flags, .bz_attach_footer {
</del><ins>+.bz_attach_flags, .bz_attach_footer, .bz_flags, .nowrap {
</ins><span class="cx">     white-space: nowrap;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -443,10 +533,24 @@
</span><span class="cx">     padding-left: 1em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#user_match_table {
+    border-collapse: collapse;
+}
+
+#user_match_table td {
+    vertical-align: top;
+    border-bottom: 1px solid black;
+    padding: 1em 0.5em;
+}
+
</ins><span class="cx"> div.user_match {
</span><span class="cx">     margin-bottom: 1em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.indented {
+    margin-left: 3em;
+}
+
</ins><span class="cx"> .box {
</span><span class="cx">     border: 1px solid black;
</span><span class="cx">     color: black;
</span><span class="lines">@@ -455,10 +559,24 @@
</span><span class="cx">     padding: 0.5em 1em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.collapsed {
</del><ins>+.collapsed,
+.bz_default_collapsed .bz_private_checkbox,
+.bz_default_collapsed .bz_comment_user,
+.bz_default_collapsed .bz_comment_user_images,
+.bz_default_collapsed .bz_comment_time,
+.bz_default_collapsed .bz_comment_tags,
+.bz_default_collapsed .bz_comment_text,
+.bz_default_collapsed .bz_collapsed_actions
+{
</ins><span class="cx">     display: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#serverpush_msg {
+    margin-top: 20%;
+    text-align: center;
+    font-size: xx-large;
+}
+
</ins><span class="cx"> /* Rules specific for printing */
</span><span class="cx"> @media print {
</span><span class="cx">     #header, #footer {
</span><span class="lines">@@ -487,16 +605,21 @@
</span><span class="cx"> .field_help_link {
</span><span class="cx">     cursor: help;
</span><span class="cx"> }
</span><del>-.field_value, form#Create th, form#Create td {
</del><ins>+.field_value, form#Create th, form#Create td, .top {
</ins><span class="cx">     vertical-align: top;
</span><span class="cx"> }
</span><ins>+
+.bottom {
+    vertical-align: bottom;
+}
+
</ins><span class="cx"> .field_value .text_input {
</span><del>-  width: 100%;
-  min-width: 25em;
</del><ins>+    width: 100%;
+    min-width: 25em;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .uneditable_textarea {
</span><del>-    width: 30em;
</del><ins>+    max-width: 30em;
</ins><span class="cx">     font-size: medium;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -520,20 +643,32 @@
</span><span class="cx"> .calendar_button span { display: none }
</span><span class="cx"> /* These classes are set by YUI. */
</span><span class="cx"> .yui-calcontainer {
</span><del>-    display: none; 
-    background-color: white; 
</del><ins>+    display: none;
+    background-color: white;
</ins><span class="cx">     padding: 10px;
</span><span class="cx">     border: 1px solid #404D6C;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .bug_urls {
</span><del>-    margin: 0 0 1em 0;
</del><ins>+    margin: 0;
</ins><span class="cx">     padding: 0;
</span><span class="cx">     list-style-type: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+pre.field_textarea_readonly {
+    margin: 2px;
+    padding: 4px;
+    overflow: auto;
+    float: left;
+    max-width: 30em;
+    max-height: 7em;
+    border: 1px solid #CCC;
+    font-family: monospace;
+    white-space: pre-wrap;
+}
+
</ins><span class="cx"> /* custom styles for inline instances of autocomplete input fields */
</span><del>-.yui-skin-sam .yui-ac-input { position:static !important; 
</del><ins>+.yui-skin-sam .yui-ac-input { position:static !important;
</ins><span class="cx">                               vertical-align:middle !important; }
</span><span class="cx"> .yui-skin-sam .yui-ac-container { left:0px !important; }
</span><span class="cx"> .yui-skin-sam .yui-ac { display: inline-block; }
</span><span class="lines">@@ -543,15 +678,52 @@
</span><span class="cx">     overflow-x: hidden;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#keyword_container {
</del><ins>+#keywords_container {
</ins><span class="cx">     padding-top: .2em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-#keyword_container .yui-ac-content {
</del><ins>+#keywords_container .yui-ac-content {
</ins><span class="cx">     margin-left: -1px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#comment_tabs {
+    border-spacing: 0;
+}
+
+.comment_tab {
+    display: table-cell;
+    border: 1px solid silver;
+    padding: 2px 1em;
+    cursor: pointer;
+    background: transparent;
+}
+
+.active_comment_tab {
+    background: #fff;
+    font-weight: bold;
+}
+
+#comment_preview {
+    border: 1px solid silver;
+    padding: 1px;
+    overflow: auto;
+    margin: 0px;
+}
+
+#comment_preview_text {
+    margin: 0px;
+    width: auto;
+}
+
+#comment_preview_loading {
+    font-style: italic;
+}
+
+#comment {
+    margin: 0px 0px 1em 0px;
+}
+
</ins><span class="cx"> /*******************/
</span><span class="cx"> /* Form Validation */
</span><span class="cx"> /*******************/
</span><span class="lines">@@ -566,3 +738,277 @@
</span><span class="cx">     border: 2px solid #B70000;
</span><span class="cx">     background-color: #FFEBEB;
</span><span class="cx"> }
</span><ins>+
+form th {
+    text-align: right;
+}
+
+.left {
+    text-align: left;
+}
+
+.center {
+    text-align: center;
+}
+
+.right {
+    text-align: right;
+}
+
+.middle {
+    vertical-align: middle;
+}
+
+.inline {
+    display: inline;
+}
+
+tr.shared_search {
+    background-color: #fff7cd;
+    color: #000;
+}
+
+.multi-columns {
+    columns: 3;
+    -moz-columns: 3;
+    -webkit-columns: 3;
+}
+
+/* index.cgi (begin) */
+
+#page-index {
+    padding: 0.2em 0.2em 0.15em 0.2em;
+    max-width: 1000px;
+}
+
+/* By default these contain nothing, but these CSS rules make things
+   easier on customizers. */
+.intro, .outro {
+    text-align: center;
+}
+
+#new_release {
+    border: 2px solid red;
+    padding: 0.5em 1em;
+    margin: 1em;
+    font-weight: bold;
+}
+
+#new_release .notice {
+    font-size: 80%;
+    font-weight: normal;
+}
+
+#welcome-admin a {
+    font-weight: bold;
+}
+
+.bz_common_actions {
+    text-align: center;
+}
+
+.bz_common_actions ul {
+    list-style-type: none;
+    padding: 0;
+}
+
+.bz_common_actions ul li {
+    display: inline;
+    vertical-align: top;
+}
+
+.bz_common_actions ul li a {
+    display: inline-block;
+    height: 170px;
+    width: 145px;
+    margin: 0 2ex 2em 0;
+}
+
+.bz_common_actions ul li a span {
+    position: relative;
+    top: 90%;
+    font-weight: bold;
+}
+
+.bz_common_actions a,
+.bz_common_actions a:visited,
+.bz_common_actions a:hover {
+    text-decoration: none;
+}
+
+#enter_bug { background: url(index/file-a-bug.png)  no-repeat; }
+#query     { background: url(index/search.png)      no-repeat; }
+#account   { background: url(index/new-account.png) no-repeat; }
+#help      { background: url(index/help.png)        no-repeat; }
+
+#quicksearchForm {
+    clear: both;
+    text-align: center;
+    margin-bottom: 2em;
+}
+
+#quicksearchForm #quicksearch_main {
+    width: 27em;
+}
+
+#quicksearchForm {
+    margin: 0;
+    padding: 0;
+}
+
+#page-index table {
+    border-collapse: collapse;
+    margin: auto;
+}
+
+#welcome {
+    font-size: x-large;
+    font-weight: bold;
+    text-align: center;
+    margin: 0 0 0.8em 0;
+    padding: 0;
+}
+
+#common_queries ul {
+    list-style: none;
+    padding-left: 1.5em;
+}
+
+#common_queries li a {
+    text-decoration: none;
+}
+
+ul#quicksearch_links {
+    margin-bottom: 1em;
+}
+
+ul.additional_links {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+ul.additional_links li {
+    display: inline;
+}
+
+ul.additional_links li.bz_default_hidden {
+    display: none;
+}
+
+/* index.cgi (end) */
+
+/* page.cgi (begin) */
+
+body.narrow_page #bugzilla-body &gt; * {
+    /* People have an easier time reading narrower columns of text. */
+    max-width: 45em;
+}
+
+/*****************/
+/* Release Notes */
+/*****************/
+
+.req_new {
+    color: red;
+}
+
+.req_table {
+    border-collapse: collapse;
+}
+
+.req_table td, .req_table th {
+    border: 1px solid black;
+    padding: .25em;
+}
+
+/********************/
+/* QuickSearch Help */
+/********************/
+
+.qs_help li {
+   margin-top: 1ex;
+}
+
+.qs_fields th {
+    padding: 0 .25em;
+}
+.qs_fields th.field_nickname {
+    text-align: left;
+}
+.qs_fields td {
+    padding: .25em;
+    border-top: 1px solid gray;
+}
+.qs_fields .field_name {
+    width: 10em;
+}
+
+/***************/
+/* fields.html */
+/***************/
+
+table.field_value_explanation {
+    table-layout: fixed;
+    border-collapse: collapse;
+}
+
+.field_value_explanation thead h2 {
+    margin: 0;
+}
+
+.field_value_explanation .header_row td {
+    text-align: center;
+    font-size: 120%;
+    font-weight: bold;
+}
+
+.field_value_explanation tbody td {
+    border: 1px solid black;
+    padding: 1em;
+}
+
+.field_value_explanation dt, .field_descriptions dt {
+    margin-top: 1em;
+}
+
+.field_descriptions dt {
+    font-size: 120%;
+}
+
+/* page.cgi (end) */
+
+/* duplicates.cgi (start) */
+
+#duplicates_table {
+    border-collapse: collapse;
+}
+
+#duplicates_table .resolved {
+    background-color: #d9d9d9;
+    color: black;
+}
+
+#duplicates_table thead tr {
+    background-color: #ccc;
+    color: black;
+}
+
+#duplicates_table thead tr th {
+    vertical-align: middle;
+}
+
+#duplicates_table td, #duplicates_table th {
+    border: 1px solid black;
+    padding: .1em .25em;
+}
+
+#duplicates_table tbody td {
+    text-align: center;
+}
+
+#duplicates_table tbody td.short_desc {
+    text-align: left;
+}
+
+/* duplicates.cgi (end) */
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardindexcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/index.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/index.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/index.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,143 +0,0 @@
</span><del>- /* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Vitaly Harisov &lt;vitaly@rathedg.com&gt;
-  *                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt; 
-  */
-
-/* index page (begin) */
-
-    #page-index
-    {
-        padding: 0.2em 0.2em 0.15em 0.2em;
-        max-width: 1000px;
-    }
-
-    /* By default these contain nothing, but these CSS rules make things
-       easier on customizers. */
-    .intro, .outro {
-        text-align: center;
-    }
-
-    /* Hide from NN4 */
-
-    #new_release
-    {
-        border: 2px solid red;
-        padding: 0.5em 1em;
-        margin: 1em;
-        font-weight: bold;
-    }
-
-    #new_release .notice
-    {
-        font-size: 80%;
-        font-weight: normal;
-    }
-
-    #welcome-admin a
-    {
-        font-weight: bold;
-    }
-
-    .bz_common_actions {
-        text-align: center;
-    }
-    .bz_common_actions ul {
-        list-style-type: none;
-        padding: 0;
-    }
-    .bz_common_actions ul li {
-        display: inline;
-        vertical-align: top;
-    }
-    .bz_common_actions ul li a {
-        display: inline-block;
-        height: 170px;
-        width: 145px;
-        margin: 0 2ex 2em 0;
-    }
-    .bz_common_actions ul li a span {
-        position: relative;
-        top: 90%;
-        font-weight: bold;
-    }
-    .bz_common_actions a,
-    .bz_common_actions a:visited,
-    .bz_common_actions a:hover {
-        text-decoration: none;
-    }
-    #enter_bug { background: url(index/file-a-bug.png)     no-repeat; }
-    #query     { background: url(index/search.png)  no-repeat; }
-    #account   { 
-      background: url(index/new-account.png) no-repeat; 
-      margin-right: 0;
-    }
-    
-    #quicksearchForm
-    {
-        clear: both;
-        text-align: center;
-        margin-bottom: 2em;
-    }
-    
-    #quicksearchForm #quicksearch_main
-    {
-        width: 27em;
-    }
-    
-    #quicksearchForm
-    {
-        margin: 0;
-        padding: 0;
-    }
-    
-    #page-index table{
-        border-collapse: collapse;
-        margin: auto;
-    }
-    
-    #welcome
-    {
-        font-size: x-large;
-        font-weight: bold;
-        text-align: center;
-        margin: 0 0 0.8em 0;
-        padding: 0;
-    }
-    
-    ul.additional_links 
-    {
-        list-style: none;
-        margin: 0;
-        padding: 0;
-    }
-    
-    ul#quicksearch_links{
-        margin-bottom: 1em;
-    }
-    
-    ul.additional_links li
-    {
-        display: inline;
-    }
-    
-    ul.additional_links li.bz_default_hidden
-    {
-        display: none;
-    }
-    
-    input.quicksearch_help_text
-    {
-        color: #ccc;
-    }
-/* index page (end) */
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardpagecss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/page.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/page.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/page.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,103 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Initial Developer of the Original Code is Everything Solved.
-  * Portions created by Everything Solved are Copyright (C) 2006
-  * Everything Solved. All Rights Reserved.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  */
-
-/* This CSS is used by various informational pages in the
-   template/en/default/pages/ directory. */
-
-#bugzilla-body {
-    padding: 0 1em;
-}
-
-#bugzilla-body &gt; * {
-    /* People have an easier time reading narrower columns of text. */
-    max-width: 45em;
-}
-
-/*****************/
-/* Release Notes */
-/*****************/
-
-.req_new {
-    color: red;
-}
-
-.req_table {
-    border-collapse: collapse;
-}
-
-.req_table td, .req_table th {
-    border: 1px solid black;
-    padding: .25em;
-}
-
-/********************/
-/* QuickSearch Help */
-/********************/
-
-.qs_help li {
-   margin-top: 1ex;
-}
-
-.qs_fields th {
-    padding: 0 .25em;
-}
-.qs_fields th.field_nickname {
-    text-align: left;
-}
-.qs_fields td {
-    padding: .25em;
-    border-top: 1px solid gray;
-}
-.qs_fields .field_name {
-    width: 10em;
-}
-
-/***************/
-/* fields.html */
-/***************/
-
-table.field_value_explanation {
-  table-layout: fixed;
-  border-collapse: collapse;
-}
-
-.field_value_explanation thead h2 {
-  margin: 0;
-}
-
-.field_value_explanation .header_row td {
-  text-align: center;
-  font-size: 120%;
-  font-weight: bold;
-}
-
-.field_value_explanation tbody td {
-  border: 1px solid black;
-  padding: 1em;
-}
-
-.field_value_explanation dt,
-.field_descriptions dt
-{
-  margin-top: 1em;
-}
-
-.field_descriptions dt {
-  font-size: 120%;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardparamscss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/params.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/params.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/params.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,61 +0,0 @@
</span><del>-#menu {
-  width: 10em;
-  margin-top: 1em;
-  margin-right: 0.5em;
-  border: solid thin;
-  border-spacing: 0px;
-  border-collapse: collapse;
-  text-align: center;
-  color: black;
-  background-color: #edf2f2;
-  font-weight: normal;
-}
-
-#menu a:link, #menu a:visited {
-  color: #039;
-  background-color: transparent;
-}
-
-#menu a:hover, #menu a:active {
-  color: red;
-  background-color: transparent;
-}
-
-#menu td {
-  border: solid thin;
-  padding: 0.2em 0.5em;
-}
-
-table td {
-  vertical-align: top;
-}
-
-td.selected_section {
-  color: #090;
-  background-color: white;
-}
-
-td.index {
-  color: black;
-  background-color: #edf;
-}
-
-dt {
-  font-weight: bold;
-}
-
-dd {
-  margin-bottom: 1.5em;
-}
-
-.sortlist_separator {
-    font-weight: bold;
-    font-size: 80%;
-    background-color: #dddddd;
-}
-
-.contribute {
-    border: 1px dotted black;
-    padding: .5em;
-    font-size: small;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardreportscss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/reports.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/reports.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/reports.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,92 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Everything Solved, 
-  * Inc. Portions created by the Initial Developer are Copyright (C)
-  * 2009 the Initial Developer. All Rights Reserved.
-  *
-  * Contributor(s): 
-  *   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  */
-
-/* describecomponents.cgi */
-
-#components_header_table {
-  margin-bottom: 1em;
-}
-
-.product_container {
-  width: 65%;
-}
-
-.product_name {
-  font-weight: bold;
-  font-size: 150%;
-  margin: 0;
-}
-
-.product_desc {
-  /* This is padding instead of margin because it looks better 
-   * with the scrollbar. */
-  padding: 0 2em;
-  font-style: italic;
-  max-height: 5em;
-  overflow: auto;
-}
-
-.instructions {
-  font-weight: bold;
-  font-size: 105%;
-  padding-right: 1em;
-}
-
-.components_header {
-  margin: 0;
-  font-size: 140%;
-  font-weight: bold;
-}
-
-.component_table {
-  margin-top: -1em;
-  margin-left: 2em;
-}
-
-.component_table thead th {
-  padding-right: 1em;
-  vertical-align: bottom;
-  text-align: left;
-}
-
-.component_table td {
-  border-bottom: 1px dotted gray;
-}
-
-.component_table td.component_assignee,
-.component_table td.component_qa_contact
-{
-  border: none;
-  padding-top: .5em;
-}
-
-.component_name {
-  font-size: 115%;
-  font-weight: bold;
-  padding-right: 1em;
-  vertical-align: middle;
-  min-width: 8em;
-}
-
-.component_description {
-  padding-bottom: .5em;
-  color: #333;
-}
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardsearch_formcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/search_form.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/search_form.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/search_form.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,206 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * The Initial Developer of the Original Code is Guy Pyrzak
-  * Portions created by the Initial Developer are Copyright (C) 2010 the
-  * Initial Developer. All Rights Reserved.
-  *
-  * Contributor(s): 
-  *           Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  */
-
-#summary_field {
-  padding: 1em;
-  margin: 1em;
-  border: 1px solid black;
-  background-color: #eee;
-  white-space: nowrap;
-}
-
-#bug_id_container { 
-  display: inline-block;
-  vertical-align: middle;
-  padding-bottom: 1ex;
-}
-
-#bug_id_container input {
-  width: 9em;
-}
-
-.container_date_from, 
-.container_date_to {
-  width: 14em;
-  padding-bottom: 1ex;
-}
-.container_date_from input,
-.container_date_to input {
-  width: 8em;
-}
-
-#bug_id_container input {
-  width: 9em;
-}
-
-#bug_id_type{
-  width: inherit;
-}
-
-.search_field_grid {
-  margin-top: 1em;
-  display: inline-block;
-}
-
-.search_field_grid .field_help_link, 
-.history_query .field_help_link 
-{
-  display: block;
-  text-align: left;
-}
-
-#chart .section_help {
-  font-size: 0.8em; 
-  font-weight: normal
-}
-
-#bug_id_container .field_help {
-  font-size: 0.75em
-}
-
-.search_field_row {
-  white-space: nowrap;
-  margin-bottom: 0.5em;
-}
-
-.search_field_row .container_date_from, .search_field_row .container_date_to {
-  display: inline;
-}
-
-#summary_field.search_field_row {
-  display: block;
-}
-
-#summary_field.search_field_row input, 
-#summary_field.search_field_row select
-{
-  display: inline;
-  padding-bottom: 0;
-  vertical-align: middle;
-}
-
-.search_field_row .field_label, #field_label_short_desc  {
-  width: 14em;
-  display: inline-block;
-  line-height: 2em;
-  margin-right: 0.8em;
-}
-
-#field_label_short_desc {
-  text-align: right;
-}
-
-#summary_field.search_field_row {
-  width: inherit;
-}
-
-#keyword_container {
-  padding-bottom: 0;
-}
-
-.search_field_grid .field_label,
-.search_field_grid .field_label
- {
-  display: block;
-  padding-bottom: 1ex;
-}
-
-.search_field_grid select {
-  width: 17em;
-  height: 15ex;
-}
-
-.search_field_grid, .search_field_row {
-  padding-left: 1.5em;
-}
-
-.search_email_fields {
-  display: inline-block;
-  width: 14.5em;
-  padding-left: 1.5em;
-}
-
-ul.bug_changes {
-  margin: 0;
-  padding: 0;
-}
-
-ul.bug_changes li {
-  display: inline-block;
-  width: 14.5em;
-  vertical-align: top;
-  padding-left: 1.5em;
-}
-
-ul.bug_changes select {
-  width: 15em;
-}
-
-ul.bug_changes li label {
-   display: block;
-}
-
-div.bz_section_title {
-  display: block;
-  margin-top: 2em;
-  font-size: 1.2em;
-}
-
-div.bz_section_title a {
-  font-weight: bold;    
-}
-
-div.bz_section_title span {
-  font-size: 0.75em;
-  margin-left: 1em;    
-}  
-
-#summary_field label {
-  font-weight: bold;
-}
-
-#queryform, #reportform {
-  margin-bottom: 2em;
-}
-
-#knob {
-  margin-top: 2em;
-}
-
-.hide_people_filter #people_filter_section, 
-.hide_history_filter #history_filter_section, 
-.hide_detailed_information #detailed_information_section 
-{
-  display: none;
-}
-
-.arrow {
-  display: inline;
-  width: 16px;
-  height: 16px;
-}
-
-.bz_search_section, ul.bz_search_section {
-  margin-top: 1em;
-}
-
-.bz_simple_search_form th {
-  text-align: right;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardshow_bugcss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/show_bug.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/show_bug.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/show_bug.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,118 +0,0 @@
</span><del>-.bz_alias_short_desc_container {
-    margin: 8px 0; 
-    padding: 0.3em; 
-    background-color: rgb(208, 208, 208); 
-    border-radius: 0.5em;
-    font-size: 125%; 
-    font-weight: bold;
-}
-
-.bz_bug .edit_form {
-  width: 100%;
-}
-.bz_bug .edit_form table {
-  width: 100%;
-}
-.bz_bug #alias {
-    min-width: 0;
-    width: 10em;
-}
-
-.flags_label {
-    text-align: left;
-}
-table#flags {
-    width: auto;
-}
-
-.bz_column_spacer {
-    width: 0.5em;
-}
-
-.related_actions {
-    font-size: 0.85em; 
-    float: right;
-    list-style-type: none;
-    white-space: nowrap;
-    margin: 0;
-    padding: 0;
-}
-
-.related_actions li {
-    display: inline;
-}
-
-.bz_show_bug_column {
-  vertical-align: top;
-}
-
-.bz_section_spacer {
-    height: 1em;
-}
-
-#duplicate_settings {
-    white-space: nowrap;
-}
-
-#bz_big_form_parts td {
-    vertical-align: top;
-}
-
-.bz_group_visibility_section {
-    margin-left: 1em;
-}
-
-.bz_group_visibility_section .instructions {
-    font-style: italic;
-}
-
-#bz_restrict_group_visibility_help .instructions {
-    margin-top: 0;
-}
-
-#bz_enable_role_visibility_help {
-    margin-top: 1em;
-}
-
-.bz_time_tracking_table {
-    border-collapse: collapse;
-}
-
-.bz_time_tracking_table th {
-    text-align: center;
-}
-
-.bz_time_tracking_table td {
-    text-align: center;
-}
-
-.bz_time_tracking_table th, 
-.bz_time_tracking_table td {
-    padding: 4px;
-}
-
-.bz_time_tracking_table .bz_summarize_time {
-    text-align: right;
-}
-.bz_time_tracking_table #deadline {
-    width: 7em;
-}
-
-#summary tr td { 
-    vertical-align:top;
-}
-
-#status { 
-    margin-bottom: 3ex;
-}
-
-.knob-buttons {
-    float: right;
-}
-
-.text_input, .bz_userfield, #keyword_container {
-    width: 100%;
-}
-.bz_bug .bz_alias_short_desc_container {
-    width: inherit;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardshow_multiplecss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/show_multiple.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/show_multiple.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/show_multiple.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,52 +0,0 @@
</span><del>-hr {margin: 20px auto 40px}
-
-.bz_private { color:darkred }
-
-h1 {
-  font-size: 2em;
-  margin-bottom: 10px;
-}
-
-/* bugfields is table of all fields and values */
-.bugfields {
-  font-size: small;
-  background: #eee;
-  padding: 5px;
-  border: 1px solid silver;
-  width: 100%;
-}
-
-.bugfields tr {
-  vertical-align: top;
-}
-
-.bugfields th {
-  width: 10em;
-  text-align: left;
-  font-weight: normal;
-  line-height: 150%;
-}
-
-.bugfields td {
-  font-weight: bold;
-  line-height: 150%;
-}
-
-.bugfields .rightcell {
-  padding-left: 10px;
-}
-
-/* set line-height to normal for nested tables of bugfields table */
-.bugfields table th, .bugfields table td {
-  line-height: 100%;
-  width: auto;
-}
-
-.bugfields table.timetracking th, .bugfields table.timetracking td {
-  width: 10em;
-}
-
-.error {
-  color: red;
-  font-weight: bold;
-}
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgskinsstandardsummarizetimecss"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/skins/standard/summarize-time.css (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/skins/standard/summarize-time.css        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/skins/standard/summarize-time.css        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-/* The contents of this file are subject to the Mozilla Public
-  * License Version 1.1 (the &quot;License&quot;); you may not use this file
-  * except in compliance with the License. You may obtain a copy of
-  * the License at http://www.mozilla.org/MPL/
-  *
-  * Software distributed under the License is distributed on an &quot;AS
-  * IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  * implied. See the License for the specific language governing
-  * rights and limitations under the License.
-  *
-  * The Original Code is the Bugzilla Bug Tracking System.
-  *
-  * Contributor(s): Christian Reis &lt;kiko@async.com.br&gt;
-  */
-
-td { vertical-align: top }
-
-table.zeroitems, table.realitems {
-    margin-left: 2.0em;
-    margin-top: 2px;
-    border: 1px solid black;
-    border: 1px solid black;
-}
-
-tr.section_total {
-    background: #000000;
-    color: #ffffff;
-}
-
-td.subtotal {
-    background: #B0C0D9;
-}
-
-.zeroitems .bug_header { background: #d0e0f0 }
-.zeroitems .bug_header2 { background: #f9f9f9 }
-
-/* the fixed headers -- .number uses bug_header so hack it here */
-.number .bug_header, .number .bug_header2 { background: #d0e0f0 }
-.owner_header { background: #d0e0f0 }
-
-
-/* the details headers */
-.number .owner_header, .owner .bug_header { background: #ffffff }
-.number .owner_header2, .owner .bug_header2 { background: #EFEFEF }
-
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgsummarize_timecgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/summarize_time.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/summarize_time.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/summarize_time.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Christian Reis &lt;kiko@async.com.br&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -250,10 +241,9 @@
</span><span class="cx"> # Template code starts here
</span><span class="cx"> #
</span><span class="cx"> 
</span><del>-Bugzilla-&gt;login(LOGIN_REQUIRED);
</del><ins>+my $user = Bugzilla-&gt;login(LOGIN_REQUIRED);
</ins><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><del>-my $user = Bugzilla-&gt;user;
</del><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="cx"> my $vars = {};
</span><span class="cx"> 
</span><span class="lines">@@ -266,7 +256,7 @@
</span><span class="cx"> 
</span><span class="cx"> my @ids = split(&quot;,&quot;, $cgi-&gt;param('id') || '');
</span><span class="cx"> @ids = map { Bugzilla::Bug-&gt;check($_)-&gt;id } @ids;
</span><del>-scalar(@ids) || ThrowUserError('no_bugs_chosen', {action =&gt; 'view'});
</del><ins>+scalar(@ids) || ThrowUserError('no_bugs_chosen', {action =&gt; 'summarize'});
</ins><span class="cx"> 
</span><span class="cx"> my $group_by = $cgi-&gt;param('group_by') || &quot;number&quot;;
</span><span class="cx"> my $monthly = $cgi-&gt;param('monthly');
</span><span class="lines">@@ -287,7 +277,7 @@
</span><span class="cx">                                         function=&gt;&quot;summarize_time&quot;});
</span><span class="cx">         }
</span><span class="cx">         @bugs = get_blocker_ids($bugs[0]);
</span><del>-        @bugs = grep { $user-&gt;can_see_bug($_) } @bugs;
</del><ins>+        @bugs = @{ $user-&gt;visible_bugs(\@bugs) };
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $start_date = trim $cgi-&gt;param('start_date');
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgthtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt001compilet"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/001compile.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/001compile.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/001compile.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are Copyright (C) 2001 Zach Lipton.
-# All Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> #################
</span><span class="lines">@@ -24,12 +10,15 @@
</span><span class="cx"> #Bugzilla Test 1#
</span><span class="cx"> ###Compilation###
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use 5.008001;
</del><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib t);
</span><span class="cx"> use Config;
</span><span class="cx"> use Support::Files;
</span><del>-use Test::More tests =&gt; scalar(@Support::Files::testitems);
</del><ins>+use Test::More tests =&gt; scalar(@Support::Files::testitems)
+                        + scalar(@Support::Files::test_files);
</ins><span class="cx"> 
</span><span class="cx"> BEGIN { 
</span><span class="cx">     use_ok('Bugzilla::Constants');
</span><span class="lines">@@ -65,7 +54,7 @@
</span><span class="cx">        $libs = join &quot; &quot;, map { &quot;-I\&quot;$_\&quot;&quot; } split /$Config{path_sep}/, $ENV{PERL5LIB};
</span><span class="cx">     }
</span><span class="cx">     my $perl = qq{&quot;$^X&quot;};
</span><del>-    my $output = `$perl $libs -wc$T $file 2&gt;&amp;1`;
</del><ins>+    my $output = `$perl $libs -c$T $file 2&gt;&amp;1`;
</ins><span class="cx">     chomp($output);
</span><span class="cx">     my $return_val = $?;
</span><span class="cx">     $output =~ s/^\Q$file\E syntax OK$//ms;
</span><span class="lines">@@ -73,7 +62,7 @@
</span><span class="cx">     ok(!$return_val, $file) or diag('--ERROR');
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-my @testitems = @Support::Files::testitems;
</del><ins>+my @testitems = (@Support::Files::testitems, @Support::Files::test_files);
</ins><span class="cx"> my $file_features = map_files_to_features();
</span><span class="cx"> 
</span><span class="cx"> # Test the scripts by compiling them
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt002goodperlt"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/002goodperl.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/002goodperl.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/002goodperl.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-# 
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are 
-# Copyright (C) 2001 Zach Lipton.  All
-# Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 David D. Kilzer &lt;ddkilzer@theracingworld.com&gt;
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> #################
</span><span class="lines">@@ -26,15 +10,19 @@
</span><span class="cx"> #Bugzilla Test 2#
</span><span class="cx"> ####GoodPerl#####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="cx"> use Support::Files;
</span><span class="cx"> 
</span><del>-use Test::More tests =&gt; (scalar(@Support::Files::testitems) * 4);
</del><ins>+use Test::More tests =&gt; (scalar(@Support::Files::testitems)
+                         + scalar(@Support::Files::test_files)) * 6;
</ins><span class="cx"> 
</span><del>-my @testitems = @Support::Files::testitems; # get the files to test.
</del><ins>+my @testitems = (@Support::Files::test_files, @Support::Files::testitems);
+my @require_taint = qw(email_in.pl importxml.pl mod_perl.pl whine.pl);
</ins><span class="cx"> 
</span><span class="cx"> foreach my $file (@testitems) {
</span><span class="cx">     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
</span><span class="lines">@@ -49,29 +37,39 @@
</span><span class="cx">     my $ext = $1;
</span><span class="cx"> 
</span><span class="cx">     if ($file_line1 !~ m/^#\!/) {
</span><del>-        ok(1,&quot;$file does not have a shebang&quot;);        
</del><ins>+        ok(1,&quot;$file does not have a shebang&quot;);
</ins><span class="cx">     } else {
</span><span class="cx">         my $flags;
</span><span class="cx">         if (!defined $ext || $ext eq &quot;pl&quot;) {
</span><span class="cx">             # standalone programs aren't taint checked yet
</span><del>-            $flags = &quot;w&quot;;
</del><ins>+            if (grep { $file eq $_ } @require_taint) {
+                $flags = 'T';
+            }
+            else {
+                $flags = '';
+            }
</ins><span class="cx">         } elsif ($ext eq &quot;pm&quot;) {
</span><span class="cx">             ok(0, &quot;$file is a module, but has a shebang&quot;);
</span><span class="cx">             next;
</span><span class="cx">         } elsif ($ext eq &quot;cgi&quot;) {
</span><span class="cx">             # cgi files must be taint checked
</span><del>-            $flags = &quot;wT&quot;;
</del><ins>+            $flags = 'T';
</ins><span class="cx">         } else {
</span><span class="cx">             ok(0, &quot;$file has shebang but unknown extension&quot;);
</span><span class="cx">             next;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ($file_line1 =~ m#^\#\!/usr/bin/env perl\s#) {
-            if ($file_line1 =~ m#\s-$flags#) {
-                ok(1,&quot;$file uses standard perl location and -$flags&quot;);
-            } else {
-                ok(0,&quot;$file is MISSING -$flags --WARNING&quot;);
</del><ins>+        if ($file_line1 =~ m#^\#\!/usr/bin/perl(?:\s-(\w+))?$#) {
+            my $file_flags = $1 || '';
+            if ($flags eq $file_flags) {
+                ok(1, &quot;$file uses standard perl location&quot; . ($flags ? &quot; and -$flags flag&quot; : &quot;&quot;));
</ins><span class="cx">             }
</span><ins>+            elsif ($flags) {
+                ok(0, &quot;$file is MISSING -$flags flag --WARNING&quot;);
+            }
+            else {
+                ok(0, &quot;$file has unexpected -$file_flags flag --WARNING&quot;);
+            }
</ins><span class="cx">         } else {
</span><span class="cx">             ok(0,&quot;$file uses non-standard perl location&quot;);
</span><span class="cx">         }
</span><span class="lines">@@ -79,7 +77,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> foreach my $file (@testitems) {
</span><ins>+    my $found_use_perl = 0;
</ins><span class="cx">     my $found_use_strict = 0;
</span><ins>+    my $found_use_warnings = 0;
+
</ins><span class="cx">     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
</span><span class="cx">     next if (!$file); # skip null entries
</span><span class="cx">     if (! open (FILE, $file)) {
</span><span class="lines">@@ -87,17 +88,29 @@
</span><span class="cx">         next;
</span><span class="cx">     }
</span><span class="cx">     while (my $file_line = &lt;FILE&gt;) {
</span><del>-        if ($file_line =~ m/^\s*use strict/) {
-            $found_use_strict = 1;
-            last;
-        }
</del><ins>+        $found_use_perl = 1 if $file_line =~ m/^\s*use 5.10.1/;
+        $found_use_strict = 1 if $file_line =~ m/^\s*use strict/;
+        $found_use_warnings = 1 if $file_line =~ m/^\s*use warnings/;
+        last if ($found_use_perl &amp;&amp; $found_use_strict &amp;&amp; $found_use_warnings);
</ins><span class="cx">     }
</span><span class="cx">     close (FILE);
</span><ins>+    if ($found_use_perl) {
+        ok(1,&quot;$file requires Perl 5.10.1&quot;);
+    } else {
+        ok(0,&quot;$file DOES NOT require Perl 5.10.1 --WARNING&quot;);
+    }
+
</ins><span class="cx">     if ($found_use_strict) {
</span><span class="cx">         ok(1,&quot;$file uses strict&quot;);
</span><span class="cx">     } else {
</span><span class="cx">         ok(0,&quot;$file DOES NOT use strict --WARNING&quot;);
</span><span class="cx">     }
</span><ins>+
+    if ($found_use_warnings) {
+        ok(1,&quot;$file uses warnings&quot;);
+    } else {
+        ok(0,&quot;$file DOES NOT use warnings --WARNING&quot;);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Check to see that all error messages use tags (for l10n reasons.)
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt003safesyst"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/003safesys.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/003safesys.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/003safesys.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-# 
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are 
-# Copyright (C) 2001 Zach Lipton.  All
-# Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> #################
</span><span class="lines">@@ -24,7 +10,9 @@
</span><span class="cx"> #Bugzilla Test 3#
</span><span class="cx"> ###Safesystem####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="lines">@@ -36,7 +24,7 @@
</span><span class="cx"> # This will handle verbosity for us automatically.
</span><span class="cx"> my $fh;
</span><span class="cx"> {
</span><del>-    local $^W = 0;  # Don't complain about non-existent filehandles
</del><ins>+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
</ins><span class="cx">     if (-e \*Test::More::TESTOUT) {
</span><span class="cx">         $fh = \*Test::More::TESTOUT;
</span><span class="cx">     } elsif (-e \*Test::Builder::TESTOUT) {
</span><span class="lines">@@ -52,7 +40,16 @@
</span><span class="cx"> foreach my $file (@testitems) {
</span><span class="cx">     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
</span><span class="cx">     next if (!$file); # skip null entries
</span><del>-    my $command = &quot;$perlapp -c -It -MSupport::Systemexec $file 2&gt;&amp;1&quot;;
</del><ins>+
+    open(my $fh2, '&lt;', $file);
+    my $bang = &lt;$fh2&gt;;
+    close $fh2;
+
+    my $T = &quot;&quot;;
+    if ($bang =~ m/#!\S*perl\s+-.*T/) {
+        $T = &quot;T&quot;;
+    }
+    my $command = &quot;$perlapp -c$T -It -MSupport::Systemexec $file 2&gt;&amp;1&quot;;
</ins><span class="cx">     my $loginfo=`$command`;
</span><span class="cx">     if ($loginfo =~ /arguments for Support::Systemexec::(system|exec)/im) {
</span><span class="cx">         ok(0,&quot;$file DOES NOT use proper system or exec calls&quot;);
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt004templatet"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/004template.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/004template.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/004template.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
-#                 Tobias Burnus &lt;burnus@net-b.de&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #################
</span><span class="cx"> #Bugzilla Test 4#
</span><span class="cx"> ####Templates####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="lines">@@ -38,13 +22,13 @@
</span><span class="cx"> 
</span><span class="cx"> use File::Spec;
</span><span class="cx"> use Template;
</span><del>-use Test::More tests =&gt; ( scalar(@referenced_files) + $num_actual_files );
</del><ins>+use Test::More tests =&gt; ( scalar(@referenced_files) + 2 * $num_actual_files );
</ins><span class="cx"> 
</span><span class="cx"> # Capture the TESTOUT from Test::More or Test::Builder for printing errors.
</span><span class="cx"> # This will handle verbosity for us automatically.
</span><span class="cx"> my $fh;
</span><span class="cx"> {
</span><del>-    local $^W = 0;  # Don't complain about non-existent filehandles
</del><ins>+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
</ins><span class="cx">     if (-e \*Test::More::TESTOUT) {
</span><span class="cx">         $fh = \*Test::More::TESTOUT;
</span><span class="cx">     } elsif (-e \*Test::Builder::TESTOUT) {
</span><span class="lines">@@ -55,17 +39,21 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Check to make sure all templates that are referenced in Bugzilla
</span><del>-# exist in the proper place in the English template directory.
</del><ins>+# exist in the proper place in the English template or extension directory.
</ins><span class="cx"> # All other languages may or may not include any template as Bugzilla will
</span><span class="cx"> # fall back to English if necessary.
</span><span class="cx"> 
</span><span class="cx"> foreach my $file (@referenced_files) {
</span><del>-    my $path = File::Spec-&gt;catfile($english_default_include_path, $file);
-    if (-e $path) {
-        ok(1, &quot;$path exists&quot;);
-    } else {
-        ok(0, &quot;$path cannot be located --ERROR&quot;);
</del><ins>+    my $found = 0;
+    foreach my $path (@english_default_include_paths) {
+        my $pathfile = File::Spec-&gt;catfile($path, $file);
+        if (-e $pathfile) {
+            $found = 1;
+            last;
+        }
</ins><span class="cx">     }
</span><ins>+
+    ok($found, &quot;$file found&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> foreach my $include_path (@include_paths) {
</span><span class="lines">@@ -78,12 +66,11 @@
</span><span class="cx">         # See Template.pm for the actual codebase definitions.
</span><span class="cx"> 
</span><span class="cx">         # Initialize templates (f.e. by loading plugins like Hook).
</span><del>-        PRE_PROCESS =&gt; &quot;global/initialize.none.tmpl&quot;,
</del><ins>+        PRE_PROCESS =&gt; &quot;global/variables.none.tmpl&quot;,
</ins><span class="cx"> 
</span><span class="cx">         FILTERS =&gt;
</span><span class="cx">         {
</span><span class="cx">             html_linebreak =&gt; sub { return $_; },
</span><del>-            no_break =&gt; sub { return $_; } ,
</del><span class="cx">             js        =&gt; sub { return $_ } ,
</span><span class="cx">             base64   =&gt; sub { return $_ } ,
</span><span class="cx">             inactive =&gt; [ sub { return sub { return $_; } }, 1] ,
</span><span class="lines">@@ -118,6 +105,20 @@
</span><span class="cx">             ok(0, &quot;$path has bad syntax --ERROR&quot;);
</span><span class="cx">             print $fh $data . &quot;\n&quot;;
</span><span class="cx">         }
</span><ins>+
+        # Make sure no forbidden constructs are present.
+        local $/;
+        open(FILE, '&lt;', $path) or die &quot;Can't open $file: $!\n&quot;;
+        $data = &lt;FILE&gt;;
+        close (FILE);
+
+        # Forbid single quotes to delimit URLs, see bug 926085.
+        if ($data =~ /href=\\?'/) {
+            ok(0, &quot;$path contains blacklisted constructs: href='...'&quot;);
+        }
+        else {
+            ok(1, &quot;$path contains no blacklisted constructs&quot;);
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt005whitespacet"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/005whitespace.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/005whitespace.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/005whitespace.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,17 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
-#                 Colin Ogilvie &lt;mozilla@colinogilvie.co.uk&gt;
-#                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #################
</span><span class="cx"> #Bugzilla Test 5#
</span><span class="cx"> #####no_tabs#####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="lines">@@ -35,10 +19,11 @@
</span><span class="cx"> use Support::Templates;
</span><span class="cx"> 
</span><span class="cx"> use File::Spec;
</span><del>-use Test::More tests =&gt; (  scalar(@Support::Files::testitems)
</del><ins>+use Test::More tests =&gt; (scalar(@Support::Files::testitems)
+                         + scalar(@Support::Files::test_files)
</ins><span class="cx">                          + $Support::Templates::num_actual_files) * 3;
</span><span class="cx"> 
</span><del>-my @testitems = @Support::Files::testitems;
</del><ins>+my @testitems = (@Support::Files::testitems, @Support::Files::test_files);
</ins><span class="cx"> for my $path (@Support::Templates::include_paths) {
</span><span class="cx">    push(@testitems, map(File::Spec-&gt;catfile($path, $_),
</span><span class="cx">                         Support::Templates::find_actual_files($path)));
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt006spellcheckt"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/006spellcheck.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/006spellcheck.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/006spellcheck.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are 
-# Copyright (C) 2002 Zach Lipton.  All
-# Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> #################
</span><span class="lines">@@ -24,38 +10,22 @@
</span><span class="cx"> #Bugzilla Test 6#
</span><span class="cx"> ####Spelling#####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use lib 't';
</span><span class="cx"> use Support::Files;
</span><span class="cx"> 
</span><del>-BEGIN { # yes the indenting is off, deal with it
-#add the words to check here:
-@evilwords = qw(
-anyways
-appearence
-arbitary
-cancelled
-critera
-databasa
-dependan
-existance
-existant
-paramater
-refered
-repsentation
-suported
-varsion
-);
</del><ins>+# -1 because 006spellcheck.t must not be checked.
+use Test::More tests =&gt; scalar(@Support::Files::testitems)
+                        + scalar(@Support::Files::test_files) - 1;
</ins><span class="cx"> 
</span><del>-$testcount = scalar(@Support::Files::testitems);
-}
-
-use Test::More tests =&gt; $testcount;
-
</del><span class="cx"> # Capture the TESTOUT from Test::More or Test::Builder for printing errors.
</span><span class="cx"> # This will handle verbosity for us automatically.
</span><span class="cx"> my $fh;
</span><span class="cx"> {
</span><del>-    local $^W = 0;  # Don't complain about non-existent filehandles
</del><ins>+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
</ins><span class="cx">     if (-e \*Test::More::TESTOUT) {
</span><span class="cx">         $fh = \*Test::More::TESTOUT;
</span><span class="cx">     } elsif (-e \*Test::Builder::TESTOUT) {
</span><span class="lines">@@ -65,14 +35,34 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-my @testitems = @Support::Files::testitems;
</del><ins>+my @testitems = (@Support::Files::testitems, @Support::Files::test_files);
</ins><span class="cx"> 
</span><del>-# at last, here we actually run the test...
</del><ins>+#add the words to check here:
+my @evilwords = qw(
+    anyways
+    appearence
+    arbitary
+    cancelled
+    critera
+    databasa
+    dependan
+    existance
+    existant
+    paramater
+    refered
+    repsentation
+    suported
+    varsion
+);
+
</ins><span class="cx"> my $evilwordsregexp = join('|', @evilwords);
</span><span class="cx"> 
</span><span class="cx"> foreach my $file (@testitems) {
</span><span class="cx">     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
</span><span class="cx">     next if (!$file); # skip null entries
</span><ins>+    # Do not try to validate this file as it obviously contains a list
+    # of wrongly spelled words.
+    next if ($file eq 't/006spellcheck.t');
</ins><span class="cx"> 
</span><span class="cx">     if (open (FILE, $file)) { # open the file for reading
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt007utilt"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/007util.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/007util.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/007util.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,26 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are Copyright (C) 2002 Zach Lipton.
-# All Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #################
</span><span class="cx"> #Bugzilla Test 7#
</span><span class="cx"> #####Util.pm#####
</span><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use lib 't';
</span><span class="cx"> use Support::Files;
</span><del>-use Test::More tests =&gt; 15;
</del><ins>+use Test::More tests =&gt; 17;
+use DateTime;
</ins><span class="cx"> 
</span><span class="cx"> BEGIN { 
</span><del>-    use_ok(Bugzilla);
-    use_ok(Bugzilla::Util);
</del><ins>+    use_ok('Bugzilla');
+    use_ok('Bugzilla::Util');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # We need to override user preferences so we can get an expected value when
</span><span class="lines">@@ -73,6 +63,16 @@
</span><span class="cx">        &quot;email_filter('$input')&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# validate_email_syntax. We need to override some parameters.
+my $params = Bugzilla-&gt;params;
+$params-&gt;{emailregexp} = '.*';
+$params-&gt;{emailsuffix} = '';
+my $ascii_email = 'admin@company.com';
+# U+0430 returns the Cyrillic &quot;а&quot;, which looks similar to the ASCII &quot;a&quot;.
+my $utf8_email = &quot;\N{U+0430}dmin\@company.com&quot;;
+ok(validate_email_syntax($ascii_email), 'correctly formatted ASCII-only email address is valid');
+ok(!validate_email_syntax($utf8_email), 'correctly formatted email address with non-ASCII characters is rejected');
+
</ins><span class="cx"> # diff_arrays():
</span><span class="cx"> my @old_array = qw(alpha beta alpha gamma gamma beta alpha delta epsilon gamma);
</span><span class="cx"> my @new_array = qw(alpha alpha beta gamma epsilon delta beta delta);
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt008filtert"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/008filter.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/008filter.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/008filter.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #################
</span><span class="cx"> #Bugzilla Test 8#
</span><span class="lines">@@ -29,11 +15,12 @@
</span><span class="cx"> 
</span><span class="cx"> # Sample exploit code: '&gt;&quot;&gt;&lt;script&gt;alert('Oh dear...')&lt;/script&gt;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib t);
</span><span class="cx"> 
</span><del>-use vars qw(%safe);
-
</del><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Support::Templates;
</span><span class="cx"> use File::Spec;
</span><span class="lines">@@ -44,6 +31,7 @@
</span><span class="cx"> my $oldrecsep = $/;
</span><span class="cx"> my $topdir = cwd;
</span><span class="cx"> $/ = undef;
</span><ins>+our %safe;
</ins><span class="cx"> 
</span><span class="cx"> foreach my $path (@Support::Templates::include_paths) {
</span><span class="cx">     $path =~ s|\\|/|g if ON_WINDOWS;  # convert \ to / in path if on windows
</span><span class="lines">@@ -94,13 +82,13 @@
</span><span class="cx">     foreach my $file (@testitems) {
</span><span class="cx">         # There are some files we don't check, because there is no need to
</span><span class="cx">         # filter their contents due to their content-type.
</span><del>-        if ($file =~ /\.(pm|txt|png)\.tmpl$/) {
</del><ins>+        if ($file =~ /\.(pm|txt|rst|png)\.tmpl$/) {
</ins><span class="cx">             ok(1, &quot;($lang/$flavor) $file is filter-safe&quot;);
</span><span class="cx">             next;
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         # Read the entire file into a string
</span><del>-        open (FILE, &quot;&lt;$file&quot;) || die &quot;Can't open $file: $!\n&quot;;    
</del><ins>+        open (FILE, &quot;&lt;$file&quot;) || die &quot;Can't open $file: $!\n&quot;;
</ins><span class="cx">         my $slurp = &lt;FILE&gt;;
</span><span class="cx">         close (FILE);
</span><span class="cx"> 
</span><span class="lines">@@ -173,7 +161,7 @@
</span><span class="cx"> 
</span><span class="cx">     # Directives
</span><span class="cx">     return 1 if $directive =~ /^(IF|END|UNLESS|FOREACH|PROCESS|INCLUDE|
</span><del>-                                 BLOCK|USE|ELSE|NEXT|LAST|DEFAULT|FLUSH|
</del><ins>+                                 BLOCK|USE|ELSE|NEXT|LAST|DEFAULT|
</ins><span class="cx">                                  ELSIF|SET|SWITCH|CASE|WHILE|RETURN|STOP|
</span><span class="cx">                                  TRY|CATCH|FINAL|THROW|CLEAR|MACRO|FILTER)/x;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt009bugwordst"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/009bugwords.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/009bugwords.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/009bugwords.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> #################
</span><span class="cx"> #Bugzilla Test 9#
</span><span class="lines">@@ -30,7 +15,9 @@
</span><span class="cx"> # &quot;[% terms.bug %]&quot;. This test makes sure the relevant words aren't used
</span><span class="cx"> # bare.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="lines">@@ -75,15 +62,6 @@
</span><span class="cx">                 next;
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-
-        # &quot;Bugzilla&quot;
-        if (grep /(?&lt;!X\-)Bugzilla(?!_|::|-&amp;gt|\.pm)/, $text) {
-            # Exclude JS comments, hyperlinks, USE, and variable assignment.
-            unless (grep /(\/\/.*|org.*&gt;|api\/|USE |= )Bugzilla/, $text) {
-                push(@errors, [$lineno, $text]);
-                next;
-            }
-        }
</del><span class="cx">     }
</span><span class="cx">         
</span><span class="cx">     if (scalar(@errors)) {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt010dependenciest"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/010dependencies.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/010dependencies.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/010dependencies.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla Tests.
-#
-# Contributor(s): David Miller &lt;justdave@bugzilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> ##################
</span><span class="lines">@@ -20,7 +10,10 @@
</span><span class="cx"> #Bugzilla Test 10#
</span><span class="cx"> ## dependencies ##
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib t);
</span><span class="cx"> 
</span><span class="cx"> use Support::Files;
</span><span class="lines">@@ -37,7 +30,7 @@
</span><span class="cx">     ['&quot;]?
</span><span class="cx">     ([\w:\.\\]+)
</span><span class="cx"> /x;
</span><del>-use constant BASE_REGEX =&gt; qr/^use base qw\(([^\)]+)/;
</del><ins>+use constant BASE_REGEX =&gt; qr/^use (?:base|parent) (?:-norequire, )?qw\(([^\)]+)/;
</ins><span class="cx"> 
</span><span class="cx"> # Extract all Perl modules.
</span><span class="cx"> foreach my $file (@Support::Files::testitems) {
</span><span class="lines">@@ -69,7 +62,7 @@
</span><span class="cx">       }
</span><span class="cx">       elsif ($line =~ BASE_REGEX or $line =~ MODULE_REGEX) {
</span><span class="cx">         my $used_string = $1;
</span><del>-        # &quot;use base&quot; can have multiple modules
</del><ins>+        # &quot;use base&quot;/&quot;use parent&quot; can have multiple modules
</ins><span class="cx">         my @used_array = split(/\s+/, $used_string);
</span><span class="cx">         foreach my $used (@used_array) {
</span><span class="cx">             next if $used !~ /^Bugzilla/;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt011podt"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/011pod.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/011pod.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/011pod.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-# 
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> ##################
</span><span class="lines">@@ -19,20 +10,54 @@
</span><span class="cx"> #Bugzilla Test 11#
</span><span class="cx"> ##POD validation##
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><span class="cx"> 
</span><span class="cx"> use Support::Files;
</span><span class="cx"> use Pod::Checker;
</span><ins>+use Pod::Coverage;
</ins><span class="cx"> 
</span><del>-use Test::More tests =&gt; scalar(@Support::Files::testitems);
</del><ins>+use Test::More tests =&gt; scalar(@Support::Files::testitems)
+                        + scalar(@Support::Files::module_files);
</ins><span class="cx"> 
</span><ins>+# These methods do not need to be documented by default.
+use constant DEFAULT_WHITELIST =&gt; qr/^(?:new|new_from_list|check|run_create_validators)$/;
+
+# These subroutines do not need to be documented, generally because
+# you shouldn't call them yourself. No need to include subroutines
+# of the form _foo(); they are already treated as private.
+use constant SUB_WHITELIST =&gt; (
+    'Bugzilla::Flag'     =&gt; qr/^(?:(force_)?retarget|force_cleanup)$/,
+    'Bugzilla::FlagType' =&gt; qr/^sqlify_criteria$/,
+    'Bugzilla::JobQueue' =&gt; qr/(?:^work_once|work_until_done|subprocess_worker)$/,
+    'Bugzilla::Search'   =&gt; qr/^SPECIAL_PARSING$/,
+    'Bugzilla::Template' =&gt; qr/^field_name$/,
+    'Bugzilla::MIME'     =&gt; qr/^as_string$/,
+);
+
+# These modules do not need to be documented, generally because they
+# are subclasses of another module which already has all the relevant
+# documentation. Partial names are allowed.
+use constant MODULE_WHITELIST =&gt; qw(
+    Bugzilla::Auth::Login::
+    Bugzilla::Auth::Persist::
+    Bugzilla::Auth::Verify::
+    Bugzilla::BugUrl::
+    Bugzilla::Config::
+    Bugzilla::Extension::
+    Bugzilla::Job::
+    Bugzilla::Migrate::
+    docs::lib::Pod::Simple::
+);
+
</ins><span class="cx"> # Capture the TESTOUT from Test::More or Test::Builder for printing errors.
</span><span class="cx"> # This will handle verbosity for us automatically.
</span><span class="cx"> my $fh;
</span><span class="cx"> {
</span><del>-    local $^W = 0;  # Don't complain about non-existent filehandles
</del><ins>+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
</ins><span class="cx">     if (-e \*Test::More::TESTOUT) {
</span><span class="cx">         $fh = \*Test::More::TESTOUT;
</span><span class="cx">     } elsif (-e \*Test::Builder::TESTOUT) {
</span><span class="lines">@@ -57,4 +82,50 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+my %sub_whitelist = SUB_WHITELIST;
+my @module_files = sort @Support::Files::module_files;
+
+foreach my $file (@module_files) {
+    my $module = $file;
+    $module =~ s/\.pm$//;
+    $module =~ s#/#::#g;
+    $module =~ s/^extensions/Bugzilla::Extension/;
+
+    my @whitelist = (DEFAULT_WHITELIST);
+    push(@whitelist, $sub_whitelist{$module}) if $sub_whitelist{$module};
+
+    # XXX Once all methods are correctly documented, nonwhitespace should
+    # be set to 1.
+    my $cover = Pod::Coverage-&gt;new(package =&gt; $module, nonwhitespace =&gt; 0,
+                                   trustme =&gt; \@whitelist);
+    my $coverage = $cover-&gt;coverage;
+    my $reason = $cover-&gt;why_unrated;
+
+    if (defined $coverage) {
+        if ($coverage == 1) {
+            ok(1, &quot;$file has POD for all methods&quot;);
+        }
+        else {
+            ok(0, &quot;$file POD coverage is &quot; . sprintf(&quot;%u%%&quot;, 100 * $coverage) .
+                  &quot;. Undocumented methods: &quot; . join(', ', $cover-&gt;uncovered));
+        }
+    }
+    # These errors are thrown when the module couldn't be loaded due to
+    # a missing dependency.
+    elsif ($reason =~ /^(?:no public symbols defined|requiring '[^']+' failed)$/) {
+        ok(1, &quot;$file cannot be loaded&quot;);
+    }
+    elsif ($reason eq &quot;couldn't find pod&quot;) {
+        if (grep { $module =~ /^\Q$_\E/ } MODULE_WHITELIST) {
+            ok(1, &quot;$file does not contain any POD (whitelisted)&quot;);
+        }
+        else {
+            ok(0, &quot;$file POD coverage is 0%&quot;);
+        }
+    }
+    else {
+        ok(0, &quot;$file: $reason&quot;);
+    }
+}
+
</ins><span class="cx"> exit 0;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt012throwablest"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/012throwables.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/012throwables.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/012throwables.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-# vim: ts=4 sw=4 et tw=80
-# 
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are 
-# Copyright (C) 2001 Zach Lipton.  All
-# Rights Reserved.
-# 
-# Contributor(s): Dennis Melentyev &lt;dennis.melentyev@infopulse.com.ua&gt;
-#                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -27,7 +11,10 @@
</span><span class="cx"> #Bugzilla Test 12#
</span><span class="cx"> ######Errors######
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib t);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -63,6 +50,13 @@
</span><span class="cx">         $file =~ s|\\|/|g if ON_WINDOWS;  # convert \ to / in path if on windows
</span><span class="cx">         $test_templates{$file} = () 
</span><span class="cx">             if $file =~ m#global/(code|user)-error\.html\.tmpl#;
</span><ins>+
+        # Make sure the extension is not disabled
+        if ($file =~ m#^(extensions/[^/]+/)#) {
+            $test_templates{$file} = ()
+                if ! -e &quot;${1}disabled&quot;
+                &amp;&amp; $file =~ m#global/(code|user)-error-errors\.html\.tmpl#;
+        }
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -75,7 +69,7 @@
</span><span class="cx"> 
</span><span class="cx"> # Collect all errors defined in templates
</span><span class="cx"> foreach my $file (keys %test_templates) {
</span><del>-    $file =~ m|template/([^/]+).*/global/([^/]+)-error\.html\.tmpl|;
</del><ins>+    $file =~ m|template/([^/]+).*/global/([^/]+)-error(?:-errors)?\.html\.tmpl|;
</ins><span class="cx">     my $lang = $1;
</span><span class="cx">     my $errtype = $2;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgt013dbschemat"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/t/013dbschema.t (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/013dbschema.t                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/t/013dbschema.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,87 @@
</span><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
+
+##################
+#Bugzilla Test 13#
+#####schema#######
+
+# Check the Bugzilla database schema to ensure no field names conflict
+# with SQL reserved words.
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use lib qw(. t lib);
+use Bugzilla;
+use Bugzilla::DB::Schema;
+
+
+# SQL reserved words
+use constant RESERVED_WORDS =&gt; qw(
+    ABSOLUTE ACTION ACTOR ADD AFTER ALL ALLOCATE ALTER ANY AND ARE AS ASC ASSERTION ASYNC AT
+    ATTRIBUTES BEFORE BEGIN BETWEEN BIT BIT_LENGTH BOOLEAN BOTH BREADTH BY CALL CASCADE
+    CASCADED CASE CAST CATALOG CHAR CHARACTER_LENGTH CHAR_LENGTH COLLATE
+    COLLATION COLUMN COMPLETION CONNECT CONNECTION CONSTRAINT CONSTRAINTS
+    CONVERT CORRESPONDING CREATE CROSS CURRENT_DATE CURRENT_PATH CURRENT_TIME
+    CURRENT_TIMESTAMP CURRENT_USER CYCLE DATA DATE DAY DEALLOCATE DECLARE DEFAULT DEFERRABLE
+    DEFERRED DELETE DEPTH DESC DESCRIBE DESCRIPTOR DESTROY DIAGNOSTICS DICTIONARY
+    DISCONNECT DISTINCT DO DOMAIN DROP EACH ELEMENT ELSE ELSEIF END END-EXEC EQUALS EXCEPT
+    EXCEPTION EXECUTE EXTERNAL EXTRACT FACTOR FALSE FIRST FOR FROM FULL GENERAL GET
+    GLOBAL GRANT GROUP HAVING HOLD HOUR IDENTITY IF IGNORE IMMEDIATE IN INITIALLY INNER INPUT
+    INSENSITIVE INSERT INSTEAD INTERSECT INTERVAL IS ISOLATION JOIN LAST LEADING LEAVE
+    LEFT LESS LEVEL LIMIT LIST LOCAL LOOP LOWER MATCH MINUTE MODIFY MONTH NAMES
+    NATIONAL NATURAL NCHAR NEW NEW_TABLE NEXT NO NONE NOT NULL NULLIF OBJECT
+    OCTET_LENGTH OFF OID OLD OLD_TABLE ONLY OPERATION OPERATOR OPERATORS OR ORDER OTHERS
+    OUTER OUTPUT OVERLAPS PAD PARAMETERS PARTIAL PATH PENDANT POSITION POSTFIX
+    PREFIX PREORDER PREPARE PRESERVE PRIOR PRIVATE PROTECTED READ RECURSIVE REF
+    REFERENCING RELATIVE REPLACE RESIGNAL RESTRICT RETURN RETURNS REVOKE RIGHT
+    ROLE ROUTINE ROW ROWS SAVEPOINT SCROLL SEARCH SECOND SELECT SENSITIVE SEQUENCE
+    SESSION SESSION_USER SIGNAL SIMILAR SIZE SPACE SQLEXCEPTION SQLSTATE
+    SQLWARNING START STATE STRUCTURE SUBSTRING SYMBOL SYSTEM_USER TABLE TEMPORARY
+    TERM TEST THEN THERE TIME TIMESTAMP TIMEZONE_HOUR TIMEZONE_MINUTE TRAILING
+    TRANSACTION TRANSLATE TRANSLATION TRIGGER TRIM TRUE TUPLE UNDER
+    UNKNOWN UNION UNIQUE UPDATE UPPER USAGE USING VARCHAR VARIABLE VARYING VIEW VIRTUAL VISIBLE
+    WAIT WHEN WHERE WHILE WITH WITHOUT WRITE YEAR ZONE
+);
+
+# Few Exceptions are removed from the above list
+# i.e. VALUE, TYPE, ALIAS, COALESCE
+
+our $dbh;
+our $schema;
+our @tables;
+
+BEGIN {
+    $schema = Bugzilla::DB::Schema-&gt;new(&quot;Mysql&quot;);
+    @tables = $schema-&gt;get_table_list();
+}
+
+use Test::More tests =&gt; scalar(@tables);
+
+foreach my $table (@tables) {
+    my @reserved;
+
+    if (grep { uc($table) eq $_ } RESERVED_WORDS) {
+        push(@reserved, $table);
+    }
+
+    foreach my $column ($schema-&gt;get_table_columns($table)) {
+        if (grep { uc($column) eq $_ } RESERVED_WORDS) {
+            push(@reserved, $column);
+        }
+    }
+
+    if (scalar @reserved) {
+        ok(0, &quot;Table $table use reserved words: &quot; . join(&quot;, &quot;, @reserved));
+    }
+    else {
+        ok(1, &quot;Table $table does not use reserved words&quot;);
+    }
+}
+
+exit 0;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtSupportFilespm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/Support/Files.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/Support/Files.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/Support/Files.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,36 +1,35 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
-# 
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-# 
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-# 
-# The Original Code are the Bugzilla Tests.
-# 
-# The Initial Developer of the Original Code is Zach Lipton
-# Portions created by Zach Lipton are 
-# Copyright (C) 2001 Zach Lipton.  All
-# Rights Reserved.
-# 
-# Contributor(s): Zach Lipton &lt;zach@zachlipton.com&gt;
-#                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> package Support::Files;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
+use strict;
+use warnings;
+
</ins><span class="cx"> use File::Find;
</span><span class="cx"> 
</span><del>-@additional_files = ();
</del><ins>+our @additional_files = ();
</ins><span class="cx"> 
</span><del>-@files = glob('*');
-find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla');
-push(@files, 'extensions/create.pl');
</del><ins>+our @files = glob('*');
+find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, qw(Bugzilla docs));
+push(@files, 'extensions/create.pl', 'docs/makedocs.pl');
</ins><span class="cx"> 
</span><ins>+our @extensions =
+    grep { $_ ne 'extensions/create.pl' &amp;&amp; ! -e &quot;$_/disabled&quot; }
+    glob('extensions/*');
+
+foreach my $extension (@extensions) {
+    find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, $extension);
+}
+
+our @test_files = glob('t/*.t');
+
</ins><span class="cx"> sub isTestingFile {
</span><span class="cx">     my ($file) = @_;
</span><span class="cx">     my $exclude;
</span><span class="lines">@@ -45,10 +44,13 @@
</span><span class="cx">     return undef;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-foreach $currentfile (@files) {
</del><ins>+our (@testitems, @module_files);
+
+foreach my $currentfile (@files) {
</ins><span class="cx">     if (isTestingFile($currentfile)) {
</span><del>-        push(@testitems,$currentfile);
</del><ins>+        push(@testitems, $currentfile);
</ins><span class="cx">     }
</span><ins>+    push(@module_files, $currentfile) if $currentfile =~ /\.pm$/;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtSupportSystemexecpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/Support/Systemexec.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/Support/Systemexec.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/Support/Systemexec.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,14 +1,25 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Support::Systemexec;
</span><del>-require Exporter;
-@ISA = qw(Exporter);
-@EXPORT = qw(system exec);
-@EXPORT_OK = qw();
</del><ins>+
+use 5.10.1;
+use strict;
+use warnings;
+
+use parent qw(Exporter);
+@Support::Systemexec::EXPORT = qw(system exec);
+
</ins><span class="cx"> sub system($$@) {
</span><span class="cx">   1;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> sub exec($$@) {
</span><span class="cx">   1;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> 1;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtSupportTemplatespm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/t/Support/Templates.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/t/Support/Templates.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/t/Support/Templates.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,38 +1,21 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-#                 David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
-#                 Tobias Burnus &lt;burnus@net-b.de&gt;
-#
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> package Support::Templates;
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib 't';
</span><del>-use base qw(Exporter);
-@Support::Templates::EXPORT = 
-         qw(@languages @include_paths $english_default_include_path
-         %include_path @referenced_files %actual_files $num_actual_files);
-use vars qw(@languages @include_paths $english_default_include_path
-            %include_path @referenced_files %actual_files $num_actual_files);
</del><ins>+use parent qw(Exporter);
+@Support::Templates::EXPORT =
+    qw(@languages @include_paths @english_default_include_paths
+       @referenced_files %actual_files $num_actual_files);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><span class="lines">@@ -42,33 +25,32 @@
</span><span class="cx"> use File::Find;
</span><span class="cx"> use File::Spec;
</span><span class="cx"> 
</span><del>-# The available template languages
-@languages = ();
</del><ins>+# English default include paths
+our @english_default_include_paths =
+    (File::Spec-&gt;catdir(bz_locations()-&gt;{'templatedir'}, 'en', 'default'));
</ins><span class="cx"> 
</span><del>-# The colon separated includepath per language
-%include_path = ();
</del><ins>+# And the extensions too
+foreach my $extension (@Support::Files::extensions) {
+    my $dir = File::Spec-&gt;catdir($extension, 'template', 'en', 'default');
+    if (-e $dir) {
+        push @english_default_include_paths, $dir;
+    }
+}
</ins><span class="cx"> 
</span><del>-# All include paths
-@include_paths = ();
-
-# English default include path
-$english_default_include_path =
-    File::Spec-&gt;catdir(bz_locations()-&gt;{'templatedir'}, 'en', 'default');
-
</del><span class="cx"> # Files which are referenced in the cgi files
</span><del>-@referenced_files = ();
</del><ins>+our @referenced_files = ();
</ins><span class="cx"> 
</span><span class="cx"> # All files sorted by include_path
</span><del>-%actual_files = ();
</del><ins>+our %actual_files = ();
</ins><span class="cx"> 
</span><span class="cx"> # total number of actual_files
</span><del>-$num_actual_files = 0;
</del><ins>+our $num_actual_files = 0;
</ins><span class="cx"> 
</span><span class="cx"> # Set the template available languages and include paths
</span><del>-@languages = @{ Bugzilla-&gt;languages };
-@include_paths = @{ template_include_path({ language =&gt; Bugzilla-&gt;languages }) };
</del><ins>+our @languages = @{ Bugzilla-&gt;languages };
+our @include_paths = @{ template_include_path({ language =&gt; Bugzilla-&gt;languages }) };
</ins><span class="cx"> 
</span><del>-my @files;
</del><ins>+our @files;
</ins><span class="cx"> 
</span><span class="cx"> # Local subroutine used with File::Find
</span><span class="cx"> sub find_templates {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtaskgraphjson"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/taskgraph.json (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/taskgraph.json                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/taskgraph.json        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,262 @@
</span><ins>+{
+  &quot;metadata&quot;: {
+    &quot;name&quot;: &quot;Bugzilla Task Graph&quot;,
+    &quot;description&quot;: &quot;A suite of tests to check the quality of the Bugzilla codebase.&quot;,
+    &quot;owner&quot;: &quot;dlawrence@mozilla.com&quot;,
+    &quot;source&quot;: &quot;https://raw.githubusercontent.com/bugzilla/bugzilla/5.0/taskgraph.json&quot;
+  },
+  &quot;tasks&quot;: [
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 3000,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;Basic Sanity Tests&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;sanity&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;San&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    },
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 3000,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;Documentation Build Test&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;docs&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;Doc&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    },
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 7200,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;WebService API Tests (MySQL)&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;webservices&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/httpd_error_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/var/log/httpd/error_log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;API&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    },
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 7200,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;Selenium Tests (MySQL)&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;selenium&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/httpd_error_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/var/log/httpd/error_log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/selenium_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/selenium.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;Sel&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    },
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 7200,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;WebService API Tests (Pg)&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla:pgsql&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;webservices&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/httpd_error_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/var/log/httpd/error_log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;API-Pg&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    },
+    {
+      &quot;reruns&quot;: 3,
+      &quot;maxRunTime&quot;: 7200,
+      &quot;task&quot;: {
+        &quot;expires&quot;: &quot;2018-02-18T17:33:38.806Z&quot;,
+        &quot;metadata&quot;: {
+          &quot;name&quot;: &quot;Selenium Tests (Pg)&quot;
+        },
+        &quot;provisionerId&quot;: &quot;aws-provisioner-v1&quot;,
+        &quot;workerType&quot;: &quot;b2gtest&quot;,
+        &quot;payload&quot;: {
+          &quot;image&quot;: &quot;dklawren/docker-bugzilla:pgsql&quot;,
+          &quot;command&quot;: [&quot;/runtests.sh&quot;],
+          &quot;env&quot;: {
+            &quot;TEST_SUITE&quot;: &quot;selenium&quot;
+          },
+          &quot;artifacts&quot;: {
+            &quot;public/runtests_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/runtests.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/httpd_error_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/var/log/httpd/error_log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            },
+            &quot;public/selenium_log&quot;: {
+              &quot;type&quot;: &quot;file&quot;,
+              &quot;path&quot;: &quot;/selenium.log&quot;,
+              &quot;expires&quot;: &quot;2018-02-17T17:33:38.806Z&quot;
+            }
+          }
+        },
+        &quot;extra&quot;: {
+          &quot;treeherder&quot;: {
+            &quot;symbol&quot;: &quot;Sel-Pg&quot;,
+            &quot;machine&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            },
+            &quot;build&quot;: {
+                &quot;platform&quot;: &quot;linux64&quot;
+            }
+          }
+        }
+      }
+    }
+  ]
+}
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplatehtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><del>-# nothing in this directory is retrievable unless overriden by an .htaccess
</del><ins>+# nothing in this directory is retrievable unless overridden by an .htaccess
</ins><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountauthloginsmallhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login-small.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login-small.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login-small.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,22 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Jacob Steenhagen &lt;jake@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [%# Use the current script name. If an empty name is returned,
</span><span class="cx">   # then we are accessing the home page. %]
</span><span class="cx"> 
</span><ins>+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
+
</ins><span class="cx"> [% login_target = cgi.url(&quot;-relative&quot; =&gt; 1, &quot;-query&quot; =&gt; 1) %]
</span><span class="cx"> [% IF !login_target OR login_target.match(&quot;^token.cgi&quot;) %]
</span><span class="cx">  [% login_target = &quot;index.cgi&quot; %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[% login_target = urlbase _ login_target %]
-
</del><span class="cx"> &lt;li id=&quot;mini_login_container[% qs_suffix %]&quot;&gt;
</span><span class="cx">   &lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;
</span><span class="cx">   [% connector = &quot;?&quot; %]
</span><span class="lines">@@ -40,90 +27,55 @@
</span><span class="cx">   &lt;a id=&quot;login_link[% qs_suffix %]&quot; href=&quot;[% script_url FILTER html %]&quot;
</span><span class="cx">      onclick=&quot;return show_mini_login_form('[% qs_suffix %]')&quot;&gt;Log In&lt;/a&gt;
</span><span class="cx"> 
</span><del>-  [% Hook.process('additional_methods') %]
-  
-  &lt;form action=&quot;[% login_target FILTER html %]&quot; method=&quot;POST&quot; 
</del><ins>+  &lt;form action=&quot;[% login_target FILTER html %]&quot; method=&quot;POST&quot;
</ins><span class="cx">         class=&quot;mini_login bz_default_hidden&quot;
</span><del>-        id=&quot;mini_login[% qs_suffix FILTER html %]&quot;
-        onsubmit=&quot;return check_mini_login_fields( '[% qs_suffix FILTER html %]' );&quot;
-  &gt;
-    &lt;input id=&quot;Bugzilla_login[% qs_suffix FILTER html %]&quot; 
-           class=&quot;bz_login&quot;
-           name=&quot;Bugzilla_login&quot;
-           title=&quot;Login&quot;
-           onfocus=&quot;mini_login_on_focus('[% qs_suffix FILTER js %]')&quot;
-    &gt;
-    &lt;input class=&quot;bz_password&quot; 
-           id=&quot;Bugzilla_password[% qs_suffix FILTER html %]&quot; 
-           name=&quot;Bugzilla_password&quot;
-           type=&quot;password&quot;
-           title=&quot;Password&quot;
-    &gt;
-    &lt;input class=&quot;bz_password bz_default_hidden bz_mini_login_help&quot; type=&quot;text&quot; 
-           id=&quot;Bugzilla_password_dummy[% qs_suffix %]&quot; value=&quot;password&quot;
-           title=&quot;Password&quot;
-           onfocus=&quot;mini_login_on_focus('[% qs_suffix FILTER js %]')&quot;
-    &gt;
</del><ins>+        id=&quot;mini_login[% qs_suffix FILTER html %]&quot;&gt;
+    &lt;input id=&quot;Bugzilla_login[% qs_suffix FILTER html %]&quot; required
+           name=&quot;Bugzilla_login&quot; class=&quot;bz_login&quot;
+      [% IF login_not_email %]
+        placeholder=&quot;Login&quot;
+      [% ELSE %]
+        type=&quot;email&quot; placeholder=&quot;Email Address&quot;
+      [% END %]&gt;
+    &lt;input class=&quot;bz_password&quot; name=&quot;Bugzilla_password&quot; type=&quot;password&quot;
+           id=&quot;Bugzilla_password[% qs_suffix FILTER html %]&quot; required
+           placeholder=&quot;Password&quot;&gt;
</ins><span class="cx">     [% IF Param('rememberlogin') == 'defaulton' ||
</span><del>-          Param('rememberlogin') == 'defaultoff' 
-    %]
</del><ins>+          Param('rememberlogin') == 'defaultoff' %]
</ins><span class="cx">       &lt;input type=&quot;checkbox&quot; id=&quot;Bugzilla_remember[% qs_suffix %]&quot; 
</span><span class="cx">              name=&quot;Bugzilla_remember&quot; value=&quot;on&quot; class=&quot;bz_remember&quot;
</span><del>-                 [%+ &quot;checked&quot; IF Param('rememberlogin') == &quot;defaulton&quot; %]&gt;
</del><ins>+             [%+ &quot;checked&quot; IF Param('rememberlogin') == &quot;defaulton&quot; %]&gt;
</ins><span class="cx">       &lt;label for=&quot;Bugzilla_remember[% qs_suffix %]&quot;&gt;Remember&lt;/label&gt;
</span><span class="cx">     [% END %]
</span><del>-    &lt;input type=&quot;submit&quot; name=&quot;GoAheadAndLogIn&quot; value=&quot;Log in&quot; 
</del><ins>+    &lt;input type=&quot;hidden&quot; name=&quot;Bugzilla_login_token&quot;
+           value=&quot;[% get_login_request_token() FILTER html %]&quot;&gt;
+    &lt;input type=&quot;submit&quot; name=&quot;GoAheadAndLogIn&quot; value=&quot;Log in&quot;
</ins><span class="cx">             id=&quot;log_in[% qs_suffix %]&quot;&gt;
</span><del>-    &lt;script type=&quot;text/javascript&quot;&gt;
-      mini_login_constants = {
-          &quot;login&quot; : &quot;login&quot;,
-          &quot;warning&quot; : &quot;You must set the login and password before logging in.&quot;
-      };
-      [%# We need this event to fire after autocomplete, because it does
-        # something different depending on whether or not there's already
-        # data in the login and password box.
-        # However, autocomplete happens at all sorts of different times in
-        # different browsers (before or after onDOMReady, before or after
-        # window.onload, in almost all combinations you can imagine).
-        # The only good solution I found is to time the event 200 
-        # milliseconds after window.onload for WebKit (doing it immediately 
-        # at onload works in Chrome but not in Safari, but I can't detect 
-        # them separately using YUI), and right after onDOMReady in Gecko. 
-        # The WebKit solution is also fairly guaranteed to work on any 
-        # browser (it's just strange, since the fields only populate 200 ms
-        # after the page loads), so it's the default. IE doesn't even
-        # recognize our forms as login forms, so I made it use the Gecko
-        # method also (since it's nicer visually). Opera never autocompletes
-        # forms without user interaction, so it also uses the Gecko method.
-        #%]
-      if (YAHOO.env.ua.gecko || YAHOO.env.ua.ie || YAHOO.env.ua.opera) {
-          YAHOO.util.Event.onDOMReady(function() {
-              init_mini_login_form('[% qs_suffix FILTER html %]');
-          });
-      }
-      else {
-          YAHOO.util.Event.on(window, 'load', function () {
-              window.setTimeout(function() {
-                  init_mini_login_form('[% qs_suffix FILTER html %]');
-              }, 200);
-          });
-    }
-    &lt;/script&gt;
</del><span class="cx">     &lt;a href=&quot;#&quot; onclick=&quot;return hide_mini_login_form('[% qs_suffix %]')&quot;&gt;[x]&lt;/a&gt;
</span><span class="cx">   &lt;/form&gt;
</span><span class="cx"> &lt;/li&gt;
</span><del>-&lt;li id=&quot;forgot_container[% qs_suffix %]&quot;&gt;
-  &lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;
-  &lt;a id=&quot;forgot_link[% qs_suffix %]&quot; href=&quot;[% script_url FILTER html %]#forgot&quot;
-     onclick=&quot;return show_forgot_form('[% qs_suffix %]')&quot;&gt;Forgot Password&lt;/a&gt;
-  &lt;form action=&quot;token.cgi&quot; method=&quot;post&quot; id=&quot;forgot_form[% qs_suffix %]&quot;
-        class=&quot;mini_forgot bz_default_hidden&quot;&gt;
-    &lt;label for=&quot;login[% qs_suffix FILTER html %]&quot;&gt;Login:&lt;/label&gt;
-    &lt;input type=&quot;text&quot; name=&quot;loginname&quot; size=&quot;20&quot; id=&quot;login[% qs_suffix FILTER html %]&quot;&gt;
-    &lt;input id=&quot;forgot_button[% qs_suffix %]&quot; value=&quot;Reset Password&quot; 
-           type=&quot;submit&quot;&gt;
-    &lt;input type=&quot;hidden&quot; name=&quot;a&quot; value=&quot;reqpw&quot;&gt;
-    &lt;input type=&quot;hidden&quot; id=&quot;token[% qs_suffix FILTER html %]&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['reqpw']) FILTER html %]&quot;&gt;
-    &lt;a href=&quot;#&quot; onclick=&quot;return hide_forgot_form('[% qs_suffix %]')&quot;&gt;[x]&lt;/a&gt;
-  &lt;/form&gt;
-&lt;/li&gt;
</del><ins>+
+[% Hook.process('additional_methods') %]
+
+[% IF user.authorizer.can_change_password %]
+  &lt;li id=&quot;forgot_container[% qs_suffix %]&quot;&gt;
+    &lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;
+    &lt;a id=&quot;forgot_link[% qs_suffix %]&quot; href=&quot;[% script_url FILTER html %]#forgot&quot;
+       onclick=&quot;return show_forgot_form('[% qs_suffix %]')&quot;&gt;Forgot Password&lt;/a&gt;
+    &lt;form action=&quot;token.cgi&quot; method=&quot;post&quot; id=&quot;forgot_form[% qs_suffix %]&quot;
+          class=&quot;mini_forgot bz_default_hidden&quot;&gt;
+      &lt;label for=&quot;login[% qs_suffix FILTER html %]&quot;&gt;Login:&lt;/label&gt;
+      &lt;input name=&quot;loginname&quot; size=&quot;20&quot; id=&quot;login[% qs_suffix FILTER html %]&quot; required
+        [% IF login_not_email %]
+          placeholder=&quot;Your Login&quot;
+        [% ELSE %]
+          type=&quot;email&quot; placeholder=&quot;Your Email Address&quot;
+        [% END %]&gt;
+      &lt;input id=&quot;forgot_button[% qs_suffix %]&quot; value=&quot;Reset Password&quot; type=&quot;submit&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;a&quot; value=&quot;reqpw&quot;&gt;
+      &lt;input type=&quot;hidden&quot; id=&quot;token[% qs_suffix FILTER html %]&quot; name=&quot;token&quot;
+             value=&quot;[% issue_hash_token(['reqpw']) FILTER html %]&quot;&gt;
+      &lt;a href=&quot;#&quot; onclick=&quot;return hide_forgot_form('[% qs_suffix %]')&quot;&gt;[x]&lt;/a&gt;
+    &lt;/form&gt;
+  &lt;/li&gt;
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountauthloginhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/auth/login.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Toms Baugis &lt;toms@myrealbox.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,34 +13,40 @@
</span><span class="cx"> [% IF !target %]
</span><span class="cx">  [% target = &quot;index.cgi&quot; %]
</span><span class="cx"> [% END %]
</span><del>-  
-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-  title = &quot;Log in to $terms.Bugzilla&quot;,
-  onload = &quot;document.forms['login'].Bugzilla_login.focus()&quot;
</del><ins>+  title = &quot;Log in to $terms.Bugzilla&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  I need a legitimate login and password to continue.
</del><ins>+  [% terms.Bugzilla %] needs a legitimate login and password to continue.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;form name=&quot;login&quot; action=&quot;[% target FILTER html %]&quot; method=&quot;POST&quot;
</del><ins>+&lt;form name=&quot;login&quot; action=&quot;[% urlbase FILTER html %][% target FILTER html %]&quot; method=&quot;POST&quot;
</ins><span class="cx"> [%- IF Bugzilla.cgi.param(&quot;data&quot;) %] enctype=&quot;multipart/form-data&quot;[% END %]&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;Bugzilla_login&quot;&gt;Login:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;
+        &lt;label for=&quot;Bugzilla_login&quot;&gt;
+          [% IF login_not_email %]
+            Login:
+          [% ELSE %]
+            Your Email Address:
+          [% END %]
+        &lt;/label&gt;
+      &lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input size=&quot;35&quot; id=&quot;Bugzilla_login&quot; name=&quot;Bugzilla_login&quot;&gt;
</del><ins>+        &lt;input size=&quot;35&quot; id=&quot;Bugzilla_login&quot; name=&quot;Bugzilla_login&quot;
+               [%- ' type=&quot;email&quot;' UNLESS login_not_email %] autofocus required&gt;
</ins><span class="cx">         [% Param('emailsuffix') FILTER html %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;Bugzilla_password&quot;&gt;Password:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;Bugzilla_password&quot;&gt;Password:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;password&quot; size=&quot;35&quot; id=&quot;Bugzilla_password&quot; name=&quot;Bugzilla_password&quot;&gt;
</del><ins>+        &lt;input type=&quot;password&quot; size=&quot;35&quot; id=&quot;Bugzilla_password&quot; name=&quot;Bugzilla_password&quot; required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -83,8 +76,10 @@
</span><span class="cx">   [% PROCESS &quot;global/hidden-fields.html.tmpl&quot;
</span><span class="cx">      exclude=&quot;^Bugzilla_(login|password|restrictlogin)$&quot; %]
</span><span class="cx"> 
</span><ins>+  &lt;input type=&quot;hidden&quot; name=&quot;Bugzilla_login_token&quot;
+         value=&quot;[% get_login_request_token() FILTER html %]&quot;&gt;
</ins><span class="cx">   &lt;input type=&quot;submit&quot; name=&quot;GoAheadAndLogIn&quot; value=&quot;Log in&quot; id=&quot;log_in&quot;&gt;
</span><del>-  
</del><ins>+
</ins><span class="cx">   &lt;p&gt;
</span><span class="cx">     (Note: you should make sure cookies are enabled for this site. 
</span><span class="cx">     Otherwise, you will be required to log in frequently.)
</span><span class="lines">@@ -103,6 +98,14 @@
</span><span class="cx">     &lt;p&gt;
</span><span class="cx">       If you don't have a [% terms.Bugzilla %] account, you can
</span><span class="cx">       &lt;a href=&quot;createaccount.cgi&quot;&gt;create a new account&lt;/a&gt;.
</span><ins>+      [% IF Param(&quot;requirelogin&quot;) %]
+        A user account is required because this Bugzilla
+        installation is only accessible to authenticated users.
+      [% ELSIF target.match(&quot;_bug\.cgi$&quot;) %]
+        A user account is required to file a new [% terms.bug %] or to comment
+        into existing ones so that you can be contacted if more information is
+        needed.
+      [% END %]
</ins><span class="cx">     &lt;/p&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -114,7 +117,7 @@
</span><span class="cx">       If you have an account, but have forgotten your password,
</span><span class="cx">       enter your login name below and submit a request
</span><span class="cx">       to change your password.&lt;br&gt;
</span><del>-      &lt;input size=&quot;35&quot; name=&quot;loginname&quot;&gt;
</del><ins>+      &lt;input size=&quot;35&quot; name=&quot;loginname&quot; required&gt;
</ins><span class="cx">       &lt;input type=&quot;hidden&quot; id=&quot;token&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['reqpw']) FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;input type=&quot;submit&quot; id=&quot;request&quot; value=&quot;Reset Password&quot;&gt;
</span><span class="cx">     &lt;/form&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountcanceltokentxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/cancel-token.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/cancel-token.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/cancel-token.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,17 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     John Vandenberg &lt;zeroj@null.net&gt;
-  #                     Tobias Burnus &lt;burnus@net-b.de&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% emailaddress %]
</span><span class="cx"> Subject: [% PROCESS subject %]
</span><span class="cx"> X-Bugzilla-Type: admin
</span><span class="cx"> 
</span><del>-A request was canceled from [% remoteaddress %].
</del><ins>+[% PROCESS subject %] from [% remoteaddress %].
</ins><span class="cx"> 
</span><span class="cx"> If you did not request this, it could be either an honest
</span><span class="cx"> mistake or someone attempting to break into your [% terms.Bugzilla %] account.
</span><span class="lines">@@ -96,9 +81,9 @@
</span><span class="cx">   [% ELSE %]
</span><span class="cx">     [%# Give sensible error if the cancel-token function is used incorrectly.
</span><span class="cx">       #%]
</span><del>-    You are using [% terms.Bugzilla %]'s cancel-token function incorrectly. You
</del><ins>+    You are using Bugzilla's cancel-token function incorrectly. You
</ins><span class="cx">     passed in the string '[% cancelaction %]'. The correct use is to pass
</span><del>-    in a tag, and define that tag in the file cancel-token.txt.tmpl.
</del><ins>+    in a tag, and define that tag in the file &lt;kbd&gt;cancel-token.txt.tmpl&lt;/kbd&gt;.
</ins><span class="cx"> 
</span><span class="cx">     If you are a [% terms.Bugzilla %] end-user seeing this message, please forward this
</span><span class="cx">     email to [% Param('maintainer') %].
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountcreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE
</span><span class="lines">@@ -25,15 +13,9 @@
</span><span class="cx">   # Param(&quot;emailsuffix&quot;) is used to pre-fill the email field.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[% title = BLOCK %]
-  Create a new [% terms.Bugzilla %] account
-[% END %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-           title = title
-           onload = &quot;document.forms['account_creation_form'].login.focus();&quot; %]
</del><ins>+           title = &quot;Create a new $terms.Bugzilla account&quot;
+%]
</ins><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   To create a [% terms.Bugzilla %] account, all you need to do is to enter
</span><span class="lines">@@ -46,15 +28,36 @@
</span><span class="cx">   You will receive an email at this address to confirm the creation of your
</span><span class="cx">   account. &lt;b&gt;You will not be able to log in until you receive the email.&lt;/b&gt;
</span><span class="cx">   If it doesn't arrive within a reasonable amount of time, you may contact
</span><del>-  the maintainer of this [% terms.Bugzilla %] installation
</del><ins>+  the maintainer of this Bugzilla installation
</ins><span class="cx">   at &lt;a href=&quot;mailto:[% Param(&quot;maintainer&quot;) %]&quot;&gt;[% Param(&quot;maintainer&quot;) %]&lt;/a&gt;.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><ins>+[% IF Param('allowemailchange') %]
+&lt;p&gt;
+  If you already have an account and want to change your
+  [% IF Param('emailsuffix') == '' %]
+    email address,
+  [% ELSE %]
+    login name,
+  [% END %]
+  you can change it from the Preferences page after logging in.
+&lt;/p&gt;
+[% END %]
+
+&lt;p&gt;
+  A user account is required to report new [% terms.bugs %] or to comment into
+  existing ones, as you may be contacted for more information if needed.
+  This also lets other users clearly identify who is the author of comments
+  or changes made into [% terms.bugs %]. &lt;b&gt;Note that your email address will
+  &lt;em&gt;never&lt;/em&gt; be displayed to logged out users. Only registered users will be
+  able to see it.&lt;/b&gt;
+&lt;/p&gt;
+
</ins><span class="cx"> [% IF Param('createemailregexp') == '.*' &amp;&amp; Param('emailsuffix') == '' %]
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   &lt;b&gt;PRIVACY NOTICE:&lt;/b&gt; [% terms.Bugzilla %] is an open [% terms.bug %]
</span><span class="cx">   tracking system. Activity on most [% terms.bugs %], including email
</span><del>-  addresses, will be visible to the public. We &lt;b&gt;recommend&lt;/b&gt; using a
</del><ins>+  addresses, will be visible to registered users. We &lt;b&gt;recommend&lt;/b&gt; using a
</ins><span class="cx">   secondary account or free web email service (such as Gmail, Yahoo,
</span><span class="cx">   Hotmail, or similar) to avoid receiving spam at your primary email address.
</span><span class="cx"> &lt;/p&gt;
</span><span class="lines">@@ -61,18 +64,16 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;account_creation_form&quot; method=&quot;get&quot; action=&quot;createaccount.cgi&quot;&gt;
</span><del>-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;td align=&quot;right&quot;&gt;
-        &lt;b&gt;Email address:&lt;/b&gt;
-      &lt;/td&gt;
-      &lt;td&gt;
-        &lt;input size=&quot;35&quot; id=&quot;login&quot; name=&quot;login&quot;&gt;
-        [% Param('emailsuffix') FILTER html %]
-      &lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;/table&gt;
-  &lt;br&gt;
</del><ins>+  &lt;span class=&quot;label&quot;&gt;
+    [% IF Param('emailsuffix') %]
+      Login:
+    [% ELSE %]
+      Email address:
+    [% END %]
+  &lt;/span&gt;
+  &lt;input size=&quot;35&quot; id=&quot;login&quot; name=&quot;login&quot; autofocus
+         [%- ' type=&quot;email&quot;' UNLESS Param('emailsuffix') %] required&gt;
+  [% Param('emailsuffix') FILTER html %]
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; id=&quot;token&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['create_account']) FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;send&quot; value=&quot;Send&quot;&gt;
</span><span class="cx"> &lt;/form&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountcreatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/created.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/created.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/created.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +10,6 @@
</span><span class="cx">   # login: string. The user's Bugzilla login email address.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Request for new user account '[% login FILTER html %]' submitted
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountemailchangenewtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-new.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-new.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-new.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,18 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     John Vandenberg &lt;zeroj@null.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><del>-To: [% emailaddress %]
</del><ins>+To: [% newemailaddress %]
</ins><span class="cx"> Subject: [% terms.Bugzilla %] Change Email Address Request
</span><span class="cx"> X-Bugzilla-Type: admin
</span><span class="cx"> 
</span><span class="cx"> [%+ terms.Bugzilla %] has received a request to change the email address
</span><del>-for the account [% oldemailaddress %] to your address.
</del><ins>+for the account [% user.email %] to your address.
</ins><span class="cx"> 
</span><span class="cx"> To confirm the change, visit the following link:
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountemailchangeoldtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-old.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-old.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/email/change-old.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     John Vandenberg &lt;zeroj@null.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # emailaddress: string. The user's old Bugzilla login email address.
-  # newemailaddress: string. The user's new Bugzilla login email address.
-  # token: string. The token associated with this change.
-  #%]
</del><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><del>-To: [% emailaddress %]
</del><ins>+To: [% user.email %]
</ins><span class="cx"> Subject: [% terms.Bugzilla %] Change Email Address Request
</span><span class="cx"> Importance: High
</span><span class="cx"> X-MSMail-Priority: High
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountemailconfirmnewhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm-new.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm-new.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm-new.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,8 +15,10 @@
</span><span class="cx"> [% title = BLOCK %]Create a new user account for '[% email FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS &quot;global/header.html.tmpl&quot;
</span><span class="cx">            title = title
</span><del>-           onload = &quot;document.forms['confirm_account_form'].realname.focus();&quot; %]
</del><ins>+%]
</ins><span class="cx"> 
</span><ins>+[% password_complexity = Param('password_complexity') %]
+
</ins><span class="cx"> &lt;p&gt;
</span><span class="cx">   To create your account, you must enter a password in the form below.
</span><span class="cx">   Your email address and Real Name (if provided) will be shown with
</span><span class="lines">@@ -35,26 +30,34 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;a&quot; value=&quot;confirm_new_account&quot;&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Email Address:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Email Address:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;[% email FILTER html %]&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;small&gt;&lt;i&gt;(OPTIONAL)&lt;/i&gt;&lt;/small&gt; &lt;label for=&quot;realname&quot;&gt;Real Name&lt;/label&gt;:&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;realname&quot; name=&quot;realname&quot; value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;small&gt;&lt;i&gt;(OPTIONAL)&lt;/i&gt;&lt;/small&gt; &lt;label for=&quot;realname&quot;&gt;Real Name&lt;/label&gt;:&lt;/th&gt;
+      &lt;td&gt;&lt;input id=&quot;realname&quot; name=&quot;realname&quot; autofocus&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;passwd1&quot;&gt;Type your password&lt;/label&gt;:&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;passwd1&quot;&gt;Type your password&lt;/label&gt;:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;password&quot; id=&quot;passwd1&quot; name=&quot;passwd1&quot; value=&quot;&quot;&gt;
-        (minimum [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters)
</del><ins>+        &lt;input type=&quot;password&quot; id=&quot;passwd1&quot; name=&quot;passwd1&quot; value=&quot;&quot; required&gt;
+        (Password should be a minimum of [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters long
+        [% IF password_complexity == &quot;mixed_letters&quot; %]
+          and must contain at least one UPPER and one lowercase letter
+        [% ELSIF password_complexity == &quot;letters_numbers&quot; %]
+          and must contain at least one UPPER and one lowercase letter and a number
+        [% ELSIF password_complexity == &quot;letters_numbers_specialchars&quot; %] 
+          and must contain at least one letter, a number and a special character
+        [% END ~%]
+        .)
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;passwd2&quot;&gt;Confirm your password&lt;/label&gt;:&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;password&quot; id=&quot;passwd2&quot; name=&quot;passwd2&quot; value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;passwd2&quot;&gt;Confirm your password&lt;/label&gt;:&lt;/th&gt;
+      &lt;td&gt;&lt;input type=&quot;password&quot; id=&quot;passwd2&quot; name=&quot;passwd2&quot; value=&quot;&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&amp;nbsp;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input type=&quot;submit&quot; id=&quot;confirm&quot; value=&quot;Create&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="lines">@@ -62,7 +65,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   This account will not be created if this form is not completed by
</span><del>-  &lt;u&gt;[% expiration_ts FILTER time(&quot;%B %e, %Y at %H:%M %Z&quot;) %]&lt;/u&gt;.
</del><ins>+  &lt;b&gt;[% expiration_ts FILTER time(&quot;%B %e, %Y at %H:%M %Z&quot;) %]&lt;/b&gt;.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountemailconfirmhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/email/confirm.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     John Vandenberg &lt;zeroj@null.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,7 +14,7 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  To change your email address, please enter the old email address:
</del><ins>+  To change your email address, please enter your current password:
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;token.cgi&quot;&gt;
</span><span class="lines">@@ -34,11 +22,11 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;a&quot; value=&quot;chgem&quot;&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Old Email Address:&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;36&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;Password:&lt;/th&gt;
+      &lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; size=&quot;36&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&amp;nbsp;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input type=&quot;submit&quot; id=&quot;confirm&quot; value=&quot;Submit&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountemailrequestnewtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/email/request-new.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/email/request-new.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/email/request-new.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -19,8 +12,6 @@
</span><span class="cx">   # email: email address of the new account.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% email %]
</span><span class="cx"> Subject: [% terms.Bugzilla %]: confirm account creation
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountpasswordforgottenpasswordtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/password/forgotten-password.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/password/forgotten-password.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/password/forgotten-password.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     John Vandenberg &lt;zeroj@null.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% emailaddress %]
</span><span class="cx"> Subject:  [% terms.Bugzilla %] Change Password Request
</span><span class="lines">@@ -26,8 +12,10 @@
</span><span class="cx"> X-Bugzilla-Type: admin
</span><span class="cx"> 
</span><span class="cx"> You have (or someone impersonating you has) requested to change your 
</span><del>-[%+ terms.Bugzilla %] password. To complete the change, visit the following link:
</del><ins>+[%+ terms.Bugzilla %] password. The request originated from [% ip_addr %].
</ins><span class="cx"> 
</span><ins>+To complete the change, visit the following link:
+
</ins><span class="cx"> [%+ urlbase %]token.cgi?t=[% token FILTER uri %]&amp;a=cfmpw
</span><span class="cx"> 
</span><span class="cx"> If you are not the person who made this request, or you wish to cancel
</span><span class="lines">@@ -38,3 +26,7 @@
</span><span class="cx"> If you do nothing, the request will lapse after [% constants.MAX_TOKEN_AGE %] days
</span><span class="cx"> (on [% expiration_ts FILTER time(&quot;%B %e, %Y at %H:%M %Z&quot;, timezone) %]) or when you
</span><span class="cx"> log in successfully.
</span><ins>+
+If you think someone tried to compromise your account, please inform
+[%+ Param('maintainer') %] with the IP address reported above
+and the exact time when you got this email.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountpasswordsetforgottenpasswordhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/password/set-forgotten-password.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/password/set-forgotten-password.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/password/set-forgotten-password.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,27 @@
</span><del>- [%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% title = &quot;Change Password&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl %]
</span><del>-
</del><ins>+[% password_complexity = Param('password_complexity') %]
</ins><span class="cx"> &lt;p&gt;
</span><del>-  To change your password, enter a new password twice:
</del><ins>+  To change your password, enter a new password twice:&lt;br&gt;
</ins><span class="cx"> &lt;/p&gt;
</span><ins>+&lt;ul&gt;
+  &lt;li&gt;Password must be at least [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters long.&lt;/li&gt;
+  [% IF password_complexity == &quot;mixed_letters&quot; %] 
+  &lt;li&gt;Password must contain at least one UPPER and one lowercase letter.&lt;/li&gt;
+  [% ELSIF password_complexity == &quot;letters_numbers&quot; %] 
+  &lt;li&gt;Password must contain at least one UPPER and one lower case letter and a number.&lt;/li&gt;
+  [% ELSIF password_complexity == &quot;letters_numbers_specialchars&quot; %] 
+  &lt;li&gt;Password must contain at least one letter, a number and a special character.&lt;/li&gt;
+  [% END %]
+&lt;/ul&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;token.cgi&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;t&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="lines">@@ -30,22 +28,21 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;a&quot; value=&quot;chgpw&quot;&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;New Password:&lt;/th&gt;
</del><ins>+      &lt;th&gt;New password:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;password&quot; name=&quot;password&quot;&gt;
-        (minimum [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters)
</del><ins>+        &lt;input type=&quot;password&quot; name=&quot;password&quot; required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;New Password Again:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Confirm new password:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;password&quot; name=&quot;matchpassword&quot;&gt;
</del><ins>+        &lt;input type=&quot;password&quot; name=&quot;matchpassword&quot; required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><del>-    
</del><ins>+     
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&amp;nbsp;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Submit&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsaccounthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/account.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/account.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/account.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,39 +13,43 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;table&gt;
</span><del>-  &lt;tr&gt;
-    &lt;td colspan=&quot;3&quot;&gt;
-      Please enter your existing password to confirm account changes.
-    &lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;th align=&quot;right&quot;&gt;Password:&lt;/th&gt;
-    &lt;td&gt;
-      &lt;input type=&quot;hidden&quot; name=&quot;old_login&quot; value=&quot;[% user.login FILTER html %]&quot;&gt;
-      &lt;input type=&quot;password&quot; name=&quot;old_password&quot;&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;              
-  &lt;tr&gt;
-    &lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+  [% IF user.authorizer.can_change_password
+        || (user.authorizer.can_change_email &amp;&amp; Param('allowemailchange')) %]
+    &lt;tr&gt;
+      &lt;td colspan=&quot;3&quot;&gt;
+        Please enter your existing password to confirm account changes.
+      &lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Password:&lt;/th&gt;
+      &lt;td&gt;
+        &lt;input type=&quot;hidden&quot; name=&quot;old_login&quot; value=&quot;[% user.login FILTER html %]&quot;&gt;
+        &lt;input type=&quot;password&quot; name=&quot;old_password&quot;&gt;
+      &lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+
</ins><span class="cx">   [% IF user.authorizer.can_change_password %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;New password:&lt;/th&gt;
</del><ins>+      &lt;th&gt;New password:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;password&quot; name=&quot;new_password1&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-    &lt;/tr&gt;              
</del><ins>+    &lt;/tr&gt;
</ins><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Confirm new password:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Confirm new password:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;password&quot; name=&quot;new_password2&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-    &lt;/tr&gt;              
</del><ins>+    &lt;/tr&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;right&quot;&gt;Your real name (optional, but encouraged):&lt;/th&gt;
</del><ins>+    &lt;th&gt;Your real name (optional, but encouraged):&lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;
</span><span class="cx">       &lt;input size=&quot;35&quot; name=&quot;realname&quot; value=&quot;[% realname FILTER html %]&quot;&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -67,28 +59,35 @@
</span><span class="cx">     [% IF login_change_date %]
</span><span class="cx">       [% IF new_login_name %]
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;th align=&quot;right&quot;&gt;Pending email address:&lt;/th&gt;
</del><ins>+          &lt;th&gt;Pending email address:&lt;/th&gt;
</ins><span class="cx">           &lt;td&gt;[% new_login_name FILTER html %]&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;th align=&quot;right&quot;&gt;Change request expires:&lt;/th&gt;
</del><ins>+          &lt;th&gt;Change request expires:&lt;/th&gt;
</ins><span class="cx">           &lt;td&gt;[% login_change_date FILTER time %]&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">       [% ELSE %]
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;th align=&quot;right&quot;&gt;Confirmed email address:&lt;/th&gt;
</del><ins>+          &lt;th&gt;Confirmed email address:&lt;/th&gt;
</ins><span class="cx">           &lt;td&gt;[% user.login FILTER html %]&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;th align=&quot;right&quot;&gt;Completion date:&lt;/th&gt;
</del><ins>+          &lt;th&gt;Completion date:&lt;/th&gt;
</ins><span class="cx">           &lt;td&gt;[% login_change_date FILTER time %]&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     [% ELSE %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot;&gt;New email address:&lt;/th&gt;
</del><ins>+        &lt;th&gt;
+          [% IF Param('emailsuffix') %]
+            New login:
+          [% ELSE %]
+            New email address:
+          [% END %]
+        &lt;/th&gt;
</ins><span class="cx">         &lt;td&gt;
</span><del>-          &lt;input size=&quot;35&quot; name=&quot;new_login_name&quot;&gt;
</del><ins>+          &lt;input size=&quot;35&quot; id=&quot;new_login_name&quot; name=&quot;new_login_name&quot;
+                 [%- ' type=&quot;email&quot;' UNLESS Param('emailsuffix') %]&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsapikeyhtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/apikey.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/apikey.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/apikey.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,84 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # api_keys: array. Array of api keys this user has.
+  # any_revoked: boolean. True is any keys have been revoked.
+  #%]
+
+&lt;p&gt;
+  API keys are used to authenticate WebService API calls. You can create more than
+  one API key if required. Each API key has an optional description which can help
+  you record what each key is used for. Documentation on how to log in is
+  available from
+  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/core/v1/general.html#authentication&quot;&gt;here&lt;/a&gt;.
+&lt;/p&gt;
+
+&lt;h3&gt;Existing API keys&lt;/h3&gt;
+
+&lt;p&gt;You can update the description, and revoke or unrevoke existing API keys
+here.&lt;/p&gt;
+
+&lt;table id=&quot;email_prefs&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;API key&lt;/th&gt;
+    &lt;th&gt;Description (optional)&lt;/th&gt;
+    &lt;th&gt;Last used&lt;/th&gt;
+    &lt;th&gt;Revoked&lt;/th&gt;
+  &lt;/tr&gt;
+
+  [% FOREACH api_key IN api_keys %]
+    &lt;tr[% IF api_key.revoked %] class=&quot;apikey_revoked&quot;[% END %]&gt;
+      &lt;td&gt;[% api_key.api_key FILTER html %]&lt;/td&gt;
+      &lt;td&gt;
+        &lt;input name=&quot;description_[% api_key.id FILTER html %]&quot;
+          id=&quot;description_[% api_key.id FILTER html %]&quot;
+          value=&quot;[% api_key.description FILTER html %]&quot;&gt;
+      &lt;/td&gt;
+      [% IF api_key.last_used %]
+        &lt;td&gt;[% api_key.last_used FILTER time %]&lt;/td&gt;
+      [% ELSE %]
+        &lt;td class=&quot;center&quot;&gt;&lt;i&gt;never used&lt;/i&gt;&lt;/td&gt;
+      [% END %]
+      &lt;td class=&quot;center&quot;&gt;
+        &lt;input type=&quot;checkbox&quot; value=&quot;1&quot;
+          name=&quot;revoked_[% api_key.id FILTER html %]&quot;
+          id=&quot;revoked_[% api_key.id FILTER html %]&quot;
+          [% IF api_key.revoked %] checked=&quot;checked&quot; [% END %]&gt;
+      &lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+  [% UNLESS api_keys.size %]
+    &lt;tr&gt;&lt;td colspan=&quot;4&quot;&gt;You don't have any API keys.&lt;/td&gt;&lt;/tr&gt;
+  [% END %]
+&lt;/table&gt;
+
+[% IF any_revoked %]
+  &lt;a id=&quot;apikey_revoked_controller&quot; class=&quot;bz_default_hidden&quot;
+     href=&quot;javascript:TUI_toggle_class('apikey_revoked')&quot;&gt;Hide Revoked Keys&lt;/a&gt;
+  [%# Show the link if the browser supports JS %]
+  &lt;script type=&quot;text/javascript&quot;&gt;
+    TUI_hide_default('apikey_revoked');
+    TUI_alternates['apikey_revoked'] = 'Show Revoked Keys';
+    YAHOO.util.Dom.removeClass('apikey_revoked_controller',
+                               'bz_default_hidden');
+  &lt;/script&gt;
+[% END %]
+
+&lt;h3&gt;New API key&lt;/h3&gt;
+
+&lt;p&gt;You can generate a new API key by ticking the check box below and optionally
+providing a description for the API key. The API key will be randomly
+generated for you.&lt;/p&gt;
+
+&lt;p&gt;
+  &lt;input type=&quot;checkbox&quot; name=&quot;new_key&quot; id=&quot;new_key&quot;&gt;
+  Generate a new API key with optional description
+  &lt;input name=&quot;new_description&quot; id=&quot;new_description&quot;&gt;
+&lt;/p&gt;
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsemailhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/email.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/email.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/email.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -33,8 +19,23 @@
</span><span class="cx">   #               receiving mail for that reason when in that role.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><ins>+[%# If the user's bugmail has been disabled by admins, show a warning. %]
+[% IF user.email_disabled %]
+  &lt;div class=&quot;warningmessages&quot;&gt;
+    Your [% terms.bug %]mail has been disabled by the [% terms.Bugzilla %]
+    administrator.  Please contact [% Param('maintainer') %] to enable
+    [%+ terms.bug %]mails.
+  &lt;/div&gt;
+[% END %]
</ins><span class="cx"> 
</span><ins>+[% IF user.authorizer.can_change_email &amp;&amp; Param('allowemailchange') %]
+  &lt;p&gt;
+    If you want to change your e-mail address
+    &lt;b&gt;[% user.email FILTER html %]&lt;/b&gt; to which [% terms.Bugzilla %] sends
+    notifications, click the &quot;Account Information&quot; tab above.
+  &lt;/p&gt;
+[% END %]
+
</ins><span class="cx"> &lt;p&gt;
</span><span class="cx">   If you don't like getting a notification for &quot;trivial&quot;
</span><span class="cx">   changes to [% terms.bugs %], you can use the settings below to
</span><span class="lines">@@ -46,9 +47,12 @@
</span><span class="cx"> function SetCheckboxes(setting) {
</span><span class="cx">   for (var count = 0; count &lt; document.userprefsform.elements.length; count++) {
</span><span class="cx">     var theinput = document.userprefsform.elements[count];
</span><del>-    if (theinput.type == &quot;checkbox&quot; &amp;&amp; !theinput.disabled) {
</del><ins>+    if (theinput.type == &quot;checkbox&quot;
+        &amp;&amp; !theinput.disabled
+        &amp;&amp; !theinput.name.match(&quot;remove_ignored_bug&quot;))
+    {
</ins><span class="cx">       if (theinput.name.match(&quot;neg&quot;)) {
</span><del>-        theinput.checked = false;
</del><ins>+        theinput.checked = !setting;
</ins><span class="cx">       }
</span><span class="cx">       else {
</span><span class="cx">         theinput.checked = setting;
</span><span class="lines">@@ -56,62 +60,37 @@
</span><span class="cx">     }
</span><span class="cx">   }
</span><span class="cx"> }
</span><del>-
-document.write('&lt;input type=&quot;button&quot; value=&quot;Enable All Mail&quot; onclick=&quot;SetCheckboxes(true); return false;&quot;&gt;\n');
-document.write('&lt;input type=&quot;button&quot; value=&quot;Disable All Mail&quot; onclick=&quot;SetCheckboxes(false); return false;&quot;&gt;\n');
</del><span class="cx"> // --&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><ins>+&lt;input type=&quot;button&quot; value=&quot;Enable All Mail&quot; onclick=&quot;SetCheckboxes(true); return false;&quot;&gt;
+&lt;input type=&quot;button&quot; value=&quot;Disable All Mail&quot; onclick=&quot;SetCheckboxes(false); return false;&quot;&gt;
+
</ins><span class="cx"> &lt;hr&gt;
</span><span class="cx"> 
</span><del>-&lt;table&gt;
-  &lt;tr&gt;
-    &lt;td colspan=&quot;2&quot;&gt;
-      &lt;b&gt;Global options:&lt;/b&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+&lt;h3&gt;Global options&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-  &lt;tr&gt;
-    &lt;td width=&quot;150&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;
-      [% prefname = &quot;email-$constants.REL_ANY-$constants.EVT_FLAG_REQUESTED&quot; %]
-      &lt;input type=&quot;checkbox&quot; name=&quot;[% prefname %]&quot; id=&quot;[% prefname %]&quot; 
-        value=&quot;1&quot;
-        [% &quot; checked&quot;
-           IF user.mail_settings.${constants.REL_ANY}.${constants.EVT_FLAG_REQUESTED} %]&gt;
-      &lt;label for=&quot;[% prefname %]&quot;&gt;Email me when someone asks me to set a flag&lt;/label&gt;
-      &lt;br&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td width=&quot;150&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;
-      [% prefname = &quot;email-$constants.REL_ANY-$constants.EVT_REQUESTED_FLAG&quot; %]
-      &lt;input type=&quot;checkbox&quot; name=&quot;[% prefname %]&quot; id=&quot;[% prefname %]&quot; 
-        value=&quot;1&quot;
-        [% &quot; checked&quot;
-           IF user.mail_settings.${constants.REL_ANY}.${constants.EVT_REQUESTED_FLAG} %]&gt;
-      &lt;label for=&quot;[% prefname %]&quot;&gt;Email me when someone sets a flag I asked for&lt;/label&gt;
-      &lt;br&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+[% prefname = &quot;email-$constants.REL_ANY-$constants.EVT_FLAG_REQUESTED&quot; %]
+&lt;input type=&quot;checkbox&quot; name=&quot;[% prefname %]&quot; id=&quot;[% prefname %]&quot; value=&quot;1&quot;
+       [%+ 'checked=&quot;checked&quot;' IF user.mail_settings.${constants.REL_ANY}.${constants.EVT_FLAG_REQUESTED} %]&gt;
+&lt;label for=&quot;[% prefname %]&quot;&gt;Email me when someone asks me to set a flag&lt;/label&gt;
+&lt;br&gt;
+[% prefname = &quot;email-$constants.REL_ANY-$constants.EVT_REQUESTED_FLAG&quot; %]
+&lt;input type=&quot;checkbox&quot; name=&quot;[% prefname %]&quot; id=&quot;[% prefname %]&quot; value=&quot;1&quot;
+       [%+ 'checked=&quot;checked&quot;' IF user.mail_settings.${constants.REL_ANY}.${constants.EVT_REQUESTED_FLAG} %]&gt;
+&lt;label for=&quot;[% prefname %]&quot;&gt;Email me when someone sets a flag I asked for&lt;/label&gt;
+
</ins><span class="cx"> [% IF user.is_global_watcher %]
</span><del>-  &lt;tr&gt;
-    &lt;td width=&quot;150&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;
-      You are watching all [% terms.bugs %]. To be removed from this role,
-      contact
-      &lt;a href=&quot;mailto:[% Param(&quot;maintainer&quot;) %]&quot;&gt;[% Param(&quot;maintainer&quot;) %]&lt;/a&gt;.
-    &lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+  &lt;p&gt;
+    You are watching all [% terms.bugs %]. To be removed from this role, contact
+    &lt;a href=&quot;mailto:[% Param(&quot;maintainer&quot;) %]&quot;&gt;[% Param(&quot;maintainer&quot;) %]&lt;/a&gt;.
+  &lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><del>-&lt;/table&gt;
</del><span class="cx"> 
</span><span class="cx"> &lt;hr&gt;
</span><del>-&lt;b&gt;Field/recipient specific options:&lt;/b&gt;
-&lt;br&gt;
-&lt;br&gt;
</del><span class="cx"> 
</span><ins>+&lt;h3&gt;Field/recipient specific options&lt;/h3&gt;
+
</ins><span class="cx"> [% events = [
</span><span class="cx">     { id = constants.EVT_ADDED_REMOVED,
</span><span class="cx">       description = &quot;I'm added to or removed from this capacity&quot; },
</span><span class="lines">@@ -119,6 +98,8 @@
</span><span class="cx">       description = &quot;A new $terms.bug is created&quot; },
</span><span class="cx">     { id = constants.EVT_OPENED_CLOSED,
</span><span class="cx">       description = &quot;The $terms.bug is resolved or reopened&quot; },
</span><ins>+    { id = constants.EVT_COMPONENT,
+      description = &quot;The product or component changes&quot; },
</ins><span class="cx">     { id = constants.EVT_PROJ_MANAGEMENT,
</span><span class="cx">       description = &quot;The priority, status, severity, or milestone changes&quot; },
</span><span class="cx">     { id = constants.EVT_COMMENT,
</span><span class="lines">@@ -126,7 +107,7 @@
</span><span class="cx">     { id = constants.EVT_ATTACHMENT,
</span><span class="cx">       description = &quot;New attachments are added&quot; },
</span><span class="cx">     { id = constants.EVT_ATTACHMENT_DATA,
</span><del>-      description = &quot;Some attachment data changes&quot; },
</del><ins>+      description = &quot;Attachment details changes&quot; },
</ins><span class="cx">     { id = constants.EVT_KEYWORD,
</span><span class="cx">       description = &quot;The keywords field changes&quot; },
</span><span class="cx">     { id = constants.EVT_CC,
</span><span class="lines">@@ -166,40 +147,34 @@
</span><span class="cx"> 
</span><span class="cx"> [% num_columns = relationships.size %]
</span><span class="cx"> 
</span><del>-&lt;table class=&quot;bz_emailprefs&quot; border=&quot;1&quot;&gt;
-  &lt;tr&gt;
-    &lt;td colspan=&quot;[% num_columns FILTER html %]&quot; align=&quot;center&quot; width=&quot;50%&quot;&gt;
-      &lt;b&gt;When my relationship to this [% terms.bug %] is:&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td rowspan=&quot;2&quot; width=&quot;40%&quot;&gt;
-      &lt;b&gt;I want to receive mail when:&lt;/b&gt;
-    &lt;/td&gt;
</del><ins>+&lt;table id=&quot;email_prefs&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th colspan=&quot;[% num_columns FILTER html %]&quot;&gt;
+      When my relationship to this [% terms.bug %] is:
+    &lt;/th&gt;
+    &lt;th&gt;I want to receive mail when:&lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% FOREACH relationship = relationships %]
</span><del>-      &lt;th align=&quot;center&quot; width=&quot;9%&quot;&gt;
-        [% relationship.description FILTER html %]
-      &lt;/th&gt;
</del><ins>+      &lt;th class=&quot;role_header&quot;&gt;[% relationship.description FILTER html %]&lt;/th&gt;
</ins><span class="cx">     [% END %]
</span><span class="cx">   &lt;/tr&gt;
</span><del>-  
</del><ins>+
</ins><span class="cx">   [% FOREACH event = events %]  
</span><span class="cx">     [% count = loop.count() %]
</span><span class="cx">     &lt;tr class=&quot;bz_row_[% count % 2 == 1 ? &quot;odd&quot; : &quot;even&quot; %]&quot;&gt;
</span><span class="cx">       [% FOREACH relationship = relationships %]
</span><del>-        &lt;td align=&quot;center&quot;&gt;
-          &lt;input type=&quot;checkbox&quot; 
-            name=&quot;email-[% relationship.id %]-[% event.id %]&quot;
-            value=&quot;1&quot;
-            [%# The combinations don't always make sense; disable a couple %]
-            [% IF event.id == constants.EVT_ADDED_REMOVED AND 
-                  no_added_removed.contains(relationship.id) 
-            %]
-               disabled
-            [% ELSIF user.mail_settings.${relationship.id}.${event.id} %]
-               checked
-            [% END %]&gt;
</del><ins>+        &lt;td class=&quot;center&quot;&gt;
+          &lt;input type=&quot;checkbox&quot; value=&quot;1&quot;
+                 name=&quot;email-[% relationship.id %]-[% event.id %]&quot;
+                 [%# The combinations don't always make sense; disable a couple %]
+                 [% IF event.id == constants.EVT_ADDED_REMOVED
+                       AND no_added_removed.contains(relationship.id) %]
+                   disabled=&quot;disabled&quot;
+                 [% ELSIF user.mail_settings.${relationship.id}.${event.id} %]
+                   checked=&quot;checked&quot;
+                 [% END %]&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">       &lt;td&gt;
</span><span class="lines">@@ -207,15 +182,10 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><del>-  
-  &lt;tr&gt;
-    &lt;td colspan=&quot;[% num_columns FILTER html %]&quot; 
-        align=&quot;center&quot; width=&quot;50%&quot;&gt;
-      &amp;nbsp;
-    &lt;/td&gt;
-    &lt;td width=&quot;40%&quot;&gt;
-      &lt;b&gt;but not when (overrides above):&lt;/b&gt;
-    &lt;/td&gt;
</del><ins>+
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th colspan=&quot;[% num_columns FILTER html %]&quot;&gt;&amp;nbsp;&lt;/th&gt;
+    &lt;th&gt;but not when (overrides above):&lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   [% FOREACH event = neg_events %]  
</span><span class="lines">@@ -222,48 +192,45 @@
</span><span class="cx">     [% count = loop.count() %]
</span><span class="cx">     &lt;tr class=&quot;bz_row_[% count % 2 == 1 ? &quot;odd&quot; : &quot;even&quot; %]&quot;&gt;
</span><span class="cx">       [% FOREACH relationship = relationships %]
</span><del>-        &lt;td align=&quot;center&quot;&gt;
-          &lt;input type=&quot;checkbox&quot; 
-            name=&quot;neg-email-[% relationship.id %]-[% event.id %]&quot;
-            value=&quot;1&quot;
-            [% &quot; checked&quot; IF NOT user.mail_settings.${relationship.id}.${event.id} %]&gt;
</del><ins>+        &lt;td class=&quot;center&quot;&gt;
+          &lt;input type=&quot;checkbox&quot; value=&quot;1&quot;
+                 name=&quot;neg-email-[% relationship.id %]-[% event.id %]&quot;
+                 [%+ 'checked=&quot;checked&quot;' IF NOT user.mail_settings.${relationship.id}.${event.id} %]&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       [% END %]
</span><del>-      &lt;td&gt;
-        [% event.description FILTER html %]
-      &lt;/td&gt;
</del><ins>+      &lt;td&gt;[% event.description FILTER html %]&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><del>-  
</del><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;hr&gt;
</span><del>-&lt;b&gt;User Watching&lt;/b&gt;
</del><span class="cx"> 
</span><ins>+&lt;h3&gt;User Watching&lt;/h3&gt;
+
</ins><span class="cx"> &lt;p&gt;
</span><span class="cx"> If you watch a user, it is as if you are standing in their shoes for the 
</span><del>-purposes of getting email. Email is sent or not according to &lt;u&gt;your&lt;/u&gt;
-preferences for &lt;u&gt;their&lt;/u&gt; relationship to the [% terms.bug %] 
</del><ins>+purposes of getting email. Email is sent or not according to &lt;em&gt;your&lt;/em&gt;
+preferences for &lt;em&gt;their&lt;/em&gt; relationship to the [% terms.bug %]
</ins><span class="cx"> (e.g. Assignee).
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;
</del><span class="cx"> [% IF watchedusers.size %]
</span><del>-You are watching everyone in the following list:
-  &lt;/p&gt;
</del><ins>+  &lt;p&gt;You are watching everyone in the following list:&lt;/p&gt;
</ins><span class="cx">   &lt;p&gt;
</span><span class="cx">     &lt;select id=&quot;watched_by_you&quot; name=&quot;watched_by_you&quot; multiple=&quot;multiple&quot; size=&quot;5&quot;&gt;
</span><span class="cx">         [% FOREACH w = watchedusers %]
</span><span class="cx">            &lt;option value=&quot;[% w FILTER html %]&quot;&gt;[% w FILTER html %]&lt;/option&gt;
</span><span class="cx">         [% END %]
</span><del>-    &lt;/select&gt; &lt;br /&gt;
</del><ins>+    &lt;/select&gt;
+    &lt;br&gt;
</ins><span class="cx">     &lt;input type=&quot;checkbox&quot; id=&quot;remove_watched_users&quot; name=&quot;remove_watched_users&quot;&gt;
</span><span class="cx">     &lt;label for=&quot;remove_watched_users&quot;&gt;Remove selected users from my watch list&lt;/label&gt;
</span><ins>+  &lt;/p&gt;
</ins><span class="cx"> [% ELSE %]
</span><del>-You are currently not watching any users.
</del><ins>+  &lt;p&gt;You are currently not watching any users.&lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><del>-&lt;/p&gt;
</del><span class="cx"> 
</span><ins>+
</ins><span class="cx"> &lt;p id=&quot;new_watched_by_you&quot;&gt;Add users to my watch list (comma separated list):
</span><span class="cx">   [% INCLUDE global/userselect.html.tmpl
</span><span class="cx">      id =&gt; &quot;new_watchedusers&quot;
</span><span class="lines">@@ -272,7 +239,7 @@
</span><span class="cx">      size =&gt; 60
</span><span class="cx">      multiple =&gt; 5
</span><span class="cx">   %]
</span><del>-&lt;/p&gt;            
</del><ins>+&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;p id=&quot;watching_you&quot;&gt;Users watching you:&lt;br&gt;
</span><span class="cx">   [% IF watchers.size %]
</span><span class="lines">@@ -286,4 +253,42 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;hr&gt;
</span><span class="cx"> 
</span><del>-&lt;br&gt;
</del><ins>+&lt;h3&gt;Ignore [% terms.Bugs %]&lt;/h3&gt;
+
+&lt;p&gt;
+  You can specify a list of [% terms.bugs %] from which you never want to get
+  any email notification of any kind by adding their ID(s) as a comma-separated
+  list. Removing [% terms.abug %] by selecting it from the current ignored list 
+  will re-enable email notifications for the [% terms.bug %].
+&lt;/p&gt;
+[% IF user.bugs_ignored.size %]
+  &lt;p&gt;
+    You are currently ignoring:
+    &lt;table&gt;
+    [% FOREACH bug = user.bugs_ignored %]
+      &lt;tr&gt;
+        &lt;td&gt;
+          &lt;input type=&quot;checkbox&quot; name=&quot;remove_ignored_bug_[% bug.id FILTER html %]&quot; value=&quot;1&quot;&gt;
+        &lt;/td&gt;
+        &lt;td&gt;&lt;a href=&quot;[% urlbase FILTER html %]show_bug.cgi?id=[% bug.id FILTER uri %]&quot;&gt;
+          [% bug.id FILTER html %]&lt;/a&gt;
+        &lt;/td&gt;
+        &lt;td&gt;[% bug.status FILTER html %]&lt;/td&gt;
+        &lt;td&gt;
+          [% IF user.can_see_bug(bug.id) %]
+            - [% bug.summary FILTER html %]
+          [% ELSE %]
+            (private)
+          [% END %]
+        &lt;/td&gt;
+      &lt;/tr&gt;
+    [% END %]
+    &lt;/table&gt;
+  &lt;/p&gt;
+[% END %]
+
+&lt;p&gt;
+  Add [% terms.bugs %]:&lt;br&gt;
+  &lt;input type=&quot;text&quot; id=&quot;add_ignored_bugs&quot; 
+         name=&quot;add_ignored_bugs&quot; size=&quot;60&quot;&gt;
+&lt;/p&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefspermissionshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/permissions.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/permissions.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/permissions.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,14 +17,11 @@
</span><span class="cx">   #           other people.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><ins>+    &lt;div id=&quot;permissions&quot;&gt;
+      [% IF has_bits.size %]
+        &lt;p&gt;You have the following permission bits set on your account:&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;table align=&quot;center&quot;&gt;
-  &lt;tr&gt;
-    &lt;td&gt;
-      [% IF has_bits.size %]
-        You have the following permission bits set on your account:
-        &lt;table align=&quot;center&quot;&gt;
</del><ins>+        &lt;table&gt;
</ins><span class="cx">           [% FOREACH bit_description = has_bits %]
</span><span class="cx">             &lt;tr&gt;
</span><span class="cx">               &lt;td&gt;[% bit_description.name FILTER html %]&lt;/td&gt;
</span><span class="lines">@@ -48,32 +33,34 @@
</span><span class="cx">         [% FOREACH privs = [&quot;editcomponents&quot;, &quot;canconfirm&quot;, &quot;editbugs&quot;] %]
</span><span class="cx">           [% SET products = ${&quot;local_$privs&quot;} %]
</span><span class="cx">           [% IF products &amp;&amp; products.size %]
</span><del>-            &lt;br&gt;
</del><span class="cx">             &lt;p&gt;
</span><span class="cx">               You also have local '[% privs FILTER html %]' privileges
</span><span class="cx">               for the following products:
</span><span class="cx">             &lt;/p&gt;
</span><del>-            &lt;p&gt;
</del><ins>+            &lt;ul&gt;
</ins><span class="cx">               [% FOREACH product = products %]
</span><del>-                [% product.name FILTER html %]&lt;br&gt;
</del><ins>+                &lt;li&gt;[% product.name FILTER html %]&lt;/li&gt;
</ins><span class="cx">               [% END %]
</span><del>-            &lt;/p&gt;
</del><ins>+            &lt;/ul&gt;
</ins><span class="cx">           [% END %]
</span><span class="cx">         [% END %]
</span><span class="cx"> 
</span><span class="cx">       [% ELSE %]
</span><del>-        There are no permission bits set on your account.
</del><ins>+        &lt;p&gt;There are no permission bits set on your account.&lt;/p&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx"> 
</span><span class="cx">       [% IF user.in_group('editusers') %]
</span><del>-        &lt;br&gt;
-        You have editusers privileges.  You can turn on and off
-        all permissions for all users.
</del><ins>+        &lt;p&gt;
+          You have editusers privileges. You can turn on and off all
+          permissions for all users.
+        &lt;/p&gt;
</ins><span class="cx">       [% ELSIF set_bits.size %]
</span><del>-        &lt;br&gt;
-        And you can turn on or off the following bits for
-        &lt;a href=&quot;editusers.cgi&quot;&gt;other users&lt;/a&gt;:
-          &lt;table align=&quot;center&quot;&gt;
</del><ins>+        &lt;p&gt;
+          And you can turn on or off the following bits for
+          &lt;a href=&quot;editusers.cgi&quot;&gt;other users&lt;/a&gt;:
+        &lt;/p&gt;
+
+        &lt;table&gt;
</ins><span class="cx">           [% FOREACH bit_description = set_bits %]
</span><span class="cx">             &lt;tr&gt;
</span><span class="cx">               &lt;td&gt;[% bit_description.name FILTER html %]&lt;/td&gt;
</span><span class="lines">@@ -80,14 +67,13 @@
</span><span class="cx">               &lt;td&gt;[% bit_description.desc FILTER html_light %]&lt;/td&gt;
</span><span class="cx">             &lt;/tr&gt;
</span><span class="cx">           [% END %]
</span><del>-          &lt;/table&gt;
</del><ins>+        &lt;/table&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx"> 
</span><span class="cx">       [% IF user.in_group('bz_sudoers') %]
</span><del>-        &lt;br&gt;
-        You are a member of the &lt;b&gt;bz_sudoers&lt;/b&gt; group, so you can 
-        &lt;a href=&quot;relogin.cgi?action=prepare-sudo&quot;&gt;impersonate someone else&lt;/a&gt;.
</del><ins>+        &lt;p&gt;
+          You are a member of the &lt;b&gt;bz_sudoers&lt;/b&gt; group, so you can
+          &lt;a href=&quot;relogin.cgi?action=prepare-sudo&quot;&gt;impersonate someone else&lt;/a&gt;.
+        &lt;/p&gt;
</ins><span class="cx">       [% END %]
</span><del>-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+    &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefsprefshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/prefs.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/prefs.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/prefs.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -36,25 +23,25 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% filtered_login = user.login FILTER html %]
</span><del>-[% PROCESS global/header.html.tmpl
-   title = &quot;User Preferences&quot;
-   subheader = filtered_login
-   style_urls = ['skins/standard/admin.css']
-   javascript_urls = ['js/util.js', 'js/field.js']
-   doc_section = &quot;userpreferences.html&quot;
-   yui = ['autocomplete']
- %]
</del><span class="cx"> 
</span><span class="cx"> [% tabs = [{ name =&gt; &quot;settings&quot;, label =&gt; &quot;General Preferences&quot;,
</span><del>-              link =&gt; &quot;userprefs.cgi?tab=settings&quot;, saveable =&gt; &quot;1&quot; },
-            { name =&gt; &quot;email&quot;, label =&gt; &quot;Email Preferences&quot;, 
-              link =&gt; &quot;userprefs.cgi?tab=email&quot;, saveable =&gt; &quot;1&quot; },
-            { name =&gt; &quot;saved-searches&quot;, label =&gt; &quot;Saved Searches&quot;, 
-              link =&gt; &quot;userprefs.cgi?tab=saved-searches&quot;, saveable =&gt; &quot;1&quot; },
</del><ins>+              link =&gt; &quot;userprefs.cgi?tab=settings&quot;, saveable =&gt; &quot;1&quot;,
+              doc_section =&gt; &quot;using/preferences.html#general-preferences&quot; },
+            { name =&gt; &quot;email&quot;, label =&gt; &quot;Email Preferences&quot;,
+              link =&gt; &quot;userprefs.cgi?tab=email&quot;, saveable =&gt; &quot;1&quot;,
+              doc_section =&gt; &quot;using/preferences.html#email-preferences&quot; },
+            { name =&gt; &quot;saved-searches&quot;, label =&gt; &quot;Saved Searches&quot;,
+              link =&gt; &quot;userprefs.cgi?tab=saved-searches&quot;, saveable =&gt; &quot;1&quot;,
+              doc_section =&gt; &quot;using/preferences.html#saved-searches&quot; },
</ins><span class="cx">             { name =&gt; &quot;account&quot;, label =&gt; &quot;Account Information&quot;,
</span><del>-              link =&gt; &quot;userprefs.cgi?tab=account&quot;, saveable =&gt; &quot;1&quot; },
-            { name =&gt; &quot;permissions&quot;, label =&gt; &quot;Permissions&quot;, 
-              link =&gt; &quot;userprefs.cgi?tab=permissions&quot;, saveable =&gt; &quot;0&quot; } ] %]
</del><ins>+              link =&gt; &quot;userprefs.cgi?tab=account&quot;, saveable =&gt; &quot;1&quot;,
+              doc_section =&gt; &quot;using/preferences.html#account-information&quot; },
+            { name =&gt; &quot;apikey&quot;, label =&gt; &quot;API Keys&quot;,
+              link =&gt; &quot;userprefs.cgi?tab=apikey&quot;, saveable =&gt; &quot;1&quot;,
+              doc_section =&gt; &quot;using/preferences.html#api-keys&quot; },
+            { name =&gt; &quot;permissions&quot;, label =&gt; &quot;Permissions&quot;,
+              link =&gt; &quot;userprefs.cgi?tab=permissions&quot;, saveable =&gt; &quot;0&quot;,
+              doc_section =&gt; &quot;using/preferences.html#permissions&quot; } ] %]
</ins><span class="cx"> 
</span><span class="cx"> [% Hook.process('tabs') %]
</span><span class="cx"> 
</span><span class="lines">@@ -65,6 +52,16 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% PROCESS global/header.html.tmpl
+   title = current_tab.label
+   subheader = filtered_login
+   generate_api_token = 1
+   style_urls = ['skins/standard/admin.css']
+   javascript_urls = ['js/util.js', 'js/field.js', 'js/TUI.js']
+   doc_section = current_tab.doc_section
+   yui = ['autocomplete']
+ %]
+
</ins><span class="cx"> [% WRAPPER global/tabs.html.tmpl
</span><span class="cx">    tabs        = tabs
</span><span class="cx">    current_tab = current_tab
</span><span class="lines">@@ -76,8 +73,13 @@
</span><span class="cx"> 
</span><span class="cx">     [% IF email_changes_saved %]
</span><span class="cx">       &lt;p&gt;
</span><del>-        An email has been sent to both old and new email
-        addresses to confirm the change of email address.
</del><ins>+        In order to confirm your request, we have sent an email to your
+        new email address. As a precaution, an email has also been sent
+        to your old address allowing you to cancel this change if needed.
+        If you don't receive the email, you can
+        &lt;a href=&quot;token.cgi?t=[% email_token FILTER uri %]&amp;amp;a=cxlem&quot;&gt;
+        cancel the email address change&lt;/a&gt; from here if you wish (especially
+        if you mistyped the new email address).
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/div&gt;
</span><span class="lines">@@ -96,16 +98,10 @@
</span><span class="cx"> 
</span><span class="cx"> [% IF current_tab.saveable %]
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;dosave&quot; value=&quot;1&quot;&gt;
</span><del>-
</del><span class="cx">     [% UNLESS dont_show_button %]
</span><del>-      &lt;table&gt;
-        &lt;tr&gt;
-          &lt;td width=&quot;150&quot;&gt;&amp;nbsp;&lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Submit Changes&quot;&gt;
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      &lt;/table&gt;
</del><ins>+      &lt;p&gt;
+        &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Submit Changes&quot;&gt;
+      &lt;/p&gt;
</ins><span class="cx">     [% END %]
</span><span class="cx">   &lt;/form&gt;
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefssavedsearcheshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/saved-searches.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/saved-searches.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/saved-searches.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -42,32 +30,20 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Your saved searches are as follows:&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;blockquote&gt;
-  &lt;table border=&quot;1&quot; cellpadding=&quot;3&quot;&gt;  
-    &lt;tr&gt;
-      &lt;th&gt;
-        Search
-      &lt;/th&gt;
-      &lt;th&gt;
-        Run
-      &lt;/th&gt;
-      &lt;th&gt;
-        Edit
-      &lt;/th&gt;
-      &lt;th&gt;
-        Forget
-      &lt;/th&gt;
-      &lt;th&gt;
-        Show in
-        Footer
-      &lt;/th&gt;
</del><ins>+  &lt;table id=&quot;saved_search_prefs&quot;&gt;
+    &lt;tr class=&quot;column_header&quot;&gt;
+      &lt;th&gt;Search&lt;/th&gt;
+      &lt;th&gt;Run&lt;/th&gt;
+      &lt;th&gt;Edit&lt;/th&gt;
+      &lt;th&gt;Forget&lt;/th&gt;
+      &lt;th&gt;Show in Footer&lt;/th&gt;
</ins><span class="cx">       [% may_share = user.in_group(Param('querysharegroup')) &amp;&amp; queryshare_groups.size %]
</span><span class="cx">       [% IF may_share %]
</span><del>-        &lt;th&gt;
-          Share With a Group
-        &lt;/th&gt;
</del><ins>+        &lt;th&gt;Share With a Group&lt;/th&gt;
</ins><span class="cx">       [% END %]
</span><ins>+      [% Hook.process('saved-header') %]
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;td&gt;My [% terms.Bugs %]&lt;/td&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="lines">@@ -74,26 +50,20 @@
</span><span class="cx">         [% filtered_username = user.login FILTER uri %]
</span><span class="cx">         &lt;a href=&quot;[% Param('mybugstemplate').replace('%userid%', filtered_username) %]&quot;&gt;Run&lt;/a&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td&gt;
-        &amp;nbsp;
</del><ins>+      &lt;td&gt;&lt;/td&gt;
+      &lt;td&gt;&lt;/td&gt;
+      &lt;td class=&quot;center&quot;&gt;
+        &lt;input type=&quot;checkbox&quot; name=&quot;showmybugslink&quot; value=&quot;1&quot;
+               [%+ 'checked=&quot;checked&quot;' IF user.showmybugslink %]&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td&gt;
-        &amp;nbsp;
-      &lt;/td&gt;
-      &lt;td align=&quot;center&quot;&gt;
-        &lt;input type=&quot;checkbox&quot; 
-               name=&quot;showmybugslink&quot;
-               value=&quot;1&quot;
-               [% &quot; checked&quot; IF user.showmybugslink %]&gt;
-      &lt;/td&gt;
</del><span class="cx">       [% IF may_share %]
</span><del>-        &lt;td&gt;
-          &amp;mdash;
-        &lt;/td&gt;
</del><ins>+        &lt;td&gt;&amp;mdash;&lt;/td&gt;
</ins><span class="cx">       [% END %]
</span><ins>+      [% Hook.process('saved-row') %]
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">     [% FOREACH q = user.queries %]
</span><del>-      &lt;tr&gt;
</del><ins>+      &lt;tr [% 'class=&quot;shared_search&quot;' IF q.shared_with_group.id %]&gt;
</ins><span class="cx">         &lt;td&gt;[% q.name FILTER html %]&lt;/td&gt;
</span><span class="cx">         &lt;td&gt;
</span><span class="cx">           &lt;a href=&quot;buglist.cgi?cmdtype=dorem&amp;amp;remaction=run&amp;amp;namedcmd=[% q.name FILTER uri %]
</span><span class="lines">@@ -112,7 +82,7 @@
</span><span class="cx">                      [% issue_hash_token([q.id, q.name]) FILTER uri %]&quot;&gt;Forget&lt;/a&gt;
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/td&gt;
</span><del>-        &lt;td align=&quot;center&quot;&gt;
</del><ins>+        &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">           &lt;input type=&quot;checkbox&quot; 
</span><span class="cx">                  name=&quot;link_in_footer_[% q.id FILTER html %]&quot;
</span><span class="cx">                  value=&quot;1&quot;
</span><span class="lines">@@ -131,6 +101,11 @@
</span><span class="cx">                 &gt;[% group.name FILTER html %]&lt;/option&gt;
</span><span class="cx">               [% END %]
</span><span class="cx">             &lt;/select&gt;
</span><ins>+            [% IF q.shared_with_group.id %]
+              (&lt;a href=&quot;buglist.cgi?cmdtype=dorem&amp;amp;remaction=run&amp;amp;namedcmd=
+                 [% q.name FILTER uri %]&amp;amp;sharer_id=
+                 [% user.id FILTER uri %]&quot;&gt;Link&lt;/a&gt;)
+            [% END %]
</ins><span class="cx">             [% IF user.can_bless %]
</span><span class="cx">               &lt;span [% IF !bless_group_ids.grep(&quot;^$q.shared_with_group.id\$&quot;).0
</span><span class="cx">                      %]class=&quot;bz_default_hidden&quot;[% END %]&gt;
</span><span class="lines">@@ -145,41 +120,30 @@
</span><span class="cx">             [% END %]
</span><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% END %]
</span><ins>+        [% Hook.process('saved-row') %]
</ins><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/table&gt;
</span><ins>+
</ins><span class="cx"> [% IF user.can_bless %]
</span><span class="cx">   &lt;p&gt;Note that for every search that has the &quot;Add to footer&quot; selected, a
</span><span class="cx">      link to the shared search is added to the footer of every user that is
</span><span class="cx">      a direct member of the group at the time you click Submit Changes.&lt;/p&gt;
</span><span class="cx"> [% END %]
</span><del>-&lt;/blockquote&gt;
</del><span class="cx"> 
</span><span class="cx"> [% IF user.queries_available.size %]
</span><span class="cx">   &lt;p&gt;You may use these searches saved and shared by others:&lt;/p&gt;
</span><span class="cx"> 
</span><del>-  &lt;table border=&quot;1&quot; cellpadding=&quot;3&quot;&gt;  
-    &lt;tr&gt;
-      &lt;th&gt;
-        Search
-      &lt;/th&gt;
-      &lt;th&gt;
-        Shared By
-      &lt;/th&gt;
-      &lt;th&gt;
-        Shared To
-      &lt;/th&gt;
-      &lt;th&gt;
-        Run
-      &lt;/th&gt;
-      &lt;th&gt;
-        Edit
-      &lt;/th&gt;
-      &lt;th&gt;
-        Show in
-        Footer
-      &lt;/th&gt;
</del><ins>+  &lt;table id=&quot;shared_search_prefs&quot;&gt;
+    &lt;tr class=&quot;column_header&quot;&gt;
+      &lt;th&gt;Search&lt;/th&gt;
+      &lt;th&gt;Shared By&lt;/th&gt;
+      &lt;th&gt;Shared To&lt;/th&gt;
+      &lt;th&gt;Run&lt;/th&gt;
+      &lt;th&gt;Edit&lt;/th&gt;
+      &lt;th&gt;Show in Footer&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">     [% FOREACH q = user.queries_available %]
</span><span class="cx">       &lt;tr&gt;
</span><span class="cx">         &lt;td&gt;[% q.name FILTER html %]&lt;/td&gt;
</span><span class="lines">@@ -194,7 +158,7 @@
</span><span class="cx">           &lt;a href=&quot;query.cgi?[% q.edit_link FILTER html %]&amp;amp;known_name=
</span><span class="cx">                    [% q.name FILTER uri %]&quot;&gt;Edit&lt;/a&gt;
</span><span class="cx">         &lt;/td&gt;
</span><del>-        &lt;td align=&quot;center&quot;&gt;
</del><ins>+        &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">           &lt;input type=&quot;checkbox&quot; 
</span><span class="cx">                  name=&quot;link_in_footer_[% q.id FILTER html %]&quot;
</span><span class="cx">                  value=&quot;1&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprefssettingshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/settings.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/settings.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/prefs/settings.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -38,12 +29,12 @@
</span><span class="cx">     &lt;/p&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;8&quot;&gt;
</del><ins>+  &lt;table id=&quot;user_prefs&quot;&gt;
</ins><span class="cx">     [% FOREACH name = setting_names %]
</span><span class="cx">       [% default_name = name _ '-isdefault' %]
</span><span class="cx">       [% default_val = settings.${name}.default_value %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td align=&quot;right&quot;&gt;
</del><ins>+        &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">           [% setting_descs.$name OR name FILTER html %]
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">         &lt;td&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultaccountprofileactivityhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/account/profile-activity.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/account/profile-activity.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/account/profile-activity.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -35,12 +22,13 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% title = BLOCK %]
</span><del>-  Account History for '[% otheruser.login FILTER html %]'
</del><ins>+  Account History for '[% otheruser.identity FILTER html %]'
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminadminhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/admin.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/admin.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/admin.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,19 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><del>-  Administer your installation ([% terms.Bugzilla %]
</del><ins>+  Administer your installation (Bugzilla
</ins><span class="cx">   [%+ constants.BUGZILLA_VERSION FILTER html %])
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl title = title
</span><span class="cx">                                    style_urls = ['skins/standard/admin.css']
</span><del>-                                   doc_section = &quot;administration.html&quot;
</del><ins>+                                   doc_section = &quot;administering/index.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;div&gt;
</span><span class="lines">@@ -53,7 +44,7 @@
</span><span class="cx">         &lt;dt id=&quot;sanitycheck&quot; class=&quot;[% class %]&quot;&gt;&lt;a href=&quot;sanitycheck.cgi&quot;&gt;Sanity Check&lt;/a&gt;&lt;/dt&gt;
</span><span class="cx">         &lt;dd class=&quot;[% class %]&quot;&gt;Run sanity checks to locate problems in your database.
</span><span class="cx">         This may take several tens of minutes depending on the size of your installation.
</span><del>-        You can also automate this check by running &lt;tt&gt;sanitycheck.pl&lt;/tt&gt; from a cron job.
</del><ins>+        You can also automate this check by running &lt;kbd&gt;sanitycheck.pl&lt;/kbd&gt; from a cron job.
</ins><span class="cx">         A notification will be sent per email to the specified user if errors are detected.&lt;/dd&gt;
</span><span class="cx"> 
</span><span class="cx">         [% class = (user.in_group('editusers') || user.can_bless) ? &quot;&quot; : &quot;forbidden&quot; %]
</span><span class="lines">@@ -92,7 +83,7 @@
</span><span class="cx">       &lt;dl&gt;
</span><span class="cx">         [% class = user.in_group('admin') ? &quot;&quot; : &quot;forbidden&quot; %]
</span><span class="cx">         &lt;dt id=&quot;custom_fields&quot; class=&quot;[% class %]&quot;&gt;&lt;a href=&quot;editfields.cgi&quot;&gt;Custom Fields&lt;/a&gt;&lt;/dt&gt;
</span><del>-        &lt;dd class=&quot;[% class %]&quot;&gt;[% terms.Bugzilla %] lets you define fields which are
</del><ins>+        &lt;dd class=&quot;[% class %]&quot;&gt;Bugzilla lets you define fields which are
</ins><span class="cx">         not implemented by default, based on your local and specific requirements.
</span><span class="cx">         These fields can then be used as any other field, meaning that you can set
</span><span class="cx">         them in [% terms.bugs %] and run any search involving them.&lt;br&gt;
</span><span class="lines">@@ -127,6 +118,10 @@
</span><span class="cx">         and time, and get the result of these queries directly per email. This is a
</span><span class="cx">         good way to create reminders and to keep track of the activity in your installation.&lt;/dd&gt;
</span><span class="cx"> 
</span><ins>+        &lt;dt id=&quot;release_notes&quot;&gt;
+          &lt;a href=&quot;page.cgi?id=release-notes.html&quot;&gt;Release Notes&lt;/a&gt;&lt;/dt&gt;
+        &lt;dd&gt;Detailed information related to this release of Bugzilla.&lt;/dd&gt;
+
</ins><span class="cx">         [% Hook.process('end_links_right') %]
</span><span class="cx">       &lt;/dl&gt;
</span><span class="cx">     &lt;/td&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsaddhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/add.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/add.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/add.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,18 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Add new classification&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=post action=&quot;editclassifications.cgi&quot;&gt;
</span><del>-  &lt;table border=0 cellpadding=4 cellspacing=0&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/classifications/edit-common.html.tmpl&quot; %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsdelhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/del.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/del.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/del.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,51 +1,39 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Delete classification&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=1 cellpadding=4 cellspacing=0&gt;
-&lt;tr bgcolor=&quot;#6666ff&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Part&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-
-&lt;/tr&gt;&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Classification:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% classification.name FILTER html %]&lt;/td&gt;
-
-&lt;/tr&gt;&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Description:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-    [% IF classification.description %]
-      [% classification.description FILTER html_light %]
-    [% ELSE %]
-      &lt;font color=&quot;red&quot;&gt;description missing&lt;/font&gt;
-    [% END %]
-  &lt;/td&gt;
-
-&lt;/tr&gt;&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Sortkey:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% classification.sortkey FILTER html %]&lt;/td&gt;
-
-&lt;/tr&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Classification&lt;/td&gt;
+    &lt;td&gt;[% classification.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Description&lt;/td&gt;
+    &lt;td&gt;
+      [% IF classification.description %]
+        [% classification.description FILTER html_light %]
+      [% ELSE %]
+        &lt;span class=&quot;warning&quot;&gt;description missing&lt;/span&gt;
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Sortkey&lt;/td&gt;
+    &lt;td&gt;[% classification.sortkey FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationseditcommonhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit-common.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit-common.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit-common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Tiago Rodrigues de Mello &lt;timello@linux.vnet.ibm.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,12 +11,12 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;Classification:&lt;/th&gt;
</del><ins>+  &lt;th&gt;Classification:&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;&lt;input size=64 maxlength=64 name=&quot;classification&quot; 
</span><del>-             value=&quot;[% classification.name FILTER html %]&quot;&gt;&lt;/td&gt;
</del><ins>+             value=&quot;[% classification.name FILTER html %]&quot; required&gt;&lt;/td&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;Description:&lt;/th&gt;
</del><ins>+  &lt;th&gt;Description:&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">       name           = 'description'
</span><span class="lines">@@ -39,7 +27,7 @@
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</del><ins>+  &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;&lt;input id=&quot;sortkey&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;sortkey&quot;
</span><span class="cx">              value=&quot;[%- classification.sortkey FILTER html %]&quot;&gt;&lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,23 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit classification&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=post action=&quot;editclassifications.cgi&quot;&gt;
</span><del>-  &lt;table  border=0 cellpadding=4 cellspacing=0&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/classifications/edit-common.html.tmpl&quot; %]
</span><span class="cx"> 
</span><del>-    &lt;tr valign=top&gt;
-      &lt;th align=&quot;right&quot;&gt;
</del><ins>+    &lt;tr&gt;
+      &lt;th&gt;
</ins><span class="cx">         &lt;a href=&quot;editproducts.cgi?classification=[% classification.name FILTER uri %]&quot;&gt;
</span><span class="cx">         Edit Products&lt;/a&gt;:
</span><span class="cx">       &lt;/th&gt;
</span><span class="lines">@@ -37,19 +26,13 @@
</span><span class="cx">           &lt;table&gt;
</span><span class="cx">             [% FOREACH product = classification.products %]
</span><span class="cx">               &lt;tr&gt;
</span><del>-                &lt;th align=right valign=top&gt;[% product.name FILTER html %]&lt;/th&gt;
-                &lt;td valign=top&gt;
-                  [% IF product.description %]
-                    [% product.description FILTER html_light %]
-                  [% ELSE %]
-                    &lt;font color=&quot;red&quot;&gt;description missing&lt;/font&gt;
-                  [% END %]
-                &lt;/td&gt;
</del><ins>+                &lt;th&gt;[% product.name FILTER html %]&lt;/th&gt;
+                &lt;td&gt;[% product.description FILTER html_light %]&lt;/td&gt;
</ins><span class="cx">               &lt;/tr&gt;
</span><span class="cx">             [% END %]
</span><span class="cx">           &lt;/table&gt;
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;font color=&quot;red&quot;&gt;none&lt;/font&gt;
</del><ins>+          &lt;span class=&quot;warning&quot;&gt;none&lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Nitish Bezzala &lt;nbezzala@yahoo.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> &lt;p&gt;Back to the &lt;a href=&quot;./&quot;&gt;main [% terms.bugs %] page&lt;/a&gt;
</span><span class="cx"> or &lt;a href=&quot;editclassifications.cgi&quot;&gt; edit&lt;/a&gt; more classifications.&lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsreclassifyhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/reclassify.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/reclassify.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/reclassify.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,57 +1,46 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Reclassify products&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=post action=&quot;editclassifications.cgi&quot;&gt;
</span><del>-  &lt;table border=0 cellpadding=4 cellspacing=0&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;Classification:&lt;/td&gt;
-      &lt;td valign=&quot;top&quot; colspan=3&gt;[% classification.name FILTER html %]&lt;/td&gt;
-
-    &lt;/tr&gt;&lt;tr&gt;
-      &lt;td valign=&quot;top&quot;&gt;Description:&lt;/td&gt;
-      &lt;td valign=&quot;top&quot; colspan=3&gt;
</del><ins>+      &lt;th&gt;Classification:&lt;/th&gt;
+      &lt;td colspan=3&gt;[% classification.name FILTER html %]&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Description:&lt;/th&gt;
+      &lt;td colspan=3&gt;
</ins><span class="cx">         [% IF classification.description %]
</span><span class="cx">           [% classification.description FILTER html_light %]
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;font color=&quot;red&quot;&gt;description missing&lt;/font&gt;
</del><ins>+          &lt;span class=&quot;warning&quot;&gt;description missing&lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><del>-
-    &lt;/tr&gt;&lt;tr&gt;
-      &lt;td valign=&quot;top&quot;&gt;Sortkey:&lt;/td&gt;
-      &lt;td valign=&quot;top&quot; colspan=3&gt;[% classification.sortkey FILTER html %]&lt;/td&gt;
-
-    &lt;/tr&gt;&lt;tr&gt;
-      &lt;td valign=&quot;top&quot;&gt;Products:&lt;/td&gt;
-      &lt;td valign=&quot;top&quot;&gt;Other Classifications&lt;/td&gt;
</del><ins>+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Sortkey:&lt;/th&gt;
+      &lt;td colspan=3&gt;[% classification.sortkey FILTER html %]&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Products:&lt;/th&gt;
+      &lt;td&gt;Other Classifications&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;&lt;/td&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;This Classification&lt;/td&gt;
-
-    &lt;/tr&gt;&lt;tr&gt;
</del><ins>+      &lt;td&gt;This Classification&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
</ins><span class="cx">       &lt;td&gt;&lt;/td&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
-      &lt;select name=&quot;prodlist&quot; id=&quot;prodlist&quot; multiple=&quot;multiple&quot; size=&quot;20&quot;&gt;
</del><ins>+      &lt;td&gt;
+        &lt;select name=&quot;prodlist&quot; id=&quot;prodlist&quot; multiple=&quot;multiple&quot; size=&quot;20&quot;&gt;
</ins><span class="cx">         [% FOREACH class = classifications %]
</span><span class="cx">           [% IF class.id != classification.id %]
</span><span class="cx">             [% FOREACH product = class.products %]
</span><span class="lines">@@ -61,14 +50,15 @@
</span><span class="cx">             [% END %]
</span><span class="cx">           [% END %]
</span><span class="cx">         [% END %]
</span><del>-      &lt;/select&gt;&lt;/td&gt;
</del><ins>+        &lt;/select&gt;
+      &lt;/td&gt;
</ins><span class="cx"> 
</span><del>-      &lt;td align=&quot;center&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">         &lt;input type=submit value=&quot;     Add &amp;gt;&amp;gt;  &quot; name=&quot;add_products&quot;&gt;&lt;br&gt;&lt;br&gt;
</span><span class="cx">         &lt;input type=submit value=&quot;&amp;lt;&amp;lt; Remove&quot; name=&quot;remove_products&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx"> 
</span><del>-      &lt;td valign=&quot;middle&quot; rowspan=2&gt;
</del><ins>+      &lt;td rowspan=2 class=&quot;max-width&quot;&gt;
</ins><span class="cx">         &lt;select name=&quot;myprodlist&quot; id=&quot;myprodlist&quot; multiple=&quot;multiple&quot; size=&quot;20&quot;&gt;
</span><span class="cx">           [% FOREACH product = classification.products %]
</span><span class="cx">             &lt;option value=&quot;[% product.name FILTER html %]&quot;&gt;
</span><span class="lines">@@ -75,7 +65,8 @@
</span><span class="cx">               [% product.name FILTER html %]
</span><span class="cx">             &lt;/option&gt;
</span><span class="cx">           [% END %]
</span><del>-      &lt;/select&gt;&lt;/td&gt;
</del><ins>+        &lt;/select&gt;
+      &lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -87,4 +78,3 @@
</span><span class="cx"> [% PROCESS admin/classifications/footer.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminclassificationsselecthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/select.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/select.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/classifications/select.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,66 +1,64 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Select classification&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=1 cellpadding=4 cellspacing=0&gt;
-  &lt;tr bgcolor=&quot;#6666ff&quot;&gt;
-    &lt;th align=&quot;left&quot;&gt;Edit Classification ...&lt;/th&gt;
-    &lt;th align=&quot;left&quot;&gt;Description&lt;/th&gt;
-    &lt;th align=&quot;left&quot;&gt;Sortkey&lt;/th&gt;
-    &lt;th align=&quot;left&quot;&gt;Products&lt;/th&gt;
-    &lt;th align=&quot;left&quot;&gt;Action&lt;/th&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Edit Classification...&lt;/th&gt;
+    &lt;th&gt;Description&lt;/th&gt;
+    &lt;th&gt;Sortkey&lt;/th&gt;
+    &lt;th&gt;Products&lt;/th&gt;
+    &lt;th&gt;Action&lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   [% FOREACH cl = classifications %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;editclassifications.cgi?action=edit&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;&lt;b&gt;[% cl.name FILTER html %]&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
-      &lt;td valign=&quot;top&quot;&gt; 
</del><ins>+      &lt;td&gt;
+        &lt;a href=&quot;editclassifications.cgi?action=edit&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;
+          &lt;b&gt;[% cl.name FILTER html %]&lt;/b&gt;
+        &lt;/a&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
</ins><span class="cx">       [% IF cl.description %]
</span><span class="cx">         [% cl.description FILTER html_light %]
</span><span class="cx">       [% ELSE %]
</span><del>-        &lt;font color=&quot;red&quot;&gt;none&lt;/font&gt;
</del><ins>+        &lt;span class=&quot;warning&quot;&gt;none&lt;/span&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;[% cl.sortkey FILTER html %]&lt;/td&gt;
</del><ins>+      &lt;td&gt;[% cl.sortkey FILTER html %]&lt;/td&gt;
</ins><span class="cx">       [% IF (cl.id == 1) %]
</span><del>-        &lt;td valign=&quot;top&quot;&gt;[% cl.product_count FILTER html %]&lt;/td&gt;
</del><ins>+        &lt;td&gt;[% cl.product_count FILTER html %]&lt;/td&gt;
</ins><span class="cx">       [% ELSE %]
</span><del>-        &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;editclassifications.cgi?action=reclassify&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;reclassify ([% cl.product_count FILTER html %])&lt;/a&gt;&lt;/td&gt;
</del><ins>+        &lt;td&gt;
+          &lt;a href=&quot;editclassifications.cgi?action=reclassify&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;
+            reclassify&amp;nbsp;([% cl.product_count FILTER html %])&lt;/a&gt;
+        &lt;/td&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx"> 
</span><span class="cx">       [%# don't allow user to delete the default id. %]
</span><span class="cx">       [% IF (cl.id == 1) %]
</span><del>-        &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
</del><ins>+        &lt;td&gt;&lt;/td&gt;
</ins><span class="cx">       [% ELSE %]
</span><del>-        &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;editclassifications.cgi?action=del&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;delete&lt;/a&gt;&lt;/td&gt;
</del><ins>+        &lt;td&gt;
+          &lt;a href=&quot;editclassifications.cgi?action=del&amp;amp;classification=[% cl.name FILTER uri %]&quot;&gt;delete&lt;/a&gt;
+        &lt;/td&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  &lt;tr&gt;
-    &lt;td valign=&quot;top&quot; colspan=4&gt;Add a new classification&lt;/td&gt;
-    &lt;td valign=&quot;top&quot; align=&quot;center&quot;&gt;&lt;a href=&quot;editclassifications.cgi?action=add&quot;&gt;Add&lt;/a&gt;&lt;/td&gt;
-  &lt;/tr&gt;
</del><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><ins>+&lt;p&gt;
+  &lt;a href=&quot;editclassifications.cgi?action=add&quot;&gt;Add a new classification&lt;/a&gt;.
+&lt;/p&gt;
+
</ins><span class="cx"> [% PROCESS global/footer.html.tmpl %] 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,112 +19,107 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Component:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% comp.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Component Description:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% comp.description FILTER html_light %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Default assignee:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% comp.default_assignee.login FILTER html %]&lt;/td&gt;
-  
-[% IF Param('useqacontact') %]
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Default QA contact:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% comp.default_qa_contact.login FILTER html %]&lt;/td&gt;
-[% END %]
-  
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Component of Product:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% product.name FILTER html %]&lt;/td&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Component&lt;/td&gt;
+    &lt;td&gt;[% comp.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Component Description&lt;/td&gt;
+    &lt;td&gt;[% comp.description FILTER html_light %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Default assignee&lt;/td&gt;
+    &lt;td&gt;[% comp.default_assignee.login FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> 
</span><del>-[% IF product.description %]
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Product Description:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% product.description FILTER html_light %]&lt;/td&gt;
-[% END %]
</del><ins>+  [% IF Param('useqacontact') %]
+    &lt;tr&gt;
+      &lt;td&gt;Default QA contact&lt;/td&gt;
+      &lt;td&gt;[% comp.default_qa_contact.login FILTER html %]&lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
</ins><span class="cx"> 
</span><del>-[% IF Param('usetargetmilestone') %]
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Product Milestone URL:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-    &lt;a href=&quot;[% product.milestone_url FILTER html %]&quot;&gt;
-      [% product.milestone_url FILTER html %]
-    &lt;/a&gt;
-  &lt;/td&gt;
-[% END %]
</del><ins>+  &lt;tr&gt;
+    &lt;td&gt;Component of Product&lt;/td&gt;
+    &lt;td&gt;[% product.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> 
</span><del>-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;TD VALIGN=&quot;top&quot;&gt;Open for [% terms.bugs %]:&lt;/TD&gt;
-  &lt;TD VALIGN=&quot;top&quot;&gt;[% IF product.is_active &amp;&amp; comp.isactive %]Yes[% ELSE %]No[% END %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% terms.Bugs %]:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-[% IF comp.bug_count %]
-  &lt;a title=&quot;List of [% terms.bugs %] for component '[% comp.name FILTER html %]'&quot;
-     href=&quot;buglist.cgi?component=[% comp.name FILTER uri %]&amp;amp;product=
-          [%- product.name FILTER uri %]&quot;&gt;[% comp.bug_count %]&lt;/a&gt;
-[% ELSE %]
-  None
-[% END %]
-  &lt;/td&gt;
-&lt;/tr&gt;
</del><ins>+  [% IF product.description %]
+    &lt;tr&gt;
+      &lt;td&gt;Product Description&lt;/td&gt;
+      &lt;td&gt;[% product.description FILTER html_light %]&lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+
+  [% IF Param('usetargetmilestone') %]
+    &lt;tr&gt;
+      &lt;td&gt;Product Milestone URL&lt;/td&gt;
+      &lt;td&gt;
+        &lt;a href=&quot;[% product.milestone_url FILTER html %]&quot;&gt;
+          [% product.milestone_url FILTER html %]&lt;/a&gt;
+      &lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+
+  &lt;tr&gt;
+    &lt;td&gt;Open for [% terms.bugs %]&lt;/td&gt;
+    &lt;td&gt;[% IF product.is_active &amp;&amp; comp.isactive %]Yes[% ELSE %]No[% END %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;[% terms.Bugs %]&lt;/td&gt;
+    &lt;td&gt;
+      [% IF comp.bug_count %]
+        &lt;a title=&quot;List of [% terms.bugs %] for component '[% comp.name FILTER html %]'&quot;
+           href=&quot;buglist.cgi?component=[% comp.name FILTER uri %]&amp;amp;product=
+                 [%- product.name FILTER uri %]&quot;&gt;[% comp.bug_count %]&lt;/a&gt;
+      [% ELSE %]
+        None
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><del>-  
</del><ins>+
</ins><span class="cx"> [% IF comp.bug_count %]
</span><span class="cx"> 
</span><span class="cx">   [% IF !Param(&quot;allowbugdeletion&quot;) %]
</span><del>-  &lt;p&gt;
-    Sorry, there
</del><ins>+    &lt;p class=&quot;confirmation&quot;&gt;
+      Sorry, there
+      [% IF comp.bug_count &gt; 1 %]
+        are [% comp.bug_count %] [%+ terms.bugs %]
+      [% ELSE %]
+        is 1 [% terms.bug %]
+      [% END %]
+      outstanding for this component. You must reassign
</ins><span class="cx"> 
</span><del>-    [% IF comp.bug_count &gt; 1 %] 
-      are [% comp.bug_count %] [%+ terms.bugs %] 
-    [% ELSE %]
-      is [% comp.bug_count %] [%+ terms.bug %] 
-    [% END %]
-
-    outstanding for this component.  You must reassign 
-
-    [% IF comp.bug_count &gt; 1 %]
-       those [% terms.bugs %] 
-    [% ELSE %]
-       that [% terms.bug %]
-    [% END %]
-
-    to another component before you can delete this one.
-  &lt;/p&gt;
</del><ins>+      [% IF comp.bug_count &gt; 1 %]
+        those [% terms.bugs %]
+      [% ELSE %]
+        that [% terms.bug %]
+      [% END %]
+      to another component before you can delete this one.
+    &lt;/p&gt;
</ins><span class="cx">   [% ELSE %]
</span><del>-
-    &lt;table border=&quot;0&quot; cellpadding=&quot;20&quot; width=&quot;70%&quot; bgcolor=&quot;red&quot;&gt;&lt;tr&gt;&lt;td&gt;
-
-      There [% IF comp.bug_count &gt; 1 %] 
</del><ins>+    &lt;p class=&quot;confirmation&quot;&gt;
+      There
+      [% IF comp.bug_count &gt; 1 %]
</ins><span class="cx">         are [% comp.bug_count %] [%+ terms.bugs %] 
</span><span class="cx">       [% ELSE %]
</span><span class="cx">         is 1 [% terms.bug %]
</span><span class="cx">       [% END %]
</span><span class="cx">       entered for this component!  When you delete this
</span><del>-      component, &lt;b&gt;&lt;blink&gt;ALL&lt;/blink&gt;&lt;/b&gt; stored [% terms.bugs %] and
</del><ins>+      component, &lt;b&gt;ALL&lt;/b&gt; stored [% terms.bugs %] and
</ins><span class="cx">       their history will be deleted too.
</span><del>-      &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
-
</del><ins>+    &lt;/p&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,21 +10,23 @@
</span><span class="cx">   # product: object; Bugzilla::Product object representing the product to
</span><span class="cx">   #               which the component belongs.
</span><span class="cx">   #%]
</span><del>-  
</del><ins>+
</ins><span class="cx"> [% title = BLOCK %]Add component to the [% product.name FILTER html %] product[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><ins>+  title = title
+  generate_api_token = 1
+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx">   yui = [ 'autocomplete' ]
</span><span class="cx">   javascript_urls = [ &quot;js/field.js&quot; ]
</span><del>-  title = title
</del><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editcomponents.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/components/edit-common.html.tmpl&quot; %]
</span><del>-    
</del><ins>+
</ins><span class="cx">   &lt;/table&gt;
</span><del>-  &lt;hr&gt;
</del><ins>+
</ins><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Add&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name='product' value=&quot;[% product.name FILTER html %]&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentseditcommonhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit-common.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit-common.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit-common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Tiago Rodrigues de Mello &lt;timello@linux.vnet.ibm.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,26 +10,31 @@
</span><span class="cx">   # comp: object; Bugzilla::Component object.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><ins>+[%# When called from the &quot;New Product&quot; page, the component description field
+  # must have a name different from the product description field. %]
+[% DEFAULT desc_name = &quot;description&quot; %]
+
</ins><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;component&quot;&gt;Component:&lt;/label&gt;&lt;/th&gt;
</del><ins>+  &lt;th&gt;&lt;label for=&quot;component&quot;&gt;Component:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;component&quot; id=&quot;component&quot;
</span><del>-             value=&quot;[%- comp.name FILTER html %]&quot;&gt;&lt;/td&gt;
</del><ins>+             value=&quot;[%- comp.name FILTER html %]&quot; required&gt;&lt;/td&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;[% desc_name FILTER html %]&quot;&gt;Component Description:&lt;/label&gt;&lt;/th&gt;
</del><ins>+  &lt;th&gt;&lt;label for=&quot;[% desc_name FILTER html %]&quot;&gt;Component Description:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% INCLUDE global/textarea.html.tmpl
</span><del>-      name           = 'description'
-      id             = 'description'
</del><ins>+      name           = desc_name
+      id             = desc_name
</ins><span class="cx">       minrows        = 4
</span><span class="cx">       cols           = 64
</span><span class="cx">       wrap           = 'virtual'
</span><span class="cx">       defaultcontent = comp.description
</span><ins>+      mandatory      = 1
</ins><span class="cx">     %]
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;initialowner&quot;&gt;Default Assignee:&lt;/label&gt;&lt;/th&gt;
</del><ins>+  &lt;th&gt;&lt;label for=&quot;initialowner&quot;&gt;Default Assignee:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% INCLUDE global/userselect.html.tmpl
</span><span class="cx">        name =&gt; &quot;initialowner&quot;
</span><span class="lines">@@ -48,12 +41,13 @@
</span><span class="cx">        id =&gt; &quot;initialowner&quot;
</span><span class="cx">        value =&gt; comp.default_assignee.login
</span><span class="cx">        size =&gt; 64
</span><ins>+       mandatory =&gt; 1
</ins><span class="cx">      %]
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> [% IF Param('useqacontact') %]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;initialqacontact&quot;&gt;Default QA contact:&lt;/label&gt;&lt;/th&gt;
</del><ins>+    &lt;th&gt;&lt;label for=&quot;initialqacontact&quot;&gt;Default QA contact:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% INCLUDE global/userselect.html.tmpl
</span><span class="cx">          name =&gt; &quot;initialqacontact&quot;
</span><span class="lines">@@ -66,7 +60,7 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;initialcc&quot;&gt;Default CC List:&lt;/label&gt;&lt;/th&gt;
</del><ins>+  &lt;th&gt;&lt;label for=&quot;initialcc&quot;&gt;Default CC List:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% INCLUDE global/userselect.html.tmpl
</span><span class="cx">        name     =&gt; &quot;initialcc&quot;
</span><span class="lines">@@ -77,7 +71,7 @@
</span><span class="cx">     %]
</span><span class="cx">     &lt;br&gt;
</span><span class="cx">     [% IF !Param(&quot;usemenuforusers&quot;) %]
</span><del>-      &lt;em&gt;Enter user names for the CC list as a comma-separated list.&lt;/em&gt;
</del><ins>+      &lt;span class=&quot;bz_info&quot;&gt;Enter user names for the CC list as a comma-separated list.&lt;/span&gt;
</ins><span class="cx">     [% END %]
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,41 +13,40 @@
</span><span class="cx">   #               which the component belongs.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Edit component '[% comp.name FILTER html %]' of product '[% product.name FILTER html %]'
</span><span class="cx"> [% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  generate_api_token = 1
+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx">   yui = [ 'autocomplete' ]
</span><span class="cx">   javascript_urls = [ &quot;js/field.js&quot; ]
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editcomponents.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/components/edit-common.html.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;isactive&quot; name=&quot;isactive&quot; type=&quot;checkbox&quot; value=&quot;1&quot; 
</span><span class="cx">                  [% 'checked=&quot;checked&quot;' IF comp.isactive %]&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;[% terms.Bugs %]:&lt;/th&gt;
</del><ins>+      &lt;th&gt;[% terms.Bugs %]:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-[% IF comp.bug_count &gt; 0 %]
-        &lt;a title=&quot;[% terms.Bugs %] in component '[% comp.name FILTER html %]'&quot;
-           href=&quot;buglist.cgi?component=
-                [%- comp.name FILTER uri %]&amp;amp;product=
-                [%- product.name FILTER uri %]&quot;&gt;[% comp.bug_count %]&lt;/a&gt;
-[% ELSE %]
-        None
-[% END %]
</del><ins>+        [% IF comp.bug_count &gt; 0 %]
+          &lt;a title=&quot;[% terms.Bugs %] in component '[% comp.name FILTER html %]'&quot;
+             href=&quot;buglist.cgi?component=
+                  [%- comp.name FILTER uri %]&amp;amp;product=
+                  [%- product.name FILTER uri %]&quot;&gt;[% comp.bug_count %]&lt;/a&gt;
+        [% ELSE %]
+          None
+        [% END %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><del>-
</del><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot;&gt;
</span><span class="lines">@@ -67,11 +53,10 @@
</span><span class="cx">    &lt;input type=&quot;hidden&quot; name=&quot;componentold&quot; value=&quot;[% comp.name FILTER html %]&quot;&gt;
</span><span class="cx">    &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;[% product.name FILTER html %]&quot;&gt;
</span><span class="cx">    &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><del>-   &lt;input type=&quot;submit&quot; value=&quot;Save Changes&quot; id=&quot;update&quot;&gt; or &lt;a 
-        href=&quot;editcomponents.cgi?action=del&amp;amp;product=
-        [%- product.name FILTER uri %]&amp;amp;component=
-        [%- comp.name FILTER uri %]&quot;&gt;Delete&lt;/a&gt; this component.
-
</del><ins>+   &lt;input type=&quot;submit&quot; value=&quot;Save Changes&quot; id=&quot;update&quot;&gt; or
+   &lt;a href=&quot;editcomponents.cgi?action=del&amp;amp;product=
+            [%- product.name FILTER uri %]&amp;amp;component=
+            [%- comp.name FILTER uri %]&quot;&gt;Delete&lt;/a&gt; this component.
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/components/footer.html.tmpl
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,12 +12,11 @@
</span><span class="cx">   #               which the component belongs.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Select component of product
</span><span class="cx">                    '[% product.name FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% edit_contentlink = BLOCK %]editcomponents.cgi?action=edit&amp;amp;product=
</span><span class="lines">@@ -56,11 +42,6 @@
</span><span class="cx">        name =&gt; &quot;initialowner&quot;
</span><span class="cx">        heading =&gt; &quot;Default Assignee&quot;
</span><span class="cx">      },
</span><del>-     {
-       name =&gt; &quot;isactive&quot;
-       heading =&gt; &quot;Active&quot;
-       yesno_field =&gt; 1
-     },
</del><span class="cx">    ]
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -68,17 +49,27 @@
</span><span class="cx"> 
</span><span class="cx">   [% columns.push({
</span><span class="cx">        name =&gt; 'initialqacontact'
</span><del>-       heading =&gt; 'QA Contact'
</del><ins>+       heading =&gt; 'Default QA Contact'
</ins><span class="cx">      }) %]
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% columns.push({
+     name =&gt; &quot;initial_cc_names&quot;
+     heading =&gt; &quot;Default CC list&quot;
+   },
+   {
+     name =&gt; &quot;isactive&quot;
+     heading =&gt; &quot;Active&quot;
+     yesno_field =&gt; 1
+   }) %]
+
</ins><span class="cx"> [% IF showbugcounts %]
</span><span class="cx"> 
</span><span class="cx">   [% columns.push({
</span><span class="cx">        name =&gt; 'bug_count'
</span><span class="cx">        heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-       align =&gt; &quot;right&quot;
</del><ins>+       class =&gt; &quot;right&quot;
</ins><span class="cx">        contentlink =&gt; bug_count_contentlink
</span><span class="cx">      }) %]
</span><span class="cx"> 
</span><span class="lines">@@ -90,9 +81,10 @@
</span><span class="cx">      contentlink =&gt; delete_contentlink
</span><span class="cx">    }) %]
</span><span class="cx"> 
</span><del>-[%# Overrides the initialowner and the initialqacontact with right values %]
</del><ins>+[%# Overrides the initialowner, the initialqacontact, and the initial_cc_names with right values %]
</ins><span class="cx"> [% overrides.initialowner = {} %]
</span><span class="cx"> [% overrides.initialqacontact = {} %]
</span><ins>+[% overrides.initial_cc_names = {} %]
</ins><span class="cx"> 
</span><span class="cx"> [%# &quot;component&quot; is a reserved word in Template Toolkit. %]
</span><span class="cx"> [% FOREACH my_component = product.components %]
</span><span class="lines">@@ -106,6 +98,15 @@
</span><span class="cx">        content =&gt; my_component.default_qa_contact.login
</span><span class="cx">      }
</span><span class="cx">   %]
</span><ins>+  [% SET initial_cc_list = [] %]
+  [% FOREACH cc_user = my_component.initial_cc %]
+    [% initial_cc_list.push(cc_user.login) %]
+  [% END %]
+  [% overrides.initial_cc_names.name.${my_component.name} = {
+       override_content =&gt; 1
+       content =&gt; initial_cc_list.join(', ')
+     }
+  %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% Hook.process('before_table') %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincomponentsselectproducthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/components/select-product.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/components/select-product.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/components/select-product.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,10 +11,9 @@
</span><span class="cx">   # showbugcounts: if defined, then bug counts should be included in the table
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit components for which product?&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><span class="lines">@@ -50,7 +35,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">       name =&gt; 'bug_count'
</span><span class="cx">       heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-      align =&gt; &quot;right&quot;
</del><ins>+      class =&gt; &quot;right&quot;
</ins><span class="cx">       contentlink =&gt; &quot;buglist.cgi?product=%%name%%&quot;
</span><span class="cx">     })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminconfirmactionhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/confirm-action.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/confirm-action.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/confirm-action.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,54 +12,43 @@
</span><span class="cx">   # expected_action: the action the user was going to do.
</span><span class="cx">   # script_name: the script generating this warning.
</span><span class="cx">   # alternate_script: the suggested script to redirect the user to
</span><del>-  #                   if he declines submission.
</del><ins>+  #                   if they decline submission.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><ins>+[% PROCESS global/header.html.tmpl
+  title = &quot;Suspicious Action&quot;
+%]
</ins><span class="cx"> 
</span><del>-[% PROCESS global/header.html.tmpl title = &quot;Suspicious Action&quot;
-                                   style_urls = ['skins/standard/global.css'] %]
-
</del><span class="cx"> [% IF abuser %]
</span><span class="cx">   &lt;div class=&quot;throw_error&quot;&gt;
</span><del>-    &lt;p&gt;When you view an administrative form in [% terms.Bugzilla %], a token string
</del><ins>+    &lt;p&gt;When you view an administrative form in Bugzilla, a token string
</ins><span class="cx">     is randomly generated and stored both in the database and in the form you loaded,
</span><span class="cx">     to make sure that the requested changes are being made as a result of submitting
</span><del>-    a form generated by [% terms.Bugzilla %]. Unfortunately, the token used right now
</del><ins>+    a form generated by Bugzilla. Unfortunately, the token used right now
</ins><span class="cx">     is incorrect, meaning that it looks like you didn't come from the right page.
</span><span class="cx">     The following token has been used :&lt;/p&gt;
</span><span class="cx"> 
</span><del>-    &lt;table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot;&gt;
-      [% IF token_action != expected_action %]
-        &lt;tr&gt;
-          &lt;th&gt;Action&amp;nbsp;stored:&lt;/th&gt;
-          &lt;td&gt;[% token_action FILTER html %]&lt;/td&gt;
-        &lt;/tr&gt;
-        &lt;tr&gt;
-          &lt;th&gt;&amp;nbsp;&lt;/th&gt;
-          &lt;td&gt;
-            This action doesn't match the one expected ([% expected_action FILTER html %]).
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      [% END %]
</del><ins>+    [% IF token_action != expected_action %]
+      &lt;p&gt;
+        &lt;span class=&quot;label&quot;&gt;Action&amp;nbsp;stored:&lt;/span&gt;
+        [%+ token_action FILTER html %]
+        &lt;br&gt;
+        This action doesn't match the one expected ([% expected_action FILTER html %]).
+      &lt;/p&gt;
+    [% END %]
</ins><span class="cx"> 
</span><del>-      [% IF abuser != user.identity %]
-        &lt;tr&gt;
-          &lt;th&gt;Generated&amp;nbsp;by:&lt;/th&gt;
-          &lt;td&gt;[% abuser FILTER html %]&lt;/td&gt;
-        &lt;/tr&gt;
-        &lt;tr&gt;
-          &lt;th&gt;&amp;nbsp;&lt;/th&gt;
-          &lt;td&gt;
-            This token has not been generated by you. It is possible that someone
-            tried to trick you!
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      [% END %]
-    &lt;/table&gt;
</del><ins>+    [% IF abuser != user.identity %]
+      &lt;p&gt;
+        &lt;span class=&quot;label&quot;&gt;Generated&amp;nbsp;by:&lt;/span&gt;
+        [%+ abuser FILTER html %]
+        &lt;br&gt;
+        This token has not been generated by you. It is possible that someone
+        tried to trick you!
+      &lt;/p&gt;
+    [% END %]
+  &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-    &lt;p&gt;Please report this problem to [%+ Param(&quot;maintainer&quot;) FILTER html %].&lt;/p&gt;
-  &lt;/div&gt;
</del><ins>+  &lt;p&gt;Please report this problem to [% Param(&quot;maintainer&quot;) FILTER html %].&lt;/p&gt;
</ins><span class="cx"> [% ELSE %]
</span><span class="cx">   &lt;div class=&quot;throw_error&quot;&gt;
</span><span class="cx">     It looks like you didn't come from the right page (you have no valid token for
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldscfjsjstmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/cf-js.js.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/cf-js.js.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/cf-js.js.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is NASA.
-  # Portions created by NASA are Copyright (C) 2008 
-  # San Jose State University Foundation. All Rights Reserved.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> // Disable a checkbox based on the state of another one.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldsconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Alexander Eiser &lt;alexe@ed.ca&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,31 +19,32 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">            title = title
</span><del>-           doc_section = &quot;custom-fields.html#delete-custom-fields&quot;
</del><ins>+           style_urls = ['skins/standard/admin.css']
+           doc_section = &quot;administering/custom-fields.html#deleting-custom-fields&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Custom Field:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% field.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Description:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% field.description FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Type:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% field_types.${field.type} FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Custom Field&lt;/td&gt;
+    &lt;td&gt;[% field.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Description&lt;/td&gt;
+    &lt;td&gt;[% field.description FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Type&lt;/td&gt;
+    &lt;td&gt;[% field_types.${field.type} FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;
</del><ins>+&lt;p class=&quot;confirmation&quot;&gt;
</ins><span class="cx">   Are you sure you want to remove this field from the database?&lt;br&gt;
</span><span class="cx">   &lt;em&gt;This action will only be successful if the field is obsolete,
</span><span class="cx">   and has never been used in [% terms.abug FILTER html %].&lt;/em&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -17,8 +10,6 @@
</span><span class="cx">   # none
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% javascript = BLOCK %]
</span><span class="cx">   [% INCLUDE &quot;admin/custom_fields/cf-js.js.tmpl&quot; %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -27,21 +18,21 @@
</span><span class="cx">            title = &quot;Add a new Custom Field&quot;
</span><span class="cx">            onload = &quot;document.getElementById('new_bugmail').disabled = true;&quot;
</span><span class="cx">            javascript_urls = [ 'js/util.js' ]
</span><del>-           doc_section = &quot;custom-fields.html#add-custom-fields&quot;
</del><ins>+           doc_section = &quot;administering/custom-fields.html#adding-custom-fields&quot;
</ins><span class="cx">            style_urls = ['skins/standard/admin.css']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [%# set initial editability of fields such as Reverse Relationship Description %]
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('type'))});
</del><ins>+  YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('type'))});
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  Adding custom fields can make the interface of [% terms.Bugzilla %] very
-  complicated. Many admins who are new to [% terms.Bugzilla %] start off
</del><ins>+  Adding custom fields can make the interface of Bugzilla very
+  complicated. Many admins who are new to Bugzilla start off
</ins><span class="cx">   adding many custom fields, and then their users complain that the interface
</span><span class="cx">   is &quot;too complex&quot;. Please think carefully before adding any custom fields.
</span><del>-  It may be the case that [% terms.Bugzilla %] already does what you need,
</del><ins>+  It may be the case that Bugzilla already does what you need,
</ins><span class="cx">   and you just haven't enabled the correct feature yet.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -54,119 +45,11 @@
</span><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;add_field&quot; action=&quot;editfields.cgi&quot; method=&quot;GET&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; id=&quot;edit_custom_field&quot;&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; value=&quot;cf_&quot; size=&quot;40&quot; maxlength=&quot;64&quot;&gt;
-      &lt;/td&gt;
</del><ins>+  [% PROCESS &quot;admin/custom_fields/edit-common.html.tmpl&quot; %]
</ins><span class="cx"> 
</span><del>-      &lt;th&gt;
-        &lt;label for=&quot;enter_bug&quot;&gt;Can be set on [% terms.bug %] creation:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;checkbox&quot; id=&quot;enter_bug&quot; name=&quot;enter_bug&quot; value=&quot;1&quot;
-               onchange=&quot;toggleCheckbox(this, 'new_bugmail');&quot;&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;desc&quot;&gt;Description:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;desc&quot; name=&quot;desc&quot; value=&quot;&quot; size=&quot;40&quot;&gt;&lt;/td&gt;
-
-      &lt;th&gt;
-        &lt;label for=&quot;new_bugmail&quot;&gt;Displayed in [% terms.bug %]mail for new [% terms.bugs %]:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;new_bugmail&quot; name=&quot;new_bugmail&quot; value=&quot;1&quot;&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;type&quot;&gt;Type:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;select id=&quot;type&quot; name=&quot;type&quot; onchange=&quot;onChangeType(this)&quot;&gt;
-          [% FOREACH type = field_types.keys %]
-            [% NEXT IF type == constants.FIELD_TYPE_UNKNOWN %]
-            &lt;option value=&quot;[% type FILTER html %]&quot;&gt;[% field_types.$type FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-
-      &lt;th&gt;&lt;label for=&quot;obsolete&quot;&gt;Is obsolete:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;obsolete&quot; name=&quot;obsolete&quot; value=&quot;1&quot;&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;text&quot; id=&quot;sortkey&quot; name=&quot;sortkey&quot; size=&quot;6&quot; maxlength=&quot;6&quot;&gt;
-      &lt;/td&gt;
-
-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;is_mandatory&quot;&gt;Is mandatory:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;is_mandatory&quot; name=&quot;is_mandatory&quot; value=&quot;1&quot;&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;
-        &lt;label for=&quot;reverse_desc&quot;&gt;Reverse Relationship Description:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;text&quot; id=&quot;reverse_desc&quot; name=&quot;reverse_desc&quot; value=&quot;&quot; size=&quot;40&quot; disabled=&quot;disabled&quot;&gt;
-        &lt;br/&gt;
-        Use this label for the list of [% terms.bugs %] that link to
-        [%+ terms.abug %] with this 
-        [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %]
-        field. For example, if the description is &quot;Is a duplicate of&quot;,
-        the reverse description would be &quot;Duplicates of this [% terms.bug %]&quot;.
-        Leave blank to disable the list for this field.
-      &lt;/td&gt;
-      &lt;th&gt;
-        &lt;label for=&quot;visibility_field_id&quot;&gt;Field only appears when:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;
-        &lt;select name=&quot;visibility_field_id&quot; id=&quot;visibility_field_id&quot;
-                onchange=&quot;onChangeVisibilityField()&quot;&gt;
-          &lt;option&gt;&lt;/option&gt;
-          [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
-            &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;&gt;
-              [% sel_field.description FILTER html %]
-              ([% sel_field.name FILTER html %])
-            &lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-        &lt;label for=&quot;visibility_values&quot;&gt;
-          &lt;strong&gt;is set to any of:&lt;/strong&gt;
-        &lt;/label&gt;
-        &lt;select multiple=&quot;multiple&quot; size=&quot;5&quot; name=&quot;visibility_values&quot;
-                id=&quot;visibility_values&quot; class=&quot;field_value&quot;&gt;
-          &lt;option value=&quot;&quot;&gt;&lt;/option&gt;
-        &lt;/select&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-
-    &lt;tr&gt;
-      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
-      &lt;th&gt;
-        &lt;label for=&quot;value_field_id&quot;&gt;
-          Field that controls the values&lt;br&gt;
-          that appear in this field:
-        &lt;/label&gt;
-      &lt;/th&gt;
-
-      &lt;td&gt;
-        &lt;select disabled=&quot;disabled&quot; name=&quot;value_field_id&quot; id=&quot;value_field_id&quot;&gt;
-          &lt;option&gt;&lt;/option&gt;
-          [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
-            &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;&gt;
-              [% sel_field.description FILTER html %]
-              ([% sel_field.name FILTER html %])
-            &lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;/table&gt;
-  &lt;p&gt;
-    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot;&gt;
-    &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
-    &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Create&quot;&gt;
-  &lt;/p&gt;
</del><ins>+  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot;&gt;
+  &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
+  &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Create&quot;&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldseditcommonhtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit-common.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit-common.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit-common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,193 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # field: Bugzila::Field; the current field being edited
+  #%]
+
+[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
+
+&lt;table id=&quot;admin_table_edit&quot;&gt;
+  &lt;tr&gt;
+    &lt;th&gt;&lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      [% IF field %]
+        [% field.name FILTER html %]
+      [% ELSE %]
+        &lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; value=&quot;cf_&quot; size=&quot;40&quot; maxlength=&quot;64&quot; required&gt;
+      [% END %]
+    &lt;/td&gt;
+
+    &lt;th&gt;
+      &lt;label for=&quot;enter_bug&quot;&gt;Can be set on [% terms.bug %] creation:&lt;/label&gt;
+    &lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;checkbox&quot; id=&quot;enter_bug&quot; name=&quot;enter_bug&quot; value=&quot;1&quot;
+             [%- &quot; checked&quot; IF field.enter_bug %]
+             onchange=&quot;toggleCheckbox(this, 'new_bugmail');&quot;&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+
+  &lt;tr&gt;
+    &lt;th&gt;&lt;label for=&quot;desc&quot;&gt;Description:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;text&quot; id=&quot;desc&quot; name=&quot;desc&quot; size=&quot;40&quot;
+             value=&quot;[% field.description FILTER html %]&quot; required&gt;
+    &lt;/td&gt;
+
+    &lt;th&gt;
+      &lt;label for=&quot;new_bugmail&quot;&gt;Displayed in [% terms.bug %]mail for new [% terms.bugs %]:&lt;/label&gt;
+    &lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;checkbox&quot; id=&quot;new_bugmail&quot; name=&quot;new_bugmail&quot; value=&quot;1&quot;
+             [%- &quot; checked&quot; IF field.mailhead %]&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+
+  &lt;tr&gt;
+    &lt;th&gt;&lt;label for=&quot;type&quot;&gt;Type:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      [% IF field %]
+        [% field_types.${field.type} FILTER html %]
+      [% ELSE %]
+        &lt;select id=&quot;type&quot; name=&quot;type&quot; onchange=&quot;onChangeType(this)&quot;&gt;
+          [% FOREACH type = field_types.keys %]
+            [% NEXT IF type == constants.FIELD_TYPE_UNKNOWN %]
+            &lt;option value=&quot;[% type FILTER html %]&quot;&gt;[% field_types.$type FILTER html %]&lt;/option&gt;
+          [% END %]
+        &lt;/select&gt;
+      [% END %]
+    &lt;/td&gt;
+
+    &lt;th&gt;&lt;label for=&quot;obsolete&quot;&gt;Is obsolete:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;checkbox&quot; id=&quot;obsolete&quot; name=&quot;obsolete&quot; value=&quot;1&quot;
+             [%- &quot; checked&quot; IF field.obsolete %]&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+
+  &lt;tr&gt;
+    &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;text&quot; id=&quot;sortkey&quot; name=&quot;sortkey&quot; size=&quot;6&quot; maxlength=&quot;6&quot;
+             value=&quot;[% field.sortkey FILTER html %]&quot;&gt;
+    &lt;/td&gt;
+
+    &lt;th&gt;&lt;label for=&quot;is_mandatory&quot;&gt;Is mandatory:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;checkbox&quot; id=&quot;is_mandatory&quot; name=&quot;is_mandatory&quot; value=&quot;1&quot;
+             [%- ' checked=&quot;checked&quot;' IF field.is_mandatory %]&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+
+  &lt;tr&gt;
+    &lt;th&gt;Long Description:&lt;/th&gt;
+    &lt;td&gt;
+      [% INCLUDE global/textarea.html.tmpl
+       name           = 'long_desc'
+       id             = 'long_desc'
+       minrows        = 3
+       maxrows        = 5
+       cols           = 46
+       defaultcontent = field.long_desc
+     %]
+    &lt;/td&gt;
+
+    &lt;th&gt;
+      &lt;label for=&quot;visibility_field_id&quot;&gt;Field only appears when:&lt;/label&gt;
+    &lt;/th&gt;
+    &lt;td&gt;
+      &lt;select name=&quot;visibility_field_id&quot; id=&quot;visibility_field_id&quot;
+              onchange=&quot;onChangeVisibilityField()&quot;&gt;
+        &lt;option&gt;&lt;/option&gt;
+        [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
+          [% NEXT IF field &amp;&amp; sel_field.id == field.id %]
+          &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;
+           [% ' selected=&quot;selected&quot;' 
+              IF field &amp;&amp; sel_field.id == field.visibility_field.id %]&gt;
+            [% sel_field.description FILTER html %]
+            ([% sel_field.name FILTER html %])
+          &lt;/option&gt;
+        [% END %]
+      &lt;/select&gt;
+      &lt;br&gt;
+      &lt;label for=&quot;visibility_values&quot;&gt;
+        &lt;strong&gt;is set to any of:&lt;/strong&gt;
+      &lt;/label&gt;
+      &lt;br&gt;
+      &lt;select multiple=&quot;multiple&quot; size=&quot;5&quot; name=&quot;visibility_values&quot; 
+              id=&quot;visibility_values&quot; class=&quot;field_value&quot;&gt;
+        [% IF field %]
+          [% FOREACH value = field.visibility_field.legal_values %]
+            &lt;option value=&quot;[% value.id FILTER html %]&quot;
+              [% &quot; selected&quot; IF field.visibility_values.contains(value) %]&gt;
+              [% IF field.visibility_field.name == 'component' %]
+                [% display_value('product', value.product.name) FILTER html %]:
+              [% END %]
+              [%+ display_value(field.visibility_field.name, value.name) FILTER html %]
+            &lt;/option&gt;
+          [% END %]
+        [% ELSE %]
+          &lt;option value=&quot;&quot;&gt;&lt;/option&gt;
+        [% END %]
+      &lt;/select&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+
+  [% IF !field || field.is_select || field.type == constants.FIELD_TYPE_BUG_ID %]
+    &lt;tr&gt;
+      [% IF field.is_select %]
+        &lt;th&gt;&amp;nbsp;&lt;/th&gt;
+        &lt;td&gt;
+          &lt;a href=&quot;editvalues.cgi?field=[% field.name FILTER uri %]&quot;&gt;Edit legal values for this field&lt;/a&gt;.
+        &lt;/td&gt;
+      [% ELSE %]
+        &lt;th&gt;
+          &lt;label for=&quot;reverse_desc&quot;&gt;Reverse Relationship Description:&lt;/label&gt;
+        &lt;/th&gt;
+        &lt;td&gt;
+          &lt;input type=&quot;text&quot; id=&quot;reverse_desc&quot; name=&quot;reverse_desc&quot; size=&quot;40&quot;
+                 value=&quot;[% field.reverse_desc FILTER html %]&quot;
+                 [% ' disabled=&quot;disabled&quot;' IF !field %]&gt;
+          &lt;br&gt;
+          Use this label for the list of [% terms.bugs %] that link to [% terms.abug %]
+          with this [% field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] field.
+          For example, if the description is &quot;Is a duplicate of&quot;, the reverse description
+          would be &quot;Duplicates of this [% terms.bug %]&quot;. Leave blank to disable the list
+          for this field.
+        &lt;/td&gt;
+      [% END %]
+
+      [% IF !field || field.is_select %]
+        &lt;th&gt;
+          &lt;label for=&quot;value_field_id&quot;&gt;
+            Field that controls the values&lt;br&gt;
+            that appear in this field:
+          &lt;/label&gt;
+        &lt;/th&gt;
+        &lt;td&gt;
+          &lt;select name=&quot;value_field_id&quot; id=&quot;value_field_id&quot;
+                  [% ' disabled=&quot;disabled&quot;' IF !field %]&gt;
+            &lt;option&gt;&lt;/option&gt;
+            [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
+              [% NEXT IF field &amp;&amp; sel_field.id == field.id %]
+              &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;
+                      [% ' selected=&quot;selected&quot;' IF field &amp;&amp; sel_field.id == field.value_field.id %]&gt;
+                [% sel_field.description FILTER html %]
+                ([% sel_field.name FILTER html %])
+              &lt;/option&gt;
+            [% END %]
+          &lt;/select&gt;
+        &lt;/td&gt;
+      [% ELSE %]
+        &lt;th&gt;&lt;/th&gt;
+        &lt;td&gt;&lt;/td&gt;
+      [% END %]
+    &lt;/tr&gt;
+  [% END %]
+&lt;/table&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -17,8 +10,6 @@
</span><span class="cx">   # field: Bugzila::Field; the current field being edited
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Edit the Custom Field '[% field.name FILTER html %]' ([% field.description FILTER html %])
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -31,7 +22,7 @@
</span><span class="cx">            title = title
</span><span class="cx">            onload = &quot;toggleCheckbox(document.getElementById('enter_bug'), 'new_bugmail');&quot;
</span><span class="cx">            javascript_urls = [ 'js/util.js' ]
</span><del>-           doc_section = &quot;custom-fields.html#edit-custom-fields&quot;
</del><ins>+           doc_section = &quot;administering/custom-fields.html#editing-custom-fields&quot;
</ins><span class="cx">            style_urls = ['skins/standard/admin.css']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -41,133 +32,8 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;edit_field&quot; action=&quot;editfields.cgi&quot; method=&quot;GET&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; id=&quot;edit_custom_field&quot;&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;Name:&lt;/th&gt;
-      &lt;td&gt;[% field.name FILTER html %]&lt;/td&gt;
</del><ins>+  [% PROCESS &quot;admin/custom_fields/edit-common.html.tmpl&quot; field = field %]
</ins><span class="cx"> 
</span><del>-      &lt;th&gt;
-        &lt;label for=&quot;enter_bug&quot;&gt;Can be set on [% terms.bug %] creation:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;enter_bug&quot; name=&quot;enter_bug&quot; value=&quot;1&quot;
-                 [%- &quot; checked&quot; IF field.enter_bug %]
-                 onchange=&quot;toggleCheckbox(this, 'new_bugmail');&quot;&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;desc&quot;&gt;Description:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;desc&quot; name=&quot;desc&quot; size=&quot;40&quot;
-                 value=&quot;[% field.description FILTER html %]&quot;&gt;&lt;/td&gt;
-
-      &lt;th&gt;
-        &lt;label for=&quot;new_bugmail&quot;&gt;Displayed in [% terms.bug %]mail for new [% terms.bugs %]:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;new_bugmail&quot; name=&quot;new_bugmail&quot; value=&quot;1&quot;
-                 [%- &quot; checked&quot; IF field.mailhead %]&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;Type:&lt;/th&gt;
-      &lt;td&gt;[% field_types.${field.type} FILTER html %]&lt;/td&gt;
-
-      &lt;th&gt;&lt;label for=&quot;obsolete&quot;&gt;Is obsolete:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;obsolete&quot; name=&quot;obsolete&quot; value=&quot;1&quot;
-                 [%- &quot; checked&quot; IF field.obsolete %]&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;th class=&quot;narrow_label&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;text&quot; id=&quot;sortkey&quot; name=&quot;sortkey&quot; size=&quot;6&quot; maxlength=&quot;6&quot;
-               value=&quot;[% field.sortkey FILTER html %]&quot;&gt;
-      &lt;/td&gt;
-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;is_mandatory&quot;&gt;Is mandatory:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;is_mandatory&quot; name=&quot;is_mandatory&quot; value=&quot;1&quot;
-                 [%- ' checked=&quot;checked&quot;' IF field.is_mandatory %]&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      [% IF field.type == constants.FIELD_TYPE_BUG_ID %]
-        &lt;th class=&quot;narrow_label&quot;&gt;
-          &lt;label for=&quot;reverse_desc&quot;&gt;Reverse Relationship Description:&lt;/label&gt;
-        &lt;/th&gt;
-        &lt;td&gt;
-          &lt;input type=&quot;text&quot; id=&quot;reverse_desc&quot; name=&quot;reverse_desc&quot; size=&quot;40&quot;
-                 value=&quot;[% field.reverse_desc FILTER html %]&quot;&gt;
-          &lt;br/&gt;
-          Use this label for the list of [% terms.bugs %] that link to
-          [%+ terms.abug %] with this 
-          [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] field.
-          For example, if the description is &quot;Is a duplicate of&quot;,
-          the reverse description would be &quot;Duplicates of this [% terms.bug %]&quot;.
-          Leave blank to disable the list for this field.
-        &lt;/td&gt;
-      [% ELSE %]
-        &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
-      [% END %]
-      &lt;th&gt;
-        &lt;label for=&quot;visibility_field_id&quot;&gt;Field only appears when:&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;
-        &lt;select name=&quot;visibility_field_id&quot; id=&quot;visibility_field_id&quot;
-                onchange=&quot;onChangeVisibilityField()&quot;&gt;
-          &lt;option&gt;&lt;/option&gt;
-          [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
-            [% NEXT IF sel_field.id == field.id %]
-            &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;
-             [% ' selected=&quot;selected&quot;' 
-                IF sel_field.id == field.visibility_field.id %]&gt;
-              [% sel_field.description FILTER html %]
-              ([% sel_field.name FILTER html %])
-            &lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-        &lt;label for=&quot;visibility_values&quot;&gt;
-          &lt;strong&gt;is set to any of:&lt;/strong&gt;
-        &lt;/label&gt;
-        &lt;select multiple=&quot;multiple&quot; size=&quot;5&quot; name=&quot;visibility_values&quot; 
-                id=&quot;visibility_values&quot; class=&quot;field_value&quot;&gt;
-          [% FOREACH value = field.visibility_field.legal_values %]
-            &lt;option value=&quot;[% value.id FILTER html %]&quot;
-              [% &quot; selected&quot; IF field.visibility_values.contains(value) %]&gt;
-              [% IF field.visibility_field.name == 'component' %]
-                [% display_value('product', value.product.name) FILTER html %]:
-              [% END %]
-              [%+ display_value(field.visibility_field.name, value.name) FILTER html %]
-            &lt;/option&gt;
-          [% END %]   
-        &lt;/select&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-    [% IF field.is_select %]
-      &lt;tr&gt;
-        &lt;th&gt;&amp;nbsp;&lt;/th&gt;
-        &lt;td&gt;
-          &lt;a href=&quot;editvalues.cgi?field=[% field.name FILTER uri %]&quot;&gt;Edit
-            legal values for this field&lt;/a&gt;.
-        &lt;/td&gt;
-
-        &lt;th&gt;
-          &lt;label for=&quot;value_field_id&quot;&gt;
-            Field that controls the values&lt;br&gt;
-            that appear in this field:
-          &lt;/label&gt;
-        &lt;/th&gt;
-
-        &lt;td&gt;
-          &lt;select name=&quot;value_field_id&quot; id=&quot;value_field_id&quot;&gt;
-            &lt;option&gt;&lt;/option&gt;
-            [% FOREACH sel_field = Bugzilla.fields({ is_select =&gt; 1 }) %]
-              [% NEXT IF sel_field.id == field.id %]
-              &lt;option value=&quot;[% sel_field.id FILTER html %]&quot;
-               [% ' selected=&quot;selected&quot;' 
-                  IF sel_field.id == field.value_field.id %]&gt;
-                [% sel_field.description FILTER html %]
-                ([% sel_field.name FILTER html %])
-              &lt;/option&gt;
-            [% END %]
-          &lt;/select&gt;
-        &lt;/td&gt;
-      &lt;/tr&gt;
-    [% END %]
-  &lt;/table&gt;
-  &lt;br&gt;
</del><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;name&quot; value=&quot;[% field.name FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmincustom_fieldslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/custom_fields/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,7 +14,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Custom Fields&quot;
</span><del>-  doc_section = &quot;custom-fields.html&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/custom-fields.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% delete_contentlink = BLOCK %]editfields.cgi?action=del&amp;amp;name=%%name%%[% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,34 +22,34 @@
</span><span class="cx">   style_urls = ['skins/standard/admin.css']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Field Name:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% field.description FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Field Value:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% value.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% terms.Bugs %]:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-[% IF value.bug_count %]
-  &lt;a title=&quot;List of [% terms.bugs %] where '
-            [%- field.description FILTER html %]' is '
-            [%- value.name FILTER html %]'&quot;
-     href=&quot;buglist.cgi?[% field.name FILTER uri %]=
-           [%- value.name FILTER uri %]&quot;&gt;
-   [%- value.bug_count FILTER html %]&lt;/a&gt;
-[% ELSE %]
-  None
-[% END %]
-  &lt;/td&gt;
-&lt;/tr&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Field Name&lt;/td&gt;
+    &lt;td&gt;[% field.description FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Field Value&lt;/td&gt;
+    &lt;td&gt;[% value.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;[% terms.Bugs %]&lt;/td&gt;
+    &lt;td&gt;
+      [% IF value.bug_count %]
+        &lt;a title=&quot;List of [% terms.bugs %] where '
+                  [%- field.description FILTER html %]' is '
+                  [%- value.name FILTER html %]'&quot;
+           href=&quot;buglist.cgi?[% field.name FILTER uri %]=
+                 [%- value.name FILTER uri %]&quot;&gt;
+          [%- value.bug_count FILTER html %]&lt;/a&gt;
+      [% ELSE %]
+        None
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="lines">@@ -108,7 +101,7 @@
</span><span class="cx"> 
</span><span class="cx">     [% IF value_count == 1 %]
</span><span class="cx">       &lt;li&gt;'[% value.name FILTER html %]' is the last value for
</span><del>-        '[%- field.description FILTER html %]', and so it can not be deleted.
</del><ins>+        '[%- field.description FILTER html %]', and so it cannot be deleted.
</ins><span class="cx">       &lt;/li&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -156,6 +149,6 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/fieldvalues/footer.html.tmpl
</span><span class="cx">   no_edit_link = 1
</span><del>- +%]
</del><ins>+%]
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %] 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluescreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,6 +15,7 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="lines">@@ -31,21 +24,21 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editvalues.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;value&quot;&gt;Value:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;value&quot;&gt;Value:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input id=&quot;value&quot; name=&quot;value&quot; size=&quot;30&quot;
</span><del>-               maxlength=&quot;[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]&quot;&gt;
</del><ins>+               maxlength=&quot;[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]&quot; required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;sortkey&quot; name=&quot;sortkey&quot; size=&quot;6&quot; maxlength=&quot;6&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF field.name == &quot;bug_status&quot; %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;is_open&quot;&gt;Status Type:&lt;/label&gt;&lt;/th&gt;
</del><ins>+        &lt;th&gt;&lt;label for=&quot;is_open&quot;&gt;Status Type:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;td&gt;
</span><span class="cx">           &lt;input type=&quot;radio&quot; id=&quot;open_status&quot; name=&quot;is_open&quot; value=&quot;1&quot; 
</span><span class="cx">                  checked=&quot;checked&quot;&gt;
</span><span class="lines">@@ -64,7 +57,7 @@
</span><span class="cx">     [% END %]
</span><span class="cx">     [% IF field.value_field %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot;&gt;
</del><ins>+        &lt;th&gt;
</ins><span class="cx">           &lt;label for=&quot;visibility_value_id&quot;&gt;Only appears when 
</span><span class="cx">            [%+ field.value_field.description FILTER html %] is set to:
</span><span class="cx">           &lt;/label&gt;
</span><span class="lines">@@ -82,7 +75,7 @@
</span><span class="cx">               &lt;/option&gt;
</span><span class="cx">             [% END %]
</span><span class="cx">           &lt;/select&gt;
</span><del>-          &lt;small&gt;(Leave unset to have this value always appear.)&lt;/small&gt;
</del><ins>+          &lt;span class=&quot;bz_info&quot;&gt;(Leave unset to have this value always appear.)&lt;/span&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -18,8 +11,6 @@
</span><span class="cx">   # field: Bugzilla::Field; The field this value belongs to.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Edit Value '[% value.name FILTER html %]' for the 
</span><span class="cx">   '[% field.description FILTER html %]' ([% field.name FILTER html %]) field
</span><span class="lines">@@ -26,15 +17,13 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editvalues.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th valign=&quot;top&quot; align=&quot;right&quot;&gt;
-        &lt;label for=&quot;value_new&quot;&gt;Field Value:&lt;/label&gt;
-      &lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;value_new&quot;&gt;Field Value:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF value.is_static %]
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;value_new&quot; id=&quot;value_new&quot;
</span><span class="lines">@@ -43,24 +32,24 @@
</span><span class="cx">         [% ELSE %]
</span><span class="cx">           &lt;input id=&quot;value_new&quot; name=&quot;value_new&quot; size=&quot;20&quot;
</span><span class="cx">                  maxlength=&quot;[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]&quot;
</span><del>-                 value=&quot;[% value.name FILTER html %]&quot;&gt;
</del><ins>+                 value=&quot;[% value.name FILTER html %]&quot; required&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;sortkey&quot; size=&quot;6&quot; maxlength=&quot;6&quot; name=&quot;sortkey&quot; 
</span><span class="cx">                  value=&quot;[%- value.sortkey FILTER html %]&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF field.name == &quot;bug_status&quot; %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;is_open&quot;&gt;Status Type:&lt;/label&gt;&lt;/th&gt;
</del><ins>+        &lt;th&gt;&lt;label for=&quot;is_open&quot;&gt;Status Type:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;td&gt;[% IF value.is_open %]Open[% ELSE %]Closed[% END %]&lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">     [% IF field.value_field %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot;&gt;
</del><ins>+        &lt;th&gt;
</ins><span class="cx">           &lt;label for=&quot;visibility_value_id&quot;&gt;Only appears when
</span><span class="cx">            [%+ field.value_field.description FILTER html %] is set to:
</span><span class="cx">           &lt;/label&gt;
</span><span class="lines">@@ -80,12 +69,12 @@
</span><span class="cx">               &lt;/option&gt;
</span><span class="cx">             [% END %]
</span><span class="cx">           &lt;/select&gt;
</span><del>-          &lt;small&gt;(Leave unset to have this value always appear.)&lt;/small&gt;
</del><ins>+          &lt;span class=&quot;bz_info&quot;&gt;(Leave unset to have this value always appear.)&lt;/span&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;is_active&quot;&gt;Enabled for [% terms.bugs %]:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;is_active&quot;&gt;Enabled for [% terms.bugs %]:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;is_active&quot; name=&quot;is_active&quot; type=&quot;checkbox&quot; value=&quot;1&quot; 
</span><span class="cx">            [%+ 'checked=&quot;checked&quot;' IF value.is_active %]
</span><span class="cx">            [%+ 'disabled=&quot;disabled&quot;' IF value.is_default OR value.is_static %]&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvalueslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,12 +19,11 @@
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Select value for the '[% field.description FILTER html %]'
</span><span class="cx">                    ([% field.name FILTER html %]) field[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% edit_contentlink = BLOCK %]editvalues.cgi?action=edit&amp;amp;field=
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminfieldvaluesselectfieldhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/select-field.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/select-field.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/fieldvalues/select-field.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,10 +15,9 @@
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit values for which field?&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypeconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,17 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Confirm Deletion of Flag Type '[% flag_type.name FILTER html %]'[% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  doc_section = &quot;flags-overview.html#flags-delete&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/flags.html#deleting-a-flag&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="lines">@@ -37,27 +24,17 @@
</span><span class="cx">    &lt;a href=&quot;editflagtypes.cgi?action=deactivate&amp;amp;id=[% flag_type.id %]&amp;amp;token=
</span><span class="cx">            [%- token FILTER html %]&quot;&gt;deactivate it&lt;/a&gt;,
</span><span class="cx">    in which case the type [% IF flag_type.flag_count %] and its flags [% END %] will remain
</span><del>-   in the database but will not appear in the [% terms.Bugzilla %] UI.
</del><ins>+   in the database but will not appear in the Bugzilla UI.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;table&gt;
-   &lt;tr&gt;
-      &lt;td colspan=&quot;2&quot;&gt;
-         Do you really want to delete this type?
-      &lt;/td&gt;
-   &lt;/tr&gt;
-   &lt;tr&gt;
-      &lt;td&gt;
-         &lt;a href=&quot;editflagtypes.cgi?action=delete&amp;amp;id=[% flag_type.id %]&amp;amp;token=
-                 [%- token FILTER html %]&quot;&gt;Yes, delete
-         &lt;/a&gt;
-      &lt;/td&gt;
-      &lt;td align=&quot;right&quot;&gt;
-         &lt;a href=&quot;editflagtypes.cgi&quot;&gt;
-            No, don't delete
-         &lt;/a&gt;
-      &lt;/td&gt;
-   &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+&lt;p class=&quot;confirmation&quot;&gt;
+  Do you really want to delete this type?
+&lt;/p&gt;
</ins><span class="cx"> 
</span><ins>+&lt;p&gt;
+  &lt;a href=&quot;editflagtypes.cgi?action=delete&amp;amp;id=[% flag_type.id %]&amp;amp;token=
+           [%- token FILTER html %]&quot;&gt;Yes, delete&lt;/a&gt; -
+  &lt;a href=&quot;editflagtypes.cgi&quot;&gt;No, don't delete&lt;/a&gt;
+&lt;/p&gt;
+
</ins><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypeedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Mark Bickford &lt;markhb@maine.rr.com&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS &quot;global/js-products.html.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% IF action == &quot;insert&quot; %]
</span><span class="lines">@@ -31,22 +15,17 @@
</span><span class="cx">       Based on [% type.name FILTER html %]
</span><span class="cx">     [% END %]
</span><span class="cx">   [% END %]
</span><del>-  [% doc_section = &quot;flags-overview.html#flags-create&quot; %]
</del><span class="cx"> [% ELSE %]
</span><span class="cx">   [% title = BLOCK %]Edit Flag Type [% type.name FILTER html %][% END %]
</span><del>-  [% doc_section = &quot;flags-overview.html#flags-edit&quot; %]
</del><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  style = &quot;
-    table#form th { text-align: right; vertical-align: baseline; white-space: nowrap; }
-    table#form td { text-align: left; vertical-align: baseline; }
-  &quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx">   onload=&quot;var f = document.forms['flagtype_properties'];
</span><del>-          selectProduct(f.product, f.component, null, null, '__Any__');&quot;
</del><ins>+          selectProduct(f.product, f.component, '__Any__');&quot;
</ins><span class="cx">   javascript_urls=[&quot;js/productform.js&quot;]
</span><del>-  doc_section = doc_section
</del><ins>+  doc_section = &quot;administering/flags.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;flagtype_properties&quot; method=&quot;post&quot; action=&quot;editflagtypes.cgi&quot;&gt;
</span><span class="lines">@@ -65,15 +44,15 @@
</span><span class="cx"> 
</span><span class="cx">   [%# Add a hidden button at the top of the form so that the user pressing &quot;return&quot;
</span><span class="cx">     # really submit the form, as expected. %]
</span><del>-  &lt;input type=&quot;submit&quot; id=&quot;commit&quot; value=&quot;Submit&quot; style=&quot;display: none;&quot;&gt;
</del><ins>+  &lt;input type=&quot;submit&quot; id=&quot;commit&quot; value=&quot;Submit&quot; class=&quot;bz_default_hidden&quot;&gt;
</ins><span class="cx"> 
</span><del>-  &lt;table id=&quot;form&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Name:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         a short name identifying this type.&lt;br&gt;
</span><span class="cx">         &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;[% type.name FILTER html %]&quot; size=&quot;50&quot;
</span><del>-               maxlength=&quot;50&quot; [%- ' disabled=&quot;disabled&quot;' UNLESS can_fully_edit %]&gt;
</del><ins>+               maxlength=&quot;50&quot; [%- ' disabled=&quot;disabled&quot;' UNLESS can_fully_edit %] required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -87,6 +66,7 @@
</span><span class="cx">           cols           = 80
</span><span class="cx">           defaultcontent = type.description
</span><span class="cx">           disabled       = !can_fully_edit
</span><ins>+          mandatory      = 1
</ins><span class="cx">         %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -106,14 +86,15 @@
</span><span class="cx">         [% END %]
</span><span class="cx">         &lt;table&gt;
</span><span class="cx">           &lt;tr&gt;
</span><del>-            &lt;td style=&quot;vertical-align: top;&quot;&gt;
-              &lt;b&gt;Product/Component:&lt;/b&gt;&lt;br&gt;
-              &lt;select name=&quot;product&quot; onchange=&quot;selectProduct(this, this.form.component, null, null, '__Any__');&quot;&gt;
-                &lt;option value=&quot;&quot;&gt;__Any__&lt;/option&gt;
-                [% FOREACH prod = products %]
-                  &lt;option value=&quot;[% prod.name FILTER html %]&quot;&gt;[% prod.name FILTER html %]&lt;/option&gt;
-                [% END %]
-              &lt;/select&gt;&lt;br&gt;
</del><ins>+            &lt;th class=&quot;top left&quot;&gt;
+              Product/Component:&lt;br&gt;
+              [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+                id       =&gt; &quot;product&quot;
+                name     =&gt; &quot;product&quot;
+                add      =&gt; &quot;__Any__&quot;
+                onchange =&gt; &quot;selectProduct(this, this.form.component, '__Any__');&quot;
+                products =&gt; products
+              %]&lt;br&gt;
</ins><span class="cx">               &lt;select name=&quot;component&quot;&gt;
</span><span class="cx">                 &lt;option value=&quot;&quot;&gt;__Any__&lt;/option&gt;
</span><span class="cx">                 [% FOREACH comp = components %]
</span><span class="lines">@@ -124,19 +105,19 @@
</span><span class="cx">                                    name=&quot;categoryAction-include&quot; value=&quot;Include&quot;&gt;
</span><span class="cx">               &lt;input type=&quot;submit&quot; id=&quot;categoryAction-exclude&quot;
</span><span class="cx">                                    name=&quot;categoryAction-exclude&quot; value=&quot;Exclude&quot;&gt;
</span><del>-            &lt;/td&gt;
-            &lt;td style=&quot;vertical-align: top;&quot;&gt;
-              &lt;b&gt;Inclusions:&lt;/b&gt;&lt;br&gt;
</del><ins>+            &lt;/th&gt;
+            &lt;th class=&quot;top left&quot;&gt;
+              Inclusions:&lt;br&gt;
</ins><span class="cx">               [% PROCESS category_select name=&quot;inclusion_to_remove&quot; categories = inclusions %]&lt;br&gt;
</span><span class="cx">               &lt;input type=&quot;submit&quot; id=&quot;categoryAction-removeInclusion&quot; 
</span><span class="cx">                      name=&quot;categoryAction-removeInclusion&quot; value=&quot;Remove Inclusion&quot;&gt;
</span><del>-            &lt;/td&gt;
-            &lt;td style=&quot;vertical-align: top;&quot;&gt;
-              &lt;b&gt;Exclusions:&lt;/b&gt;&lt;br&gt;
</del><ins>+            &lt;/th&gt;
+            &lt;th class=&quot;top left&quot;&gt;
+              Exclusions:&lt;br&gt;
</ins><span class="cx">               [% PROCESS category_select name=&quot;exclusion_to_remove&quot; categories = exclusions %]&lt;br&gt;
</span><span class="cx">               &lt;input type=&quot;submit&quot; id=&quot;categoryAction-removeExclusion&quot; 
</span><span class="cx">                      name=&quot;categoryAction-removeExclusion&quot; value=&quot;Remove Exclusion&quot;&gt;
</span><del>-            &lt;/td&gt;
</del><ins>+            &lt;/th&gt;
</ins><span class="cx">           &lt;/tr&gt;
</span><span class="cx">         &lt;/table&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="lines">@@ -145,12 +126,12 @@
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Sort Key:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        a number between 1 and [% constants.MAX_SMALLINT FILTER none %] by which
</del><ins>+        a number between 0 and [% constants.MAX_SMALLINT FILTER none %] by which
</ins><span class="cx">         this type will be sorted when displayed to users in a list; ignore if you
</span><span class="cx">         don't care what order the types appear in or if you want them to appear
</span><span class="cx">         in alphabetical order.&lt;br&gt;
</span><del>-        &lt;input type=&quot;text&quot; name=&quot;sortkey&quot; value=&quot;[% type.sortkey || 1 FILTER html %]&quot; size=&quot;5&quot;
-               maxlength=&quot;5&quot; [% ' disabled=&quot;disabled&quot;' UNLESS can_fully_edit %]&gt;
</del><ins>+        &lt;input type=&quot;text&quot; name=&quot;sortkey&quot; value=&quot;[% type.sortkey || 0 FILTER html %]&quot; size=&quot;5&quot;
+               maxlength=&quot;5&quot; [% ' disabled=&quot;disabled&quot;' UNLESS can_fully_edit %] required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminflagtypelisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/flag-type/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,39 +1,19 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS &quot;global/js-products.html.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = 'Administer Flag Types'
</span><del>-  style = &quot;
-    table#flag_types_bugs tr th,
-    table#flag_types_attachments tr th { text-align: left; }
-    .inactive { color: #787878; }
-    .multiplicable { display: block; }
-  &quot;
-  onload=&quot;var f = document.flagtype_form; selectProduct(f.product, f.component, null, null, '__All__');&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  onload=&quot;var f = document.flagtype_form; selectProduct(f.product, f.component, '__All__');&quot;
</ins><span class="cx">   javascript_urls=[&quot;js/productform.js&quot;]
</span><del>-  doc_section = &quot;flags-overview.html#flag-types&quot;
</del><ins>+  doc_section = &quot;administering/flags.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="lines">@@ -57,38 +37,36 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;flagtype_form&quot; name=&quot;flagtype_form&quot; action=&quot;editflagtypes.cgi&quot; method=&quot;get&quot;&gt;
</span><del>-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;product&quot;&gt;Product:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;select name=&quot;product&quot; onchange=&quot;selectProduct(this, this.form.component, null, null, '__Any__');&quot;&gt;
-          &lt;option value=&quot;&quot;&gt;__Any__&lt;/option&gt;
-          [% FOREACH prod = products %]
-            &lt;option value=&quot;[% prod.name FILTER html %]&quot;
-                    [% &quot; selected&quot; IF selected_product == prod.name %]&gt;
-                    [% prod.name FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-      &lt;th&gt;&lt;label for=&quot;component&quot;&gt;Component:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;
-        &lt;select name=&quot;component&quot;&gt;
-          &lt;option value=&quot;&quot;&gt;__Any__&lt;/option&gt;
-          [% FOREACH comp = components %]
-            &lt;option value=&quot;[% comp FILTER html %]&quot;
-                    [% &quot; selected&quot; IF selected_component == comp %]&gt;
-                    [% comp FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-      &lt;td&gt;
-        &lt;input type=&quot;checkbox&quot; id=&quot;show_flag_counts&quot; name=&quot;show_flag_counts&quot; value=&quot;1&quot;
-               [%+ 'checked=&quot;checked&quot;' IF show_flag_counts %]&gt;
-        &lt;label for=&quot;show_flag_counts&quot;&gt;Show flag counts&lt;/label&gt;
-      &lt;/td&gt;
-      &lt;td&gt;&lt;input type=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Filter&quot;&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;/table&gt;
</del><ins>+  &lt;div class=&quot;inline&quot;&gt;
+    &lt;label for=&quot;product&quot;&gt;Product:&lt;/label&gt;
+    [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+      id       =&gt; &quot;product&quot;
+      name     =&gt; &quot;product&quot;
+      add      =&gt; &quot;__Any__&quot;
+      onchange =&gt; &quot;selectProduct(this, this.form.component, '__Any__');&quot;
+      products =&gt; products
+    %]
+  &lt;/div&gt;
+
+  &lt;div class=&quot;inline&quot;&gt;
+    &lt;label for=&quot;component&quot;&gt;Component:&lt;/label&gt;
+    &lt;select name=&quot;component&quot;&gt;
+      &lt;option value=&quot;&quot;&gt;__Any__&lt;/option&gt;
+      [% FOREACH comp = components %]
+        &lt;option value=&quot;[% comp FILTER html %]&quot;
+          [%+ 'selected=&quot;selected&quot;' IF selected_component == comp %]&gt;
+          [%- comp FILTER html %]&lt;/option&gt;
+      [% END %]
+    &lt;/select&gt;
+  &lt;/div&gt;
+
+  &lt;div class=&quot;inline&quot;&gt;
+    &lt;input type=&quot;checkbox&quot; id=&quot;show_flag_counts&quot; name=&quot;show_flag_counts&quot; value=&quot;1&quot;
+      [%+ 'checked=&quot;checked&quot;' IF show_flag_counts %]&gt;
+    &lt;label for=&quot;show_flag_counts&quot;&gt;Show flag counts&lt;/label&gt;
+  &lt;/div&gt;
+
+  &lt;input type=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Filter&quot;&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h3&gt;Flag Types for [% terms.Bugs %]&lt;/h3&gt;
</span><span class="lines">@@ -111,9 +89,9 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK display_flag_types %]
</span><del>-  &lt;table id=&quot;flag_types_[% types_id FILTER html %]&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;1&quot;&gt;
</del><ins>+  &lt;table id=&quot;flag_types_[% types_id FILTER html %]&quot;&gt;
</ins><span class="cx"> 
</span><del>-    &lt;tr&gt;
</del><ins>+    &lt;tr class=&quot;column_header&quot;&gt;
</ins><span class="cx">       &lt;th&gt;Edit name ...&lt;/th&gt;
</span><span class="cx">       &lt;th&gt;Description&lt;/th&gt;
</span><span class="cx">       &lt;th&gt;Sortkey&lt;/th&gt;
</span><span class="lines">@@ -131,9 +109,11 @@
</span><span class="cx">     [% FOREACH type = types %]
</span><span class="cx"> 
</span><span class="cx">       &lt;tr class=&quot;[% IF type.is_active %]active[% ELSE %]inactive[% END %]&quot;&gt;
</span><del>-        &lt;td&gt;&lt;a href=&quot;editflagtypes.cgi?action=edit&amp;amp;id=[% type.id %]&quot;&gt;[% type.name FILTER html FILTER no_break %]&lt;/a&gt;&lt;/td&gt;
</del><ins>+        &lt;td class=&quot;nowrap&quot;&gt;
+          &lt;a href=&quot;editflagtypes.cgi?action=edit&amp;amp;id=[% type.id %]&quot;&gt;[% type.name FILTER html %]&lt;/a&gt;
+        &lt;/td&gt;
</ins><span class="cx">         &lt;td&gt;[% type.description FILTER html %]&lt;/td&gt;
</span><del>-        &lt;td align=&quot;right&quot;&gt;[% type.sortkey FILTER html %]&lt;/td&gt;
</del><ins>+        &lt;td class=&quot;right&quot;&gt;[% type.sortkey FILTER html %]&lt;/td&gt;
</ins><span class="cx">         &lt;td&gt;
</span><span class="cx">           [% IF type.is_requestable %]
</span><span class="cx">             &lt;span class=&quot;requestable&quot;&gt;requestable&lt;/span&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsconfirmremovehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/confirm-remove.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/confirm-remove.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/confirm-remove.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -35,7 +19,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  doc_section = &quot;groups.html&quot;
</del><ins>+  doc_section = &quot;administering/groups.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% IF regexp %]
</span><span class="lines">@@ -48,7 +32,7 @@
</span><span class="cx"> [% END %]
</span><span class="cx">   
</span><span class="cx"> &lt;p&gt;Generally, you will only need to do this when upgrading groups
</span><del>-  created with [% terms.Bugzilla %] versions 2.16 and earlier. Use
</del><ins>+  created with Bugzilla versions 2.16 and earlier. Use
</ins><span class="cx">   this option with &lt;b&gt;extreme care&lt;/b&gt; and consult the documentation
</span><span class="cx">   for further information.
</span><span class="cx"> &lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmingroupscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -28,30 +13,35 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Add group&quot;
</span><span class="cx">   subheader = &quot;This page allows you to define a new user group.&quot;
</span><del>-  doc_section = &quot;groups.html#create-groups&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/groups.html#creating-groups&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editgroups.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;
-    &lt;th&gt;New Name&lt;/th&gt;
-    &lt;th&gt;New Description&lt;/th&gt;
-    &lt;th&gt;New User RegExp&lt;/th&gt;
-    &lt;th&gt;Use For [% terms.Bugs %]&lt;/th&gt;
-  &lt;/tr&gt;&lt;tr&gt;
-    &lt;td&gt;&lt;input size=&quot;20&quot; name=&quot;name&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;&lt;input size=&quot;40&quot; name=&quot;desc&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;&lt;input size=&quot;30&quot; name=&quot;regexp&quot;&gt;&lt;/td&gt;
-    &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;isactive&quot; value=&quot;1&quot; checked&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;th&gt;Icon URL:&lt;/th&gt;
-    &lt;td colspan=&quot;3&quot;&gt;&lt;input type=&quot;text&quot; size=&quot;70&quot; maxlength=&quot;255&quot; id=&quot;icon_url&quot; name=&quot;icon_url&quot;&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-  [% Hook.process('field') %]
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Group Name:&lt;/th&gt;
+      &lt;td&gt;&lt;input size=&quot;60&quot; maxlength=&quot;255&quot; name=&quot;name&quot; required&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Description:&lt;/th&gt;
+      &lt;td&gt;&lt;input size=&quot;60&quot; name=&quot;desc&quot; required&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;User Regexp:&lt;/th&gt;
+      &lt;td&gt;&lt;input size=&quot;60&quot; name=&quot;regexp&quot;&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Icon URL:&lt;/th&gt;
+      &lt;td&gt;&lt;input type=&quot;text&quot; size=&quot;60&quot; id=&quot;icon_url&quot; name=&quot;icon_url&quot;&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;Use For [% terms.Bugs %]:&lt;/th&gt;
+      &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;isactive&quot; value=&quot;1&quot; checked&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    [% Hook.process('field') %]
</ins><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><del>-  &lt;hr&gt;
-
</del><span class="cx">   &lt;input type=&quot;checkbox&quot; id=&quot;insertnew&quot; name=&quot;insertnew&quot; value=&quot;1&quot;
</span><span class="cx">     [% IF Param(&quot;makeproductgroups&quot;) %] checked[% END %]&gt;
</span><span class="cx">   &lt;label for=&quot;insertnew&quot;&gt;Insert new group into all existing products.&lt;/label&gt;
</span><span class="lines">@@ -61,7 +51,9 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;&lt;b&gt;Name&lt;/b&gt; is what is used with the B&lt;!-- blah --&gt;ugzilla-&gt;user-&gt;in_group()
</del><ins>+&lt;hr&gt;
+
+&lt;p&gt;&lt;b&gt;Group Name&lt;/b&gt; is what is used with the B[%%]ugzilla-&gt;user-&gt;in_group()
</ins><span class="cx"> function in any customized cgi files you write that use a given group.
</span><span class="cx"> It can also be used by people submitting [% terms.bugs %] by email to
</span><span class="cx"> limit [% terms.abug %] to a certain set of groups.&lt;/p&gt;
</span><span class="lines">@@ -70,15 +62,6 @@
</span><span class="cx"> to members of the group where they can choose whether
</span><span class="cx"> the [% terms.bug %] will be restricted to others in the same group.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;The &lt;b&gt;Use For [% terms.Bugs %]&lt;/b&gt; flag determines whether or not the
-group is eligible to be used for [% terms.bugs %]. If you clear this, it will
-no longer be possible for users to add [% terms.bugs %] to this group,
-although [% terms.bugs %] already in the group will remain in the group.
-Doing so is a much less drastic way to stop a group from growing
-than deleting the group would be. &lt;b&gt;Note: If you are creating
-a group, you probably want it to be usable for [% terms.bugs %], in which
-case you should leave this checked.&lt;/b&gt;&lt;/p&gt;
-
</del><span class="cx"> &lt;p&gt;&lt;b&gt;User RegExp&lt;/b&gt; is optional, and if filled in, will 
</span><span class="cx"> automatically grant membership to this group to anyone with an 
</span><span class="cx"> email address that matches this regular expression.&lt;/p&gt;
</span><span class="lines">@@ -90,13 +73,27 @@
</span><span class="cx">   in comments in [% terms.bugs %] besides the name of the author of comments.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;By default, the new group will be associated with existing 
-products. Unchecking the &quot;Insert new group into all existing 
-products&quot; option will prevent this and make the group become 
-visible only when its controls have been added to a product.&lt;/p&gt;
</del><ins>+&lt;p&gt;The &lt;b&gt;Use For [% terms.Bugs %]&lt;/b&gt; flag determines whether or not the
+group is eligible to be used for [% terms.bugs %]. If you clear this, it will
+no longer be possible for users to add [% terms.bugs %] to this group,
+although [% terms.bugs %] already in the group will remain in the group.
+Doing so is a much less drastic way to stop a group from growing
+than deleting the group would be. &lt;b&gt;Note: If you are creating
+a group, you probably want it to be usable for [% terms.bugs %], in which
+case you should leave this checked.&lt;/b&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Back to the &lt;a href=&quot;./&quot;&gt;main [% terms.bugs %] page&lt;/a&gt;
</del><ins>+[% IF Param(&quot;makeproductgroups&quot;) %]
+  &lt;p&gt;By default, the new group will be associated with existing products.
+  Unchecking the &quot;Insert new group into all existing products&quot; option will
+  prevent this and make the group become visible only when its controls have
+  been added to a product.&lt;/p&gt;
+[% ELSE %]
+  &lt;p&gt;Checking the &quot;Insert new group into all existing products&quot; option will
+  make the new group be associated with existing products. Leaving it unchecked
+  will make the group become visible only when its controls have been added to
+  a product.&lt;/p&gt;
+[% END %]
</ins><span class="cx"> 
</span><del>-or to the &lt;a href=&quot;editgroups.cgi&quot;&gt;group list&lt;/a&gt;.
</del><ins>+&lt;p&gt;Back to the &lt;a href=&quot;editgroups.cgi&quot;&gt;group list&lt;/a&gt;.&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %] 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,21 +13,28 @@
</span><span class="cx">   #                 group.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-
</del><ins>+[% title = BLOCK %]Delete group '[% group.name FILTER html %]'[% END %]
</ins><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-  title = &quot;Delete group&quot;
-  doc_section = &quot;groups.html&quot;
</del><ins>+  title = title
+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/groups.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot;&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th&gt;Id&lt;/th&gt;
-    &lt;th&gt;Name&lt;/th&gt;
-    &lt;th&gt;Description&lt;/th&gt;
</del><ins>+    &lt;td&gt;Id&lt;/td&gt;
+    &lt;td&gt;[% group.id FILTER html %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td&gt;[% group.id FILTER html %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;Name&lt;/td&gt;
</ins><span class="cx">     &lt;td&gt;[% group.name FILTER html %]&lt;/td&gt;
</span><ins>+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Description&lt;/td&gt;
</ins><span class="cx">     &lt;td&gt;[% group.description FILTER html_light %]&lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="lines">@@ -124,7 +115,8 @@
</span><span class="cx">           ([% active.join(', ') FILTER html %])
</span><span class="cx">           [% IF hidden %]
</span><span class="cx">             &lt;strong&gt;WARNING: This product is currently hidden.
</span><del>-            Deleting this group will make this product publicly visible.
</del><ins>+            Deleting this group could make this product publicly visible
+            if no other group applies.
</ins><span class="cx">             &lt;/strong&gt;
</span><span class="cx">           [% END %]&lt;/li&gt;
</span><span class="cx">       [% END %]
</span><span class="lines">@@ -166,7 +158,9 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-  &lt;p&gt;Do you really want to delete this group?&lt;/p&gt;
</del><ins>+  &lt;p class=&quot;confirmation&quot;&gt;
+    Do you really want to delete this group?
+  &lt;/p&gt;
</ins><span class="cx">   [% IF group.users.size || group.bugs.size || group.products.size 
</span><span class="cx">         || group.flags.size
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmingroupsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -34,17 +18,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  doc_section = &quot;groups.html#edit-groups&quot;
-  style = &quot;
-    .grant_table { border-collapse: collapse; }
-    .grant_table td, .grant_table th {
-        padding-left: .5em;
-    }
-    .grant_table td.one, .grant_table th.one {
-        border-right: 1px solid black;
-        padding-right: .5em;
-    }
-  &quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/groups.html#editing-groups-and-assigning-group-permissions&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editgroups.cgi&quot;&gt;
</span><span class="lines">@@ -51,13 +26,13 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;postchanges&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;group_id&quot; value=&quot;[% group.id FILTER html %]&quot;&gt;
</span><span class="cx"> 
</span><del>-  &lt;table border=&quot;1&quot; cellpadding=&quot;4&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Group:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF group.is_bug_group %]
</span><del>-          &lt;input type=&quot;text&quot; name=&quot;name&quot; size=&quot;60&quot; 
-                 value=&quot;[% group.name FILTER html %]&quot;&gt;
</del><ins>+          &lt;input type=&quot;text&quot; name=&quot;name&quot; size=&quot;60&quot; maxlength=&quot;255&quot;
+                 value=&quot;[% group.name FILTER html %]&quot; required&gt;
</ins><span class="cx">         [% ELSE %]
</span><span class="cx">           [% group.name FILTER html %]
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -68,8 +43,8 @@
</span><span class="cx">       &lt;th&gt;Description:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF group.is_bug_group %]
</span><del>-          &lt;input type=&quot;text&quot; name=&quot;desc&quot; size=&quot;70&quot; 
-                 value=&quot;[% group.description FILTER html %]&quot;&gt;
</del><ins>+          &lt;input type=&quot;text&quot; name=&quot;desc&quot; size=&quot;60&quot;
+                 value=&quot;[% group.description FILTER html %]&quot; required&gt;
</ins><span class="cx">         [% ELSE %]
</span><span class="cx">           [% group.description FILTER html %]
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -79,7 +54,7 @@
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;User Regexp:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;text&quot; name=&quot;regexp&quot; size=&quot;40&quot; 
</del><ins>+        &lt;input type=&quot;text&quot; name=&quot;regexp&quot; size=&quot;60&quot;
</ins><span class="cx">                value=&quot;[% group.user_regexp FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -92,7 +67,7 @@
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;text&quot; name=&quot;icon_url&quot; size=&quot;70&quot; maxlength=&quot;255&quot;
</del><ins>+        &lt;input type=&quot;text&quot; name=&quot;icon_url&quot; size=&quot;60&quot;
</ins><span class="cx">                value=&quot;[% group.icon_url FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -111,78 +86,72 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;h4&gt;Group Permissions&lt;/h4&gt;
</span><span class="cx"> 
</span><del>-  &lt;table class=&quot;grant_table&quot;&gt;
</del><ins>+  &lt;table id=&quot;grant_table&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;one&quot;&gt;Groups That Are a Member of This Group&lt;br&gt;
-        (&amp;quot;Users in &lt;var&gt;X&lt;/var&gt; are automatically in  
-         [%+ group.name FILTER html %]&amp;quot;)&lt;/th&gt;
-      &lt;th&gt;Groups That This Group Is a Member Of&lt;br&gt;
-        (&amp;quot;If you are in [% group.name FILTER html %], you are 
-         automatically also in...&amp;quot;)&lt;/th&gt;
</del><ins>+      &lt;th colspan=&quot;2&quot;&gt;
+        Groups That Are a Member of This Group&lt;br&gt;
+        (&quot;Users in &lt;var&gt;X&lt;/var&gt; are automatically in [% group.name FILTER html %]&quot;)
+      &lt;/th&gt;
+      &lt;th colspan=&quot;2&quot;&gt;
+        Groups That This Group Is a Member Of&lt;br&gt;
+        (&quot;If you are in [% group.name FILTER html %], you are automatically also in...&quot;)
+      &lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;one&quot;&gt;
-        [% PROCESS select_pair name = &quot;members&quot; size = 10
-                   items_available = members_available
-                     items_current = members_current %]
-      &lt;/td&gt;
-  
-      &lt;td&gt;[% PROCESS select_pair name = &quot;member_of&quot; size = 10
-                     items_available = member_of_available
-                       items_current = member_of_current %]&lt;/td&gt;
</del><ins>+      [% PROCESS select_pair name = &quot;members&quot; size = 10
+                 items_available = members_available
+                 items_current = members_current %]
+
+      [% PROCESS select_pair name = &quot;member_of&quot; size = 10
+                 items_available = member_of_available
+                 items_current = member_of_current %]
</ins><span class="cx">     &lt;/tr&gt;
</span><del>-  &lt;/table&gt;
</del><span class="cx"> 
</span><del>-  &lt;table class=&quot;grant_table&quot;&gt;
</del><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;one&quot;&gt;
</del><ins>+      &lt;th colspan=&quot;2&quot;&gt;
</ins><span class="cx">         Groups That Can Grant Membership in This Group&lt;br&gt;
</span><del>-        (&amp;quot;Users in &lt;var&gt;X&lt;/var&gt; can add other users to 
-         [%+ group.name FILTER html %]&amp;quot;)
-
</del><ins>+        (&quot;Users in &lt;var&gt;X&lt;/var&gt; can add other users to [% group.name FILTER html %]&quot;)
</ins><span class="cx">       &lt;/th&gt;
</span><del>-     &lt;th&gt;Groups That This Group Can Grant Membership In&lt;br&gt;
-       (&amp;quot;Users in [% group.name FILTER html %] can add users to...&amp;quot;)
-     &lt;/th&gt;
</del><ins>+      &lt;th colspan=&quot;2&quot;&gt;
+        Groups That This Group Can Grant Membership In&lt;br&gt;
+        (&quot;Users in [% group.name FILTER html %] can add users to...&quot;)
+      &lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;one&quot;&gt;
-        [% PROCESS select_pair name = &quot;bless_from&quot; size = 10
-                   items_available = bless_from_available
-                     items_current = bless_from_current %]
-      &lt;/td&gt;
-      &lt;td&gt;[% PROCESS select_pair name = &quot;bless_to&quot; size = 10
-                     items_available = bless_to_available
-                       items_current = bless_to_current %]
-      &lt;/td&gt;
</del><ins>+      [% PROCESS select_pair name = &quot;bless_from&quot; size = 10
+                 items_available = bless_from_available
+                 items_current = bless_from_current %]
+
+      [% PROCESS select_pair name = &quot;bless_to&quot; size = 10
+                 items_available = bless_to_available
+                 items_current = bless_to_current %]
</ins><span class="cx">     &lt;/tr&gt;
</span><del>-  &lt;/table&gt;
</del><span class="cx"> 
</span><del>-  [% IF Param('usevisibilitygroups') %]
-    &lt;table class=&quot;grant_table&quot;&gt;
</del><ins>+    [% IF Param('usevisibilitygroups') %]
</ins><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th class=&quot;one&quot;&gt;
</del><ins>+        &lt;th colspan=&quot;2&quot;&gt;
</ins><span class="cx">           Groups That Can See This Group&lt;br&gt;
</span><del>-          (&amp;quot;Users in &lt;var&gt;X&lt;/var&gt; can see users in
-           [%+ group.name FILTER html %]&amp;quot;)
</del><ins>+          (&quot;Users in &lt;var&gt;X&lt;/var&gt; can see users in [% group.name FILTER html %]&quot;)
</ins><span class="cx">         &lt;/th&gt;
</span><del>-       &lt;th&gt;Groups That This Group Can See&lt;br&gt;
-         (&amp;quot;Users in [% group.name FILTER html %] can see users in...&amp;quot;)
-       &lt;/th&gt;
</del><ins>+        &lt;th colspan=&quot;2&quot;&gt;
+          Groups That This Group Can See&lt;br&gt;
+          (&quot;Users in [% group.name FILTER html %] can see users in...&quot;)
+        &lt;/th&gt;
</ins><span class="cx">       &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td class=&quot;one&quot;&gt;
-          [% PROCESS select_pair name = &quot;visible_from&quot; size = 10
-                     items_available = visible_from_available
-                       items_current = visible_from_current %]
-        &lt;/td&gt;
-        &lt;td&gt;[% PROCESS select_pair name = &quot;visible_to_me&quot; size = 10
-                       items_available = visible_to_me_available
-                         items_current = visible_to_me_current %]
-        &lt;/td&gt;
</del><ins>+        [% PROCESS select_pair name = &quot;visible_from&quot; size = 10
+                   items_available = visible_from_available
+                   items_current = visible_from_current %]
+
+        [% PROCESS select_pair name = &quot;visible_to_me&quot; size = 10
+                   items_available = visible_to_me_available
+                   items_current = visible_to_me_current %]
</ins><span class="cx">       &lt;/tr&gt;
</span><del>-    &lt;/table&gt;
-  [% END %]
</del><ins>+    [% END %]
+  &lt;/table&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;update-group&quot; value=&quot;Update Group&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="lines">@@ -191,12 +160,11 @@
</span><span class="cx"> &lt;h4&gt;Mass Remove&lt;/h4&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;You can use this form to do mass-removal of users from groups.
</span><del>-  This is often very useful if you upgraded from [% terms.Bugzilla %] 
</del><ins>+  This is often very useful if you upgraded from Bugzilla
</ins><span class="cx">   2.16.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;table&gt;&lt;tr&gt;&lt;td&gt;
</del><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editgroups.cgi&quot;&gt;
</span><del>-  &lt;fieldset&gt;
</del><ins>+  &lt;fieldset id=&quot;mass-remove&quot;&gt;
</ins><span class="cx">     &lt;legend&gt;Remove all explicit memberships from users whose login names
</span><span class="cx">       match the following regular expression:&lt;/legend&gt;
</span><span class="cx">     &lt;input type=&quot;text&quot; size=&quot;20&quot; name=&quot;regexp&quot;&gt;
</span><span class="lines">@@ -209,41 +177,35 @@
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;group_id&quot; value=&quot;[% group.id FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;/fieldset&gt;
</span><span class="cx"> &lt;/form&gt;
</span><del>-&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

</del><ins>+
</ins><span class="cx"> &lt;p&gt;Back to the &lt;a href=&quot;editgroups.cgi&quot;&gt;group list&lt;/a&gt;.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %] 
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK select_pair %]
</span><del>-  &lt;table class=&quot;select_pair&quot;&gt;
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;&gt;Add&lt;br&gt;
-        (select to add)&lt;/label&gt;&lt;/th&gt;
-      &lt;th&gt;&lt;label for=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;&gt;Current&lt;br&gt;
-        (select to remove)&lt;/label&gt;&lt;/th&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;
-        &lt;select multiple=&quot;multiple&quot; size=&quot;[% size FILTER html %]&quot;
-                name=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;
-                id=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;&gt;
-          [% FOREACH item = items_available %]
-            &lt;option value=&quot;[% item.id FILTER html %]&quot;&gt;
-              [% item.name FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-      &lt;td&gt;
-        &lt;select multiple=&quot;multiple&quot; size=&quot;[% size FILTER html %]&quot;
-                name=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;
-                id=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;&gt;
-          [% FOREACH item = items_current %]
-            &lt;option value=&quot;[% item.id FILTER html %]&quot;&gt;
-              [% item.name FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;/table&gt;
</del><ins>+  &lt;td&gt;
+    &lt;label for=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;&gt;Add&lt;br&gt;(select to add)&lt;/label&gt;
+    &lt;br&gt;
+    &lt;select multiple=&quot;multiple&quot; size=&quot;[% size FILTER html %]&quot;
+            name=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;
+            id=&quot;[% &quot;${name}_add&quot; FILTER html %]&quot;&gt;
+      [% FOREACH item = items_available %]
+        &lt;option value=&quot;[% item.id FILTER html %]&quot;&gt;
+          [% item.name FILTER html %]&lt;/option&gt;
+      [% END %]
+    &lt;/select&gt;
+  &lt;/td&gt;
+
+  &lt;td&gt;
+    &lt;label for=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;&gt;Current&lt;br&gt;(select to remove)&lt;/label&gt;
+    &lt;br&gt;
+    &lt;select multiple=&quot;multiple&quot; size=&quot;[% size FILTER html %]&quot;
+            name=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;
+            id=&quot;[% &quot;${name}_remove&quot; FILTER html %]&quot;&gt;
+      [% FOREACH item = items_current %]
+        &lt;option value=&quot;[% item.id FILTER html %]&quot;&gt;
+          [% item.name FILTER html %]&lt;/option&gt;
+      [% END %]
+    &lt;/select&gt;
+  &lt;/td&gt;
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmingroupslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/groups/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@syndicomm.com&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -34,7 +19,8 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit Groups&quot;
</span><span class="cx">   subheader = &quot;This lets you edit the groups available to put users in.&quot;
</span><del>-  doc_section = &quot;groups.html&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/groups.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% edit_contentlink = &quot;editgroups.cgi?action=changeform&amp;amp;group=%%id%%&quot; %]
</span><span class="lines">@@ -54,11 +40,11 @@
</span><span class="cx">    }
</span><span class="cx">    {name               =&gt; 'is_active_bug_group'
</span><span class="cx">     heading            =&gt; &quot;Use For $terms.Bugs&quot;
</span><del>-    align              =&gt; 'center'
</del><ins>+    class              =&gt; 'center'
</ins><span class="cx">    }
</span><span class="cx">    {name               =&gt; 'type'
</span><span class="cx">     heading            =&gt; 'Type'
</span><del>-    align              =&gt; 'center'
</del><ins>+    class              =&gt; 'center'
</ins><span class="cx">    }
</span><span class="cx">    {name               =&gt; 'action'
</span><span class="cx">     heading            =&gt; 'Action'
</span><span class="lines">@@ -89,7 +75,8 @@
</span><span class="cx">    } 
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-[% FOREACH group IN [&quot;chartgroup&quot;, &quot;insidergroup&quot;, &quot;timetrackinggroup&quot;, &quot;querysharegroup&quot;] %]
</del><ins>+[% FOREACH group IN [&quot;chartgroup&quot;, &quot;comment_taggers_group&quot;, &quot;debug_group&quot;,
+                     &quot;insidergroup&quot;, &quot;querysharegroup&quot;, &quot;timetrackinggroup&quot;] %]
</ins><span class="cx">   [% special_group = Param(group) %]
</span><span class="cx"> 
</span><span class="cx">   [% IF special_group %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordsconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,26 +12,29 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Delete Keyword&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;p&gt;
</del><ins>+&lt;h2&gt;Confirmation&lt;/h2&gt;
+
+&lt;p class=&quot;confirmation&quot;&gt;
</ins><span class="cx">   [% IF keyword.bug_count == 1 %]
</span><del>-    There is one [% terms.bug %] with this keyword set.
</del><ins>+    There is one [% terms.bug %]
</ins><span class="cx">   [% ELSIF keyword.bug_count &gt; 1 %]
</span><del>-    There are [% keyword.bug_count FILTER html %] [%+ terms.bugs %] with
-    this keyword set.
</del><ins>+    There are [% keyword.bug_count FILTER html %] [%+ terms.bugs %]
</ins><span class="cx">   [% END %]
</span><del>-  
-  Are you &lt;b&gt;sure&lt;/b&gt; you want to delete
-  the &lt;code&gt;[% keyword.name FILTER html %]&lt;/code&gt; keyword?
</del><ins>+   with the &lt;em&gt;[% keyword.name FILTER html %]&lt;/em&gt; keyword set.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><ins>+&lt;p&gt;
+  Do you really want to delete this keyword?
+&lt;/p&gt;
+
</ins><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editkeywords.cgi&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% keyword.id FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;delete&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><del>-  &lt;input type=&quot;submit&quot; id=&quot;delete&quot;
-         value=&quot;Yes, really delete the keyword&quot;&gt;
</del><ins>+  &lt;input type=&quot;submit&quot; id=&quot;delete&quot; value=&quot;Yes, delete&quot;&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;&lt;a href=&quot;editkeywords.cgi&quot;&gt;Edit other keywords&lt;/a&gt;.&lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,41 +1,29 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="cx">   # none
</span><span class="cx">   #%]
</span><del>-  
</del><ins>+
</ins><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Add keyword&quot;
</span><span class="cx">   subheader = &quot;This page allows you to add a new keyword.&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editkeywords.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Name:&lt;/th&gt;
-      &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;name&quot; value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;Name:&lt;/th&gt;
+      &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;name&quot; value=&quot;&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Description:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Description:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">           name    = 'description'
</span><span class="lines">@@ -42,11 +30,12 @@
</span><span class="cx">           minrows = 4
</span><span class="cx">           cols    = 64
</span><span class="cx">           wrap    = 'virtual'
</span><ins>+          mandatory = 1
</ins><span class="cx">         %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><del>-  &lt;hr&gt;
</del><ins>+
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;-1&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Add&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot;&gt;
</span><span class="lines">@@ -53,6 +42,8 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><ins>+&lt;hr&gt;
+
</ins><span class="cx"> &lt;p&gt;&lt;a href=&quot;editkeywords.cgi&quot;&gt;Edit other keywords&lt;/a&gt;.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,21 +10,20 @@
</span><span class="cx">   # keyword: A Bugzilla::Keyword object.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit keyword&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editkeywords.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Name:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Name:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;name&quot; 
</span><del>-                 value=&quot;[% keyword.name FILTER html %]&quot;&gt;&lt;/td&gt;
</del><ins>+                 value=&quot;[% keyword.name FILTER html %]&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Description:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Description:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">           name           = 'description'
</span><span class="lines">@@ -46,11 +31,12 @@
</span><span class="cx">           cols           = 64
</span><span class="cx">           wrap           = 'virtual'
</span><span class="cx">           defaultcontent = keyword.description
</span><ins>+          mandatory      = 1
</ins><span class="cx">         %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;[% terms.Bugs %]:&lt;/th&gt;
</del><ins>+      &lt;th&gt;[% terms.Bugs %]:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF keyword.bug_count &gt; 0 %]
</span><span class="cx">           &lt;a href=&quot;buglist.cgi?keywords=[% keyword.name FILTER uri %]&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminkeywordslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/keywords/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-  #                 Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -28,10 +14,9 @@
</span><span class="cx">   #   - bug_count: number. The number of bugs with the keyword.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Select keyword&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><span class="lines">@@ -48,7 +33,7 @@
</span><span class="cx">      { 
</span><span class="cx">        name =&gt; &quot;bug_count&quot;
</span><span class="cx">        heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-       align =&gt; &quot;right&quot;
</del><ins>+       class =&gt; &quot;right&quot;
</ins><span class="cx">        contentlink =&gt; &quot;buglist.cgi?keywords=%%name%%&quot;
</span><span class="cx">      },
</span><span class="cx">      { 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,35 +18,36 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Milestone:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% milestone.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Milestone of Product:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% product.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% terms.Bugs %]:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-[% IF milestone.bug_count %]
-  &lt;a title=&quot;List of [% terms.bugs %] targetted at milestone '
-           [% milestone.name FILTER html %]'&quot;
-     href=&quot;buglist.cgi?target_milestone=[% milestone.name FILTER uri %]&amp;amp;product=
-          [%- product.name FILTER uri %]&quot;&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Milestone&lt;/td&gt;
+    &lt;td&gt;[% milestone.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Milestone of Product&lt;/td&gt;
+    &lt;td&gt;[% product.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;[% terms.Bugs %]&lt;/td&gt;
+    &lt;td&gt;
+      [% IF milestone.bug_count %]
+        &lt;a title=&quot;List of [% terms.bugs %] targetted at milestone '
+                 [%- milestone.name FILTER html %]'&quot;
+           href=&quot;buglist.cgi?target_milestone=[% milestone.name FILTER uri %]&amp;amp;product=
+                [%- product.name FILTER uri %]&quot;&gt;
</ins><span class="cx">           [% milestone.bug_count FILTER none %]&lt;/a&gt;
</span><del>-[% ELSE %]
-  None
-[% END %]
-  &lt;/td&gt;
-&lt;/tr&gt;
</del><ins>+      [% ELSE %]
+        None
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="lines">@@ -66,8 +54,7 @@
</span><span class="cx">   
</span><span class="cx"> [% IF milestone.bug_count %]
</span><span class="cx"> 
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;20&quot; width=&quot;70%&quot; bgcolor=&quot;red&quot;&gt;
-  &lt;tr&gt;&lt;td&gt;
</del><ins>+  &lt;p class=&quot;confirmation&quot;&gt;
</ins><span class="cx">     There
</span><span class="cx">     [% IF milestone.bug_count &gt; 1 %] 
</span><span class="cx">       are [% milestone.bug_count FILTER none %] [%+ terms.bugs %] 
</span><span class="lines">@@ -75,12 +62,10 @@
</span><span class="cx">       is 1 [% terms.bug %]
</span><span class="cx">     [% END %]
</span><span class="cx">     entered for this milestone! When you delete this milestone,
</span><del>-    &lt;b&gt;&lt;blink&gt;ALL&lt;/blink&gt;&lt;/b&gt; of these [% terms.bugs %] will be retargeted
</del><ins>+    &lt;b&gt;ALL&lt;/b&gt; of these [% terms.bugs %] will be retargeted
</ins><span class="cx">     to [% product.default_milestone FILTER html %], the default milestone for 
</span><span class="cx">     the [% product.name FILTER html %] product.
</span><del>-  &lt;/td&gt;&lt;/tr&gt;
-  &lt;/table&gt;
-
</del><ins>+  &lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Do you really want to delete this milestone?&lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonescreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,20 +17,19 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><span class="cx">   subheader = subheader
</span><del>-  onload = &quot;document.forms['f'].milestone.focus()&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form name=&quot;f&quot; method=&quot;post&quot; action=&quot;editmilestones.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;milestone&quot;&gt;Milestone:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input id=&quot;milestone&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;milestone&quot;
-                 value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;milestone&quot;&gt;Milestone:&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;&lt;input id=&quot;milestone&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;milestone&quot;
+                 autofocus required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input id=&quot;sortkey&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;sortkey&quot;
-                 value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;&lt;input id=&quot;sortkey&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;sortkey&quot;&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Add&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,30 +13,28 @@
</span><span class="cx">   #                    milestone the user wants to edit.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Edit Milestone '[% milestone.name FILTER html %]' of product '
</span><span class="cx">                    [%- product.name FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx">   onload = &quot;document.forms['f'].milestone.select()&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form name=&quot;f&quot; method=&quot;post&quot; action=&quot;editmilestones.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;milestone&quot;&gt;Milestone:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input id=&quot;milestone&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;milestone&quot; value=&quot;
-      [%- milestone.name FILTER html %]&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;milestone&quot;&gt;Milestone:&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;&lt;input id=&quot;milestone&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;milestone&quot; value=&quot;
+      [%- milestone.name FILTER html %]&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;sortkey&quot;&gt;Sortkey:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;sortkey&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;sortkey&quot; value=&quot;
</span><span class="cx">       [%- milestone.sortkey FILTER html %]&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;isactive&quot; name=&quot;isactive&quot; type=&quot;checkbox&quot; value=&quot;1&quot;
</span><span class="cx">                  [% 'checked=&quot;checked&quot;' IF milestone.isactive %]&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestoneslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -28,12 +15,11 @@
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Select milestone of product
</span><span class="cx">                    '[% product.name FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% edit_contentlink = BLOCK %]editmilestones.cgi?action=edit&amp;amp;product=
</span><span class="lines">@@ -67,7 +53,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">        name =&gt; &quot;bug_count&quot;
</span><span class="cx">        heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-       align =&gt; &quot;right&quot;
</del><ins>+       class =&gt; &quot;right&quot;
</ins><span class="cx">        contentlink =&gt; bug_count_contentlink
</span><span class="cx">      })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminmilestonesselectproducthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/select-product.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/select-product.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/milestones/select-product.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,10 +11,9 @@
</span><span class="cx">   # showbugcounts: if defined, then bug counts should be included in the table
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit milestones for which product?&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><span class="lines">@@ -50,7 +35,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">       name =&gt; 'bug_count'
</span><span class="cx">       heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-      align =&gt; &quot;right&quot;
</del><ins>+      class =&gt; &quot;right&quot;
</ins><span class="cx">       contentlink =&gt; &quot;buglist.cgi?product=%%name%%&quot;
</span><span class="cx">     })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsadminhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/admin.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/admin.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/admin.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Administrative Policies&quot;
</span><span class="lines">@@ -34,8 +21,11 @@
</span><span class="cx">                       &quot;switching this option on will not let users use an invalid address.&quot;,
</span><span class="cx"> 
</span><span class="cx">   allowuserdeletion =&gt; &quot;The user editing pages are capable of letting you delete user accounts. &quot; _
</span><del>-                       &quot;$terms.Bugzilla will issue a warning in case you'd run into inconsistencies &quot; _
</del><ins>+                       &quot;Bugzilla will issue a warning in case you'd run into inconsistencies &quot; _
</ins><span class="cx">                        &quot;when you're about to do so, but such deletions remain kinda scary. &quot; _
</span><span class="cx">                        &quot;So, you have to turn on this option before any such deletions &quot; _
</span><del>-                       &quot;will ever happen.&quot; }
-%]
</del><span class="cx">\ No newline at end of file
</span><ins>+                       &quot;will ever happen.&quot;
+
+  last_visit_keep_days =&gt; &quot;This option controls how many days $terms.Bugzilla will &quot; _
+                          &quot;remember when users visit specific ${terms.bugs}.&quot;}
+%]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsadvancedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/advanced.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/advanced.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/advanced.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% 
</span><span class="lines">@@ -31,7 +18,7 @@
</span><span class="cx">   security to your SSL connections by forcing the browser to always
</span><span class="cx">   access your domain over SSL and never accept an invalid certificate. 
</span><span class="cx">   However, it should only be used if you have the &lt;code&gt;ssl_redirect&lt;/code&gt;
</span><del>-  parameter turned on, [% terms.Bugzilla %] is the only thing running
</del><ins>+  parameter turned on, Bugzilla is the only thing running
</ins><span class="cx">   on its domain (i.e., your &lt;code&gt;urlbase&lt;/code&gt; is something like
</span><span class="cx">   &lt;code&gt;http://bugzilla.example.com/&lt;/code&gt;), and you never plan to disable
</span><span class="cx">   the &lt;code&gt;ssl_redirect&lt;/code&gt; parameter.
</span><span class="lines">@@ -48,7 +35,7 @@
</span><span class="cx">       with the &lt;code&gt;includeSubDomains&lt;/code&gt; flag, which will apply the
</span><span class="cx">       security change to all subdomains. This is especially useful when
</span><span class="cx">       combined with an &lt;code&gt;attachment_base&lt;/code&gt; that exists as (a)
</span><del>-      subdomain(s) under the main [% terms.Bugzilla %] domain.
</del><ins>+      subdomain(s) under the main Bugzilla domain.
</ins><span class="cx">     &lt;/li&gt;
</span><span class="cx">   &lt;/ul&gt;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -57,22 +44,22 @@
</span><span class="cx">   cookiedomain =&gt; 
</span><span class="cx">     &quot;If your website is at 'www.foo.com', setting this to&quot;
</span><span class="cx">     _ &quot; '.foo.com' will also allow 'bar.foo.com' to access&quot;
</span><del>-    _ &quot; $terms.Bugzilla cookies. This is useful if you have more than&quot;
</del><ins>+    _ &quot; Bugzilla cookies. This is useful if you have more than&quot;
</ins><span class="cx">     _ &quot; one hostname pointing at the same web server, and you&quot;
</span><del>-    _ &quot; want them to share the $terms.Bugzilla cookie.&quot;,
</del><ins>+    _ &quot; want them to share the Bugzilla cookie.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   inbound_proxies =&gt;
</span><del>-    &quot;When inbound traffic to $terms.Bugzilla goes through a proxy,&quot;
-    _ &quot; $terms.Bugzilla thinks that the IP address of every single&quot;
</del><ins>+    &quot;When inbound traffic to Bugzilla goes through a proxy,&quot;
+    _ &quot; Bugzilla thinks that the IP address of every single&quot;
</ins><span class="cx">     _ &quot; user is the IP address of the proxy. If you enter a comma-separated&quot;
</span><del>-    _ &quot; list of IPs in this parameter, then $terms.Bugzilla will trust any&quot;
</del><ins>+    _ &quot; list of IPs in this parameter, then Bugzilla will trust any&quot;
</ins><span class="cx">     _ &quot; &lt;code&gt;X-Forwarded-For&lt;/code&gt; header sent from those IPs,&quot;
</span><span class="cx">     _ &quot; and use the value of that header as the end user's IP address.&quot;,
</span><span class="cx"> 
</span><span class="cx">   proxy_url =&gt; 
</span><del>-    &quot;$terms.Bugzilla may have to access the web to get notifications about&quot;
-    _ &quot; new releases (see the &lt;tt&gt;upgrade_notification&lt;/tt&gt; parameter).&quot;
-    _ &quot; If your $terms.Bugzilla server is behind a proxy, it may be&quot;
</del><ins>+    &quot;Bugzilla may have to access the web to get notifications about&quot;
+    _ &quot; new releases (see the &lt;var&gt;upgrade_notification&lt;/var&gt; parameter).&quot;
+    _ &quot; If your Bugzilla server is behind a proxy, it may be&quot;
</ins><span class="cx">     _ &quot; necessary to enter its URL if the web server cannot access the&quot;
</span><span class="cx">     _ &quot; HTTP_PROXY environment variable. If you have to authenticate,&quot;
</span><span class="cx">     _ &quot; use the &lt;code&gt;http://user:pass@proxy_url/&lt;/code&gt; syntax.&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsattachmenthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/attachment.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/attachment.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/attachment.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Attachments&quot;
</span><span class="lines">@@ -32,30 +19,30 @@
</span><span class="cx">     _ &quot;&lt;p&gt;This is a security restriction for installations where untrusted&quot;
</span><span class="cx">     _ &quot; users may upload attachments that could be potentially damaging if&quot;
</span><span class="cx">     _ &quot; viewed directly in the browser.&lt;/p&gt;&quot;
</span><del>-    _ &quot;&lt;p&gt;It is highly recommended that you set the &lt;tt&gt;attachment_base&lt;/tt&gt;&quot;
</del><ins>+    _ &quot;&lt;p&gt;It is highly recommended that you set the &lt;var&gt;attachment_base&lt;/var&gt;&quot;
</ins><span class="cx">     _ &quot; parameter if you turn this parameter on.&quot;,
</span><span class="cx"> 
</span><span class="cx">   attachment_base =&gt; 
</span><del>-    &quot;When the &lt;tt&gt;allow_attachment_display&lt;/tt&gt; parameter is on, it is &quot;
</del><ins>+    &quot;When the &lt;var&gt;allow_attachment_display&lt;/var&gt; parameter is on, it is &quot;
</ins><span class="cx">     _ &quot; possible for a malicious attachment to steal your cookies or&quot;
</span><del>-    _ &quot; perform an attack on $terms.Bugzilla using your credentials.&quot;
</del><ins>+    _ &quot; perform an attack on Bugzilla using your credentials.&quot;
</ins><span class="cx">     _ &quot;&lt;p&gt;If you would like additional security on attachments to avoid&quot;
</span><del>-    _ &quot; this, set this parameter to an alternate URL for your $terms.Bugzilla&quot;
-    _ &quot; that is not the same as &lt;tt&gt;urlbase&lt;/tt&gt; or &lt;tt&gt;sslbase&lt;/tt&gt;.&quot;
</del><ins>+    _ &quot; this, set this parameter to an alternate URL for your Bugzilla&quot;
+    _ &quot; that is not the same as &lt;var&gt;urlbase&lt;/var&gt; or &lt;var&gt;sslbase&lt;/var&gt;.&quot;
</ins><span class="cx">     _ &quot; That is, a different domain name that resolves to this exact&quot;
</span><del>-    _ &quot; same $terms.Bugzilla installation.&lt;/p&gt;&quot;
</del><ins>+    _ &quot; same Bugzilla installation.&lt;/p&gt;&quot;
</ins><span class="cx">     _ &quot;&lt;p&gt;Note that if you have set the&quot;
</span><del>-    _ &quot; &lt;a href=\&quot;editparams.cgi?section=advanced#cookiedomain_desc\&quot;&gt;&lt;tt&gt;cookiedomain&lt;/tt&gt;&quot;
-    _&quot; parameter&lt;/a&gt;, you should set &lt;tt&gt;attachment_base&lt;/tt&gt; to use a&quot;
</del><ins>+    _ &quot; &lt;a href=\&quot;editparams.cgi?section=advanced#cookiedomain_desc\&quot;&gt;&lt;var&gt;cookiedomain&lt;/var&gt;&quot;
+    _&quot; parameter&lt;/a&gt;, you should set &lt;var&gt;attachment_base&lt;/var&gt; to use a&quot;
</ins><span class="cx">     _ &quot; domain that would &lt;em&gt;not&lt;/em&gt; be matched by&quot;
</span><del>-    _ &quot; &lt;tt&gt;cookiedomain&lt;/tt&gt;.&lt;/p&gt;&quot;
-    _ &quot;&lt;p&gt;For added security, you can insert &lt;tt&gt;%bugid%&lt;/tt&gt; into the URL,&quot;
</del><ins>+    _ &quot; &lt;var&gt;cookiedomain&lt;/var&gt;.&lt;/p&gt;&quot;
+    _ &quot;&lt;p&gt;For added security, you can insert &lt;var&gt;%bugid%&lt;/var&gt; into the URL,&quot;
</ins><span class="cx">     _ &quot; which will be replaced with the ID of the current $terms.bug that&quot;
</span><span class="cx">     _ &quot; the attachment is on, when you access an attachment. This will limit&quot;
</span><span class="cx">     _ &quot; attachments to accessing only other attachments on the same&quot;
</span><span class="cx">     _ &quot; ${terms.bug}. Remember, though, that all those possible domain names &quot;
</span><del>-    _ &quot; (such as &lt;tt&gt;1234.your.domain.com&lt;/tt&gt;) must point to this same&quot;
-    _ &quot; $terms.Bugzilla instance.&quot;,
</del><ins>+    _ &quot; (such as &lt;kbd&gt;1234.your.domain.com&lt;/kbd&gt;) must point to this same&quot;
+    _ &quot; Bugzilla instance.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   allow_attachment_deletion =&gt; &quot;If this option is on, administrators will be able to delete &quot; _
</span><span class="cx">                                &quot;the content of attachments.&quot;,
</span><span class="lines">@@ -62,8 +49,8 @@
</span><span class="cx"> 
</span><span class="cx">   maxattachmentsize =&gt; &quot;The maximum size (in kilobytes) of attachments to be stored &quot; _
</span><span class="cx">                        &quot;in the database. If a file larger than this size is attached &quot; _
</span><del>-                       &quot;to ${terms.abug}, $terms.Bugzilla will look at the &quot; _
-                       &quot;&lt;a href='#maxlocalattachment'&gt;&lt;tt&gt;maxlocalattachment&lt;/tt&gt; parameter&lt;/a&gt; &quot; _
</del><ins>+                       &quot;to ${terms.abug}, Bugzilla will look at the &quot; _
+                       &quot;&lt;a href=\&quot;#maxlocalattachment\&quot;&gt;&lt;var&gt;maxlocalattachment&lt;/var&gt; parameter&lt;/a&gt; &quot; _
</ins><span class="cx">                        &quot;to determine if the file can be stored locally on the web server. &quot; _
</span><span class="cx">                        &quot;If the file size exceeds both limits, then the attachment is rejected. &quot; _
</span><span class="cx">                        &quot;Settings both parameters to 0 will prevent attaching files to ${terms.bugs}.&quot;,
</span><span class="lines">@@ -70,6 +57,6 @@
</span><span class="cx"> 
</span><span class="cx">   maxlocalattachment =&gt; &quot;The maximum size (in megabytes) of attachments to be stored &quot; _
</span><span class="cx">                         &quot;locally on the web server. If set to a value lower than the &quot; _
</span><del>-                        &quot;&lt;a href='#maxattachmentsize'&gt;&lt;tt&gt;maxattachmentsize&lt;/tt&gt; parameter&lt;/a&gt;, &quot; _
</del><ins>+                        &quot;&lt;a href=\&quot;#maxattachmentsize\&quot;&gt;&lt;var&gt;maxattachmentsize&lt;/var&gt; parameter&lt;/a&gt;, &quot; _
</ins><span class="cx">                         &quot;attachments will never be kept on the local filesystem.&quot; }
</span><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsauthhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/auth.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/auth.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/auth.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;User Authentication&quot;
</span><span class="lines">@@ -64,13 +50,13 @@
</span><span class="cx">                         &lt;dl&gt;
</span><span class="cx">                           &lt;dt&gt;DB&lt;/dt&gt;
</span><span class="cx">                           &lt;dd&gt;
</span><del>-                            ${terms.Bugzilla}'s built-in authentication. This is the most common
</del><ins>+                            Bugzilla's built-in authentication. This is the most common
</ins><span class="cx">                             choice.
</span><span class="cx">                           &lt;/dd&gt;
</span><span class="cx">                           &lt;dt&gt;RADIUS&lt;/dt&gt;
</span><span class="cx">                           &lt;dd&gt;
</span><span class="cx">                             RADIUS authentication using a RADIUS server.
</span><del>-                            Please see the $terms.Bugzilla documentation for
</del><ins>+                            Please see the Bugzilla documentation for
</ins><span class="cx">                             more information.
</span><span class="cx">                             Using this method requires
</span><span class="cx">                             &lt;a href=\&quot;?section=radius\&quot;&gt;additional
</span><span class="lines">@@ -79,7 +65,7 @@
</span><span class="cx">                           &lt;dt&gt;LDAP&lt;/dt&gt;
</span><span class="cx">                           &lt;dd&gt;
</span><span class="cx">                             LDAP authentication using an LDAP server.
</span><del>-                            Please see the $terms.Bugzilla documentation
</del><ins>+                            Please see the Bugzilla documentation
</ins><span class="cx">                             for more information. Using this method requires
</span><span class="cx">                             &lt;a href=\&quot;?section=ldap\&quot;&gt;additional
</span><span class="cx">                             parameters&lt;/a&gt; to be set.
</span><span class="lines">@@ -98,8 +84,8 @@
</span><span class="cx">                       &lt;/li&gt;
</span><span class="cx">                       &lt;li&gt;
</span><span class="cx">                         defaulton/defaultoff - Default behavior as described
</span><del>-                        above, but user can choose whether $terms.Bugzilla will remember his
-                        login or not.
</del><ins>+                        above, but user can choose whether Bugzilla will
+                        remember their login or not.
</ins><span class="cx">                       &lt;/li&gt;
</span><span class="cx">                     &lt;/ul&gt;&quot;,
</span><span class="cx"> 
</span><span class="lines">@@ -107,17 +93,27 @@
</span><span class="cx">                   &quot;front page will require a login. No anonymous users will &quot; _
</span><span class="cx">                   &quot;be permitted.&quot;,
</span><span class="cx"> 
</span><del>-  emailregexp =&gt; &quot;This defines the regexp to use for legal email addresses. The &quot; _
-                 &quot;default tries to match fully qualified email addresses. Another &quot; _
-                 &quot;popular value to put here is &lt;tt&gt;^[^@]+$&lt;/tt&gt;, which means &quot; _
-                 &quot;'local usernames, no @ allowed.'&quot;,
</del><ins>+  webservice_email_filter =&gt;
+    &quot;Filter email addresses returned by the WebService API depending on &quot; _
+    &quot;if the user is logged in or not. This works similarly to how the &quot; _
+    &quot;web UI currently filters email addresses. If &lt;var&gt;requirelogin&lt;/var&gt; &quot; _
+    &quot;is enabled, then this parameter has no effect as users must be logged &quot; _
+    &quot;in to use Bugzilla.&quot;,
</ins><span class="cx"> 
</span><del>-  emailregexpdesc =&gt; &quot;This describes in English words what kinds of legal addresses &quot; _
-                     &quot;are allowed by the &lt;tt&gt;emailregexp&lt;/tt&gt; param.&quot;,
</del><ins>+  emailregexp =&gt;
+    &quot;This defines the regular expression to use for legal email addresses. &quot; _
+    &quot;The default tries to match fully qualified email addresses. &quot; _
+    &quot;Use &lt;kbd&gt;.*&lt;/kbd&gt; to accept any email address following the &quot; _
+    &quot;&lt;a href=\&quot;http://tools.ietf.org/html/rfc2822#section-3.4.1\&quot;&gt;RFC 2822&lt;/a&gt; &quot; _
+    &quot;specification. Another popular value to put here is &lt;kbd&gt;^[^@]+$&lt;/kbd&gt;, &quot; _
+    &quot;which means 'local usernames, no @ allowed.'&quot;,
</ins><span class="cx"> 
</span><ins>+  emailregexpdesc =&gt; &quot;This description explains valid addresses that &quot; _
+                     &quot;are allowed by the &lt;var&gt;emailregexp&lt;/var&gt; param.&quot;,
+
</ins><span class="cx">   emailsuffix =&gt; &quot;This is a string to append to any email addresses when actually &quot; _
</span><span class="cx">                  &quot;sending mail to that address. It is useful if you have changed &quot; _
</span><del>-                 &quot;the &lt;tt&gt;emailregexp&lt;/tt&gt; param to only allow local usernames, &quot; _
</del><ins>+                 &quot;the &lt;var&gt;emailregexp&lt;/var&gt; param to only allow local usernames, &quot; _
</ins><span class="cx">                  &quot;but you want the mail to be delivered to username@my.local.hostname.&quot;,
</span><span class="cx"> 
</span><span class="cx">   createemailregexp =&gt; &quot;This defines the (case-insensitive) regexp to use for email addresses that are &quot; _
</span><span class="lines">@@ -136,6 +132,12 @@
</span><span class="cx">     &quot;&lt;li&gt;letters_numbers - Passwords must contain at least one UPPER and one &quot; _
</span><span class="cx">     &quot;lower case letter and a number.&lt;/li&gt;&quot; _
</span><span class="cx">     &quot;&lt;li&gt;letters_numbers_specialchars - Passwords must contain at least one &quot; _
</span><del>-    &quot;UPPER or one lower case letter, a number and a special character.&lt;/li&gt;&lt;/ul&gt;&quot;
</del><ins>+    &quot;letter, a number and a special character.&lt;/li&gt;&lt;/ul&gt;&quot;
+
+  password_check_on_login =&gt;
+    &quot;If set, $terms.Bugzilla will check that the password meets the current &quot; _
+    &quot;complexity rules and minimum length requirements  when the user logs &quot; _
+    &quot;into the $terms.Bugzilla web interface. If it doesn't, the user would &quot; _
+    &quot;not be able to log in, and recieve a message to reset their password.&quot;
</ins><span class="cx">   }
</span><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsbugchangehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugchange.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugchange.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugchange.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;$terms.Bug Change Policies&quot;
</span><span class="lines">@@ -23,8 +10,6 @@
</span><span class="cx">    desc = &quot;Set up $terms.bug change policies&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% accept_status = display_value('bug_status', 'IN_PROGRESS') FILTER html %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsbugfieldshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugfields.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugfields.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/bugfields.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;$terms.Bug Fields&quot;
</span><span class="lines">@@ -24,7 +11,7 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span><del>-  useclassification =&gt; &quot;If this is on, $terms.Bugzilla will associate each product with a &quot; _
</del><ins>+  useclassification =&gt; &quot;If this is on, Bugzilla will associate each product with a &quot; _
</ins><span class="cx">                        &quot;specific classification. But you must have 'editclassification' &quot; _
</span><span class="cx">                        &quot;permissions enabled in order to edit classifications.&quot;,
</span><span class="cx"> 
</span><span class="lines">@@ -34,9 +21,6 @@
</span><span class="cx"> 
</span><span class="cx">   usestatuswhiteboard =&gt; &quot;Do you wish to use the Status Whiteboard field?&quot;,
</span><span class="cx"> 
</span><del>-  usebugaliases =&gt; &quot;Do you wish to use $terms.bug aliases, which allow you to assign &quot; _
-                   &quot;$terms.bugs an easy-to-remember name by which you can refer to them?&quot;,
-
</del><span class="cx">   use_see_also =&gt; 
</span><span class="cx">     &quot;Do you wish to use the See Also field? It allows you refer to&quot;
</span><span class="cx">     _ &quot; $terms.bugs in other installations. Even if you disable this field,&quot;
</span><span class="lines">@@ -50,12 +34,16 @@
</span><span class="cx">   defaultplatform =&gt; &quot;This is the platform that is preselected on the $terms.bug &quot; _
</span><span class="cx">                      &quot;entry form.&lt;br&gt; &quot; _
</span><span class="cx">                      &quot;You can leave this empty: &quot; _
</span><del>-                     &quot;$terms.Bugzilla will then use the platform that the browser &quot; _
</del><ins>+                     &quot;Bugzilla will then use the platform that the browser &quot; _
</ins><span class="cx">                      &quot;reports to be running on as the default.&quot;,
</span><span class="cx"> 
</span><span class="cx">   defaultopsys =&gt; &quot;This is the operating system that is preselected on the $terms.bug &quot; _
</span><span class="cx">                   &quot;entry form.&lt;br&gt; &quot; _
</span><span class="cx">                   &quot;You can leave this empty: &quot; _
</span><del>-                  &quot;$terms.Bugzilla will then use the operating system that the browser &quot; _
-                  &quot;reports to be running on as the default.&quot; }
</del><ins>+                  &quot;Bugzilla will then use the operating system that the browser &quot; _
+                  &quot;reports to be running on as the default.&quot;,
+
+  collapsed_comment_tags =&gt; &quot;A comma separated list of tags which, when applied &quot; _
+                            &quot;to comments, will cause them to be collapsed by default&quot;,
+  }
</ins><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamscommonhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/common.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/common.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # panel: hash representing the current panel.
-  #%]
</del><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% sortlist_separator = '---' %]
</span><span class="cx"> 
</span><span class="cx"> &lt;dl&gt;
</span><span class="lines">@@ -50,7 +32,7 @@
</span><span class="cx">         &lt;label for=&quot;[% param.name FILTER html %]-off&quot;&gt;Off&lt;/label&gt;
</span><span class="cx">       [% ELSIF param.type == &quot;m&quot; %]
</span><span class="cx">         [% boxSize = 5 %]
</span><del>-        [% boxSize = param.choices.size IF param.choices.size &lt; 5 %]
</del><ins>+        [% SET boxSize = param.choices.size IF param.choices.size &lt; 5 %]
</ins><span class="cx"> 
</span><span class="cx">         &lt;select multiple=&quot;multiple&quot; size=&quot;[% boxSize FILTER html %]&quot;
</span><span class="cx">                 name=&quot;[% param.name FILTER html %]&quot; id=&quot;[% param.name FILTER html %]&quot;&gt;
</span><span class="lines">@@ -66,7 +48,7 @@
</span><span class="cx">                name=&quot;[% param.name FILTER html %]&quot;
</span><span class="cx">                value=&quot;[% Param(param.name) FILTER html %]&quot;&gt;&lt;br&gt;
</span><span class="cx">         [% boxSize = 7 %]
</span><del>-        [% boxSize = 3 + param.choices.size IF param.choices.size &lt; 7 %]
</del><ins>+        [% SET boxSize = 3 + param.choices.size IF param.choices.size &lt; 7 %]
</ins><span class="cx">         [% plist = Param(param.name).split(',') %]
</span><span class="cx"> 
</span><span class="cx">         &lt;table id=&quot;table_[% param.name FILTER html %]&quot; class=&quot;bz_default_hidden&quot;&gt;
</span><span class="lines">@@ -87,7 +69,7 @@
</span><span class="cx">                 [% END %]
</span><span class="cx">               &lt;/select&gt;
</span><span class="cx">             &lt;/td&gt;
</span><del>-            &lt;td style=&quot;vertical-align: bottom&quot;&gt;
</del><ins>+            &lt;td class=&quot;bottom&quot;&gt;
</ins><span class="cx">               &lt;button type=&quot;button&quot;
</span><span class="cx">                       onClick=&quot;sortedList_moveItem('[% param.name FILTER html %]', -1, '[% sortlist_separator %]');&quot;&gt;&amp;uarr;&lt;/button&gt;
</span><span class="cx">             &lt;/td&gt;
</span><span class="lines">@@ -94,7 +76,7 @@
</span><span class="cx">           &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">           &lt;tr&gt;
</span><del>-            &lt;td style=&quot;vertical-align: top&quot;&gt;
</del><ins>+            &lt;td class=&quot;top&quot;&gt;
</ins><span class="cx">               &lt;button type=&quot;button&quot;
</span><span class="cx">                       onClick=&quot;sortedList_moveItem('[% param.name FILTER html %]', +1, '[% sortlist_separator %]');&quot;&gt;&amp;darr;&lt;/button&gt;
</span><span class="cx">             &lt;/td&gt;
</span><span class="lines">@@ -125,10 +107,10 @@
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/select&gt;
</span><span class="cx">       [% ELSE %]
</span><del>-        &lt;font color=&quot;red&quot;&gt;
-          &lt;blink&gt;Unknown param type [% param.type FILTER html %]!!!&lt;/blink&gt;
-        &lt;/font&gt;
-      [% END %]  
</del><ins>+        &lt;span class=&quot;warning&quot;&gt;
+          Unknown param type [% param.type FILTER html %]!!!
+        &lt;/span&gt;
+      [% END %]
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">       [% UNLESS param.no_reset %]
</span><span class="cx">         &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamscorehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/core.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/core.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/core.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,14 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% 
</span><span class="cx">    title = &quot;Required Settings&quot;
</span><del>-   desc = &quot;Settings that are required for proper operation of $terms.Bugzilla&quot; 
</del><ins>+   desc = &quot;Settings that are required for proper operation of Bugzilla&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span><span class="lines">@@ -32,17 +19,17 @@
</span><span class="cx">              &quot;(SSL) $terms.Bugzilla URLs.&quot;,
</span><span class="cx"> 
</span><span class="cx">   ssl_redirect =&gt; 
</span><del>-    &quot;When this is enabled, $terms.Bugzilla will ensure that every page is&quot;
</del><ins>+    &quot;When this is enabled, Bugzilla will ensure that every page is&quot;
</ins><span class="cx">     _ &quot; accessed over SSL, by redirecting any plain HTTP requests to HTTPS&quot;
</span><del>-    _ &quot; using the &lt;tt&gt;sslbase&lt;/tt&gt; parameter. Also, when this is enabled,&quot;
-    _ &quot; $terms.Bugzilla will send out links using &lt;tt&gt;sslbase&lt;/tt&gt; in emails&quot;
-    _ &quot; instead of &lt;tt&gt;urlbase&lt;/tt&gt;.&quot;,
</del><ins>+    _ &quot; using the &lt;var&gt;sslbase&lt;/var&gt; parameter. Also, when this is enabled,&quot;
+    _ &quot; Bugzilla will send out links using &lt;var&gt;sslbase&lt;/var&gt; in emails&quot;
+    _ &quot; instead of &lt;var&gt;urlbase&lt;/var&gt;.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   cookiepath =&gt; &quot;Path, relative to your web document root, to which to restrict &quot; _
</span><del>-                &quot;$terms.Bugzilla cookies. Normally this is the URI portion of your URL &quot; _
</del><ins>+                &quot;Bugzilla cookies. Normally this is the URI portion of your URL &quot; _
</ins><span class="cx">                 &quot;base. Begin with a / (single slash mark). For instance, if &quot; _
</span><del>-                &quot;$terms.Bugzilla serves from 'http://www.somedomain.com/bugzilla/', set &quot; _
</del><ins>+                &quot;Bugzilla serves from 'http://www.somedomain.com/bugzilla/', set &quot; _
</ins><span class="cx">                 &quot;this parameter to /bugzilla/. Setting it to / will allow &quot; _
</span><span class="cx">                 &quot;all sites served by this web server or virtual host to read &quot; _
</span><del>-                &quot;$terms.Bugzilla cookies.&quot;,
</del><ins>+                &quot;Bugzilla cookies.&quot;,
</ins><span class="cx"> } %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsdependencygraphhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/dependencygraph.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/dependencygraph.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/dependencygraph.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><del>-   title = &quot;Dependency Graphs&quot;
-   desc = &quot;Optional setup for dependency graphing&quot;
</del><ins>+   title = &quot;Graphs&quot;
+   desc = &quot;Optional setup to generate graphs&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span><span class="lines">@@ -45,5 +32,15 @@
</span><span class="cx">                  this value, make certain that the webdot server can read files from your
</span><span class="cx">                  webdot directory. On Apache you do this by editing the .htaccess file,
</span><span class="cx">                  for other systems the needed measures may vary. You can run &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
</span><del>-                 to recreate the .htaccess file if it has been lost.&quot;}
</del><ins>+                 to recreate the .htaccess file if it has been lost.&quot;,
+
+  font_file =&gt; &quot;You can specify the full path to a TrueType or OpenType font file which will &quot; _
+               &quot;be used to display text (labels, legends, ...) in charts and graphical reports. &quot; _
+               &quot;To support as many languages as possible, we recommend to specify a font &quot; _
+               &quot;such as &lt;a href=\&quot;http://unifoundry.com/unifont.html\&quot;&gt;Unifont&lt;/a&gt; &quot; _
+               &quot;which supports all printable characters in the Basic Multilingual Plane. &quot; _
+               &quot;If you leave this parameter empty, a default font will be used, but &quot; _
+               &quot;its support is limited to English characters only and so other characters &quot; _
+               &quot;will be displayed incorrectly.&quot;,
+  }
</ins><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamseditparamshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/editparams.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/editparams.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/editparams.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # panels: array of hashes representing the panels available.
-  # param_changed: array of parameters which have been changed.
-  # shutdown_is_active: boolean; is true when 'shutdownhtml' has been turned on.
-  #%]
</del><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% curpanel = -1 %]
</span><span class="cx"> [% panels = panels.nsort('sortkey') %]
</span><span class="cx"> 
</span><span class="lines">@@ -55,14 +35,13 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = title
</span><span class="cx">    message = message
</span><del>-   style_urls = ['skins/standard/params.css']
</del><ins>+   style_urls = ['skins/standard/admin.css']
</ins><span class="cx">    javascript_urls = ['js/params.js', 'js/util.js']
</span><del>-   doc_section = &quot;parameters.html&quot;
</del><ins>+   doc_section = &quot;administering/parameters.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;0&quot; width=&quot;100%&quot;&gt;
-  &lt;tr&gt;
-    &lt;td&gt;
</del><ins>+&lt;div class=&quot;table&quot;&gt;
+  &lt;div class=&quot;cell&quot;&gt;
</ins><span class="cx">       [%# NAVIGATION BAR %]
</span><span class="cx">       &lt;table id=&quot;menu&quot;&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="lines">@@ -86,29 +65,29 @@
</span><span class="cx">           &lt;/tr&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/table&gt;
</span><del>-    &lt;/td&gt;
-    &lt;td&gt;
-      [% IF curpanel == -1 %]
-        [% PROCESS admin/params/index.html.tmpl panels = panels %]
-      [% ELSE %]
</del><ins>+  &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-        &lt;div class=&quot;contribute&quot;&gt;&lt;strong&gt;Note:&lt;/strong&gt;
-          B[% %]ugzilla is developed entirely by volunteers.
-          The best way to give back to the B[% %]ugzilla project is to
-          &lt;a href=&quot;http://www.bugzilla.org/contribute/&quot;&gt;contribute&lt;/a&gt;
-          yourself!
-          You don't have to be a programmer to contribute, there are lots of
-          things that we need.
-        &lt;/div&gt;
</del><ins>+  &lt;div class=&quot;cell&quot;&gt;
+    &lt;div id=&quot;contribute&quot;&gt;
+      &lt;strong&gt;Note:&lt;/strong&gt;
+      Bugzilla is developed entirely by volunteers.
+      The best way to give back to the Bugzilla project is to
+      &lt;a href=&quot;http://www.bugzilla.org/contribute/&quot;&gt;contribute&lt;/a&gt; yourself!
+      You don't have to be a programmer to contribute, there are lots of
+      things that we need.
+    &lt;/div&gt;
</ins><span class="cx"> 
</span><ins>+    [% IF curpanel == -1 %]
+      [% PROCESS admin/params/index.html.tmpl panels = panels %]
+    [% ELSE %]
</ins><span class="cx">         &lt;p&gt;
</span><del>-          This lets you edit the basic operating parameters of [% terms.Bugzilla %].
</del><ins>+          This lets you edit the basic operating parameters of Bugzilla.
</ins><span class="cx">           Be careful!&lt;br&gt;
</span><span class="cx">           Any item you check &quot;Reset&quot; on will get reset to its default value.
</span><span class="cx">         &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx">         [%# CONTENT PANEL %]
</span><del>-        &lt;form method=&quot;post&quot; action=&quot;editparams.cgi&quot;&gt;
</del><ins>+        &lt;form id=&quot;edit_params&quot; method=&quot;post&quot; action=&quot;editparams.cgi&quot;&gt;
</ins><span class="cx">           [% PROCESS admin/params/common.html.tmpl panel = current_panel %]
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;section&quot; value=&quot;[% current_panel.name FILTER html %]&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;save&quot;&gt;
</span><span class="lines">@@ -115,9 +94,8 @@
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;submit&quot; id=&quot;save-params&quot; value=&quot;Save Changes&quot;&gt;
</span><span class="cx">         &lt;/form&gt;
</span><del>-      [% END %]
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+    [% END %]
+  &lt;/div&gt;
+&lt;/div&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% INCLUDE global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsgeneralhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/general.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/general.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/general.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% 
</span><span class="lines">@@ -27,16 +14,8 @@
</span><span class="cx"> [% param_descs = {
</span><span class="cx">   maintainer =&gt; 
</span><span class="cx">     &quot;The email address of the person who maintains this installation &quot;
</span><del>-    _ &quot; of ${terms.Bugzilla}.&quot;,
</del><ins>+    _ &quot; of Bugzilla.&quot;,
</ins><span class="cx"> 
</span><del>-  docs_urlbase =&gt; 
-    &quot;The URL that is the common initial leading part of all&quot;
-    _ &quot; $terms.Bugzilla documentation URLs. It may be an absolute URL,&quot;
-    _ &quot; or a URL relative to the &lt;tt&gt;urlbase&lt;/tt&gt; parameter. Leave this&quot;
-    _ &quot; empty to suppress links to the documentation.&quot;
-    _ &quot;'%lang%' will be replaced by user's preferred language (if&quot;
-    _ &quot; documentation is available in that language).&quot;,
-
</del><span class="cx">   utf8 =&gt; 
</span><span class="cx">     &quot;Use UTF-8 (Unicode) encoding for all text in ${terms.Bugzilla}. New&quot;
</span><span class="cx">     _ &quot; installations should set this to true to avoid character encoding&quot;
</span><span class="lines">@@ -49,24 +28,23 @@
</span><span class="cx">     _ &quot; afterward.&lt;/p&gt;&quot;,
</span><span class="cx"> 
</span><span class="cx">   shutdownhtml =&gt; 
</span><del>-    &quot;If this field is non-empty, then $terms.Bugzilla will be completely&quot;
</del><ins>+    &quot;If this field is non-empty, then Bugzilla will be completely&quot;
</ins><span class="cx">     _ &quot; disabled and this text will be displayed instead of all the&quot;
</span><span class="cx">     _ &quot; $terms.Bugzilla pages.&quot;,
</span><span class="cx"> 
</span><span class="cx">   announcehtml =&gt; 
</span><del>-    &quot;If this field is non-empty, then $terms.Bugzilla will&quot;
</del><ins>+    &quot;If this field is non-empty, then Bugzilla will&quot;
</ins><span class="cx">     _ &quot; display whatever is in this field at the top of every&quot;
</span><span class="cx">     _ &quot; HTML page. The HTML you put in this field is not wrapped or&quot;
</span><span class="cx">     _ &quot; enclosed in anything. You might want to wrap it inside a&quot;
</span><del>-    _ &quot;&lt;tt&gt;&amp;lt;div&amp;gt;&lt;/tt&gt;. Give the div &lt;em&gt;id=\&quot;message\&quot;&lt;/em&gt; to get&quot;
</del><ins>+    _ &quot;&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;. Give the div &lt;em&gt;id=\&quot;message\&quot;&lt;/em&gt; to get&quot;
</ins><span class="cx">     _ &quot; green text inside a red box, or &lt;em&gt;class=\&quot;bz_private\&quot;&lt;/em&gt; for&quot;
</span><span class="cx">     _ &quot; dark red on a red background.  Anything defined in &quot;
</span><del>-    _ &quot; &lt;tt&gt;skins/standard/global.css&lt;/tt&gt; or &lt;tt&gt;skins/custom/global.css&lt;/tt&gt;&quot;
-    _ &quot; will work.  To get centered text, use &lt;em&gt;style=\&quot;text-align: &quot;
-    _  &quot; center;\&quot;&lt;/em&gt;.&quot;,
</del><ins>+    _ &quot; &lt;code&gt;skins/standard/global.css&lt;/code&gt; or &lt;code&gt;skins/custom/global.css&lt;/code&gt;&quot;
+    _ &quot; will work.  To get centered text, use &lt;em&gt;class=\&quot;center\&quot;&lt;/em&gt;.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   upgrade_notification =&gt; 
</span><del>-    &quot;$terms.Bugzilla can inform you when a new release is available.&quot;
</del><ins>+    &quot;Bugzilla can inform you when a new release is available.&quot;
</ins><span class="cx">     _ &quot; The notification will appear on the $terms.Bugzilla homepage,&quot;
</span><span class="cx">     _ &quot; for administrators only.&quot;
</span><span class="cx">     _ &quot; &lt;ul&gt;&lt;li&gt;'development_snapshot' notifies you about the development &quot;
</span><span class="lines">@@ -80,7 +58,7 @@
</span><span class="cx">     _ &quot; for newer release candidates too.&lt;/li&gt;&quot;
</span><span class="cx">     _ &quot; &lt;li&gt;'disabled' will never notify you about new releases and no&quot;
</span><span class="cx">     _ &quot; connection will be established to a remote server.&lt;/li&gt;&lt;/ul&gt;&quot;
</span><del>-    _ &quot; &lt;p&gt;Note that if your $terms.Bugzilla server requires a proxy to&quot;
-    _ &quot; access the Internet, you may also need to set the &lt;tt&gt;proxy_url&lt;/tt&gt;&quot;
</del><ins>+    _ &quot; &lt;p&gt;Note that if your Bugzilla server requires a proxy to&quot;
+    _ &quot; access the Internet, you may also need to set the &lt;var&gt;proxy_url&lt;/var&gt;&quot;
</ins><span class="cx">     _ &quot; parameter in the Advanced section.&lt;/p&gt;&quot;,
</span><span class="cx"> } %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsgroupsecurityhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/groupsecurity.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/groupsecurity.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/groupsecurity.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Group Security&quot;
</span><span class="lines">@@ -24,7 +11,7 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span><del>-  makeproductgroups =&gt; &quot;If this is on, $terms.Bugzilla will associate $terms.abug group &quot; _
</del><ins>+  makeproductgroups =&gt; &quot;If this is on, Bugzilla will associate $terms.abug group &quot; _
</ins><span class="cx">                        &quot;with each product in the database, and use it for querying ${terms.bugs}.&quot;,
</span><span class="cx"> 
</span><span class="cx">   chartgroup =&gt; &quot;The name of the group of users who can use the 'New Charts' &quot; _
</span><span class="lines">@@ -42,18 +29,28 @@
</span><span class="cx">   querysharegroup =&gt; &quot;The name of the group of users who can share their &quot; _
</span><span class="cx">                      &quot;saved searches with others.&quot;,
</span><span class="cx"> 
</span><ins>+  comment_taggers_group =&gt; &quot;The name of the group of users who can tag comment.&quot; _
+                           &quot; Setting this to empty disables comment tagging.&quot;,
+
</ins><span class="cx">   debug_group =&gt; &quot;The name of the group of users who can view the actual &quot; _
</span><span class="cx">                  &quot;SQL query generated when viewing $terms.bug lists and reports.&quot;,
</span><span class="cx"> 
</span><span class="cx">   usevisibilitygroups =&gt; &quot;Do you wish to restrict visibility of users to members of &quot; _
</span><span class="cx">                          &quot;specific groups?&quot;,
</span><del>-  
</del><ins>+
</ins><span class="cx">   strict_isolation =&gt; &quot;Don't allow users to be assigned to, &quot; _
</span><span class="cx">                       &quot;be qa-contacts on, &quot; _
</span><span class="cx">                       &quot;be added to CC list, &quot; _
</span><span class="cx">                       &quot;or make or remove dependencies &quot; _
</span><span class="cx">                       &quot;involving any bug that is in a product on which that &quot; _
</span><del>-                      &quot;user is forbidden to edit.&quot;, 
</del><ins>+                      &quot;user is forbidden to edit.&quot;,
</ins><span class="cx"> 
</span><ins>+ or_groups =&gt; &quot;Define the visibility of $terms.abug which is in multiple &quot; _
+              &quot;groups. If this is on (recommended), a user only needs to &quot; _
+              &quot;be a member of one of the $terms.bug's groups in order to &quot; _
+              &quot;view it. If it is off, a user needs to be a member of all &quot; _
+              &quot;the $terms.bug's groups. Note that in either case, if the &quot; _
+              &quot;user has a role on the $terms.bug (e.g. reporter) that may &quot; _
+              &quot;also affect their permissions.&quot;
</ins><span class="cx">  }
</span><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsindexhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/index.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/index.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/index.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,51 +1,28 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Nitish Bezzala &lt;nbezzala@yahoo.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-&lt;p&gt;
-  All parameters are displayed below, per section.
-  If you cannot find one from here, then the parameter does not exist.
-&lt;/p&gt;
</del><ins>+&lt;div id=&quot;params_index&quot;&gt;
+  &lt;p&gt;
+    All parameters are displayed below, per section.
+    If you cannot find one from here, then the parameter does not exist.
+  &lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;div align=&quot;center&quot;&gt;
-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;th&gt;Parameter&lt;/th&gt;
-      &lt;th&gt;Section&lt;/th&gt;
-    &lt;/tr&gt;
-    [% FOREACH panel = panels %]
</del><ins>+  [% FOREACH panel = panels %]
+    &lt;h3&gt;[% panel.title FILTER html %]&lt;/h3&gt;
+
+    &lt;ul&gt;
</ins><span class="cx">       [% FOREACH param = panel.param_list.sort('name') %]
</span><del>-        &lt;tr&gt;
-          &lt;td&gt;
-            &lt;a href=&quot;editparams.cgi?section=
-              [%- panel.name FILTER uri %]#[% param.name FILTER uri %]_desc&quot;&gt;
-              [% param.name FILTER html %]&lt;/a&gt;
-          &lt;/td&gt;    
-          &lt;td&gt;
-            [% panel.title FILTER html %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
</del><ins>+        &lt;li&gt;
+          &lt;a href=&quot;editparams.cgi?section=
+                   [%- panel.name FILTER uri %]#[% param.name FILTER uri %]_desc&quot;&gt;
+            [% param.name FILTER html %]&lt;/a&gt;
+        &lt;/li&gt;
</ins><span class="cx">       [% END %]
</span><del>-      &lt;tr&gt;
-        &lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;
-      &lt;/tr&gt;
-    [% END %]
-  &lt;/table&gt;
</del><ins>+    &lt;/ul&gt;
+  [% END %]
</ins><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsldaphtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/ldap.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/ldap.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/ldap.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;LDAP&quot;
</span><span class="lines">@@ -48,11 +35,11 @@
</span><span class="cx"> 
</span><span class="cx">   LDAPmailattribute =&gt; &quot;The name of the attribute of a user in your &quot; _
</span><span class="cx">                        &quot;directory that contains the email address, to be &quot; _
</span><del>-                       &quot;used as $terms.Bugzilla username. If this parameter &quot; _
-                       &quot;is empty, $terms.Bugzilla will use the LDAP username&quot;_
-                       &quot; as the $terms.Bugzilla username. You may also want&quot; _
</del><ins>+                       &quot;used as Bugzilla username. If this parameter &quot; _
+                       &quot;is empty, Bugzilla will use the LDAP username&quot;_
+                       &quot; as the Bugzilla username. You may also want&quot; _
</ins><span class="cx">                        &quot; to set the \&quot;emailsuffix\&quot; parameter, in this case.&quot;,
</span><span class="cx"> 
</span><del>-  LDAPfilter =&gt; &quot;LDAP filter to AND with the &lt;tt&gt;LDAPuidattribute&lt;/tt&gt; for &quot; _
</del><ins>+  LDAPfilter =&gt; &quot;LDAP filter to AND with the &lt;var&gt;LDAPuidattribute&lt;/var&gt; for &quot; _
</ins><span class="cx">                 &quot;filtering the list of valid users.&quot; }
</span><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsmemcachedhtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/memcached.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/memcached.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/memcached.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+[%
+   title = &quot;Memcached&quot;
+   desc = &quot;Set up Memcached integration&quot;
+%]
+
+[% param_descs = {
+    memcached_servers =&gt;
+      &quot;If this option is set, Bugzilla will integrate with Memcached. &quot; _
+      &quot;Specify one or more servers, separated by spaces, using hostname:port &quot; _
+      &quot;notation (for example: 127.0.0.1:11211).&quot;,
+
+    memcached_namespace =&gt;
+      &quot;Specify a string to prefix to each key on Memcached.&quot;,
+  }
+%]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsmtahtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/mta.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/mta.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/mta.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Email&quot;
</span><span class="lines">@@ -27,7 +14,12 @@
</span><span class="cx">   mail_delivery_method =&gt; &quot;Defines how email is sent, or if it is sent at all.&lt;br&gt;
</span><span class="cx">                            &lt;ul&gt;
</span><span class="cx">                              &lt;li&gt;
</span><del>-                               'Sendmail', 'SMTP' and 'Qmail' are all MTAs.
</del><ins>+                               'SMTP' means use the SMTP protocol to talk to a remote
+                               mail server.
+                             &lt;/li&gt;
+                             &lt;li&gt;
+                               'Sendmail' means use the sendmail-compatible MTA
+                               installed on the Bugzilla machine.
</ins><span class="cx">                                You need to install a third-party sendmail replacement if
</span><span class="cx">                                you want to use sendmail on Windows.
</span><span class="cx">                              &lt;/li&gt;
</span><span class="lines">@@ -36,7 +28,7 @@
</span><span class="cx">                                in 'data/mailer.testfile' instead of being sent.
</span><span class="cx">                              &lt;/li&gt;
</span><span class="cx">                              &lt;li&gt;
</span><del>-                               'none' will completely disable email. $terms.Bugzilla continues
</del><ins>+                               'None' will completely disable email. Bugzilla continues
</ins><span class="cx">                                to act as though it is sending mail, but nothing is sent or
</span><span class="cx">                                stored.
</span><span class="cx">                              &lt;/li&gt;
</span><span class="lines">@@ -45,17 +37,18 @@
</span><span class="cx">   mailfrom =&gt; &quot;The email address of the $terms.Bugzilla mail daemon.  Some email systems &quot; _
</span><span class="cx">               &quot;require this to be a valid email address.&quot;,
</span><span class="cx"> 
</span><del>-  use_mailer_queue =&gt; &quot;In a large $terms.Bugzilla installation, updating&quot;
-    _ &quot; $terms.bugs can be very slow, because $terms.Bugzilla sends all&quot;
-    _ &quot; email at once. If you enable this parameter, $terms.Bugzilla will&quot;
</del><ins>+  use_mailer_queue =&gt; &quot;In a large Bugzilla installation, updating&quot;
+    _ &quot; $terms.bugs can be very slow, because Bugzilla sends all&quot;
+    _ &quot; email at once. If you enable this parameter, Bugzilla will&quot;
</ins><span class="cx">     _ &quot; queue all mail and then send it in the background. This requires&quot;
</span><span class="cx">     _ &quot; that you have installed certain Perl modules (as listed by&quot;
</span><span class="cx">     _ &quot; &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; for this feature), and that you are&quot;
</span><span class="cx">     _ &quot; running the &lt;code&gt;jobqueue.pl&lt;/code&gt; daemon (otherwise your mail&quot;
</span><del>-    _ &quot; won't get sent). This affects all mail sent by $terms.Bugzilla,&quot;
</del><ins>+    _ &quot; won't get sent). This affects all mail sent by Bugzilla,&quot;
</ins><span class="cx">     _ &quot; not just $terms.bug updates.&quot;,
</span><span class="cx"> 
</span><del>-  smtpserver =&gt; &quot;The SMTP server address (if using SMTP for mail delivery).&quot;,
</del><ins>+  smtpserver =&gt; &quot;The SMTP server address with optional port number (if using SMTP&quot; _
+                &quot; for mail delivery). eg: example.com or example.com:1234&quot;,
</ins><span class="cx"> 
</span><span class="cx">   smtp_username =&gt; &quot;The username to pass to the SMTP server for SMTP authentication. &quot; _
</span><span class="cx">                    &quot;Leave this field empty if your SMTP server doesn't require authentication.&quot;,
</span><span class="lines">@@ -63,9 +56,11 @@
</span><span class="cx">   smtp_password =&gt; &quot;The password to pass to the SMTP server for SMTP authentication. &quot; _
</span><span class="cx">                    &quot;This field has no effect if the smtp_username parameter is left empty.&quot;,
</span><span class="cx"> 
</span><ins>+  smtp_ssl =&gt; &quot;Enable SSL support for SMTP.&quot;,
+
</ins><span class="cx">   smtp_debug =&gt; &quot;If enabled, this will print detailed information to your&quot; _
</span><span class="cx">                 &quot; web server's error log about the communication between&quot; _
</span><del>-                &quot; $terms.Bugzilla and your SMTP server. You can use this to&quot; _
</del><ins>+                &quot; Bugzilla and your SMTP server. You can use this to&quot; _
</ins><span class="cx">                 &quot; troubleshoot email problems.&quot;,
</span><span class="cx"> 
</span><span class="cx">   whinedays =&gt; &quot;The number of days that we'll let a $terms.bug sit untouched in a CONFIRMED &quot; _
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamspatchviewerhtmltmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/patchviewer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/patchviewer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/patchviewer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,64 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #%]
-[%
-   title = &quot;Patch Viewer&quot;
-   desc = &quot;Set up third-party applications to run with PatchViewer&quot;
-%]
-
-[% param_descs = {
-  cvsroot =&gt; &quot;The &lt;a href=\&quot;http://www.cvshome.org\&quot;&gt;CVS&lt;/a&gt; root that most &quot; _
-             &quot;users of your system will be using for 'cvs diff'. Used in &quot; _
-             &quot;Patch Viewer ('Diff' option on patches) to figure out where &quot; _
-             &quot;patches are rooted even if users did the 'cvs diff' from &quot; _
-             &quot;different places in the directory structure. (NOTE: if your &quot; _
-             &quot;CVS repository is remote and requires a password, you must &quot; _
-             &quot;either ensure the $terms.Bugzilla user has done a 'cvs login' or &quot; _
-             &quot;specify the password &quot; _
-             &quot;&lt;a href=\&quot;http://www.cvshome.org/docs/manual/cvs_2.html#SEC26\&quot;&gt;as &quot; _
-             &quot;part of the CVS root&lt;/a&gt;.) Leave this blank if you have no &quot; _
-             &quot;CVS repository.&quot;,
-
-  cvsroot_get =&gt; &quot;The CVS root $terms.Bugzilla will be using to get patches from. &quot; _
-                 &quot;Some installations may want to mirror their CVS repository on &quot; _
-                 &quot;the $terms.Bugzilla server or even have it on that same server, and &quot; _
-                 &quot;thus the repository can be the local file system (and much &quot; _
-                 &quot;faster). Make this the same as cvsroot if you don't &quot; _
-                 &quot;understand what this is (if cvsroot is blank, make this blank too).&quot;,
-
-  bonsai_url =&gt; &quot;The URL to a &lt;a href=\&quot;http://www.mozilla.org/bonsai.html\&quot;&gt;Bonsai&lt;/a&gt; &quot; _
-                &quot;server containing information about your CVS repository. &quot; _
-                &quot;Patch Viewer will use this information to create links to &quot; _
-                &quot;bonsai's blame for each section of a patch (it will append &quot; _
-                &quot;'/cvsblame.cgi?...' to this url). Leave this blank if you &quot; _
-                &quot;don't understand what this is.&quot;,
-
-  lxr_url =&gt; &quot;The URL to an &lt;a href=\&quot;http://sourceforge.net/projects/lxr\&quot;&gt;LXR&lt;/a&gt; server &quot; _
-             &quot;that indexes your CVS repository. Patch Viewer will use this &quot; _
-             &quot;information to create links to LXR for each file in a patch. &quot; _
-             &quot;Leave this blank if you don't understand what this is.&quot;,
-
-  lxr_root =&gt; &quot;Some LXR installations do not index the CVS repository from the root -- &quot; _
-              &quot;&lt;a href=\&quot;http://lxr.mozilla.org/mozilla\&quot;&gt;Mozilla's&lt;/a&gt;, for &quot; _
-              &quot;example, starts indexing under &lt;code&gt;mozilla/&lt;/code&gt;. This &quot; _
-              &quot;means URLs are relative to that extra path under the root. &quot; _
-              &quot;Enter this if you have a similar situation. Leave it blank &quot; _
-              &quot;if you don't know what this is.&quot; }
-%]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsqueryhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/query.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/query.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/query.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Query Defaults&quot;
</span><span class="lines">@@ -39,17 +26,12 @@
</span><span class="cx">                                 &lt;/li&gt;
</span><span class="cx">                               &lt;/ul&gt;&quot;,
</span><span class="cx"> 
</span><del>-  mostfreqthreshold =&gt; &quot;The minimum number of duplicates $terms.abug needs to show up on the &quot; _
-                       &quot;&lt;a href=\&quot;duplicates.cgi\&quot;&gt;most frequently reported $terms.bugs page&lt;/a&gt;. &quot; _
-                       &quot;If you have a large database and this page takes a long time to &quot; _
-                       &quot;load, try increasing this number.&quot;,
-
</del><span class="cx">   mybugstemplate =&gt; &quot;This is the URL to use to bring up a simple 'all of my $terms.bugs' &quot; _
</span><del>-                    &quot;list for a user. %userid% will get replaced with the login name of a user.&quot;,
</del><ins>+                    &quot;list for a user. %userid% will get replaced with the login name of a user. &quot; _
+                    &quot;Special characters must be URL-encoded.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   defaultquery =&gt; &quot;This is the default query that initially comes up when you &quot; _
</span><del>-                  &quot;access the advanced query page. It's in URL parameter &quot; _
-                  &quot;format, which makes it hard to read. Sorry!&quot;,
</del><ins>+                  &quot;access the advanced query page. It's in URL parameter format.&quot;,
</ins><span class="cx"> 
</span><span class="cx">   search_allow_no_criteria =&gt;
</span><span class="cx">     &quot;Unless the code explicitly allows all $terms.bugs to be returned, this &quot; _
</span><span class="lines">@@ -56,18 +38,18 @@
</span><span class="cx">     &quot;parameter permits to block the execution of queries with no criteria. &quot; _
</span><span class="cx">     &quot;When turned off, a query must have some criteria specified to limit &quot; _
</span><span class="cx">     &quot;the number of $terms.bugs returned to the user. When turned on, a user &quot; _
</span><del>-    &quot;is allowed to run a query with no criteria and get all $terms.bugs he can &quot; _
-    &quot;see in his list. Turning this parameter on is not recommended on large &quot; _
</del><ins>+    &quot;is allowed to run a query with no criteria and get all $terms.bugs they can &quot; _
+    &quot;see in their list. Turning this parameter on is not recommended on large &quot; _
</ins><span class="cx">     &quot;installations.&quot;,
</span><span class="cx"> 
</span><span class="cx">   default_search_limit =&gt;
</span><del>-    &quot;By default, $terms.Bugzilla limits searches done in the web&quot;
</del><ins>+    &quot;By default, Bugzilla limits searches done in the web&quot;
</ins><span class="cx">     _ &quot; interface to returning only this many results, for performance&quot;
</span><span class="cx">     _ &quot; reasons. (This only affects the HTML format of search results--CSV,&quot;
</span><span class="cx">     _ &quot; XML, and other formats are exempted.) Users can click a link on the&quot;
</span><span class="cx">     _ &quot; search result page to see all the results.&quot;
</span><span class="cx">     _ &quot;&lt;p&gt;Usually you should not have to change this--the default value&quot;
</span><del>-    _ &quot; should be acceptable for almost most installations.&lt;/p&gt;&quot;,
</del><ins>+    _ &quot; should be acceptable for most installations.&lt;/p&gt;&quot;,
</ins><span class="cx"> 
</span><span class="cx">   max_search_results =&gt;
</span><span class="cx">     &quot;The maximum number of $terms.bugs that a search can&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsradiushtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/radius.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/radius.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/radius.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Marc Schumann.
-  # Portions created by Marc Schumann are Copyright (c) 2007 Marc Schumann.
-  # All rights reserved.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;RADIUS&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsshadowdbhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/shadowdb.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/shadowdb.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/shadowdb.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;Shadow Database&quot;
</span><span class="lines">@@ -27,7 +14,7 @@
</span><span class="cx">   shadowdbhost =&gt; &quot;The host the shadow database is on.&quot;,
</span><span class="cx"> 
</span><span class="cx">   shadowdbport =&gt; &quot;The port the shadow database is on. Ignored if &quot; _
</span><del>-                  &quot;&lt;tt&gt;shadowdbhost&lt;/tt&gt; is blank. Note: if the host is the local &quot; _
</del><ins>+                  &quot;&lt;var&gt;shadowdbhost&lt;/var&gt; is blank. Note: if the host is the local &quot; _
</ins><span class="cx">                   &quot;machine, then MySQL will ignore this setting, and you must &quot; _
</span><span class="cx">                   &quot;specify a socket below.&quot;,
</span><span class="cx"> 
</span><span class="lines">@@ -36,14 +23,14 @@
</span><span class="cx">                   &quot;ignores the port specified by the client and connects using &quot; _
</span><span class="cx">                   &quot;its compiled-in socket path (on unix machines) when connecting &quot; _
</span><span class="cx">                   &quot;from a client to a local server. If you leave this blank, and &quot; _
</span><del>-                  &quot;have the database on localhost, then the &lt;tt&gt;shadowdbport&lt;/tt&gt; &quot; _
</del><ins>+                  &quot;have the database on localhost, then the &lt;var&gt;shadowdbport&lt;/var&gt; &quot; _
</ins><span class="cx">                   &quot;will be ignored.&quot;,
</span><span class="cx"> 
</span><span class="cx">   shadowdb =&gt; &quot;If non-empty, then this is the name of another database in &quot; _
</span><del>-              &quot;which $terms.Bugzilla will use as a read-only copy of everything. &quot; _
</del><ins>+              &quot;which Bugzilla will use as a read-only copy of everything. &quot; _
</ins><span class="cx">               &quot;This is done so that long slow read-only operations can be used &quot; _
</span><span class="cx">               &quot;against this db, and not lock up things for everyone else. This &quot; _
</span><del>-              &quot;database is on the &lt;tt&gt;shadowdbhost&lt;/tt&gt;, and must exist. &quot; _
-              &quot;$terms.Bugzilla does not update it, if you use this parameter, then &quot; _
</del><ins>+              &quot;database is on the &lt;var&gt;shadowdbhost&lt;/var&gt;, and must exist. &quot; _
+              &quot;Bugzilla does not update it, if you use this parameter, then &quot; _
</ins><span class="cx">               &quot;you need to set up replication for your database.&quot; }
</span><span class="cx"> %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminparamsusermatchhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/params/usermatch.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/params/usermatch.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/params/usermatch.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Miller &lt;justdave@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [%
</span><span class="cx">    title = &quot;User Matching&quot;
</span><span class="lines">@@ -24,7 +11,7 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% param_descs = {
</span><del>-  usemenuforusers =&gt; &quot;If this option is set, $terms.Bugzilla will offer you a list &quot; _
</del><ins>+  usemenuforusers =&gt; &quot;If this option is set, Bugzilla will offer you a list &quot; _
</ins><span class="cx">                      &quot;to select from (instead of a text entry field) where a user &quot; _
</span><span class="cx">                      &quot;needs to be selected. This option should not be enabled on &quot; _
</span><span class="cx">                      &quot;sites where there are a large number of users.&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,25 +24,24 @@
</span><span class="cx">   style_urls = ['skins/standard/admin.css']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-  &lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-    &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-    &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   [% IF Param('useclassification') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td&gt;Classification:&lt;/td&gt;
</del><ins>+      &lt;td&gt;Classification&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;[% classification.name FILTER html %]&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td&gt;Classification Description:&lt;/td&gt;
-      [%# descriptions are intentionally not filtered to allow html content %]
</del><ins>+      &lt;td&gt;Classification Description&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF classification.description %]
</span><span class="cx">           [% classification.description FILTER html_light %]
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;span style=&quot;color: red&quot;&gt;missing&lt;/span&gt;
</del><ins>+          &lt;span class=&quot;warning&quot;&gt;missing&lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -56,8 +48,8 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Product:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;td&gt;Product&lt;/td&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;a href=&quot;editproducts.cgi?product=[% product.name FILTER uri %]&quot;&gt;
</span><span class="cx">         [% product.name FILTER html %]
</span><span class="cx">       &lt;/a&gt;
</span><span class="lines">@@ -64,20 +56,13 @@
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Description:&lt;/td&gt;
-    [%# descriptions are intentionally not filtered to allow html content %]
-    &lt;td valign=&quot;top&quot;&gt;
-      [% IF product.description %]
-        [% product.description FILTER html_light %]
-      [% ELSE %]
-        &lt;span style=&quot;color: red&quot;&gt;missing&lt;/span&gt;
-      [% END %]
-    &lt;/td&gt;
</del><ins>+    &lt;td&gt;Description&lt;/td&gt;
+    &lt;td&gt;[% product.description FILTER html_light %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   [% IF Param('usetargetmilestone') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td&gt;Milestone URL:&lt;/td&gt;
</del><ins>+      &lt;td&gt;Milestone URL&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF product.milestone_url %]
</span><span class="cx">           &lt;a href=&quot;[% product.milestone_url FILTER html %]&quot;&gt;
</span><span class="lines">@@ -91,7 +76,7 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td&gt;Closed for [% terms.bugs %]:&lt;/td&gt;
</del><ins>+    &lt;td&gt;Closed for [% terms.bugs %]&lt;/td&gt;
</ins><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.is_active %]
</span><span class="cx">         open
</span><span class="lines">@@ -106,26 +91,19 @@
</span><span class="cx">       [% IF product.components.size &gt; 0 %]
</span><span class="cx">         &lt;a href=&quot;editcomponents.cgi?product=[% product.name FILTER uri %]&quot;
</span><span class="cx">            title=&quot;Edit components for product '[% product.name FILTER html %]'&quot;&gt;
</span><del>-          Components:
</del><ins>+          Components
</ins><span class="cx">         &lt;/a&gt;
</span><span class="cx">       [% ELSE %]
</span><del>-        Components:
</del><ins>+        Components
</ins><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.components.size &gt; 0 %]
</span><del>-        &lt;table&gt;
</del><ins>+        &lt;table class=&quot;no-border&quot;&gt;
</ins><span class="cx">           [% FOREACH c = product.components %]
</span><span class="cx">             &lt;tr&gt;
</span><del>-              &lt;th align=&quot;right&quot;&gt;[% c.name FILTER html %]:&lt;/th&gt;
-              [%# descriptions are intentionally not filtered to allow html content %]
-              &lt;td&gt;
-                [% IF c.description %]
-                  [% c.description FILTER html_light %]
-                [% ELSE %]
-                  &lt;span style=&quot;color: red&quot;&gt;missing&lt;/span&gt;
-                [% END %]
-              &lt;/td&gt;
</del><ins>+              &lt;th&gt;[% c.name FILTER html %]:&lt;/th&gt;
+              &lt;td&gt;[% c.description FILTER html_light %]&lt;/td&gt;
</ins><span class="cx">             &lt;/tr&gt;
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/table&gt;
</span><span class="lines">@@ -139,17 +117,19 @@
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.versions.size &gt; 0 %]
</span><span class="cx">         &lt;a href=&quot;editversions.cgi?product=[%- product.name FILTER uri %]&quot;&gt;
</span><del>-          Versions:
</del><ins>+          Versions
</ins><span class="cx">         &lt;/a&gt;
</span><span class="cx">       [% ELSE %]
</span><del>-        Versions:
</del><ins>+        Versions
</ins><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.versions.size &gt; 0 %]
</span><del>-        [% FOREACH v = product.versions %]
-          [% v.name FILTER html %]&lt;br&gt;
-        [% END %]
</del><ins>+        &lt;div class=&quot;multi-columns&quot;&gt;
+          [% FOREACH v = product.versions %]
+            [% v.name FILTER html %]&lt;br&gt;
+          [% END %]
+        &lt;/div&gt;
</ins><span class="cx">       [% ELSE %]
</span><span class="cx">         none
</span><span class="cx">       [% END %]
</span><span class="lines">@@ -159,20 +139,22 @@
</span><span class="cx"> 
</span><span class="cx">   [% IF Param('usetargetmilestone') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">         [% IF product.milestones.size &gt; 0 %]
</span><span class="cx">           &lt;a href=&quot;editmilestones.cgi?product=[%- product.name FILTER uri %]&quot;&gt;
</span><del>-            Milestones:
</del><ins>+            Milestones
</ins><span class="cx">           &lt;/a&gt;
</span><span class="cx">         [% ELSE %]
</span><del>-          Milestones:
</del><ins>+          Milestones
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF product.milestones.size &gt; 0 %]
</span><del>-          [% FOREACH m = product.milestones %]
-            [% m.name FILTER html %]&lt;br&gt;
-          [% END %]
</del><ins>+          &lt;div class=&quot;multi-columns&quot;&gt;
+            [% FOREACH m = product.milestones %]
+              [% m.name FILTER html %]&lt;br&gt;
+            [% END %]
+          &lt;/div&gt;
</ins><span class="cx">         [% ELSE %]
</span><span class="cx">           none
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -181,7 +163,7 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td&gt;[% terms.Bugs %]:&lt;/td&gt;
</del><ins>+    &lt;td&gt;[% terms.Bugs %]&lt;/td&gt;
</ins><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.bug_count %]
</span><span class="cx">         &lt;a href=&quot;buglist.cgi?product=[% product.name FILTER uri %]&quot;
</span><span class="lines">@@ -201,41 +183,34 @@
</span><span class="cx"> 
</span><span class="cx">   [% IF !Param(&quot;allowbugdeletion&quot;) %]
</span><span class="cx"> 
</span><del>-    &lt;p&gt;Sorry, there
</del><ins>+    &lt;p class=&quot;confirmation&quot;&gt;
+      Sorry, there
+      [% IF product.bug_count &gt; 1 %]
+        are [% product.bug_count FILTER html %] [%+ terms.bugs %]
+      [% ELSE %]
+        is 1 [% terms.bug %]
+      [% END %]
+      outstanding for this product. You must reassign
+      [% IF product.bug_count &gt; 1 %]
+        those [% terms.bugs %]
+      [% ELSE %]
+        that [% terms.bug %]
+      [% END %]
+      to another product before you can delete this one.
+    &lt;/p&gt;
</ins><span class="cx"> 
</span><del>-    [% IF product.bug_count &gt; 1 %]
-      are [% product.bug_count FILTER html %] [%+ terms.bugs %]
-    [% ELSE %]
-      is 1 [% terms.bug %]
-    [% END %]
-
-    outstanding for this product. You must reassign
-
-    [% IF product.bug_count &gt; 1 %]
-       those [% terms.bugs %]
-    [% ELSE %]
-       that [% terms.bug %]
-    [% END %]
-
-    to another product before you can delete this one.&lt;/p&gt;
-
</del><span class="cx">   [% ELSE %]
</span><span class="cx"> 
</span><del>-    &lt;table border=&quot;0&quot; cellpadding=&quot;20&quot; width=&quot;70%&quot; bgcolor=&quot;red&quot;&gt;
-      &lt;tr&gt;
-        &lt;td&gt;
-          There
-          [% IF product.bug_count &gt; 1 %]
-            are [% product.bug_count FILTER html %] [%+ terms.bugs %]
-          [% ELSE %]
-            is 1 [% terms.bug %]
-          [% END %]
-          entered for this product!  When you delete this
-          product, &lt;b&gt;&lt;blink&gt;ALL&lt;/blink&gt;&lt;/b&gt; stored [% terms.bugs %] and
-          their history will be deleted, too.
-        &lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;
</del><ins>+    &lt;p class=&quot;confirmation&quot;&gt;
+      There
+      [% IF product.bug_count &gt; 1 %]
+        are [% product.bug_count FILTER html %] [%+ terms.bugs %]
+      [% ELSE %]
+        is 1 [% terms.bug %]
+      [% END %]
+      entered for this product!  When you delete this product, &lt;b&gt;ALL&lt;/b&gt;
+      stored [% terms.bugs %] and their history will be deleted, too.
+    &lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Gabriel S. Oliveira &lt;gabriel@async.com.br&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,8 +17,10 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  generate_api_token = 1
</ins><span class="cx">   style_urls = ['skins/standard/admin.css']
</span><del>-  javascript_urls = ['js/util.js']
</del><ins>+  javascript_urls = ['js/util.js', 'js/field.js']
+  yui = [ 'autocomplete' ]
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT
</span><span class="lines">@@ -36,22 +31,34 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editproducts.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/products/edit-common.html.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Version:&lt;/th&gt;
-      &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;255&quot; name=&quot;version&quot; 
-                value=&quot;[% version FILTER html %]&quot;&gt;
</del><ins>+      &lt;th&gt;Version:&lt;/th&gt;
+      &lt;td&gt;&lt;input size=&quot;20&quot; maxlength=&quot;64&quot; name=&quot;version&quot; 
+                value=&quot;[% version FILTER html %]&quot; required&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;Create chart datasets for this product:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Create chart datasets for this product:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;checkbox&quot; name=&quot;createseries&quot; value=&quot;1&quot; checked=&quot;checked&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><ins>+
+    &lt;tr&gt;
+      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;td colspan=&quot;2&quot;&gt;
+        This product must have at least one component.
+        You will be able to create additional components later:
+      &lt;/td&gt;
+    &lt;/tr&gt;
+
+    [% PROCESS &quot;admin/components/edit-common.html.tmpl&quot; desc_name = &quot;comp_desc&quot; %]
</ins><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;add-product&quot; value=&quot;Add&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductseditcommonhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit-common.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit-common.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit-common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Jack Nerad     &lt;jnerad@bellsouth.net&gt;
-  #                 Tiago R. Mello &lt;tiago@async.com.br&gt;
-  #                 Gabriel S. Oliveira &lt;gabriel@async.com.br&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,31 +12,46 @@
</span><span class="cx">   # classification: Bugzilla::Classifiation object; classification product is in.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% IF Param('useclassification') %]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;right&quot;&gt;&lt;b&gt;Classification:&lt;/b&gt;&lt;/th&gt;
</del><ins>+    &lt;th&gt;Classification:&lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;&lt;b&gt;[% classification.name FILTER html %]&lt;/b&gt;&lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span><span class="cx">     
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;Product:&lt;/th&gt;
</del><ins>+  &lt;th&gt;Product:&lt;/th&gt;
</ins><span class="cx">   &lt;td&gt;&lt;input size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;product&quot; 
</span><del>-             value=&quot;[% product.name FILTER html %]&quot;&gt;
</del><ins>+             value=&quot;[% product.name FILTER html %]&quot; required&gt;
</ins><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-  &lt;th align=&quot;right&quot;&gt;Description:&lt;/th&gt;
-  &lt;td&gt;&lt;textarea rows=&quot;4&quot; cols=&quot;64&quot; wrap=&quot;virtual&quot; name=&quot;description&quot;&gt;
</del><ins>+  &lt;th&gt;Description:&lt;/th&gt;
+  &lt;td&gt;&lt;textarea rows=&quot;4&quot; cols=&quot;64&quot; wrap=&quot;virtual&quot; name=&quot;description&quot; required&gt;
</ins><span class="cx">         [% product.description FILTER html %]&lt;/textarea&gt;
</span><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><ins>+&lt;tr&gt;
+  &lt;th&gt;Open for [% terms.bug %] entry:&lt;/th&gt;
+  &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;is_active&quot; value=&quot;1&quot;
+       [% ' checked=&quot;checked&quot;' IF product.is_active %]&gt;
+  &lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+  &lt;th&gt;
+    &lt;label for=&quot;allows_unconfirmed&quot;&gt;Enable the
+      [%+ display_value('bug_status', 'UNCONFIRMED') FILTER html %] status
+      in this product:&lt;/label&gt;
+  &lt;/th&gt;
+  &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;allows_unconfirmed&quot; name=&quot;allows_unconfirmed&quot;
+             [% ' checked=&quot;checked&quot;' IF product.allows_unconfirmed %]&gt;
+  &lt;/td&gt;
+&lt;/tr&gt;
+
</ins><span class="cx"> [% IF Param('usetargetmilestone') -%]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;right&quot;&gt;Default milestone:&lt;/th&gt;
</del><ins>+    &lt;th&gt;Default milestone:&lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;
</span><span class="cx">       [% IF product.milestones.size %]
</span><span class="cx">         &lt;select name=&quot;defaultmilestone&quot;&gt;
</span><span class="lines">@@ -56,7 +62,7 @@
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/select&gt;
</span><span class="cx">       [% ELSE %]
</span><del>-        &lt;input type=&quot;text&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;defaultmilestone&quot;
</del><ins>+        &lt;input type=&quot;text&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;defaultmilestone&quot;
</ins><span class="cx">                value=&quot;[% product.defaultmilestone FILTER html %]&quot;&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -63,21 +69,4 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span><span class="cx">     
</span><del>-&lt;tr&gt;
-  &lt;th align=&quot;right&quot;&gt;Open for [% terms.bug %] entry:&lt;/th&gt;
-  &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;is_active&quot; value=&quot;1&quot;
-       [% ' checked=&quot;checked&quot;' IF product.is_active %]&gt;
-  &lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;th align=&quot;right&quot;&gt;
-    &lt;label for=&quot;allows_unconfirmed&quot;&gt;Enable the
-      [%+ display_value('bug_status', 'UNCONFIRMED') FILTER html %] status
-      in this product:&lt;/label&gt;
-  &lt;/th&gt;
-  &lt;td&gt;&lt;input type=&quot;checkbox&quot; id=&quot;allows_unconfirmed&quot; name=&quot;allows_unconfirmed&quot;
-             [% ' checked=&quot;checked&quot;' IF product.allows_unconfirmed %]&gt;
-  &lt;/td&gt;
-&lt;/tr&gt;
-
</del><span class="cx"> [% Hook.process('rows') %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Jack Nerad     &lt;jnerad@bellsouth.net&gt;
-  #                 Tiago R. Mello &lt;tiago@async.com.br&gt;
-  #                 Gabriel S. Oliveira &lt;gabriel@async.com.br&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -39,12 +30,12 @@
</span><span class="cx">  %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editproducts.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">     [% PROCESS &quot;admin/products/edit-common.html.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
</del><ins>+      &lt;th&gt;
</ins><span class="cx">         &lt;a href=&quot;editcomponents.cgi?product=[% product.name FILTER uri %]&quot;&gt;
</span><span class="cx">         Edit components:
</span><span class="cx">         &lt;/a&gt;
</span><span class="lines">@@ -51,56 +42,55 @@
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF product.components.size -%]
</span><del>-          [% FOREACH component = product.components %]
-            &lt;b&gt;[% component.name FILTER html %]:&lt;/b&gt;&amp;nbsp;
-            [% IF component.description %]
-              [% component.description FILTER html_light %]
-            [% ELSE %]
-              &lt;font color=&quot;red&quot;&gt;description missing&lt;/font&gt;
-            [% END %]
</del><ins>+          [% FOREACH comp = product.components %]
+            &lt;a href=&quot;editcomponents.cgi?action=edit&amp;product=
+            [%- product.name FILTER uri %]&amp;component=
+            [%- comp.name FILTER uri %]&quot;&gt;[% comp.name FILTER html %]&lt;/a&gt;:
+            [% comp.description FILTER html_light %]
</ins><span class="cx">             &lt;br&gt;
</span><span class="cx">           [% END %]
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;font color=&quot;red&quot;&gt;missing&lt;/font&gt;
</del><ins>+          &lt;span class=&quot;warning&quot;&gt;missing&lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
-        &lt;a href=&quot;editversions.cgi?product=[% product.name FILTER uri %]&quot;&gt;Edit
-versions:&lt;/a&gt;
</del><ins>+      &lt;th&gt;
+        &lt;a href=&quot;editversions.cgi?product=[% product.name FILTER uri %]&quot;&gt;Edit versions:&lt;/a&gt;
</ins><span class="cx">       &lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [%- IF product.versions.size -%]
</span><del>-          [% FOREACH v = product.versions %]
-            [% v.name FILTER html %]
-            &lt;br&gt;
-          [% END %]
</del><ins>+          &lt;div class=&quot;multi-columns&quot;&gt;
+            [% FOREACH v = product.versions %]
+              [% v.name FILTER html %]&lt;br&gt;
+            [% END %]
+          &lt;/div&gt;
</ins><span class="cx">         [% ELSE %]
</span><del>-          &lt;font color=&quot;red&quot;&gt;missing&lt;/font&gt;
</del><ins>+          &lt;span class=&quot;warning&quot;&gt;missing&lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF Param('usetargetmilestone') %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
</del><ins>+        &lt;th&gt;
</ins><span class="cx">           &lt;a href=&quot;editmilestones.cgi?product=[% product.name FILTER uri %]&quot;&gt;
</span><span class="cx">           Edit milestones:&lt;/a&gt;
</span><span class="cx">         &lt;/th&gt;
</span><span class="cx">         &lt;td&gt;
</span><span class="cx">           [%- IF product.milestones.size -%]
</span><del>-            [%- FOREACH m = product.milestones -%]
-              [% m.name FILTER html %]
-            &lt;br&gt;
-            [% END %]
</del><ins>+            &lt;div class=&quot;multi-columns&quot;&gt;
+              [%- FOREACH m = product.milestones -%]
+                [% m.name FILTER html %]&lt;br&gt;
+              [% END %]
+            &lt;/div&gt;
</ins><span class="cx">           [% ELSE %]
</span><del>-            &lt;font color=&quot;red&quot;&gt;missing&lt;/font&gt;
</del><ins>+            &lt;span class=&quot;warning&quot;&gt;missing&lt;/span&gt;
</ins><span class="cx">           [% END %]
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
</del><ins>+      &lt;th&gt;
</ins><span class="cx">         &lt;a href=&quot;editproducts.cgi?action=editgroupcontrols&amp;product=
</span><span class="cx">           [%- product.name FILTER uri %]&quot;&gt;
</span><span class="cx">           Edit Group Access Controls:
</span><span class="lines">@@ -109,7 +99,7 @@
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF product.group_controls.size %]
</span><span class="cx">           [% FOREACH g = product.group_controls.values.sort(&quot;name&quot;) %]
</span><del>-            &lt;b&gt;[% g.group.name FILTER html %]:&lt;/b&gt;&amp;nbsp;
</del><ins>+            &lt;b&gt;[% g.group.name FILTER html %]:&lt;/b&gt;
</ins><span class="cx">             [% IF g.group.isactive %]
</span><span class="cx">               [% group_control.${g.membercontrol} FILTER html %]/
</span><span class="cx">               [% group_control.${g.othercontrol} FILTER html %]
</span><span class="lines">@@ -129,9 +119,11 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;[% terms.Bugs %]:&lt;/th&gt;
-      &lt;td&gt;&lt;a href=&quot;buglist.cgi?product=[% product.name FILTER uri %]&quot;&gt;
-            [% product.bug_count FILTER html %]&lt;/a&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;[% terms.Bugs %]:&lt;/th&gt;
+      &lt;td&gt;
+        &lt;a href=&quot;buglist.cgi?product=[% product.name FILTER uri %]&quot;&gt;
+          [% product.bug_count FILTER html %]&lt;/a&gt;
+      &lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx">   
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontrolconfirmedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,58 +1,51 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Confirm Group Control Change for product '[%- product.name FILTER html %]'
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl title = title %]
</span><ins>+
</ins><span class="cx"> [% FOREACH group = mandatory_groups %]
</span><del>-&lt;P&gt;
-group '[% group.name FILTER html %]' impacts [% group.count %] 
-[%+ terms.bugs %] for
-which the group is newly mandatory and will be added.
</del><ins>+  &lt;p&gt;
+    Group '[% group.name FILTER html %]' impacts 
+    [% IF group.count == 1 %]
+       one [%+ terms.bug %]
+    [% ELSE %]
+      [% group.count %] [%+ terms.bugs %]
+    [% END %]
+    for which this group is mandatory and will be added.
+  &lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% FOREACH group = na_groups %]
</span><del>-&lt;P&gt;
-group '[% group.name FILTER html %]' impacts [% group.count %]&amp;nbsp;
-[% terms.bugs %] for which the group is no longer applicable and will
-be removed.[% END %]
</del><ins>+  &lt;p&gt;
+    Group '[% group.name FILTER html %]' impacts 
+    [% IF group.count == 1 %]
+       one [%+ terms.bug %]
+    [% ELSE %]
+      [% group.count %] [%+ terms.bugs %]
+    [% END %]  
+    for which this group is no longer applicable and will be removed.
+  &lt;/p&gt;
+[% END %]
+
</ins><span class="cx"> &lt;form action=&quot;editproducts.cgi&quot; method=&quot;post&quot; &gt;
</span><del>-
</del><span class="cx">   [% PROCESS &quot;global/hidden-fields.html.tmpl&quot; exclude=&quot;^Bugzilla_(login|password)$&quot; %]
</span><del>-
-  &lt;br&gt;
-     Click &quot;Continue&quot; to proceed with the change including the changes
-     indicated above.  If you do not want these changes, use &quot;back&quot; to
-     return to the previous page.
</del><span class="cx">   &lt;p&gt;
</span><del>-    &lt;input type=&quot;hidden&quot; name=&quot;confirmed&quot; value=&quot;confirmed&quot;&gt;
-    &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Continue&quot;&gt;
</del><ins>+    &lt;br&gt;
+    Click &quot;Continue&quot; to proceed with the change including the changes
+    indicated above.  If you do not want these changes, use &quot;back&quot; to
+    return to the previous page.
</ins><span class="cx">   &lt;/p&gt;
</span><del>-
</del><ins>+  &lt;input type=&quot;hidden&quot; name=&quot;confirmed&quot; value=&quot;confirmed&quot;&gt;
+  &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Continue&quot;&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontroledithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,149 +1,129 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Joel Peshkin &lt;bugreport@peshkin.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">     Edit Group Controls for [% product.name FILTER html %]
</span><span class="cx"> [% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><del>-   title = title 
</del><ins>+  title = title
+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;form method=&quot;post&quot; action=&quot;editproducts.cgi&quot;&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;updategroupcontrols&quot;&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;[% product.name FILTER html %]&quot;&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</del><ins>+[% display_headers = 1 %]
+[% FOREACH group = product.group_controls(1).values.sort(&quot;name&quot;) %]
+  [% NEXT UNLESS group.group.isactive OR group.bug_count %]
+  [% IF display_headers %]
+    [% display_headers = 0 %]
+    &lt;form method=&quot;post&quot; action=&quot;editproducts.cgi&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;updategroupcontrols&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;[% product.name FILTER html %]&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</ins><span class="cx"> 
</span><del>-  &lt;table id=&quot;form&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;1&quot;&gt;
-    &lt;tr bgcolor=&quot;#6666ff&quot;&gt;
-      &lt;th&gt;Group&lt;/th&gt;
-      &lt;th&gt;Entry&lt;/th&gt;
-      &lt;th&gt;MemberControl&lt;/th&gt;
-      &lt;th&gt;OtherControl&lt;/th&gt;
-      &lt;th&gt;Canedit&lt;/th&gt;
-      &lt;th&gt;editcomponents&lt;/th&gt;
-      &lt;th&gt;canconfirm&lt;/th&gt;
-      &lt;th&gt;editbugs&lt;/th&gt;
-      &lt;th&gt;[% terms.Bugs %]&lt;/th&gt;
</del><ins>+      &lt;table id=&quot;admin_table&quot;&gt;
+        &lt;tr class=&quot;column_header&quot;&gt;
+          &lt;th&gt;Group&lt;/th&gt;
+          &lt;th&gt;Entry&lt;/th&gt;
+          &lt;th&gt;MemberControl&lt;/th&gt;
+          &lt;th&gt;OtherControl&lt;/th&gt;
+          &lt;th&gt;Canedit&lt;/th&gt;
+          &lt;th&gt;editcomponents&lt;/th&gt;
+          &lt;th&gt;canconfirm&lt;/th&gt;
+          &lt;th&gt;editbugs&lt;/th&gt;
+          &lt;th&gt;[% terms.Bugs %]&lt;/th&gt;
+        &lt;/tr&gt;
+  [% END %]
+  [% IF !group.group.isactive %]
+    &lt;tr class=&quot;disabled&quot;&gt;
+      &lt;td&gt;[% group.group.name FILTER html %]&lt;/td&gt;
+      &lt;td class=&quot;center&quot; colspan=&quot;7&quot;&gt;Disabled&lt;/td&gt;
+      &lt;td&gt;[% group.bug_count FILTER html %]&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><del>-    [% FOREACH group = product.group_controls(1).values.sort(&quot;name&quot;) %]
-      [% IF !group.group.isactive AND group.bug_count %]
-        &lt;tr bgcolor=&quot;#bbbbbb&quot;&gt;
-          &lt;td&gt;
-            [% group.group.name FILTER html %]
-          &lt;/td&gt;
-          &lt;td align=&quot;center&quot; colspan=7&gt;
-            Disabled
-          &lt;/td&gt;
-          &lt;td&gt;
-            [% group.bug_count FILTER html %]
-          &lt;/td&gt;
-        &lt;tr&gt;
-      [% ELSIF group.group.is_active %]
-        &lt;tr&gt;
-          &lt;td&gt;
-            [% group.group.name FILTER html %]
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=checkbox value=1 name=entry_[% group.id %]
-            [% &quot; checked=\&quot;checked\&quot;&quot; IF group.entry %]&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;select name=&quot;membercontrol_[% group.id %]&quot;&gt;
-              &lt;option value=[% constants.CONTROLMAPNA %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.membercontrol == constants.CONTROLMAPNA %]
-                &gt;NA
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPSHOWN %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.membercontrol == constants.CONTROLMAPSHOWN %]
-                &gt;Shown
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPDEFAULT %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.membercontrol == constants.CONTROLMAPDEFAULT %]
-                &gt;Default
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPMANDATORY %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.membercontrol == constants.CONTROLMAPMANDATORY %]
-                &gt;Mandatory
-              &lt;/option&gt;
-            &lt;/select&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;select name=&quot;othercontrol_[% group.id %]&quot;&gt;
-              &lt;option value=[% constants.CONTROLMAPNA %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.othercontrol == constants.CONTROLMAPNA %]
-                &gt;NA
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPSHOWN %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.othercontrol == constants.CONTROLMAPSHOWN %]
-                &gt;Shown
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPDEFAULT %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.othercontrol == constants.CONTROLMAPDEFAULT %]
-                &gt;Default
-              &lt;/option&gt;
-              &lt;option value=[% constants.CONTROLMAPMANDATORY %]
-                [% &quot; selected=\&quot;selected\&quot;&quot;
-                  IF group.othercontrol == constants.CONTROLMAPMANDATORY %]
-                &gt;Mandatory
-              &lt;/option&gt;
-            &lt;/select&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=checkbox value=1 name=canedit_[% group.id %]
-            [% &quot; checked=\&quot;checked\&quot;&quot; IF group.canedit %]&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=checkbox value=1 name=editcomponents_[% group.id %]
-            [% &quot; checked=\&quot;checked\&quot;&quot; IF group.editcomponents %]&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=checkbox value=1 name=canconfirm_[% group.id %]
-            [% &quot; checked=\&quot;checked\&quot;&quot; IF group.canconfirm %]&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            &lt;input type=checkbox value=1 name=editbugs_[% group.id %]
-            [% &quot; checked=\&quot;checked\&quot;&quot; IF group.editbugs %]&gt;
-          &lt;/td&gt;
-          &lt;td&gt;
-            [% group.bug_count || 0 FILTER html %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      [% END %]
-    [% END %]
</del><ins>+  [% ELSE %]
+    &lt;tr&gt;
+      &lt;td&gt;[% group.group.name FILTER html %]&lt;/td&gt;
+      &lt;td&gt;
+        &lt;input type=checkbox value=1 name=entry_[% group.id %]
+          [% &quot; checked='checked'&quot; IF group.entry %]&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;select name=&quot;membercontrol_[% group.id %]&quot;&gt;
+          &lt;option value=[% constants.CONTROLMAPNA %]
+            [% &quot; selected='selected'&quot; IF group.membercontrol == constants.CONTROLMAPNA %]
+            &gt;NA
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPSHOWN %]
+            [% &quot; selected='selected'&quot; IF group.membercontrol == constants.CONTROLMAPSHOWN %]
+            &gt;Shown
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPDEFAULT %]
+            [% &quot; selected='selected'&quot; IF group.membercontrol == constants.CONTROLMAPDEFAULT %]
+            &gt;Default
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPMANDATORY %]
+            [% &quot; selected='selected'&quot; IF group.membercontrol == constants.CONTROLMAPMANDATORY %]
+            &gt;Mandatory
+          &lt;/option&gt;
+        &lt;/select&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;select name=&quot;othercontrol_[% group.id %]&quot;&gt;
+          &lt;option value=[% constants.CONTROLMAPNA %]
+            [% &quot; selected='selected'&quot; IF group.othercontrol == constants.CONTROLMAPNA %]
+            &gt;NA
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPSHOWN %]
+            [% &quot; selected='selected'&quot; IF group.othercontrol == constants.CONTROLMAPSHOWN %]
+            &gt;Shown
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPDEFAULT %]
+            [% &quot; selected='selected'&quot; IF group.othercontrol == constants.CONTROLMAPDEFAULT %]
+            &gt;Default
+          &lt;/option&gt;
+          &lt;option value=[% constants.CONTROLMAPMANDATORY %]
+            [% &quot; selected='selected'&quot; IF group.othercontrol == constants.CONTROLMAPMANDATORY %]
+            &gt;Mandatory
+          &lt;/option&gt;
+        &lt;/select&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;input type=checkbox value=1 name=canedit_[% group.id %]
+        [% &quot; checked='checked'&quot; IF group.canedit %]&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;input type=checkbox value=1 name=editcomponents_[% group.id %]
+        [% &quot; checked='checked'&quot; IF group.editcomponents %]&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;input type=checkbox value=1 name=canconfirm_[% group.id %]
+        [% &quot; checked='checked'&quot; IF group.canconfirm %]&gt;
+      &lt;/td&gt;
+      &lt;td&gt;
+        &lt;input type=checkbox value=1 name=editbugs_[% group.id %]
+        [% &quot; checked='checked'&quot; IF group.editbugs %]&gt;
+      &lt;/td&gt;
+      &lt;td&gt;[% group.bug_count || 0 FILTER html %]&lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+[% END %]
</ins><span class="cx"> 
</span><del>-  &lt;/table&gt;
-  &lt;br&gt;
-  &lt;input type=submit name=&quot;submit&quot; value=&quot;submit&quot;&gt;
-  &lt;br&gt;
-&lt;/form&gt;
</del><ins>+[% IF display_headers %]
+  &lt;p&gt;No groups are available for products.
+  [% IF user.in_group('creategroups') %]
+    &lt;a href=&quot;editgroups.cgi?action=add&quot;&gt;Create a new group&lt;/a&gt;
+  [% END %]
+  &lt;/p&gt;
+[% ELSE %]
+    &lt;/table&gt;
+    &lt;br&gt;
+    &lt;input type=submit name=&quot;submit&quot; value=&quot;submit&quot;&gt;
+  &lt;/form&gt;
+[% END %]
</ins><span class="cx"> 
</span><del>-
</del><span class="cx"> &lt;p&gt;
</span><span class="cx"> These settings control the relationship of the groups to this
</span><span class="cx"> product.
</span><span class="lines">@@ -150,15 +130,17 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;p&gt;
</span><span class="cx"> If any group has &lt;b&gt;Entry&lt;/b&gt; selected, then this product will
</span><del>-restrict [% terms.bug %] entry to only those users who are members of all the
-groups with entry selected.
</del><ins>+restrict [% terms.bug %] entry to only those users who are members of
+[%+ IF Param('or_groups') %]at least one of[% ELSE %]all[% END %] the groups
+with entry selected.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;p&gt;
</span><span class="cx"> If any group has &lt;b&gt;Canedit&lt;/b&gt; selected, then this product
</span><del>-will be read-only for any users who are not members of all of
-the groups with Canedit selected. ONLY users who are members of
-all the canedit groups will be able to edit. This is an additional
-restriction that further restricts what can be edited by a user.
</del><ins>+will be read-only for any users who are not members of
+[%+ IF Param('or_groups') %]one[% ELSE %]all[% END %] of the groups with
+Canedit selected. ONLY users who are members of
+[%+ IF Param('or_groups') %]at least one of[% ELSE %]all[% END %] the canedit groups
+will be able to edit. This is an additional restriction that further restricts what can be edited by a user.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;p&gt;
</span><span class="cx"> The following settings control let you choose privileges on a &lt;b&gt;per-product basis&lt;/b&gt;.
</span><span class="lines">@@ -185,7 +167,7 @@
</span><span class="cx"> this group according to the following definitions.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;table border=1&gt;
</del><ins>+&lt;table id=&quot;group_settings_desc&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th&gt;
</span><span class="cx">       MemberControl
</span><span class="lines">@@ -322,4 +304,3 @@
</span><span class="cx"> Default/Shown, etc.) will produce an error message.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsgroupcontrolupdatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/updated.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/updated.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/groupcontrol/updated.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): André Batosti &lt;batosti@async.com.br&gt; 
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,24 +18,36 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><span class="cx"> %]
</span><del>-&lt;p&gt;
</del><ins>+
</ins><span class="cx"> [% IF changes._group_controls.now_na.size %]
</span><span class="cx">   [% FOREACH g = changes._group_controls.now_na %]
</span><del>-    Removing [% terms.bugs %] from group '[% g.name FILTER html %]' which
-    no longer applies to this product&lt;p&gt;
-    [% g.bug_count FILTER html %] [%+ terms.bugs %] removed&lt;p&gt;
</del><ins>+    &lt;p&gt;
+    Removing [% terms.bugs %] from group '[% g.name FILTER html %]' which is
+    no longer applicable to this product.&lt;br&gt;
+    [% IF g.bug_count == 1 %]
+      One [% terms.bug %] removed.
+    [% ELSE %]
+      [% g.bug_count FILTER html %] [%+ terms.bugs %] removed.
+    [% END %]
+    &lt;/p&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% IF changes._group_controls.now_mandatory.size %]
</span><span class="cx">   [% FOREACH g = changes._group_controls.now_mandatory %]
</span><ins>+    &lt;p&gt;
</ins><span class="cx">     Adding [% terms.bugs %] to group '[% g.name FILTER html %]' which is 
</span><del>-    mandatory for this product&lt;p&gt;
-    [% g.bug_count FILTER html %] [%+ terms.bugs %] added&lt;p&gt;
</del><ins>+    now mandatory for this product.&lt;br&gt;
+    [% IF g.bug_count == 1 %]
+      One [% terms.bug %] added.
+    [% ELSE %]
+      [% g.bug_count FILTER html %] [%+ terms.bugs %] added.
+    [% END %]
+    &lt;/p&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-Group control updates done&lt;p&gt;
</del><ins>+&lt;p&gt;Group control updated.&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/products/footer.html.tmpl %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductslistclassificationshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list-classifications.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list-classifications.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list-classifications.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,10 +14,9 @@
</span><span class="cx">   #
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Select Classification&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><span class="lines">@@ -40,7 +32,7 @@
</span><span class="cx">      },
</span><span class="cx">      { 
</span><span class="cx">        name =&gt; &quot;product_count&quot;
</span><del>-       align =&gt; &quot;right&quot;
</del><ins>+       class =&gt; &quot;right&quot;
</ins><span class="cx">        heading =&gt; &quot;Product Count&quot;
</span><span class="cx">      }
</span><span class="cx">    ]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,8 +15,6 @@
</span><span class="cx">   # showbugcounts: boolean; true if bug counts should be included in the table
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% IF classification %]
</span><span class="cx">   [% classification_url_part = BLOCK %]&amp;amp;classification=
</span><span class="cx">     [%- classification.name FILTER uri %]
</span><span class="lines">@@ -35,24 +26,31 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Select product $classification_title&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><del>-     { 
</del><ins>+     {
</ins><span class="cx">        name =&gt; &quot;name&quot;
</span><span class="cx">        heading =&gt; &quot;Edit product...&quot;
</span><span class="cx">        contentlink =&gt; 'editproducts.cgi?action=edit&amp;amp;product=%%name%%'
</span><span class="cx">      },
</span><del>-     { 
</del><ins>+     {
</ins><span class="cx">        name =&gt; &quot;description&quot;
</span><span class="cx">        heading =&gt; &quot;Description&quot;
</span><span class="cx">        allow_html_content =&gt; 1
</span><span class="cx">      },
</span><del>-     { 
</del><ins>+     {
</ins><span class="cx">        name =&gt; &quot;is_active&quot;
</span><span class="cx">        heading =&gt; &quot;Open For New $terms.Bugs&quot;
</span><span class="cx">        yesno_field =&gt; 1
</span><span class="cx">      },
</span><ins>+     {
+       name =&gt; &quot;allows_unconfirmed&quot;
+       heading =&gt; &quot;Allow &quot; _ display_value('bug_status', 'UNCONFIRMED') _
+                       &quot; &quot; _ terms.Bugs
+       yesno_field =&gt; 1
+     },
</ins><span class="cx"> ] %]
</span><span class="cx"> 
</span><span class="cx"> [% IF showbugcounts %]
</span><span class="lines">@@ -60,7 +58,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">        name =&gt; &quot;bug_count&quot;
</span><span class="cx">        heading =&gt; &quot;$terms.Bug Count&quot;
</span><del>-       align =&gt; 'right'
</del><ins>+       class =&gt; 'right'
</ins><span class="cx">        contentlink =&gt; 'buglist.cgi?product=%%name%%'
</span><span class="cx">      })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminproductsupdatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/products/updated.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/products/updated.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/products/updated.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -39,8 +26,6 @@
</span><span class="cx">   style_urls = ['skins/standard/admin.css']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% IF changes.name.defined %]
</span><span class="cx">   &lt;p&gt;
</span><span class="cx">   Updated product name from '[% changes.name.0 FILTER html %]' to
</span><span class="lines">@@ -54,7 +39,7 @@
</span><span class="cx">   &lt;p&gt;
</span><span class="cx">     Updated description to:
</span><span class="cx">   &lt;/p&gt;
</span><del>-  &lt;p style=&quot;margin: 1em 3em 1em 3em&quot;&gt;[% product.description FILTER html_light %]&lt;/p&gt;
</del><ins>+  &lt;p class=&quot;indented&quot;&gt;[% product.description FILTER html_light %]&lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% IF changes.isactive.defined %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminsanitychecklisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,17 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl title = &quot;Sanity Check&quot;
</span><span class="cx">                                    style_urls = ['skins/standard/admin.css'] %]
</span><span class="cx"> 
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">   &lt;p&gt;
</span><del>-    [% terms.Bugzilla %] is checking the referential integrity of your database.
</del><ins>+    Bugzilla is checking the referential integrity of your database.
</ins><span class="cx">     This may take several minutes to complete.
</span><span class="cx">   &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminsanitycheckmessageshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/messages.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/messages.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/sanitycheck/messages.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% san_message = BLOCK %]
</span><span class="cx">   [% IF san_tag == &quot;checks_start&quot; %]
</span><span class="cx">     OK, now running sanity checks.
</span><span class="lines">@@ -229,6 +218,13 @@
</span><span class="cx">   [% ELSIF san_tag == &quot;profile_login_start&quot; %]
</span><span class="cx">     Checking profile logins.
</span><span class="cx"> 
</span><ins>+  [% ELSIF san_tag == &quot;product_alert&quot; %]
+    Product &lt;a href=&quot;editproducts.cgi?product=[% name FILTER html%]&quot;&gt;
+    [%- name FILTER html %]&lt;/a&gt; has no components or no versions.
+
+  [% ELSIF san_tag == &quot;product_check_start&quot; %]
+    Checking products with no components or versions.
+
</ins><span class="cx">   [% ELSIF san_tag == &quot;profile_login_alert&quot; %]
</span><span class="cx">     Bad profile email address, id=[% id FILTER html %],
</span><span class="cx">     &amp;lt;[% email FILTER html %]&amp;gt;.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminsettingsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/settings/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/settings/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/settings/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,41 +16,38 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-   title = &quot;Default Preferences&quot;
- %]
</del><ins>+  title = &quot;Default Preferences&quot;
+  style_urls = ['skins/standard/admin.css']
+%]
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;global/setting-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-This lets you edit the default preferences values.
</del><ins>+  This lets you edit the default preferences values. The Default Value displayed
+  for each preference will apply to all users who do not choose their own value,
+  and to anyone who is not logged in.
</ins><span class="cx"> &lt;/p&gt;
</span><del>-&lt;p&gt;
-The Default Value displayed for each preference will apply to all users who
-do not choose their own value, and to anyone who is not logged in.
-&lt;/p&gt;
-&lt;p&gt;
-The 'Enabled' checkbox controls whether or not this preference is available
-to users.&lt;br&gt;
-If it is checked, users will see this preference on their User Preferences page,
-and will be allowed to choose their own value if they desire.&lt;br&gt;
-If it is not checked, this preference will not appear on the User Preference
-page, and the Default Value will automatically apply to everyone.
-&lt;/p&gt;
-&lt;hr&gt;
</del><span class="cx"> 
</span><del>-[% IF settings.size %]
-    &lt;form name=&quot;adminsettingform&quot; method=&quot;post&quot; action=&quot;editsettings.cgi&quot;&gt;
-      &lt;table border=&quot;1&quot; cellpadding=&quot;4&quot;&gt;
-      &lt;tr&gt;
-        &lt;th&gt;Preference Text&lt;/th&gt;
-        &lt;th&gt;Default Value&lt;/th&gt;
-        &lt;th&gt;Enabled&lt;/th&gt;
-      &lt;/tr&gt;
</del><ins>+&lt;div&gt;
+  The 'Enabled' checkbox controls whether or not this preference is available to users:
+  &lt;ul&gt;
+    &lt;li&gt;If it is checked, users will be allowed to choose their own value if they desire.&lt;/li&gt;
+    &lt;li&gt;If it is not checked, the Default Value will automatically apply to everyone.&lt;/li&gt;
+  &lt;/ul&gt;
+&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-      [% FOREACH name = settings.keys %]
</del><ins>+    &lt;form id=&quot;settings&quot; method=&quot;post&quot; action=&quot;editsettings.cgi&quot;&gt;
+      &lt;table id=&quot;admin_table&quot;&gt;
+        &lt;tr class=&quot;column_header&quot;&gt;
+          &lt;th&gt;Preference Text&lt;/th&gt;
+          &lt;th&gt;Default Value&lt;/th&gt;
+          &lt;th&gt;Enabled&lt;/th&gt;
+        &lt;/tr&gt;
+
+        [% FOREACH name = settings.keys.sort %]
</ins><span class="cx">           [% checkbox_name = name _ '-enabled' %]
</span><span class="cx">           &lt;tr&gt;
</span><del>-            &lt;td align=&quot;right&quot;&gt;
</del><ins>+            &lt;td&gt;
</ins><span class="cx">               [% setting_descs.$name OR name FILTER html %]
</span><span class="cx">             &lt;/td&gt;
</span><span class="cx">             &lt;td&gt;
</span><span class="lines">@@ -71,31 +60,19 @@
</span><span class="cx">                 [% END %]
</span><span class="cx">               &lt;/select&gt;
</span><span class="cx">             &lt;/td&gt;
</span><del>-            &lt;td align=&quot;center&quot;&gt;
</del><ins>+            &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">               &lt;input type=&quot;checkbox&quot;
</span><span class="cx">                 name=&quot;[% checkbox_name FILTER html %]&quot;
</span><span class="cx">                 id=&quot;[% checkbox_name FILTER html %]&quot;
</span><span class="cx">                 [% &quot; checked=\&quot;checked\&quot;&quot; IF settings.${name}.is_enabled %]&gt;
</span><del>-              &lt;br&gt;
</del><span class="cx">             &lt;/td&gt;
</span><span class="cx">           &lt;/tr&gt;
</span><del>-      [% END %]
</del><ins>+        [% END %]
</ins><span class="cx">       &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><del>-    &lt;table&gt;
-      &lt;tr&gt;
-        &lt;td width=&quot;150&quot;&gt;&lt;/td&gt;
-        &lt;td&gt;
-          &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Submit Changes&quot;&gt;
-        &lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;
-  
</del><ins>+    &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Submit Changes&quot;&gt;
</ins><span class="cx">   &lt;/form&gt;
</span><del>-[% ELSE %]
-  There are no preferences to edit.
-[% END %]
</del><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminsudohtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/sudo.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/sudo.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/sudo.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,22 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 2005 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): A. Karl Kornel &lt;karl@kornel.name&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-  
-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = &quot;Begin sudo session&quot;
</span><ins>+   generate_api_token = 1
</ins><span class="cx">    style_urls = ['skins/standard/admin.css']
</span><del>-   doc_section = &quot;useradmin.html#impersonatingusers&quot;
</del><ins>+   doc_section = &quot;administering/users.html#impersonating-users&quot;
</ins><span class="cx">  %]
</span><span class="cx">  
</span><span class="cx"> [% DEFAULT target_login = &quot;&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  The &lt;b&gt;sudo&lt;/b&gt; feature of [% terms.Bugzilla %] allows you to impersonate a 
</del><ins>+  The &lt;b&gt;sudo&lt;/b&gt; feature of Bugzilla allows you to impersonate a
</ins><span class="cx">   user for a short time  While an sudo session is in progress, every action you 
</span><span class="cx">   perform will be taking place as if you had logged in as the user whom will be 
</span><span class="cx">   impersonating.
</span><span class="lines">@@ -55,6 +42,7 @@
</span><span class="cx">        value =&gt; target_login_default
</span><span class="cx">        accesskey =&gt; &quot;u&quot;
</span><span class="cx">        size =&gt; 30
</span><ins>+       mandatory =&gt; 1
</ins><span class="cx">     %]
</span><span class="cx">   &lt;/p&gt;
</span><span class="cx">   
</span><span class="lines">@@ -81,9 +69,10 @@
</span><span class="cx">     &lt;p&gt;
</span><span class="cx">       Finally, enter &lt;label for=&quot;Bugzilla_password&quot;&gt;your [% terms.Bugzilla %]
</span><span class="cx">       password&lt;/label&gt;:
</span><del>-      &lt;input type=&quot;hidden&quot; name=&quot;Bugzilla_login&quot; value=&quot;
-      [%- user.login FILTER html %]&quot;&gt;
-      &lt;input type=&quot;password&quot; id=&quot;Bugzilla_password&quot; name=&quot;Bugzilla_password&quot; size=&quot;20&quot;&gt;
</del><ins>+      &lt;input type=&quot;hidden&quot; name=&quot;Bugzilla_login&quot; value=&quot;[% user.login FILTER html %]&quot;&gt;
+      &lt;input type=&quot;password&quot; id=&quot;Bugzilla_password&quot; name=&quot;Bugzilla_password&quot; size=&quot;20&quot; required&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;Bugzilla_login_token&quot;
+             value=&quot;[% login_request_token FILTER html %]&quot;&gt;
</ins><span class="cx">       &lt;br&gt;
</span><span class="cx">       This is done for two reasons.  First of all, it is done to reduce 
</span><span class="cx">       the chances of someone doing large amounts of damage using your 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadmintablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -38,8 +25,6 @@
</span><span class="cx">   #                        field_descs hash will be used instead of &quot;content.&quot;
</span><span class="cx">   #                        See fieldvalues/select-field for an example of use.
</span><span class="cx">   #                        This content WILL be HTML-filtered in this case.
</span><del>-  #     align: left/center/right. Controls the horizontal alignment of the
-  #            text in the column.
</del><span class="cx">   #     allow_html_content: if defined, then this column allows some html content
</span><span class="cx">   #                         and so it will be only partially filtered.
</span><span class="cx">   #     yesno_field: Turn the data from 0/!0 into Yes/No
</span><span class="lines">@@ -78,15 +63,13 @@
</span><span class="cx">   #
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [%###################  TABLE HEADER   ######################%]
</span><span class="cx"> 
</span><del>-&lt;table id=&quot;admin_table&quot; border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-  &lt;tr bgcolor=&quot;#6666FF&quot;&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
</ins><span class="cx">     [% FOREACH c = columns %]
</span><span class="cx">       [%# Default to align left for headers %]
</span><del>-      &lt;th align=&quot;[% (c.align || 'left') FILTER html %]&quot;&gt;
</del><ins>+      &lt;th class=&quot;[% (c.class || 'left') FILTER css_class_quote %]&quot;&gt;
</ins><span class="cx">         [% c.heading FILTER html %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">     [% END %]
</span><span class="lines">@@ -104,7 +87,6 @@
</span><span class="cx">       [% contentlink = c.contentlink
</span><span class="cx">          content = c.content
</span><span class="cx">          content_use_field = c.content_use_field
</span><del>-         align = c.align
</del><span class="cx">          class = c.class
</span><span class="cx">          allow_html_content = c.allow_html_content
</span><span class="cx">          yesno_field = c.yesno_field
</span><span class="lines">@@ -136,45 +118,29 @@
</span><span class="cx">           [% END %]
</span><span class="cx">       [% END %]
</span><span class="cx"> 
</span><del>-      &lt;td [% IF align %] align=&quot;[% align FILTER html %]&quot; [% END %]
-          [% IF class %] class=&quot;[% class FILTER html %]&quot; [% END %]&gt;
</del><ins>+      &lt;td [% IF class %] class=&quot;[% class FILTER html %]&quot;[% END %]&gt;
</ins><span class="cx"> 
</span><span class="cx">         [% IF contentlink %]
</span><del>-          [% link_uri = contentlink %]
-          [% WHILE link_uri.search('%%(.+?)%%')%]
-            [% FOREACH m = link_uri.match('%%(.+?)%%') %]
-              [% IF row.$m.defined %]
-                [% replacement_value = FILTER uri; row.$m; END %]
-              [% ELSE %]
-                [% replacement_value = &quot;&quot; %]
-              [% END %]
-              [% link_uri = link_uri.replace(&quot;%%$m%%&quot;, replacement_value) %]
-            [% END %]
</del><ins>+          [% FOREACH m = contentlink.match('%%(.+?)%%', 1) %]
+            [% replacement_value = FILTER uri; row.$m; END %]
+            [% contentlink = contentlink.replace(&quot;%%$m%%&quot;, replacement_value) %]
</ins><span class="cx">           [% END %]
</span><del>-          &lt;a href=&quot;[% link_uri %]&quot;&gt;
</del><ins>+          &lt;a href=&quot;[% contentlink %]&quot;&gt;
</ins><span class="cx">         [% END %]
</span><del>-        
</del><ins>+
</ins><span class="cx">         [% IF content_use_field %]
</span><del>-           [% colname = row.${c.name} %]
-           [% field_descs.${colname} FILTER html %]
</del><ins>+          [% colname = row.${c.name} %]
+          [% field_descs.${colname} FILTER html %]
</ins><span class="cx">         [% ELSIF content %]
</span><del>-            [% content FILTER html_light %]
</del><ins>+          [% content FILTER html_light %]
+        [% ELSIF yesno_field %]
+          [% row.${c.name} ? &quot;Yes&quot; : &quot;No&quot; %]
+        [% ELSIF allow_html_content %]
+          [% row.${c.name} FILTER html_light %]
</ins><span class="cx">         [% ELSE %]
</span><del>-          [% IF yesno_field %]
-            [% IF row.${c.name} %]
-              Yes
-            [% ELSE %]
-              No
-            [% END %]
-          [% ELSE %]
-            [% IF allow_html_content %]
-              [% row.${c.name} FILTER html_light %]
-            [% ELSE %]
-              [% row.${c.name} FILTER html %]
-            [% END %]
-          [% END %]
</del><ins>+          [% row.${c.name} FILTER html %]
</ins><span class="cx">         [% END %]
</span><del>-        
</del><ins>+
</ins><span class="cx">         [% IF contentlink %]
</span><span class="cx">           &lt;/a&gt;
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -185,7 +151,7 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% IF data.size == 0 %]
</span><del>-  &lt;tr&gt;&lt;td colspan=&quot;[% columns.size %]&quot; align=&quot;center&quot;&gt;&lt;i&gt;&amp;lt;none&amp;gt;&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;
</del><ins>+  &lt;tr&gt;&lt;td colspan=&quot;[% columns.size %]&quot; class=&quot;center&quot;&gt;&lt;i&gt;&amp;lt;none&amp;gt;&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminusersconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -45,9 +38,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  style_urls = ['skins/standard/admin.css',
-                'skins/standard/editusers.css']
-  doc_section = &quot;useradmin.html#user-account-deletion&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/users.html#deleting-users&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span><span class="lines">@@ -54,7 +46,11 @@
</span><span class="cx">   listselectionvalues = listselectionvalues
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table class=&quot;main&quot;&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th&gt;Login name:&lt;/th&gt;
</span><span class="cx">     &lt;td&gt;[% otheruser.login FILTER html %]&lt;/td&gt;
</span><span class="lines">@@ -433,7 +429,7 @@
</span><span class="cx">             The user has performed audited administrative tasks
</span><span class="cx">             that are logged in the database.
</span><span class="cx">             If you delete this user account, the audit log entries
</span><del>-            will no longer be indentifiable.
</del><ins>+            will no longer be identifiable.
</ins><span class="cx">           &lt;/li&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">         [% Hook.process('warn_safe') %]
</span><span class="lines">@@ -448,9 +444,9 @@
</span><span class="cx"> 
</span><span class="cx">       &lt;form method=&quot;post&quot; action=&quot;editusers.cgi&quot;&gt;
</span><span class="cx">         &lt;p&gt;
</span><del>-          &lt;input type=&quot;submit&quot; id=&quot;delete&quot; value=&quot;Yes, delete&quot;/&gt;
-          &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;delete&quot; /&gt;
-          &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot; /&gt;
</del><ins>+          &lt;input type=&quot;submit&quot; id=&quot;delete&quot; value=&quot;Yes, delete&quot;&gt;
+          &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;delete&quot;&gt;
+          &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot;&gt;
</ins><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx">           [% INCLUDE listselectionhiddenfields %]
</span><span class="cx">         &lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminuserscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,9 +14,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Add user&quot;
</span><del>-  style_urls = ['skins/standard/editusers.css']
-  onload = &quot;document.forms['f'].login.focus()&quot;
-  doc_section = &quot;useradmin.html#createnewusers&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/users.html#creating-new-users&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span><span class="lines">@@ -30,20 +22,20 @@
</span><span class="cx">   listselectionvalues = listselectionvalues
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;form name=&quot;f&quot; method=&quot;post&quot; action=&quot;editusers.cgi&quot;&gt;
-&lt;table class=&quot;main&quot;&gt;
-  [% PROCESS admin/users/userdata.html.tmpl
-    editform  = 0
-    editusers = editusers
-    otheruser = []
-  %]
-&lt;/table&gt;
-&lt;p&gt;
-  &lt;input type=&quot;submit&quot; id=&quot;add&quot; value=&quot;Add&quot;/&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot; /&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
-  [% INCLUDE listselectionhiddenfields %]
-&lt;/p&gt;
</del><ins>+&lt;form method=&quot;post&quot; action=&quot;editusers.cgi&quot;&gt;
+  &lt;table id=&quot;admin_table_edit&quot;&gt;
+    [% PROCESS admin/users/userdata.html.tmpl
+      editform  = 0
+      editusers = editusers
+      otheruser = []
+    %]
+  &lt;/table&gt;
+  &lt;p&gt;
+    &lt;input type=&quot;submit&quot; id=&quot;add&quot; value=&quot;Add&quot;&gt;
+    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;new&quot;&gt;
+    &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
+    [% INCLUDE listselectionhiddenfields %]
+  &lt;/p&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminusersedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,8 +22,9 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><span class="cx">   message = message
</span><del>-  style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css']
-  doc_section = &quot;useradmin.html#modifyusers&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/users.html#modifying-users&quot;
+  javascript_urls = [ 'js/field.js' ]
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span><span class="lines">@@ -38,7 +32,7 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editusers.cgi&quot;&gt;
</span><del>-&lt;table class=&quot;main&quot;&gt;
</del><ins>+&lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">   [% PROCESS admin/users/userdata.html.tmpl
</span><span class="cx">     editform  = 1
</span><span class="cx">     editusers = editusers
</span><span class="lines">@@ -48,7 +42,7 @@
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Group access:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        &lt;table class=&quot;groups&quot;&gt;
</del><ins>+        &lt;table id=&quot;group_membership&quot;&gt;
</ins><span class="cx">           &lt;tr&gt;
</span><span class="cx">             [% IF editusers %]
</span><span class="cx">               &lt;th colspan=&quot;3&quot;&gt;
</span><span class="lines">@@ -58,7 +52,7 @@
</span><span class="cx">           &lt;/tr&gt;
</span><span class="cx">           &lt;tr&gt;
</span><span class="cx">             [% IF editusers %]
</span><del>-              &lt;td style=&quot;text-align: center; font-weight: bold&quot;&gt;|&lt;/td&gt;
</del><ins>+              &lt;th class=&quot;checkbox&quot;&gt;|&lt;/th&gt;
</ins><span class="cx">             [% END %]
</span><span class="cx">             &lt;th colspan=&quot;2&quot;&gt;User is a member of these groups&lt;/th&gt;
</span><span class="cx">           &lt;/tr&gt;
</span><span class="lines">@@ -71,7 +65,7 @@
</span><span class="cx">                   [% %]&lt;input type=&quot;checkbox&quot;
</span><span class="cx">                               name=&quot;bless_[% group.id %]&quot;
</span><span class="cx">                               value=&quot;1&quot;
</span><del>-                              [% ' checked=&quot;checked&quot;' IF perms.directbless %] /&gt;
</del><ins>+                              [% ' checked=&quot;checked&quot;' IF perms.directbless %]&gt;
</ins><span class="cx">                   [% ']' IF perms.indirectbless %]&lt;/td&gt;
</span><span class="cx">               [% END %]
</span><span class="cx">               &lt;td class=&quot;checkbox&quot;&gt;
</span><span class="lines">@@ -81,7 +75,7 @@
</span><span class="cx">                            id=&quot;group_[% group.id %]&quot;
</span><span class="cx">                            name=&quot;group_[% group.id %]&quot;
</span><span class="cx">                            value=&quot;1&quot;
</span><del>-                           [% ' checked=&quot;checked&quot;' IF perms.directmember %] /&gt;
</del><ins>+                           [% ' checked=&quot;checked&quot;' IF perms.directmember %]&gt;
</ins><span class="cx">                 [% '*' IF perms.regexpmember %]
</span><span class="cx">                 [% ']' IF perms.derivedmember %]&lt;/td&gt;
</span><span class="cx">               &lt;td class=&quot;groupname&quot;&gt;
</span><span class="lines">@@ -107,12 +101,23 @@
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><ins>+
+  &lt;tr&gt;
+    &lt;th&gt;Last Login:&lt;/th&gt;
+    &lt;td&gt;
+      [% IF otheruser.last_seen_date %]
+        [% otheruser.last_seen_date FILTER html %]
+      [% ELSE %]
+        &lt;em&gt;never&lt;/em&gt;
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Save Changes&quot; /&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot; /&gt;
-  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot; /&gt;
</del><ins>+  &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Save Changes&quot;&gt;
+  &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot;&gt;
+  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot;&gt;
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx">   [% INCLUDE listselectionhiddenfields %]
</span><span class="cx"> 
</span><span class="lines">@@ -122,7 +127,7 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;p&gt;
</span><del>-  User is a member of any groups shown with a check or grey bar.
</del><ins>+  User is a member of all groups shown with a check or grey bar.
</ins><span class="cx">   A grey bar indicates indirect membership, either derived from other
</span><span class="cx">   groups (marked with square brackets) or via regular expression
</span><span class="cx">   (marked with '*').
</span><span class="lines">@@ -138,9 +143,9 @@
</span><span class="cx"> [% IF Param('allowuserdeletion') &amp;&amp; editusers %]
</span><span class="cx">   &lt;form method=&quot;post&quot; action=&quot;editusers.cgi&quot;&gt;
</span><span class="cx">   &lt;p&gt;
</span><del>-    &lt;input type=&quot;submit&quot; id=&quot;delete&quot; value=&quot;Delete User&quot; /&gt;
-    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;del&quot; /&gt;
-    &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot; /&gt;
</del><ins>+    &lt;input type=&quot;submit&quot; id=&quot;delete&quot; value=&quot;Delete User&quot;&gt;
+    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;del&quot;&gt;
+    &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; value=&quot;[% otheruser.id %]&quot;&gt;
</ins><span class="cx">     [% INCLUDE listselectionhiddenfields %]
</span><span class="cx">   &lt;/p&gt;
</span><span class="cx">   &lt;/form&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminuserslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +16,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Select user&quot;
</span><del>-  style_urls = ['skins/standard/editusers.css']
-  doc_section = &quot;useradmin.html&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/users.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span><span class="lines">@@ -42,6 +35,9 @@
</span><span class="cx">    {name               =&gt; 'realname'
</span><span class="cx">     heading            =&gt; 'Real name'
</span><span class="cx">    }
</span><ins>+   {name               =&gt; 'last_seen_date'
+    heading            =&gt; 'Last Login'
+   }
</ins><span class="cx">    {heading            =&gt; 'Account History'
</span><span class="cx">     content            =&gt; 'View'
</span><span class="cx">     contentlink        =&gt; 'editusers.cgi?action=activity' _
</span><span class="lines">@@ -69,11 +65,11 @@
</span><span class="cx"> [% FOREACH thisuser = users %]
</span><span class="cx">   [% IF !thisuser.realname %]
</span><span class="cx">     [%# We cannot pass one class now and one class later. %]
</span><del>-    [% SET classes = (thisuser.is_enabled ? &quot;missing&quot; : &quot;bz_inactive missing&quot;) %]
</del><ins>+    [% SET classes = (thisuser.is_enabled ? &quot;warning&quot; : &quot;bz_inactive warning&quot;) %]
</ins><span class="cx">     [% overrides.realname.login_name.${thisuser.login_name} = {
</span><span class="cx">            content          =&gt; &quot;missing&quot;
</span><span class="cx">            override_content =&gt; 1
</span><del>-           class            =&gt; &quot;$classes&quot;
</del><ins>+           class            =&gt; classes
</ins><span class="cx">            override_class   =&gt; 1
</span><span class="cx">        }
</span><span class="cx">     %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminuserslistselectvarshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/listselectvars.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/listselectvars.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/listselectvars.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -28,6 +21,6 @@
</span><span class="cx"> [% BLOCK listselectionhiddenfields %]
</span><span class="cx">   [% FOREACH field = listselectionvalues.keys %]
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;[% field FILTER html %]&quot;
</span><del>-           value=&quot;[% listselectionvalues.$field FILTER html %]&quot; /&gt;
</del><ins>+           value=&quot;[% listselectionvalues.$field FILTER html %]&quot;&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminusersresponsibilitieshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/responsibilities.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/responsibilities.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/responsibilities.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% hidden_products = 0 %]
</span><del>-&lt;table id=&quot;user_responsibilities&quot; border=&quot;0&quot;&gt;
</del><ins>+&lt;table id=&quot;user_responsibilities&quot;&gt;
</ins><span class="cx">   [% FOREACH item = otheruser.product_responsibilities %]
</span><span class="cx">     [% IF !user.can_see_product(item.product.name) %]
</span><span class="cx">       [% hidden_products = 1 %]
</span><span class="lines">@@ -23,7 +15,7 @@
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;tbody&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th colspan=&quot;3&quot; class=&quot;product&quot;&gt;Product: [% item.product.name FILTER html %]&lt;/th&gt;
</del><ins>+      &lt;th colspan=&quot;4&quot; class=&quot;product&quot;&gt;Product: [% item.product.name FILTER html %]&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Component&lt;/th&gt;
</span><span class="lines">@@ -31,26 +23,26 @@
</span><span class="cx">       &lt;th&gt;Default QA Contact&lt;/th&gt;
</span><span class="cx">       &lt;th&gt;Default CC&lt;/th&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><del>-    [% FOREACH component = item.components %]
</del><ins>+    [% FOREACH comp = item.components %]
</ins><span class="cx">       &lt;tr&gt;
</span><span class="cx">         &lt;td&gt;
</span><del>-          [% IF user.in_group(&quot;editcomponents&quot;, component.product_id) %]
</del><ins>+          [% IF user.in_group(&quot;editcomponents&quot;, comp.product_id) %]
</ins><span class="cx">             &lt;a href=&quot;editcomponents.cgi?action=edit&amp;amp;product=
</span><span class="cx">                      [% item.product.name FILTER uri %]&amp;amp;component=
</span><del>-                     [% component.name FILTER uri %]&quot;&gt;
</del><ins>+                     [% comp.name FILTER uri %]&quot;&gt;
</ins><span class="cx">           [% END %]
</span><del>-          [% component.name FILTER html %]
-          [% IF user.in_group(&quot;editcomponents&quot;, component.product_id) %]
</del><ins>+          [% comp.name FILTER html %]
+          [% IF user.in_group(&quot;editcomponents&quot;, comp.product_id) %]
</ins><span class="cx">             &lt;/a&gt;
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">         [% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %]
</span><span class="cx">           &lt;td class=&quot;center&quot;&gt;
</span><del>-            [% component.$responsibility.id == otheruser.id ? &quot;X&quot; : &quot;&amp;nbsp;&quot; %]
</del><ins>+            [% comp.$responsibility.id == otheruser.id ? &quot;X&quot; : &quot;&amp;nbsp;&quot; %]
</ins><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">         &lt;td class=&quot;center&quot;&gt;
</span><del>-          [% component.initial_cc.contains(otheruser) ? &quot;X&quot; : &quot;&amp;nbsp;&quot; %]
</del><ins>+          [% comp.initial_cc.contains(otheruser) ? &quot;X&quot; : &quot;&amp;nbsp;&quot; %]
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminuserssearchhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/search.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/search.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/search.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,17 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
-  #                 David Lawrence &lt;dkl@redhat.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,9 +17,8 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Search users&quot;
</span><del>-  style_urls = ['skins/standard/editusers.css']
-  onload = &quot;document.forms['f'].matchstr.focus()&quot;
-  doc_section = &quot;useradmin.html#user-account-search&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;administering/users.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS admin/users/listselectvars.html.tmpl
</span><span class="lines">@@ -35,7 +26,7 @@
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form name=&quot;f&quot; method=&quot;get&quot; action=&quot;editusers.cgi&quot;&gt;
</span><del>-&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;list&quot; /&gt;
</del><ins>+&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;list&quot;&gt;
</ins><span class="cx"> &lt;p&gt;&lt;label for=&quot;matchvalue&quot;&gt;List users with&lt;/label&gt;
</span><span class="cx"> &lt;select id=&quot;matchvalue&quot; name=&quot;matchvalue&quot;&gt;
</span><span class="cx">   &lt;option value=&quot;login_name&quot;&gt;login name&lt;/option&gt;
</span><span class="lines">@@ -43,7 +34,7 @@
</span><span class="cx">   &lt;option value=&quot;userid&quot;&gt;user id&lt;/option&gt;
</span><span class="cx"> &lt;/select&gt;
</span><span class="cx"> &lt;label for=&quot;matchstr&quot;&gt;matching&lt;/label&gt;
</span><del>-&lt;input size=&quot;32&quot; name=&quot;matchstr&quot; id=&quot;matchstr&quot; /&gt;
</del><ins>+&lt;input size=&quot;32&quot; name=&quot;matchstr&quot; id=&quot;matchstr&quot; autofocus&gt;
</ins><span class="cx"> &lt;select name=&quot;matchtype&quot;&gt;
</span><span class="cx">   &lt;option value=&quot;substr&quot; selected=&quot;selected&quot;&gt;case-insensitive substring&lt;/option&gt;
</span><span class="cx">   &lt;option value=&quot;regexp&quot;&gt;case-insensitive regexp&lt;/option&gt;
</span><span class="lines">@@ -50,10 +41,11 @@
</span><span class="cx">   &lt;option value=&quot;notregexp&quot;&gt;not (case-insensitive regexp)&lt;/option&gt;
</span><span class="cx">   &lt;option value=&quot;exact&quot;&gt;exact (find this user)&lt;/option&gt;
</span><span class="cx"> &lt;/select&gt;
</span><del>-&lt;input type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Search&quot; /&gt;&lt;/p&gt;
</del><ins>+&lt;input type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Search&quot;&gt;
+&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% IF restrictablegroups.size %]
</span><del>-  &lt;p&gt;&lt;input type=&quot;checkbox&quot; name=&quot;grouprestrict&quot; value=&quot;1&quot; id=&quot;grouprestrict&quot; /&gt;
</del><ins>+  &lt;p&gt;&lt;input type=&quot;checkbox&quot; name=&quot;grouprestrict&quot; value=&quot;1&quot; id=&quot;grouprestrict&quot;&gt;
</ins><span class="cx">   &lt;label for=&quot;grouprestrict&quot;&gt;Restrict to users belonging to group&lt;/label&gt;
</span><span class="cx">   &lt;select name=&quot;groupid&quot;
</span><span class="cx">           onchange=&quot;document.forms['f'].grouprestrict.checked=true&quot;&gt;
</span><span class="lines">@@ -63,6 +55,16 @@
</span><span class="cx">   &lt;/select&gt;&lt;/p&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+&lt;p&gt;
+  Restrict search to
+  &lt;select name=&quot;is_enabled&quot;&gt;
+      &lt;option value=&quot;2&quot;&gt;All&lt;/option&gt;
+      &lt;option value=&quot;1&quot; selected&gt;Enabled&lt;/option&gt;
+      &lt;option value=&quot;0&quot;&gt;Disabled&lt;/option&gt;
+  &lt;/select&gt;
+  users.
+&lt;/p&gt;
+
</ins><span class="cx"> [% Hook.process('end') %]
</span><span class="cx"> 
</span><span class="cx"> &lt;/form&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminusersuserdatahtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/users/userdata.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/users/userdata.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/users/userdata.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -20,15 +13,20 @@
</span><span class="cx">   # otheruser: Bugzilla::User object of user to edit
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><ins>+&lt;script type=&quot;text/javascript&quot;&gt;
+  var disable_mail_manually_set = [% (otheruser.email_disabled ? 1 : 0) FILTER js %];
+&lt;/script&gt;
+
</ins><span class="cx"> &lt;tr&gt;
</span><span class="cx">   &lt;th&gt;&lt;label for=&quot;login&quot;&gt;Login name:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% IF editusers %]
</span><del>-      &lt;input size=&quot;64&quot; maxlength=&quot;255&quot; name=&quot;login&quot; 
-             id=&quot;login&quot; value=&quot;[% otheruser.login FILTER html %]&quot; /&gt;
</del><ins>+      &lt;input size=&quot;64&quot; maxlength=&quot;255&quot; id=&quot;login&quot; name=&quot;login&quot;
+             value=&quot;[% otheruser.login FILTER html %]&quot;
+             [%- &quot; autofocus&quot; UNLESS editform %] required&gt;
</ins><span class="cx">       [% IF editform %]
</span><span class="cx">         [% IF !otheruser.in_group('bz_sudo_protect') %]
</span><del>-          &lt;br /&gt;
</del><ins>+          &lt;br&gt;
</ins><span class="cx">           &lt;a href=&quot;relogin.cgi?action=prepare-sudo&amp;amp;target_login=
</span><span class="cx">           [%- otheruser.login FILTER uri %]&quot;&gt;Impersonate this user&lt;/a&gt;
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -55,9 +53,8 @@
</span><span class="cx">   &lt;th&gt;&lt;label for=&quot;name&quot;&gt;Real name:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% IF editusers %]
</span><del>-      &lt;input size=&quot;64&quot; maxlength=&quot;255&quot; name=&quot;name&quot;
-             autocomplete=&quot;off&quot;
-             id=&quot;name&quot; value=&quot;[% otheruser.name FILTER html %]&quot; /&gt;
</del><ins>+      &lt;input size=&quot;64&quot; maxlength=&quot;255&quot; id=&quot;name&quot; name=&quot;name&quot;
+             autocomplete=&quot;off&quot; value=&quot;[% otheruser.name FILTER html %]&quot;&gt;
</ins><span class="cx">     [% ELSE %]
</span><span class="cx">       [% otheruser.name FILTER html %]
</span><span class="cx">     [% END %]
</span><span class="lines">@@ -68,7 +65,7 @@
</span><span class="cx">   # if we ever have a login system that can create accounts through
</span><span class="cx">   # createaccount.cgi but can't change passwords.
</span><span class="cx">   #%]
</span><del>-  
</del><ins>+  [% password_complexity = Param('password_complexity') %]
</ins><span class="cx"> [% IF editusers %]
</span><span class="cx">   [% IF user.authorizer.can_change_password %]
</span><span class="cx">   &lt;tr&gt;
</span><span class="lines">@@ -75,8 +72,15 @@
</span><span class="cx">     &lt;th&gt;&lt;label for=&quot;password&quot;&gt;Password:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">       &lt;input type=&quot;password&quot; size=&quot;16&quot; name=&quot;password&quot; id=&quot;password&quot;
</span><del>-             value=&quot;&quot; autocomplete=&quot;off&quot; /&gt;
-      [% IF editform %]&lt;br /&gt;
</del><ins>+             value=&quot;&quot; autocomplete=&quot;off&quot; [% 'required' IF !editform %]&gt;
+      [% IF password_complexity == &quot;mixed_letters&quot; %] 
+        (Password must contain at least one UPPER and one lowercase letter.)
+      [% ELSIF password_complexity == &quot;letters_numbers&quot; %] 
+        (Password must contain at least one UPPER and one lower case letter and a number.)
+      [% ELSIF password_complexity == &quot;letters_numbers_specialchars&quot; %] 
+        (Password must contain at least one letter, a number and a special character.)
+      [% END %]
+      [% IF editform %]&lt;br&gt;
</ins><span class="cx">         (Enter new password to change.)
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -86,7 +90,8 @@
</span><span class="cx">     &lt;th&gt;&lt;label for=&quot;disable_mail&quot;&gt;[% terms.Bug %]mail Disabled:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">       &lt;input type=&quot;checkbox&quot; name=&quot;disable_mail&quot; id=&quot;disable_mail&quot; value=&quot;1&quot; 
</span><del>-      [% IF otheruser.email_disabled %] checked=&quot;checked&quot; [% END %] /&gt;
</del><ins>+             [% IF otheruser.email_disabled %] checked=&quot;checked&quot; [% END %] 
+             onchange=&quot;disable_mail_manually_set=1;&quot;&gt;
</ins><span class="cx">       (This affects [% terms.bug %]mail and whinemail, not password-reset or other 
</span><span class="cx">       non-[% terms.bug %]-related emails)
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -102,9 +107,19 @@
</span><span class="cx">          defaultrows    = 10
</span><span class="cx">          cols           = 60
</span><span class="cx">          defaultcontent = otheruser.disabledtext
</span><ins>+         onchange       = &quot;userDisabledTextOnChange(this);&quot;
</ins><span class="cx">        %]&lt;br&gt;
</span><del>-      (If non-empty, then the account will be disabled, and this text should
-      explain why.)
</del><ins>+      (If non-empty, then it will not be possible to log in using this account,
+      and this text should explain why.)
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span><ins>+[% UNLESS editform %]
+  &lt;tr&gt;
+    &lt;th&gt;&lt;label for=&quot;notify_user&quot;&gt;Notify User:&lt;/label&gt;&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;checkbox&quot; name=&quot;notify_user&quot; id=&quot;notify_user&quot; value=&quot;1&quot;&gt;
+      (Email this user their account information. The password will not be included.)
+    &lt;/td&gt;
+  &lt;/tr&gt;
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionsconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,49 +18,50 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-  &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Version:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% version.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;Version of Product:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% product.name FILTER html %]&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td valign=&quot;top&quot;&gt;[% terms.Bugs %]:&lt;/td&gt;
-  &lt;td valign=&quot;top&quot;&gt;
-[% IF version.bug_count %]
-  &lt;a title=&quot;List of [% terms.bugs %] targetted at version '
-           [%- version.name FILTER html %]'&quot;
-     href=&quot;buglist.cgi?version=[% version.name FILTER uri %]&amp;amp;product=
-          [%- product.name FILTER uri %]&quot;&gt;
-          [%- version.bug_count FILTER none %]&lt;/a&gt;
-[% ELSE %]
-  None
-[% END %]
-  &lt;/td&gt;
-&lt;/tr&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Version&lt;/td&gt;
+    &lt;td&gt;[% version.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;Version of Product&lt;/td&gt;
+    &lt;td&gt;[% product.name FILTER html %]&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;tr&gt;
+    &lt;td&gt;[% terms.Bugs %]&lt;/td&gt;
+    &lt;td&gt;
+      [% IF version.bug_count %]
+        &lt;a title=&quot;List of [% terms.bugs %] targetted at version '
+                  [%- version.name FILTER html %]'&quot;
+           href=&quot;buglist.cgi?version=[% version.name FILTER uri %]&amp;amp;product=
+                 [%- product.name FILTER uri %]&quot;&gt;
+                 [%- version.bug_count FILTER none %]&lt;/a&gt;
+      [% ELSE %]
+        None
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> [% IF version.bug_count %]
</span><del>-  &lt;p&gt;
</del><ins>+  &lt;p class=&quot;confirmation&quot;&gt;
</ins><span class="cx">   Sorry, there
</span><span class="cx">   [% IF version.bug_count &gt; 1 %] 
</span><del>-    are [% version.bug_count FILTER none %] [%+ terms.bugs %] 
</del><ins>+    are [% version.bug_count FILTER none %] outstanding [% terms.bugs %]
</ins><span class="cx">   [% ELSE %]
</span><del>-    is [% version.bug_count FILTER none %] [%+ terms.bug %] 
</del><ins>+    is [% version.bug_count FILTER none %] outstanding [% terms.bug %]
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  outstanding for this version. You must move 
</del><ins>+  for this version. You must move
</ins><span class="cx"> 
</span><span class="cx">   [% IF version.bug_count &gt; 1 %]
</span><span class="cx">      those [% terms.bugs %] 
</span><span class="lines">@@ -80,7 +68,7 @@
</span><span class="cx">   [% ELSE %]
</span><span class="cx">      that [% terms.bug %]
</span><span class="cx">   [% END %]
</span><del>-  to another version before you can delete this one.
</del><ins>+  to another version before this version can be deleted.
</ins><span class="cx">   &lt;/p&gt;
</span><span class="cx"> [% ELSE %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionscreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,14 +17,15 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><span class="cx">   subheader = subheader
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editversions.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot;&gt;&lt;label for=&quot;version&quot;&gt;Version:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;version&quot;&gt;Version:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;version&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;version&quot;
</span><del>-                 value=&quot;&quot;&gt;&lt;/td&gt;
</del><ins>+                 value=&quot;&quot; required&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;create&quot; value=&quot;Add&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionsedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,26 +13,28 @@
</span><span class="cx">   #                    version the user wants to edit.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Edit Version '[% version.name FILTER html %]' of product '
</span><span class="cx">                    [%- product.name FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editversions.cgi&quot;&gt;
</span><del>-  &lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-
</del><ins>+  &lt;table id=&quot;admin_table_edit&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;version&quot;&gt;Version:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input id=&quot;version&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;version&quot; value=&quot;
-      [%- version.name FILTER html %]&quot;&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;version&quot;&gt;Version:&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;
+        &lt;input id=&quot;version&quot; size=&quot;64&quot; maxlength=&quot;64&quot; name=&quot;version&quot;
+               value=&quot;[% version.name FILTER html %]&quot; required&gt;
+      &lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th class=&quot;field_label&quot;&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;input id=&quot;isactive&quot; name=&quot;isactive&quot; type=&quot;checkbox&quot; value=&quot;1&quot;
-                 [% 'checked=&quot;checked&quot;' IF version.isactive %]&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;isactive&quot;&gt;Enabled For [% terms.Bugs %]:&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;
+        &lt;input id=&quot;isactive&quot; name=&quot;isactive&quot; type=&quot;checkbox&quot; value=&quot;1&quot;
+                 [% 'checked=&quot;checked&quot;' IF version.isactive %]&gt;
+      &lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionsfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionslisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,12 +11,11 @@
</span><span class="cx">   #               which the versions belongs.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]Select version of product
</span><span class="cx">                    '[% product.name FILTER html %]'[% END %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% edit_contentlink = BLOCK %]editversions.cgi?action=edit&amp;amp;product=
</span><span class="lines">@@ -59,7 +45,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">        name =&gt; &quot;bug_count&quot;
</span><span class="cx">        heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-       align =&gt; &quot;right&quot;
</del><ins>+       class =&gt; &quot;right&quot;
</ins><span class="cx">        contentlink =&gt; bug_count_contentlink
</span><span class="cx">      })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminversionsselectproducthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/select-product.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/select-product.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/versions/select-product.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,10 +11,9 @@
</span><span class="cx">   # showbugcounts: if defined, then bug counts should be included in the table
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Edit versions for which product?&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% columns = [
</span><span class="lines">@@ -50,7 +35,7 @@
</span><span class="cx">   [% columns.push({
</span><span class="cx">       name =&gt; 'bug_count'
</span><span class="cx">       heading =&gt; &quot;$terms.Bugs&quot;
</span><del>-      align =&gt; &quot;right&quot;
</del><ins>+      class =&gt; &quot;right&quot;
</ins><span class="cx">       contentlink =&gt; &quot;buglist.cgi?product=%%name%%&quot;
</span><span class="cx">     })
</span><span class="cx">   %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminworkflowcommenthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/comment.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/comment.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/comment.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Gervase Markham &lt;gerv@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% INCLUDE global/header.html.tmpl
</span><span class="cx">    title = &quot;Comments Required on Status Transitions&quot;
</span><span class="cx">    style_urls = ['skins/standard/admin.css']
</span><span class="lines">@@ -25,9 +15,9 @@
</span><span class="cx"> &lt;!--
</span><span class="cx">   function toggle_cell(cell) {
</span><span class="cx">     if (cell.checked)
</span><del>-      cell.parentNode.className = &quot;checkbox-cell checked&quot;;
</del><ins>+      cell.parentNode.className = &quot;checked&quot;;
</ins><span class="cx">     else
</span><del>-      cell.parentNode.className = &quot;checkbox-cell&quot;;
</del><ins>+      cell.parentNode.className = &quot;&quot;;
</ins><span class="cx">   }
</span><span class="cx"> //--&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="lines">@@ -38,7 +28,7 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;workflow_form&quot; method=&quot;POST&quot; action=&quot;editworkflow.cgi&quot;&gt;
</span><del>-&lt;table&gt;
</del><ins>+&lt;table id=&quot;workflow&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="cx">     &lt;th colspan=&quot;[% statuses.size FILTER html %]&quot; class=&quot;title&quot;&gt;To&lt;/th&gt;
</span><span class="lines">@@ -48,7 +38,7 @@
</span><span class="cx">     &lt;th rowspan=&quot;[% statuses.size + 2 FILTER html %]&quot; class=&quot;title&quot;&gt;From&lt;/th&gt;
</span><span class="cx">     &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="cx">     [% FOREACH status = statuses %]
</span><del>-      &lt;th class=&quot;col-header[% status.is_open ? &quot; open-status&quot; : &quot; closed-status&quot; %]&quot;&gt;
</del><ins>+      &lt;th class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %] center&quot;&gt;
</ins><span class="cx">         [% display_value(&quot;bug_status&quot;, status.name) FILTER html %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">     [% END %]
</span><span class="lines">@@ -58,14 +48,13 @@
</span><span class="cx">   [% p = [{id =&gt; 0, name =&gt; &quot;{Start}&quot;, is_open =&gt; 1}] %]
</span><span class="cx">   [% FOREACH status = p.merge(statuses) %]
</span><span class="cx">     &lt;tr class=&quot;highlight&quot;&gt;
</span><del>-      &lt;th align=&quot;right&quot; class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %]&quot;&gt;
</del><ins>+      &lt;th class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %]&quot;&gt;
</ins><span class="cx">         [% display_value(&quot;bug_status&quot;, status.name) FILTER html %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx"> 
</span><span class="cx">       [% FOREACH new_status = statuses %]
</span><span class="cx">         [% IF workflow.${status.id}.${new_status.id}.defined %]
</span><del>-          &lt;td align=&quot;center&quot; class=&quot;checkbox-cell
-              [% &quot; checked&quot; IF workflow.${status.id}.${new_status.id} %]&quot;
</del><ins>+          &lt;td class=&quot;[% &quot;checked&quot; IF workflow.${status.id}.${new_status.id} %]&quot;
</ins><span class="cx">               title=&quot;From [% status.name FILTER html %] to [% new_status.name FILTER html %]&quot;&gt;
</span><span class="cx">             &lt;input type=&quot;checkbox&quot; name=&quot;c_[% status.id %]_[% new_status.id %]&quot;
</span><span class="cx">                    id=&quot;c_[% status.id %]_[% new_status.id %]&quot; onclick=&quot;toggle_cell(this)&quot;
</span><span class="lines">@@ -72,7 +61,7 @@
</span><span class="cx">               [% &quot; checked='checked'&quot; IF workflow.${status.id}.${new_status.id} %]&gt;
</span><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;td class=&quot;checkbox-cell forbidden&quot;&gt;&amp;nbsp;&lt;/td&gt;
</del><ins>+          &lt;td class=&quot;forbidden&quot;&gt;&amp;nbsp;&lt;/td&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -79,7 +68,7 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><del>-&lt;p align=&quot;center&quot;&gt;
</del><ins>+&lt;p class=&quot;center&quot;&gt;
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update_comment&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;update_comment&quot; value=&quot;Commit Changes&quot;&gt; -
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultadminworkflowedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/admin/workflow/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Gervase Markham &lt;gerv@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% INCLUDE global/header.html.tmpl
</span><span class="cx">    title = &quot;Edit Workflow&quot;
</span><span class="cx">    style_urls = ['skins/standard/admin.css']
</span><span class="lines">@@ -25,9 +15,9 @@
</span><span class="cx"> &lt;!--
</span><span class="cx">   function toggle_cell(cell) {
</span><span class="cx">     if (cell.checked)
</span><del>-      cell.parentNode.className = &quot;checkbox-cell checked&quot;;
</del><ins>+      cell.parentNode.className = &quot;checked&quot;;
</ins><span class="cx">     else
</span><del>-      cell.parentNode.className = &quot;checkbox-cell&quot;;
</del><ins>+      cell.parentNode.className = &quot;&quot;;
</ins><span class="cx">   }
</span><span class="cx"> //--&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="lines">@@ -34,16 +24,16 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   This page allows you to define which status transitions are valid in your workflow.
</span><del>-  For compatibility with older versions of [% terms.Bugzilla %], reopening [% terms.abug %]
</del><ins>+  For compatibility with older versions of Bugzilla, reopening [% terms.abug %]
</ins><span class="cx">   will only display either [% display_value(&quot;bug_status&quot;, &quot;UNCONFIRMED&quot;) FILTER html %] or
</span><span class="cx">   [%+ display_value(&quot;bug_status&quot;, &quot;REOPENED&quot;) FILTER html %] (if allowed by your workflow) but not
</span><span class="cx">   both. The decision depends on whether the [% terms.bug %] has ever been confirmed or not.
</span><del>-  So it is a good idea to allow both transitions and let [% terms.Bugzilla %] select the
</del><ins>+  So it is a good idea to allow both transitions and let Bugzilla select the
</ins><span class="cx">   correct one.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;workflow_form&quot; method=&quot;POST&quot; action=&quot;editworkflow.cgi&quot;&gt;
</span><del>-&lt;table&gt;
</del><ins>+&lt;table id=&quot;workflow&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="cx">     &lt;th colspan=&quot;[% statuses.size FILTER html %]&quot; class=&quot;title&quot;&gt;To&lt;/th&gt;
</span><span class="lines">@@ -53,7 +43,7 @@
</span><span class="cx">     &lt;th rowspan=&quot;[% statuses.size + 2 FILTER html %]&quot; class=&quot;title&quot;&gt;From&lt;/th&gt;
</span><span class="cx">     &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="cx">     [% FOREACH status = statuses %]
</span><del>-      &lt;th class=&quot;col-header[% status.is_open ? &quot; open-status&quot; : &quot; closed-status&quot; %]&quot;&gt;
</del><ins>+      &lt;th class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %] center&quot;&gt;
</ins><span class="cx">         [% display_value(&quot;bug_status&quot;, status.name) FILTER html %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">     [% END %]
</span><span class="lines">@@ -63,15 +53,15 @@
</span><span class="cx">   [% p = [{id =&gt; 0, name =&gt; &quot;{Start}&quot;, is_open =&gt; 1}] %]
</span><span class="cx">   [% FOREACH status = p.merge(statuses) %]
</span><span class="cx">     &lt;tr class=&quot;highlight&quot;&gt;
</span><del>-      &lt;th align=&quot;right&quot; class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %]&quot;&gt;
</del><ins>+      &lt;th class=&quot;[% status.is_open ? &quot;open-status&quot; : &quot;closed-status&quot; %]&quot;&gt;
</ins><span class="cx">         [% display_value(&quot;bug_status&quot;, status.name) FILTER html %]
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx"> 
</span><span class="cx">       [% FOREACH new_status = statuses %]
</span><del>-        [% IF status.id != new_status.id &amp;&amp; (status.id || new_status.is_open) %]
</del><ins>+        [% IF status.id != new_status.id %]
</ins><span class="cx">           [% checked = workflow.${status.id}.${new_status.id}.defined ? 1 : 0 %]
</span><span class="cx">           [% mandatory = (status.id &amp;&amp; new_status.name == Param(&quot;duplicate_or_move_bug_status&quot;)) ? 1 : 0 %]
</span><del>-          &lt;td align=&quot;center&quot; class=&quot;checkbox-cell[% &quot; checked&quot; IF checked || mandatory %]&quot;
</del><ins>+          &lt;td class=&quot;[% &quot;checked&quot; IF checked || mandatory %]&quot;
</ins><span class="cx">               title=&quot;From [% status.name FILTER html %] to [% new_status.name FILTER html %]&quot;&gt;
</span><span class="cx">             &lt;input type=&quot;checkbox&quot; name=&quot;w_[% status.id %]_[% new_status.id %]&quot;
</span><span class="cx">                    id=&quot;w_[% status.id %]_[% new_status.id %]&quot; onclick=&quot;toggle_cell(this)&quot;
</span><span class="lines">@@ -79,7 +69,7 @@
</span><span class="cx">                    [%+ &quot;disabled='disabled'&quot; IF mandatory %]&gt;
</span><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% ELSE %]
</span><del>-          &lt;td class=&quot;checkbox-cell forbidden&quot;&gt;&amp;nbsp;&lt;/td&gt;
</del><ins>+          &lt;td class=&quot;forbidden&quot;&gt;&amp;nbsp;&lt;/td&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -97,7 +87,7 @@
</span><span class="cx">   page and editing the &lt;i&gt;duplicate_or_move_bug_status&lt;/i&gt; parameter.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p align=&quot;center&quot;&gt;
</del><ins>+&lt;p class=&quot;center&quot;&gt;
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;submit&quot; id=&quot;update_workflow&quot; value=&quot;Commit Changes&quot;&gt; -
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentchoosehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/choose.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/choose.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/choose.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,18 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gavin Shelley &lt;bugzilla@chimpychompy.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-   title = &quot;Locate attachment&quot;,
-   onload = &quot;document.forms['choose-id'].id.focus()&quot;
- %]
</del><ins>+   title = &quot;Locate or Create Attachment&quot;
+%]
</ins><span class="cx"> 
</span><span class="cx"> &lt;form name=&quot;choose-id&quot; method=&quot;get&quot; action=&quot;attachment.cgi&quot;&gt;
</span><span class="cx">   &lt;p&gt;Access an attachment by entering its ID into the form below:&lt;/p&gt;
</span><del>-  &lt;p&gt;Attachment ID: &lt;input name=&quot;id&quot; size=&quot;6&quot;&gt;
</del><ins>+  &lt;p&gt;Attachment ID: &lt;input name=&quot;id&quot; size=&quot;6&quot; autofocus required&gt;
</ins><span class="cx">   &lt;button name=&quot;action&quot; value=&quot;edit&quot; id=&quot;edit&quot;&gt;Details&lt;/button&gt;
</span><span class="cx">   &lt;button name=&quot;action&quot; value=&quot;view&quot; id=&quot;view&quot;&gt;View&lt;/button&gt;
</span><span class="cx">   &lt;/p&gt;
</span><span class="lines">@@ -34,10 +19,16 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;show_bug.cgi&quot;&gt;
</span><del>-  &lt;p&gt;Or, access it from the list of attachments in its associated [% terms.bug %] report:&lt;/p&gt;
-  &lt;p&gt;[% terms.Bug %] ID: &lt;input name=&quot;id&quot; size=&quot;6&quot;&gt;
</del><ins>+  &lt;p&gt;Or, Access it from the list of attachments in its associated [% terms.bug %] report:&lt;/p&gt;
+  &lt;p&gt;[% terms.Bug %] ID: &lt;input name=&quot;id&quot; size=&quot;6&quot; required&gt;
</ins><span class="cx">   &lt;input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;View&quot; id=&quot;action&quot;&gt;
</span><span class="cx">   &lt;/p&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><ins>+&lt;form method=&quot;get&quot; action=&quot;attachment.cgi&quot;&gt;
+  &lt;p&gt;Or, Create a new attachment by entering its [% terms.bug %] Id below:&lt;/p&gt;
+  &lt;p&gt;[% terms.Bug %] ID: &lt;input name=&quot;bugid&quot; size=&quot;6&quot; required&gt;
+    &lt;button name=&quot;action&quot; value=&quot;enter&quot; id=&quot;action&quot;&gt;New Attachment&lt;/button&gt;
+  &lt;/p&gt;
+&lt;/form&gt;
</ins><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentconfirmdeletehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/confirm-delete.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/confirm-delete.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/confirm-delete.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -18,8 +11,6 @@
</span><span class="cx">   # token: string; The token used to identify the session.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Delete Attachment [% a.id FILTER html %] of [% terms.Bug %] [%+ a.bug_id FILTER html %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -26,51 +17,48 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  doc_section = &quot;attachments.html&quot;
</del><ins>+  style_urls = ['skins/standard/admin.css']
+  doc_section = &quot;using/editing.html#attachments&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-  &lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-    &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Field&lt;/th&gt;
-    &lt;th valign=&quot;top&quot; align=&quot;left&quot;&gt;Value&lt;/th&gt;
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Field&lt;/th&gt;
+    &lt;th&gt;Value&lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Attachment ID:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;td&gt;Attachment ID&lt;/td&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;a href=&quot;attachment.cgi?id=[% a.id FILTER html %]&quot;&gt;[% a.id FILTER html %]&lt;/a&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;File name:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;[% a.filename FILTER html %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;File name&lt;/td&gt;
+    &lt;td&gt;[% a.filename FILTER html %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Description:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;[% a.description FILTER html %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;Description&lt;/td&gt;
+    &lt;td&gt;[% a.description FILTER html %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Contained in [% terms.Bug %]:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;[% a.bug_id FILTER bug_link(a.bug_id) FILTER none %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;Contained in [% terms.Bug %]&lt;/td&gt;
+    &lt;td&gt;[% a.bug_id FILTER bug_link(a.bug_id) FILTER none %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Creator:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;[% a.attacher.identity FILTER html %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;Creator&lt;/td&gt;
+    &lt;td&gt;[% a.attacher.identity FILTER html %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot;&gt;Creation Date:&lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;[% a.attached FILTER time %]&lt;/td&gt;
</del><ins>+    &lt;td&gt;Creation Date&lt;/td&gt;
+    &lt;td&gt;[% a.attached FILTER time %]&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Confirmation&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;0&quot; cellpadding=&quot;20&quot; width=&quot;70%&quot; bgcolor=&quot;red&quot;&gt;
-  &lt;tr&gt;
-    &lt;td&gt;
-      The content of this attachment will be deleted in an &lt;b&gt;irreversible&lt;/b&gt; way.
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+&lt;p class=&quot;confirmation&quot;&gt;
+  The content of this attachment will be deleted in an &lt;b&gt;irreversible&lt;/b&gt; way.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Do you really want to delete this attachment?&lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [%# Define strings that will serve as the title and header of this page %]
</span><span class="cx"> [% title = BLOCK %]Create New Attachment for [% terms.Bug %] #[% bug.bug_id %][% END %]
</span><span class="cx"> [% header = BLOCK %]Create New Attachment for
</span><span class="lines">@@ -33,10 +16,11 @@
</span><span class="cx">   title = title
</span><span class="cx">   header = header
</span><span class="cx">   subheader = subheader
</span><del>-  style_urls = [ 'skins/standard/attachment.css' ]
</del><ins>+  generate_api_token = 1
+  style_urls = ['skins/standard/bug.css']
</ins><span class="cx">   yui = [ 'autocomplete' ]
</span><span class="cx">   javascript_urls = [ &quot;js/attachment.js&quot;, 'js/field.js', &quot;js/util.js&quot;, &quot;js/TUI.js&quot; ]
</span><del>-  doc_section = &quot;attachments.html&quot;
</del><ins>+  doc_section = &quot;using/editing.html#attachments&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="lines">@@ -56,23 +40,19 @@
</span><span class="cx">     [% PROCESS attachment/createformcontents.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx">     [%# Additional fields for attachments on existing bugs: %]
</span><del>-    &lt;tr&gt;
-      &lt;th&gt;Obsoletes:&lt;/th&gt;
-      &lt;td&gt;
-        &lt;em&gt;(optional) Check each existing attachment made obsolete by your new attachment.&lt;/em&gt;&lt;br&gt;
-        [% IF attachments.size %]
</del><ins>+    [% IF attachments.size %]
+      &lt;tr&gt;
+        &lt;th&gt;Obsoletes:&lt;/th&gt;
+        &lt;td&gt;
+          &lt;em&gt;(optional) Check each existing attachment made obsolete by your new attachment.&lt;/em&gt;&lt;br&gt;
</ins><span class="cx">           [% FOREACH attachment = attachments %]
</span><del>-            [% IF ((attachment.isprivate == 0) || user.is_insider) %]
-              &lt;input type=&quot;checkbox&quot; id=&quot;[% attachment.id %]&quot;
-                   name=&quot;obsolete&quot; value=&quot;[% attachment.id %]&quot;&gt;
-              &lt;a href=&quot;attachment.cgi?id=[% attachment.id %]&amp;amp;action=edit&quot;&gt;[% attachment.id %]: [% attachment.description FILTER html %]&lt;/a&gt;&lt;br&gt;
-            [% END %]
</del><ins>+            &lt;input type=&quot;checkbox&quot; id=&quot;[% attachment.id %]&quot;
+                 name=&quot;obsolete&quot; value=&quot;[% attachment.id %]&quot;&gt;
+            &lt;a href=&quot;attachment.cgi?id=[% attachment.id %]&amp;amp;action=edit&quot;&gt;[% attachment.id %]: [% attachment.description FILTER html %]&lt;/a&gt;&lt;br&gt;
</ins><span class="cx">           [% END %]
</span><del>-        [% ELSE %]
-            [no attachments can be made obsolete]
-        [% END %]
-      &lt;/td&gt;
-    &lt;/tr&gt;
</del><ins>+        &lt;/td&gt;
+      &lt;/tr&gt;
+    [% END %]
</ins><span class="cx"> 
</span><span class="cx">     [% IF (user.id != bug.assigned_to.id) AND user.in_group(&quot;editbugs&quot;, bug.product_id) %]
</span><span class="cx">       &lt;tr&gt;
</span><span class="lines">@@ -105,14 +85,21 @@
</span><span class="cx">       &lt;th&gt;&lt;label for=&quot;comment&quot;&gt;Comment:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;em&gt;(optional) Add a comment about this attachment to the [% terms.bug %].&lt;/em&gt;&lt;br&gt;
</span><del>-        [% INCLUDE global/textarea.html.tmpl
-          name    = 'comment'
-          id      = 'comment'
-          minrows = 6
-          maxrows = 15
-          cols    = constants.COMMENT_COLS
-          wrap    = 'soft'
</del><ins>+        [% INCLUDE bug/comment.html.tmpl
+           minrows = 6
+           maxrows = 15
+           cols    = constants.COMMENT_COLS
+           wrap    = 'soft'
</ins><span class="cx">         %]
</span><ins>+        [% IF NOT bug.cc.contains(user.login) %]
+          &lt;br&gt;
+          &lt;input type=&quot;checkbox&quot; id=&quot;addselfcc&quot; name=&quot;addselfcc&quot;
+            [%~ ' checked=&quot;checked&quot;'
+                IF user.settings.state_addselfcc.value == 'always'
+                   || (!bug.user.has_any_role
+                       &amp;&amp; user.settings.state_addselfcc.value == 'cc_unless_role') %]&gt;
+          &lt;label for=&quot;addselfcc&quot;&gt;Add me to CC list&lt;/label&gt;
+        [% END %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF user.is_insider %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/created.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/created.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/created.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,7 +12,6 @@
</span><span class="cx">   #  Possible values: autodetect, list, manual.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% bug = bugs.0 %]
</span><span class="cx"> [% PROCESS &quot;bug/show-header.html.tmpl&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="lines">@@ -43,13 +30,13 @@
</span><span class="cx">     [% PROCESS &quot;bug/process/bugmail.html.tmpl&quot; mailing_bugid = attachment.bug_id %]
</span><span class="cx">     [% IF convertedbmp %]
</span><span class="cx">       &lt;p&gt;
</span><del>-        &lt;b&gt;Note:&lt;/b&gt; [% terms.Bugzilla %] automatically converted your BMP image file to a
</del><ins>+        &lt;b&gt;Note:&lt;/b&gt; Bugzilla automatically converted your BMP image file to a
</ins><span class="cx">         compressed PNG format.
</span><span class="cx">       &lt;/p&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">     [% IF contenttypemethod == 'autodetect' %]
</span><span class="cx">       &lt;p&gt;
</span><del>-        &lt;b&gt;Note:&lt;/b&gt; [% terms.Bugzilla %] automatically detected the content type
</del><ins>+        &lt;b&gt;Note:&lt;/b&gt; Bugzilla automatically detected the content type
</ins><span class="cx">         &lt;em&gt;[% attachment.contenttype FILTER html %]&lt;/em&gt; for this attachment.  If this is
</span><span class="cx">         incorrect, correct the value by editing the attachment's
</span><span class="cx"> [%# if WEBKIT_CHANGES %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentcreateformcontentshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/createformcontents.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/createformcontents.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/createformcontents.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Joel Peshkin &lt;bugreport@peshkin.net&gt;
-  #                 Erik Stambaugh &lt;erik@dasbistro.com&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><ins>+[% max_local = Param('maxlocalattachment') * 1024 %]
+[% max_limit = Param('maxattachmentsize')&gt; max_local ? Param('maxattachmentsize') : max_local %]
</ins><span class="cx"> &lt;tr class=&quot;attachment_data&quot;&gt;
</span><span class="cx">   &lt;th&gt;&lt;label for=&quot;data&quot;&gt;File&lt;/label&gt;:&lt;/th&gt;
</span><span class="cx">   &lt;td&gt;
</span><span class="lines">@@ -29,6 +16,7 @@
</span><span class="cx">                                              javascript:TUI_toggle_class('attachment_data')&quot;
</span><span class="cx">     &gt;paste text as attachment&lt;/a&gt;).&lt;br&gt;
</span><span class="cx">     &lt;input type=&quot;file&quot; id=&quot;data&quot; name=&quot;data&quot; size=&quot;50&quot; onchange=&quot;DataFieldHandler()&quot;&gt;
</span><ins>+    &lt;br&gt;&lt;em&gt;(File size limit: [% max_limit FILTER html %] KB)&lt;/em&gt;
</ins><span class="cx">   &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;tr class=&quot;attachment_text_field&quot;&gt;
</span><span class="lines">@@ -107,6 +95,7 @@
</span><span class="cx">                   {type =&gt; &quot;image/gif&quot;,  desc =&gt; &quot;GIF image&quot;},
</span><span class="cx">                   {type =&gt; &quot;image/jpeg&quot;, desc =&gt; &quot;JPEG image&quot;},
</span><span class="cx">                   {type =&gt; &quot;image/png&quot;,  desc =&gt; &quot;PNG image&quot;},
</span><ins>+                  {type =&gt; &quot;application/pdf&quot;, desc =&gt; &quot;PDF document&quot;},
</ins><span class="cx">                   {type =&gt; &quot;application/octet-stream&quot;, desc =&gt; &quot;binary file&quot;}]
</span><span class="cx">   %]
</span><span class="cx">   [% Hook.process(&quot;mimetypes&quot;, &quot;attachment/createformcontents.html.tmpl&quot;) %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentdelete_reasontxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/delete_reason.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/delete_reason.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/delete_reason.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,18 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="cx">   # attachment: object of the attachment the user wants to delete.
</span><span class="cx">   # reason: string; The reason provided by the user.
</span><del>-  # date: the date when the request to delete the attachment was made.
</del><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-The content of attachment [% attachment.id %] has been deleted by
-    [%+ user.identity %]
-[% IF reason %]
-who provided the following reason:
</del><ins>+The content of attachment [% attachment.id %] has been deleted
+[%~ IF reason %] for the following reason:
</ins><span class="cx"> 
</span><span class="cx"> [%+ reason %]
</span><del>-[% ELSE %]
-without providing any reason.
</del><span class="cx"> [% END %]
</span><del>-
-The token used to delete this attachment was generated at [% date FILTER time %].
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentdifffilehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-file.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-file.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-file.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): John Keiser &lt;jkeiser@netscape.com&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# This line is really long for a reason: to get rid of any possible textnodes
</span><span class="lines">@@ -27,12 +14,12 @@
</span><span class="cx">   # considers the first row to determine column widths. If a colspan is found,
</span><span class="cx">   # it then share the width equally among all columns, which we don't want.
</span><span class="cx">   #%]
</span><del>-&lt;table class=&quot;file_table&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;td class=&quot;num&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class=&quot;num&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;file_head&quot; colspan=&quot;4&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;return twisty_click(this)&quot;&gt;[% collapsed ? '(+)' : '(-)' %]&lt;/a&gt;&lt;input type=&quot;checkbox&quot; name=&quot;[% file.filename FILTER html %]&quot;[% collapsed ? '' : ' checked' %] style=&quot;display: none&quot;&gt;
-  [% IF lxr_prefix &amp;&amp; !file.is_add %]
-    &lt;a href=&quot;[% lxr_prefix %]&quot;&gt;[% file.filename FILTER html %]&lt;/a&gt;
-  [% ELSE %]
-    [% file.filename FILTER html %]
-  [% END %]
</del><ins>+&lt;table class=&quot;file_table&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;td class=&quot;num&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td
+ class=&quot;num&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;file_head&quot; colspan=&quot;4&quot;&gt;&lt;a href=&quot;#&quot;
+ onclick=&quot;return twisty_click(this)&quot;&gt;[% collapsed ? '(+)' : '(-)' %]&lt;/a&gt;&lt;input
+ type=&quot;checkbox&quot; name=&quot;[% file.filename FILTER html %]&quot;[% collapsed ? '' : ' checked' %]
+ class=&quot;bz_default_hidden&quot;&gt;
+  [% file.filename FILTER html %]
</ins><span class="cx">   [% IF file.plus_lines %]
</span><span class="cx">     [% IF file.minus_lines %]
</span><span class="cx">       (-[% file.minus_lines %]&amp;nbsp;/&amp;nbsp;+[% file.plus_lines %]&amp;nbsp;lines)
</span><span class="lines">@@ -52,36 +39,27 @@
</span><span class="cx"> [% section_num = 0 %]
</span><span class="cx"> [% FOREACH section = sections %]
</span><span class="cx">   [% section_num = section_num + 1 %]
</span><del>-  &lt;tr&gt;&lt;th colspan=&quot;4&quot; class=&quot;section_head&quot;&gt;
-    &lt;table id=&quot;[% file.filename FILTER html %]_sec[% section_num %]&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
-    &lt;tr&gt;&lt;th width=&quot;95%&quot; align=&quot;left&quot;&gt;
-  [% IF file.is_add %]
-    Added
-  [% ELSIF file.is_remove %]
-    [% IF bonsai_prefix %]
-      &lt;a href=&quot;[% bonsai_prefix %]&quot;&gt;Removed&lt;/a&gt;
-    [% ELSE %]
-      Removed
-    [% END %]
-  [% ELSE %]
-    [% IF bonsai_prefix %]
-      &lt;a href=&quot;[% bonsai_prefix %]#[% section.old_start %]&quot;&gt;
-    [% END %]
-    [% IF section.old_lines &gt; 1 %]
-      &amp;nbsp;Lines&amp;nbsp;[% section.old_start %]-[% section.old_start + 
-                                             section.old_lines - 1 %]
-    [% ELSE %]
-      Line&amp;nbsp;[% section.old_start %]
-    [% END %]
-    [% IF bonsai_prefix %]
-      &lt;/a&gt;
-    [% END %]
-    &amp;nbsp;&amp;nbsp;[% section.func_info FILTER html IF section.func_info %]
-  [% END %] 
-    &lt;/th&gt;&lt;th&gt;
-  &lt;a href=&quot;#[% file.filename FILTER html %]_sec[% section_num %]&quot;&gt;Link&amp;nbsp;Here&lt;/a&gt;&amp;nbsp;
-    &lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;
-  &lt;/th&gt;&lt;/tr&gt;
</del><ins>+  &lt;tr&gt;
+    &lt;th colspan=&quot;4&quot; class=&quot;section_head&quot;&gt;
+      &lt;span id=&quot;[% file.filename FILTER html %]_sec[% section_num %]&quot; class=&quot;lines_count&quot;&gt;
+        [% IF file.is_add %]
+          Added
+        [% ELSIF file.is_remove %]
+          Removed
+        [% ELSE %]
+          [% IF section.old_lines &gt; 1 %]
+            Lines&amp;nbsp;[% section.old_start %]-[% section.old_start + section.old_lines - 1 %]
+          [% ELSE %]
+            Line&amp;nbsp;[% section.old_start %]
+          [% END %]
+          [%+ section.func_info FILTER html IF section.func_info %]
+        [% END %]
+      &lt;/span&gt;
+      &lt;span class=&quot;link_here&quot;&gt;
+        &lt;a href=&quot;#[% file.filename FILTER html %]_sec[% section_num %]&quot;&gt;Link&amp;nbsp;Here&lt;/a&gt;
+      &lt;/span&gt;
+    &lt;/th&gt;
+  &lt;/tr&gt;
</ins><span class="cx">   [% current_line_old = section.old_start %]
</span><span class="cx">   [% current_line_new = section.new_start %]
</span><span class="cx">   [% FOREACH group = section.groups %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentdifffooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): John Keiser &lt;jkeiser@netscape.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;/form&gt;
</span><span class="lines">@@ -23,8 +11,6 @@
</span><span class="cx"> [% IF headers %]
</span><span class="cx"> 
</span><span class="cx">   &lt;br&gt;
</span><del>-
-  [% PROCESS global/variables.none.tmpl %]
</del><span class="cx">   &lt;span&gt;Return to [% &quot;$terms.bug $bugid&quot; FILTER bug_link(bugid) FILTER none %]&lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">   [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentdiffheaderhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-header.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-header.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/diff-header.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): John Keiser &lt;jkeiser@netscape.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Define strings that will serve as the title and header of this page %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   [% IF attachid %]
</span><span class="cx"> Attachment #[% attachid %] for [% terms.bug %] #[% bugid %]
</span><span class="lines">@@ -51,20 +37,22 @@
</span><span class="cx">   [% subheader = BLOCK %]
</span><span class="cx">     [% bugsummary FILTER html %]
</span><span class="cx">   [% END %]
</span><del>-  [% PROCESS global/header.html.tmpl doc_section = &quot;attachments.html#patchviewer&quot;
-                                     javascript_urls = &quot;js/attachment.js&quot;
-                                     style_urls = ['skins/standard/attachment.css'] %]
</del><ins>+  [% PROCESS global/header.html.tmpl javascript_urls = [ &quot;js/attachment.js&quot; ]
+                                     style_urls = ['skins/standard/bug.css'] %]
</ins><span class="cx"> [% ELSE %]
</span><ins>+  &lt;!DOCTYPE html&gt;
</ins><span class="cx">   &lt;html&gt;
</span><del>-  &lt;head&gt;
-  &lt;link href=&quot;[% 'skins/standard/attachment.css' FILTER mtime %]&quot; 
-        rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
-  &lt;script src=&quot;[% 'js/attachment.js' FILTER mtime %]&quot; 
-          type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body onload=&quot;[% onload FILTER html %]&quot;&gt;
</del><ins>+    &lt;head&gt;
+      &lt;link href=&quot;[% 'skins/standard/global.css' FILTER mtime %]&quot;
+            rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
+      &lt;link href=&quot;[% 'skins/standard/bug.css' FILTER mtime %]&quot;
+            rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
+      &lt;script src=&quot;[% 'js/attachment.js' FILTER mtime %]&quot;
+              type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+    &lt;/head&gt;
+    &lt;body onload=&quot;[% onload FILTER html %]&quot;&gt;
</ins><span class="cx"> [% END %]
</span><del>-  
</del><ins>+
</ins><span class="cx"> [%# If we have attachid, we are in diff, otherwise we're in interdiff %]
</span><span class="cx"> [% IF attachid %]
</span><span class="cx">   [%# HEADER %]
</span><span class="lines">@@ -71,13 +59,14 @@
</span><span class="cx">   [% IF headers %]
</span><span class="cx">     &lt;a href=&quot;[% PROCESS viewurl id=attachid %]&quot;&gt;View&lt;/a&gt;
</span><span class="cx">     | &lt;a href=&quot;[% PROCESS editurl id=attachid %]&quot;&gt;Details&lt;/a&gt;
</span><del>-    | &lt;a href=&quot;[% PROCESS diffurl id=attachid %]&amp;amp;context=[% context FILTER uri %]&amp;amp;collapsed=[% collapsed FILTER uri %]&amp;amp;headers=[% headers FILTER uri %]&amp;amp;format=raw&quot;&gt;Raw&amp;nbsp;Unified&lt;/a&gt;
</del><ins>+    | &lt;a href=&quot;[% PROCESS diffurl id=attachid %]&amp;amp;collapsed=[% collapsed FILTER uri %]&amp;amp;headers=[%
+               headers FILTER uri %]&amp;amp;format=raw&quot;&gt;Raw&amp;nbsp;Unified&lt;/a&gt;
</ins><span class="cx">     | Return to [% &quot;$terms.bug $bugid&quot; FILTER bug_link(bugid) FILTER none %]
</span><span class="cx">   [% END %]
</span><span class="cx">   [% IF other_patches.size &gt; 0 %]
</span><span class="cx">     [% IF headers %] |[%END%]
</span><span class="cx">     Differences between
</span><del>-    &lt;form style=&quot;display: inline&quot; action=&quot;attachment.cgi&quot;&gt;
</del><ins>+    &lt;form class=&quot;inline&quot; action=&quot;attachment.cgi&quot;&gt;
</ins><span class="cx">       &lt;select name=&quot;oldid&quot;&gt;
</span><span class="cx">       [% FOREACH patch = other_patches %]
</span><span class="cx">         &lt;option value=&quot;[% patch.id %]&quot;
</span><span class="lines">@@ -111,38 +100,20 @@
</span><span class="cx">    onmouseout=&quot;window.status = lastStatus; return true&quot;
</span><span class="cx">    onclick=&quot;return expand_all()&quot;&gt;Expand All&lt;/a&gt;
</span><span class="cx"> 
</span><del>-[% IF do_context %]
-  [%# only happens for normal viewing, not interdiff %]
-  | &lt;span style='font-weight: bold'&gt;Context:&lt;/span&gt;
-  [% IF context == &quot;patch&quot; %]
-    (&lt;strong&gt;Patch&lt;/strong&gt; / 
-  [% ELSE %]
-    (&lt;a href=&quot;[% PROCESS diffurl id=attachid %]&amp;amp;headers=[% headers FILTER uri %]&quot;&gt;Patch&lt;/a&gt; / 
-  [% END %]
-  [% IF context == &quot;file&quot; %]
-    &lt;strong&gt;File&lt;/strong&gt; /
-  [% ELSE %]
-    &lt;a href=&quot;[% PROCESS diffurl id=attachid %]&amp;amp;headers=[% headers FILTER uri %]&amp;amp;context=file&quot;&gt;File&lt;/a&gt; / 
-  [% END %]
-
-  [% IF context == &quot;patch&quot; || context == &quot;file&quot; %]
-    [% context = 3 %]
-  [% END %]
-  [%# textbox for context %]
-  &lt;form style=&quot;display: inline&quot; action=&quot;attachment.cgi&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;diff&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% attachid %]&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;collapsed&quot; value=&quot;[% collapsed FILTER html %]&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;headers&quot; value=&quot;[% headers FILTER html %]&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;context&quot; value=&quot;[% context FILTER html %]&quot; size=&quot;3&quot;&gt;&lt;/form&gt;)
-[% END %]
-
</del><span class="cx"> [% IF warning %]
</span><del>-&lt;h2 class=&quot;warning&quot;&gt;Warning: 
</del><ins>+&lt;h2 class=&quot;warning&quot;&gt;
+  Warning:
</ins><span class="cx">   [% IF warning == &quot;interdiff1&quot; %]
</span><del>-  this difference between two patches may show things in the wrong places due
-  to a limitation in [% terms.Bugzilla %] when comparing patches with different
-  sets of files.
</del><ins>+    this difference between two patches may show things in the wrong places due
+    to a limitation in Bugzilla when comparing patches with
+    different sets of files.
+  [% ELSIF warning == &quot;interdiff2&quot; %]
+    this difference between two patches may be inaccurate due to a limitation
+    in Bugzilla when comparing patches made against different
+    revisions.
+  [% ELSIF warning == &quot;interdiff3&quot; %]
+    interdiff encountered errors while comparing these patches.
</ins><span class="cx">   [% END %]
</span><del>-  [% IF warning == &quot;interdiff2&quot; %]
-  this difference between two patches may be inaccurate due to a limitation in
-  [%+ terms.Bugzilla %] when comparing patches made against different revisions.
-  [% END %]
</del><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> [% ELSE %]
</span><span class="cx">     &lt;br&gt;&lt;br&gt;
</span><span class="lines">@@ -150,6 +121,4 @@
</span><span class="cx">  
</span><span class="cx"> [%# Restore Stuff %]
</span><span class="cx"> &lt;form name=&quot;checkboxform&quot; action=&quot;attachment.cgi&quot;&gt;
</span><del>-&lt;input type=&quot;checkbox&quot; name=&quot;restore_indicator&quot; style=&quot;display: none&quot;&gt;
-
-
</del><ins>+&lt;input type=&quot;checkbox&quot; name=&quot;restore_indicator&quot; class=&quot;bz_default_hidden&quot;&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,15 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [%# Define strings that will serve as the title and header of this page %]
</span><span class="cx"> [% title = BLOCK %]
</span><span class="cx">   Attachment [% attachment.id %] Details for [% terms.Bug %] [%+ attachment.bug_id %]
</span><ins>+  &amp;ndash; [% attachment.description FILTER html %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> [% header = BLOCK %]
</span><span class="cx">   Attachment [% attachment.id %] Details for
</span><span class="lines">@@ -36,15 +21,16 @@
</span><span class="cx">   title = title
</span><span class="cx">   header = header
</span><span class="cx">   subheader = subheader
</span><del>-  doc_section = &quot;attachments.html&quot;
</del><ins>+  generate_api_token = 1
+  doc_section = &quot;using/editing.html#attachments&quot;
</ins><span class="cx">   javascript_urls = ['js/attachment.js', 'js/field.js']
</span><del>-  style_urls = ['skins/standard/attachment.css']
</del><ins>+  style_urls = ['skins/standard/bug.css']
</ins><span class="cx">   yui = [ 'autocomplete' ]
</span><span class="cx">   bodyclasses = &quot;no_javascript&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [%# No need to display the Diff button and iframe if the attachment is not a patch. %]
</span><del>-[% use_patchviewer = (feature_enabled('patch_viewer') &amp;&amp; attachment.ispatch) %]
</del><ins>+[% use_patchviewer = (feature_enabled('patch_viewer') &amp;&amp; attachment.ispatch) ? 1 : 0 %]
</ins><span class="cx"> [% can_edit = attachment.validate_can_edit %]
</span><span class="cx"> [% editable_or_hide = can_edit ? &quot;&quot; : &quot; bz_hidden_option&quot; %]
</span><span class="cx"> 
</span><span class="lines">@@ -75,7 +61,7 @@
</span><span class="cx">             [%+ attachment.datasize FILTER unitconvert %]
</span><span class="cx">           [% ELSE %]
</span><span class="cx">             &lt;em&gt;deleted&lt;/em&gt;
</span><del>-          [% END %], created by [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %]
</del><ins>+          [% END %], created by [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %] on [%+ attachment.attached FILTER time %]
</ins><span class="cx">           [% IF attachment.isprivate %];
</span><span class="cx">             &lt;span class=&quot;bz_private&quot;&gt;only visible to &lt;strong&gt;[% Param('insidergroup') FILTER html %]&lt;/strong&gt; members&lt;/span&gt;
</span><span class="cx">           [% END %]
</span><span class="lines">@@ -116,7 +102,12 @@
</span><span class="cx">             &lt;span class=&quot;label&quot;&gt;Creator:&lt;/span&gt;
</span><span class="cx">             [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %]
</span><span class="cx">           &lt;/div&gt;
</span><del>-          
</del><ins>+
+          &lt;div id=&quot;attachment_created&quot;&gt;
+            &lt;span class=&quot;label&quot;&gt;Created:&lt;/span&gt;
+            [%+ attachment.attached FILTER time %]
+          &lt;/div&gt;
+
</ins><span class="cx">           &lt;div id=&quot;attachment_size&quot;&gt;
</span><span class="cx">             &lt;span class=&quot;label&quot;&gt;Size:&lt;/span&gt;
</span><span class="cx">             [% IF attachment.datasize %]
</span><span class="lines">@@ -208,40 +199,44 @@
</span><span class="cx">                  readonly = 'readonly'
</span><span class="cx">               %]
</span><span class="cx">             [% ELSE %]
</span><del>-              &lt;iframe id=&quot;viewFrame&quot; src=&quot;attachment.cgi?id=[% attachment.id %]&quot;&gt;
</del><ins>+              &lt;iframe id=&quot;viewFrame&quot; src=&quot;attachment.cgi?id=[% attachment.id %]&quot; sandbox&gt;
</ins><span class="cx">                 &lt;b&gt;You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
</span><span class="cx">                 &lt;a href=&quot;attachment.cgi?id=[% attachment.id %]&quot;&gt;View the attachment on a separate page&lt;/a&gt;.&lt;/b&gt;
</span><span class="cx">               &lt;/iframe&gt;
</span><span class="cx">             [% END %]
</span><del>-            &lt;script type=&quot;text/javascript&quot;&gt;
-              &lt;!--
-              var patchviewerinstalled = 0;
-              var attachment_id = [% attachment.id %];
-              if (typeof document.getElementById == &quot;function&quot;) {
-                [% IF use_patchviewer %]
-                  var patchviewerinstalled = 1;
-                  document.write('&lt;iframe id=&quot;viewDiffFrame&quot; class=&quot;bz_default_hidden&quot;&gt;&lt;\/iframe&gt;');
-                [% END %]
-                [% IF user.id %]
</del><ins>+
+            [% IF use_patchviewer %]
+              &lt;iframe id=&quot;viewDiffFrame&quot; class=&quot;bz_default_hidden&quot;&gt;&lt;/iframe&gt;
+            [% END %]
+
+            [% IF user.id %]
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-                  [% IF attachment.ispatch %]
-                  document.write('&lt;button type=&quot;button&quot; id=&quot;viewPrettyPatchButton&quot; onclick=&quot;viewPrettyPatch(attachment_id);&quot;&gt;View Formatted Diff&lt;\/button&gt;');
-                  [% END %]
</del><ins>+              [% IF attachment.ispatch %]
+              &lt;button type=&quot;button&quot; id=&quot;viewPrettyPatchButton&quot;
+                      onclick=&quot;viewPrettyPatch([% attachment.id %]);&quot;&gt;View Formatted Diff&lt;/button&gt;
+              [% END %]
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><del>-                  document.write('&lt;button type=&quot;button&quot; id=&quot;editButton&quot; onclick=&quot;editAsComment(patchviewerinstalled);&quot;&gt;Edit Attachment As Comment&lt;\/button&gt;');
-                  document.write('&lt;button type=&quot;button&quot; id=&quot;undoEditButton&quot; onclick=&quot;undoEditAsComment(patchviewerinstalled);&quot; class=&quot;bz_default_hidden&quot;&gt;Undo Edit As Comment&lt;\/button&gt;');
-                  document.write('&lt;button type=&quot;button&quot; id=&quot;redoEditButton&quot; onclick=&quot;redoEditAsComment(patchviewerinstalled);&quot; class=&quot;bz_default_hidden&quot;&gt;Redo Edit As Comment&lt;\/button&gt;');
-                  var editFrame = document.getElementById('editFrame');
-                  if (editFrame) {
-                    editFrame.disabled = false;
-                  }
-                [% END %]
-                [% IF use_patchviewer %]
-                  document.write('&lt;button type=&quot;button&quot; id=&quot;viewDiffButton&quot; onclick=&quot;viewDiff(attachment_id, patchviewerinstalled);&quot;&gt;View Attachment As Diff&lt;\/button&gt;');
-                [% END %]
-                document.write('&lt;button type=&quot;button&quot; id=&quot;viewRawButton&quot; onclick=&quot;viewRaw(patchviewerinstalled);&quot; class=&quot;bz_default_hidden&quot;&gt;View Attachment As Raw&lt;\/button&gt;');
-              }
-              //--&gt;
</del><ins>+              &lt;button type=&quot;button&quot; id=&quot;editButton&quot; class=&quot;bz_default_hidden&quot;
+                      onclick=&quot;editAsComment([% use_patchviewer %]);&quot;&gt;Edit Attachment As Comment&lt;/button&gt;
+              &lt;button type=&quot;button&quot; id=&quot;undoEditButton&quot; class=&quot;bz_default_hidden&quot;
+                      onclick=&quot;undoEditAsComment([% use_patchviewer %]);&quot;&gt;Undo Edit As Comment&lt;/button&gt;
+              &lt;button type=&quot;button&quot; id=&quot;redoEditButton&quot; class=&quot;bz_default_hidden&quot;
+                      onclick=&quot;redoEditAsComment([% use_patchviewer %]);&quot;&gt;Redo Edit As Comment&lt;/button&gt;
+            [% END %]
+
+            [% IF use_patchviewer %]
+              &lt;button type=&quot;button&quot; id=&quot;viewDiffButton&quot; class=&quot;bz_default_hidden&quot;
+                      onclick=&quot;viewDiff([% attachment.id %], [% use_patchviewer %]);&quot;&gt;View Attachment As Diff&lt;/button&gt;
+            [% END %]
+            &lt;button type=&quot;button&quot; id=&quot;viewRawButton&quot; class=&quot;bz_default_hidden&quot;
+                    onclick=&quot;viewRaw([% use_patchviewer %]);&quot;&gt;View Attachment As Raw&lt;/button&gt;
+
+            &lt;script type=&quot;text/javascript&quot;&gt;
+              [% IF user.id %]
+                document.getElementById('editFrame').disabled = false;
+                YAHOO.util.Dom.removeClass(&quot;editButton&quot;, &quot;bz_default_hidden&quot;);
+              [% END %]
+              YAHOO.util.Dom.removeClass(&quot;viewDiffButton&quot;, &quot;bz_default_hidden&quot;);
</ins><span class="cx">             &lt;/script&gt;
</span><span class="cx">           &lt;/div&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="lines">@@ -275,16 +270,24 @@
</span><span class="cx">             &lt;label for=&quot;comment&quot;&gt;Comment (on the [% terms.bug %]):&lt;/label&gt;
</span><span class="cx">             [% classNames = 'block' %]
</span><span class="cx">             [% classNames = &quot;$classes bz_private&quot; IF attachment.isprivate %]
</span><del>-            [% INCLUDE global/textarea.html.tmpl
-              id      = 'comment'
-              name    = 'comment'
-              minrows = 10
-              cols    = 80
-              wrap    = 'soft'
-              classes = classNames          
</del><ins>+            [% INCLUDE bug/comment.html.tmpl
+               bug     = attachment.bug
+               minrows = 10
+               cols    = 80
+               classes = classNames
+               wrap    = 'soft'
</ins><span class="cx">             %]
</span><ins>+            [% IF NOT attachment.bug.cc.contains(user.login) %]
+              &lt;input type=&quot;checkbox&quot; id=&quot;addselfcc&quot; name=&quot;addselfcc&quot;
+                [%~ ' checked=&quot;checked&quot;'
+                    IF user.settings.state_addselfcc.value == 'always'
+                       || (!attachment.bug.user.has_any_role
+                           &amp;&amp; user.settings.state_addselfcc.value == 'cc_unless_role') %]&gt;
+              &lt;label for=&quot;addselfcc&quot;&gt;Add me to CC list&lt;/label&gt;
+            [% END %]
+            [% Hook.process('after_comment_textarea') %]
</ins><span class="cx">           &lt;/div&gt;
</span><del>-        [% END %]             
</del><ins>+        [% END %]
</ins><span class="cx">         &lt;div id=&quot;attachment_flags&quot;&gt;
</span><span class="cx">           [% IF attachment.flag_types.size &gt; 0 %]
</span><span class="cx">               [% PROCESS &quot;flag/list.html.tmpl&quot; flag_types = attachment.flag_types
</span><span class="lines">@@ -328,11 +331,18 @@
</span><span class="cx"> &lt;div id=&quot;attachment_list&quot;&gt;
</span><span class="cx">   Attachments on [% &quot;$terms.bug ${attachment.bug_id}&quot; FILTER bug_link(attachment.bug_id) FILTER none %]:
</span><span class="cx">   [% FOREACH a = attachments %]
</span><del>-    [% IF a == attachment.id %]
-      [%+ a %]
</del><ins>+    [% IF a.isobsolete %]
+      &lt;span class=&quot;bz_obsolete&quot;&gt;
+    [% END %]
+    [% IF a.id == attachment.id %]
+      [%+ a.id FILTER html %]
</ins><span class="cx">     [% ELSE %]
</span><del>-      &lt;a href=&quot;attachment.cgi?id=[% a %]&amp;amp;action=edit&quot;&gt;[% a %]&lt;/a&gt;
</del><ins>+      &lt;a href=&quot;attachment.cgi?id=[% a.id FILTER uri %]&amp;amp;action=edit&quot;
+         title=&quot;[% a.description FILTER html %]&quot;&gt;[% a.id FILTER html %]&lt;/a&gt;
</ins><span class="cx">     [% END %]
</span><ins>+    [% IF a.isobsolete %]
+      &lt;/span&gt;
+    [% END %]
</ins><span class="cx">     [% &quot; |&quot; UNLESS loop.last() %]
</span><span class="cx">   [% END %]
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentlisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% RETURN UNLESS attachments.size || Param(&quot;maxattachmentsize&quot;) || Param(&quot;maxlocalattachment&quot;) %]
</span><span class="lines">@@ -55,9 +42,9 @@
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;br&gt;
</span><del>-&lt;table id=&quot;attachment_table&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot;&gt;
</del><ins>+&lt;table id=&quot;attachment_table&quot;&gt;
</ins><span class="cx">   &lt;tr id=&quot;a0&quot;&gt;
</span><del>-    &lt;th colspan=&quot;[% show_attachment_flags ? 3 : 2 %]&quot; align=&quot;left&quot;&gt;
</del><ins>+    &lt;th colspan=&quot;[% show_attachment_flags ? 3 : 2 %]&quot; class=&quot;left&quot;&gt;
</ins><span class="cx">       Attachments
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="lines">@@ -64,6 +51,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% count = 0 %]
</span><span class="cx">   [% obsolete_attachments = 0 %]
</span><ins>+  [% user_cache = template_cache.users %]
</ins><span class="cx"> 
</span><span class="cx">   [% FOREACH attachment = attachments %]
</span><span class="cx">     [% count = count + 1 %]
</span><span class="lines">@@ -81,7 +69,7 @@
</span><span class="cx">                  [% IF attachment.ispatch &amp;&amp; !attachment.isobsolete %] style=&quot;background-color: rgb(255,255,200);&quot; [% END %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">       &gt;
</span><del>-        &lt;td valign=&quot;top&quot;&gt;
</del><ins>+        &lt;td&gt;
</ins><span class="cx">           [% IF attachment.datasize %]
</span><span class="cx">             &lt;a href=&quot;attachment.cgi?id=[% attachment.id %]&quot;
</span><span class="cx">                title=&quot;View the content of the attachment&quot;&gt;
</span><span class="lines">@@ -104,14 +92,21 @@
</span><span class="cx">             &lt;br&gt;
</span><span class="cx">             &lt;a href=&quot;#attach_[% attachment.id %]&quot;
</span><span class="cx">                title=&quot;Go to the comment associated with the attachment&quot;&gt;
</span><del>-              [%- attachment.attached FILTER time %]&lt;/a&gt;,
</del><ins>+              [%- attachment.attached FILTER time(&quot;%Y-%m-%d %H:%M %Z&quot;) %]&lt;/a&gt;,
</ins><span class="cx"> 
</span><del>-            [% INCLUDE global/user.html.tmpl who = attachment.attacher %]
</del><ins>+            [%# No need to recreate the exact same template if we already have it. %]
+            [% attacher_id = attachment.attacher.id %]
+            [% UNLESS user_cache.$attacher_id %]
+              [% user_cache.$attacher_id = BLOCK %]
+                [% INCLUDE global/user.html.tmpl who = attachment.attacher %]
+              [% END %]
+            [% END %]
+            [% user_cache.$attacher_id FILTER none %]
</ins><span class="cx">           &lt;/span&gt;
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">         [% IF show_attachment_flags %]
</span><del>-          &lt;td class=&quot;bz_attach_flags&quot; valign=&quot;top&quot;&gt;
</del><ins>+          &lt;td class=&quot;bz_attach_flags&quot;&gt;
</ins><span class="cx">             [% IF attachment.flags.size == 0 %]
</span><span class="cx">               &lt;i&gt;no flags&lt;/i&gt;
</span><span class="cx">             [% ELSE %]
</span><span class="lines">@@ -123,7 +118,7 @@
</span><span class="cx">                 [% ELSE %]
</span><span class="cx">                   [% flag.setter.nick FILTER html %]:
</span><span class="cx">                 [% END %]
</span><del>-                [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
</del><ins>+                [%+ flag.type.name FILTER html %][% flag.status %]
</ins><span class="cx">                 [%+ IF flag.status == &quot;?&quot; &amp;&amp; flag.requestee %]
</span><span class="cx">                   [% IF user.id %]
</span><span class="cx">                     (&lt;span title=&quot;[% flag.requestee.identity FILTER html %]&quot;&gt;[% flag.requestee.nick FILTER html %]&lt;/span&gt;)
</span><span class="lines">@@ -138,7 +133,7 @@
</span><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% END %]
</span><span class="cx"> 
</span><del>-        &lt;td valign=&quot;top&quot;&gt;
</del><ins>+        &lt;td&gt;
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><span class="cx">           [% IF attachment.ispatch &amp;&amp; user.id %]
</span><span class="cx">           &lt;a href=&quot;attachment.cgi?id=[% attachment.id %]&amp;amp;action=review&quot;&gt;Review Patch&lt;/a&gt; |
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentmidairhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/midair.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/midair.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/midair.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,7 +18,6 @@
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% PROCESS global/header.html.tmpl title = &quot;Mid-air collision!&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;h1&gt;Mid-air collision detected!&lt;/h1&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentshowmultiplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/show-multiple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/show-multiple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/show-multiple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% filtered_summary = bugsummary FILTER html %]
</span><span class="cx"> [% header = BLOCK %]View All Attachments for
</span><span class="cx">   [%+ &quot;$terms.Bug $bug.id&quot; FILTER bug_link(bug) FILTER none %][% END %]
</span><span class="lines">@@ -31,7 +18,7 @@
</span><span class="cx">   title = title
</span><span class="cx">   header = header
</span><span class="cx">   subheader = filtered_summary
</span><del>-  style_urls = ['skins/standard/attachment.css']
</del><ins>+  style_urls = ['skins/standard/bug.css']
</ins><span class="cx"> %]
</span><span class="cx"> [% IF hide_obsolete %]
</span><span class="cx">   &lt;div id=&quot;hidden_obsolete_message&quot;&gt;
</span><span class="lines">@@ -39,23 +26,17 @@
</span><span class="cx">     &lt;a href=&quot;attachment.cgi?bugid=[% bug.id FILTER html %]&amp;amp;action=viewall&quot;&gt;click here&lt;/a&gt;.
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> [% END %]
</span><del>-&lt;br&gt;
</del><span class="cx"> 
</span><span class="cx"> [% FOREACH a = attachments %]
</span><del>-
-  &lt;div align=&quot;center&quot;&gt;
-  &lt;table class=&quot;attachment_info&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;1&quot; width=&quot;75%&quot;&gt;
</del><ins>+&lt;div class=&quot;viewall_frame_container&quot;&gt;
+  &lt;table class=&quot;viewall_desc&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot; bgcolor=&quot;#cccccc&quot; colspan=&quot;6&quot;&gt;
-        &lt;big&gt;&lt;b&gt;Attachment #[% a.id %]&lt;/b&gt;&lt;/big&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;th colspan=&quot;6&quot; class=&quot;bz_attach_footer&quot;&gt;Attachment #[% a.id %]&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
-        [% a.description FILTER html FILTER obsolete(a.isobsolete) %]
-      &lt;/td&gt;
</del><ins>+      &lt;td&gt;[% a.description FILTER html FILTER obsolete(a.isobsolete) %]&lt;/td&gt;
</ins><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">         [% IF a.ispatch %]
</span><span class="cx">           &lt;i&gt;patch&lt;/i&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="lines">@@ -63,10 +44,10 @@
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;[% a.attached FILTER time %]&lt;/td&gt;
-      &lt;td valign=&quot;top&quot;&gt;[% a.datasize FILTER unitconvert %]&lt;/td&gt;
</del><ins>+      &lt;td&gt;[% a.attached FILTER time %]&lt;/td&gt;
+      &lt;td&gt;[% a.datasize FILTER unitconvert %]&lt;/td&gt;
</ins><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">         [% IF a.flags.size == 0 %]
</span><span class="cx">           &lt;i&gt;no flags&lt;/i&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="lines">@@ -81,9 +62,7 @@
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
-        &lt;a href=&quot;attachment.cgi?id=[% a.id %]&amp;amp;action=edit&quot;&gt;Details&lt;/a&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;td&gt;&lt;a href=&quot;attachment.cgi?id=[% a.id %]&amp;amp;action=edit&quot;&gt;Details&lt;/a&gt;&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -99,7 +78,7 @@
</span><span class="cx">          classes = 'viewall_frame'
</span><span class="cx">       %]
</span><span class="cx">     [% ELSE %]
</span><del>-      &lt;iframe src=&quot;attachment.cgi?id=[% a.id %]&quot; class=&quot;viewall_frame&quot;&gt;
</del><ins>+      &lt;iframe src=&quot;attachment.cgi?id=[% a.id %]&quot; class=&quot;viewall_frame&quot; sandbox&gt;
</ins><span class="cx">         &lt;b&gt;You cannot view the attachment on this page because your browser does not support IFRAMEs.
</span><span class="cx">         &lt;a href=&quot;attachment.cgi?id=[% a.id %]&quot;&gt;View the attachment on a separate page&lt;/a&gt;.&lt;/b&gt;
</span><span class="cx">       &lt;/iframe&gt;
</span><span class="lines">@@ -110,10 +89,7 @@
</span><span class="cx">       &lt;a href=&quot;attachment.cgi?id=[% a.id %]&quot;&gt;Download the attachment instead&lt;/a&gt;.
</span><span class="cx">     &lt;/b&gt;&lt;/p&gt;
</span><span class="cx">   [% END %]
</span><del>-  &lt;/div&gt;
-
-  &lt;br&gt;&lt;br&gt;
-
</del><ins>+&lt;/div&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultattachmentupdatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/updated.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/updated.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/updated.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,7 +10,6 @@
</span><span class="cx">   # attachment: object of the attachment we just attached.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% bug = bugs.0 %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;bug/show-header.html.tmpl&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugactivityshowhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/show.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/show.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/show.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,8 +14,6 @@
</span><span class="cx">   # activity/table.html.tmpl template fulfilled.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% filtered_desc = bug.short_desc FILTER html %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Changes made to $terms.bug $bug.bug_id&quot;
</span><span class="lines">@@ -35,7 +21,7 @@
</span><span class="cx">  %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  [% &quot;Back to $terms.bug $bug.bug_id&quot; FILTER bug_link(bug) FILTER none %]
</del><ins>+  Back to [% &quot;$terms.bug $bug.bug_id&quot; FILTER bug_link(bug) FILTER none %]
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS bug/activity/table.html.tmpl %]
</span><span class="lines">@@ -42,7 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% IF operations.size &gt; 0 %]
</span><span class="cx">   &lt;p&gt;
</span><del>-    [% &quot;Back to $terms.bug $bug.bug_id&quot; FILTER bug_link(bug) FILTER none %]
</del><ins>+    Back to [% &quot;$terms.bug $bug.bug_id&quot; FILTER bug_link(bug) FILTER none %]
</ins><span class="cx">   &lt;/p&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugactivitytablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/activity/table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
-  #                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -34,8 +20,6 @@
</span><span class="cx">   #                  it was affected by an old Bugzilla bug.)
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% PROCESS bug/time.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx"> [% IF incomplete_data %]
</span><span class="lines">@@ -49,8 +33,8 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% IF operations.size &gt; 0 %]
</span><del>-  &lt;table border cellpadding=&quot;4&quot;&gt;
-    &lt;tr&gt;
</del><ins>+  &lt;table id=&quot;bug_activity&quot;&gt;
+    &lt;tr class=&quot;column_header&quot;&gt;
</ins><span class="cx">       &lt;th&gt;Who&lt;/th&gt;
</span><span class="cx">       &lt;th&gt;When&lt;/th&gt;
</span><span class="cx">       &lt;th&gt;What&lt;/th&gt;
</span><span class="lines">@@ -60,10 +44,10 @@
</span><span class="cx"> 
</span><span class="cx">     [% FOREACH operation = operations %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td rowspan=&quot;[% operation.changes.size %]&quot; valign=&quot;top&quot;&gt;
</del><ins>+        &lt;td rowspan=&quot;[% operation.changes.size %]&quot;&gt;
</ins><span class="cx">           [% operation.who FILTER email FILTER html %]
</span><span class="cx">         &lt;/td&gt;
</span><del>-        &lt;td rowspan=&quot;[% operation.changes.size %]&quot; valign=&quot;top&quot;&gt;
</del><ins>+        &lt;td rowspan=&quot;[% operation.changes.size %]&quot;&gt;
</ins><span class="cx">           [% operation.when FILTER time %]
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">         [% FOREACH change = operation.changes %]
</span><span class="lines">@@ -110,7 +94,7 @@
</span><span class="cx">                change.fieldname == 'flagtypes.name' %]
</span><span class="cx">         [% display_value(change.fieldname, change_type) FILTER email FILTER html %]
</span><span class="cx">       [% ELSE %]
</span><del>-        [% display_value(change.fieldname, change_type) FILTER html %]
</del><ins>+        [% display_value(change.fieldname, change_type) FILTER html FILTER html_line_break %]
</ins><span class="cx">       [% END %]
</span><span class="cx">     [% ELSE %]
</span><span class="cx">       &amp;nbsp;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugchoosehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/choose.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/choose.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/choose.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = &quot;Search by $terms.bug number&quot;
</span><span class="cx">  %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcommenthtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/bug/comment.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/comment.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/comment.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  #
+  # This template supports the same parameters as global/textarea.html.tmpl
+  # with the exception of &quot;name&quot; and &quot;id&quot;, which will always be &quot;comment&quot;.
+  #%]
+
+[% IF feature_enabled('jsonrpc') %]
+  &lt;div id=&quot;comment_tabs&quot; role=&quot;tablist&quot;&gt;
+    &lt;div id=&quot;comment_tab&quot; class=&quot;comment_tab active_comment_tab&quot;
+          role=&quot;tab&quot; aria-selected=&quot;true&quot;
+          onclick=&quot;show_comment_edit()&quot;&gt;Comment&lt;/div&gt;
+    &lt;div id=&quot;comment_preview_tab&quot; class=&quot;comment_tab&quot;
+          role=&quot;tab&quot; aria-selected=&quot;false&quot;
+          onclick=&quot;show_comment_preview([% bug.id FILTER none %])&quot;&gt;Preview&lt;/div&gt;
+  &lt;/div&gt;
+[% END %]
+
+[% INCLUDE global/textarea.html.tmpl
+   name = &quot;comment&quot;
+   id   = &quot;comment&quot;
+%]
+
+[% IF feature_enabled('jsonrpc') %]
+  &lt;div id=&quot;comment_preview&quot; class=&quot;bz_default_hidden bz_comment&quot;&gt;
+    &lt;div id=&quot;comment_preview_loading&quot; class=&quot;bz_default_hidden&quot;&gt;Generating Preview...&lt;/div&gt;
+    &lt;div id=&quot;comment_preview_error&quot; class=&quot;bz_default_hidden&quot;&gt;&lt;/div&gt;
+    &lt;pre id=&quot;comment_preview_text&quot; class=&quot;bz_comment_text&quot;&gt;&lt;/pre&gt;
+  &lt;/div&gt;
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcommentshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/comments.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/comments.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/comments.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS bug/time.html.tmpl %]
</span><span class="lines">@@ -25,28 +11,54 @@
</span><span class="cx"> &lt;script src=&quot;[% 'js/comments.js' FILTER mtime %]&quot; type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><del>-[% DEFAULT start_at = 0 mode = &quot;show&quot; %]
-[% sort_order = user.settings.comment_sort_order.value %]
</del><ins>+&lt;script type=&quot;text/javascript&quot;&gt;
+&lt;!--
+  /* Adds the reply text to the 'comment' textarea */
+  function replyToComment(id, real_id, name) {
+      var prefix = &quot;(In reply to &quot; + name + &quot; from comment #&quot; + id + &quot;)\n&quot;;
+      var replytext = &quot;&quot;;
+      [% IF user.settings.quote_replies.value == 'quoted_reply' %]
+        /* pre id=&quot;comment_name_N&quot; */
+        var text_elem = document.getElementById('comment_text_'+id);
+        var text = getText(text_elem);
+        replytext = prefix + wrapReplyText(text);
+      [% ELSIF user.settings.quote_replies.value == 'simple_reply' %]
+        replytext = prefix;
+      [% END %]
</ins><span class="cx"> 
</span><del>-[%# NOTE: (start_at &gt; 0) means we came here from a midair collision,
-  #       in which case we don't care what the user's preference is.
- %]
-[% IF (start_at &gt; 0) %]
-    [% sort_order = &quot;oldest_to_newest&quot; %]
-[% END %]
</del><ins>+      [% IF user.is_insider %]
+        if (document.getElementById('isprivate_' + real_id).checked) {
+            document.getElementById('newcommentprivacy').checked = 'checked';
+            updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment'); 
+        }
+      [% END %]
</ins><span class="cx"> 
</span><ins>+      /* &lt;textarea id=&quot;comment&quot;&gt; */
+      var textarea = document.getElementById('comment');
+      if (textarea.value != replytext) {
+          textarea.value += replytext;
+      }
+
+      textarea.focus();
+  } 
+//--&gt;
+&lt;/script&gt;
+
+[% DEFAULT mode = &quot;show&quot; %]
+[% user_cache = template_cache.users %]
+[% can_edit_comments = bug.check_can_change_field('longdesc', 0, 1) %]
+[% can_tag_comments = feature_enabled('jsonrpc') AND user.can_tag_comments %]
+
</ins><span class="cx"> &lt;!-- This auto-sizes the comments and positions the collapse/expand links 
</span><span class="cx">      to the right. --&gt;
</span><del>-&lt;table class=&quot;bz_comment_table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;
</del><ins>+&lt;table class=&quot;bz_comment_table&quot;&gt;
+&lt;tr&gt;
</ins><span class="cx"> &lt;td&gt;
</span><span class="cx"> 
</span><del>-[% FOREACH comment = comments %]
-  [% IF comment.count &gt;= start_at %]
-    [% PROCESS a_comment %]
-  [% END %]
-[% END %]
</del><ins>+[% PROCESS display_comments %]
</ins><span class="cx"> 
</span><del>-[% IF user.settings.comment_box_position.value == &quot;before_comments&quot; &amp;&amp; user.id %]
</del><ins>+[% IF mode == &quot;edit&quot; &amp;&amp; user.id
+      &amp;&amp; user.settings.comment_box_position.value == &quot;before_comments&quot; %]
</ins><span class="cx">   &lt;div class=&quot;bz_add_comment&quot;&gt;
</span><span class="cx">     &lt;a href=&quot;#&quot; 
</span><span class="cx">        onclick=&quot;return goto_add_comments();&quot;&gt;
</span><span class="lines">@@ -63,15 +75,18 @@
</span><span class="cx"> &lt;td&gt;
</span><span class="cx">   [% IF mode == &quot;edit&quot; %]
</span><span class="cx">     &lt;ul class=&quot;bz_collapse_expand_comments&quot;&gt;
</span><del>-      &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;toggle_all_comments('collapse'); 
</del><ins>+      &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;toggle_all_comments('collapse');
</ins><span class="cx">                                return false;&quot;&gt;Collapse All Comments&lt;/a&gt;&lt;/li&gt;
</span><span class="cx">       &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;toggle_all_comments('expand');
</span><span class="cx">                                return false;&quot;&gt;Expand All Comments&lt;/a&gt;&lt;/li&gt;
</span><ins>+      [% IF Param('comment_taggers_group') %]
+        &lt;li&gt;&lt;div id=&quot;comment_tags_collapse_expand_container&quot;&gt;&lt;/div&gt;&lt;/li&gt;
+      [% END %]
</ins><span class="cx">       [% IF user.settings.comment_box_position.value == &quot;after_comments&quot; &amp;&amp; user.id %]
</span><span class="cx">         &lt;li class=&quot;bz_add_comment&quot;&gt;&lt;a href=&quot;#&quot; 
</span><span class="cx">             onclick=&quot;return goto_add_comments('bug_status_bottom');&quot;&gt;
</span><span class="cx">             Add Comment&lt;/a&gt;&lt;/li&gt;
</span><del>-      [% END %]                               
</del><ins>+      [% END %]
</ins><span class="cx">     &lt;/ul&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> &lt;/td&gt;
</span><span class="lines">@@ -81,12 +96,14 @@
</span><span class="cx"> [%# Block for individual comments                                            #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> 
</span><del>-[% BLOCK a_comment %]
-  [% RETURN IF comment.is_private AND ! user.is_insider %]
-  [% comment_text = comment.body_full %]
-  [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]
</del><ins>+[% BLOCK display_comments %]
+  [% FOREACH comment = comments %]
+    [% NEXT IF comment.is_private AND NOT (user.is_insider || user.id == comment.author.id) %]
+    [% comment_text = comment.body_full %]
+    [% NEXT IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]
</ins><span class="cx"> 
</span><span class="cx">     &lt;div id=&quot;c[% comment.count %]&quot; class=&quot;bz_comment[% &quot; bz_private&quot; IF comment.is_private %]
</span><ins>+                [% &quot; bz_default_collapsed&quot; IF comment.collapsed %]
</ins><span class="cx">                 [% &quot; bz_comment_hilite&quot; IF marks.${comment.count} %]
</span><span class="cx">                 [% &quot; bz_first_comment&quot; IF comment.count == 0 %]&quot;&gt;
</span><span class="cx">       [% IF comment.count == 0 %]
</span><span class="lines">@@ -98,17 +115,38 @@
</span><span class="cx">       [% END %]
</span><span class="cx"> 
</span><span class="cx">       &lt;div class=&quot;[% class_name FILTER html %]&quot;&gt;
</span><del>-
</del><span class="cx">         [% IF mode == &quot;edit&quot; %]
</span><span class="cx">           &lt;span class=&quot;bz_comment_actions&quot;&gt;
</span><del>-            &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
-              addReplyLink([% comment.count %], [% comment.id %]);
-              addCollapseLink([% comment.count %], 'Toggle comment display'); // --&gt;
</del><ins>+            [% IF comment.collapsed %]
+              &lt;span class=&quot;bz_collapsed_actions&quot;&gt;
+            [% END %]
+            [% IF can_edit_comments %]
+              [% IF can_tag_comments %]
+                [&lt;a href=&quot;#&quot;
+                    onclick=&quot;YAHOO.bugzilla.commentTagging.toggle([% comment.id %], [% comment.count %]);return false&quot;&gt;tag&lt;/a&gt;]
+              [% END %]
+              [&lt;a class=&quot;bz_reply_link&quot; href=&quot;#add_comment&quot;
+                [% IF user.settings.quote_replies.value != 'off' %]
+                  onclick=&quot;replyToComment('[% comment.count %]', '[% comment.id %]', '[% comment.author.name || comment.author.nick FILTER html FILTER js %]'); return false;&quot;
+                [% END %]
+              &gt;reply&lt;/a&gt;]
+            [% END %]
+            [% IF comment.collapsed %]
+              &lt;/span&gt;
+            [% END %]
+            &lt;script type=&quot;text/javascript&quot;&gt;
+              addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display');
</ins><span class="cx">             &lt;/script&gt;
</span><span class="cx">           &lt;/span&gt;
</span><ins>+        [% ELSIF comment.collapsed %]
+          &lt;span class=&quot;bz_comment_actions&quot;&gt;
+            &lt;script type=&quot;text/javascript&quot;&gt;
+              addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display');
+            &lt;/script&gt;
+          &lt;/span&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx"> 
</span><del>-        [% IF mode == &quot;edit&quot; &amp;&amp; user.is_insider %]
</del><ins>+        [% IF mode == &quot;edit&quot; &amp;&amp; can_edit_comments &amp;&amp; user.is_insider %]
</ins><span class="cx">           &lt;div class=&quot;bz_private_checkbox&quot;&gt;
</span><span class="cx">             &lt;input type=&quot;hidden&quot; value=&quot;1&quot;
</span><span class="cx">                    name=&quot;defined_isprivate_[% comment.id %]&quot;&gt;
</span><span class="lines">@@ -128,12 +166,18 @@
</span><span class="cx">         &lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;span class=&quot;bz_comment_user&quot;&gt;
</span><del>-          [% INCLUDE global/user.html.tmpl who = comment.author %]
</del><ins>+          [%# No need to recreate the exact same template if we already have it. %]
+          [% commenter_id = comment.author.id %]
+          [% UNLESS user_cache.$commenter_id %]
+            [% user_cache.$commenter_id = BLOCK %]
+              [% INCLUDE global/user.html.tmpl who = comment.author %]
+            [% END %]
+          [% END %]
+          [% user_cache.$commenter_id FILTER none %]
</ins><span class="cx">         &lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;span class=&quot;bz_comment_user_images&quot;&gt;
</span><del>-          [% FOREACH group = comment.author.direct_group_membership %]
-            [% NEXT UNLESS group.icon_url %]
</del><ins>+          [% FOREACH group = comment.author.groups_with_icon %]
</ins><span class="cx">             &lt;img src=&quot;[% group.icon_url FILTER html %]&quot;
</span><span class="cx">                  alt=&quot;[% group.name FILTER html %]&quot;
</span><span class="cx">                  title=&quot;[% group.name FILTER html %] - [% group.description FILTER html %]&quot;&gt;
</span><span class="lines">@@ -143,6 +187,14 @@
</span><span class="cx">         &lt;span class=&quot;bz_comment_time&quot;&gt;
</span><span class="cx">           [%+ comment.creation_ts FILTER time %]
</span><span class="cx">         &lt;/span&gt;
</span><ins>+
+        [% IF comment.collapsed %]
+          &lt;span id=&quot;cr[% comment.count %]&quot; class=&quot;bz_comment_collapse_reason&quot;
+             title=&quot;[% comment.author.name || comment.author.login FILTER html %]
+                    [%~ %] [[% comment.creation_ts FILTER time %]]&quot;&gt;
+            Comment hidden ([% comment.tags.join(', ') FILTER html %])
+          &lt;/span&gt;
+        [% END %]
</ins><span class="cx">       &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">       [% IF user.is_timetracker &amp;&amp;
</span><span class="lines">@@ -152,12 +204,35 @@
</span><span class="cx">          [% PROCESS formattimeunit time_unit=comment.work_time %]
</span><span class="cx">       [% END %]
</span><span class="cx"> 
</span><ins>+      [% IF user.id &amp;&amp; Param('comment_taggers_group') %]
+        &lt;div id=&quot;comment_tag_[% comment.count FILTER html %]&quot;
+             class=&quot;bz_comment_tags&quot;&gt;
+          &lt;span id=&quot;ct_[% comment.count %]&quot;
+                class=&quot;[% 'bz_default_hidden' UNLESS comment.tags.size %]&quot;&gt;
+            [% IF comment.tags.size %]
+              &lt;script&gt;
+                YAHOO.bugzilla.commentTagging.showTags([% comment.id FILTER none %],
+                  [% comment.count FILTER none %], [
+                [% FOREACH tag = comment.tags %]
+                  [%~%]'[% tag FILTER js %]'[% &quot;,&quot; UNLESS loop.last %]
+                [% END %]
+                [%~%]]);
+              &lt;/script&gt;
+            [% END %]
+          &lt;/span&gt;
+        &lt;/div&gt;
+      [% END %]
+
</ins><span class="cx"> [%# Don't indent the &lt;pre&gt; block, since then the spaces are displayed in the
</span><span class="cx">   # generated HTML
</span><span class="cx">   #%]
</span><del>-&lt;pre class=&quot;bz_comment_text&quot; 
-     [% ' id=&quot;comment_text_' _ comment.count _ '&quot;' IF mode == &quot;edit&quot; %]&gt;
</del><ins>+&lt;pre class=&quot;bz_comment_text[% &quot; collapsed&quot; IF comment.collapsed %]&quot;
+  [% IF mode == &quot;edit&quot; || comment.collapsed %]
+    id=&quot;comment_text_[% comment.count FILTER none %]&quot;
+  [% END %]&gt;
</ins><span class="cx">   [%- comment_text FILTER quoteUrls(bug, comment) -%]
</span><span class="cx"> &lt;/pre&gt;
</span><ins>+    [% Hook.process('a_comment-end', 'bug/comments.html.tmpl') %]
</ins><span class="cx">     &lt;/div&gt;
</span><ins>+  [% END %]
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecommentguidedtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment-guided.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment-guided.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment-guided.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # This template has no interface.
-  #
-  # Form variables from a bug submission (i.e. the fields on a template from
-  # enter_bug.cgi) can be access via Bugzilla.cgi.param. It can be used to
-  # pull out various custom fields and format an initial Description entry
-  # from them.
-  #%]  
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> User-Agent:       [%+ cgi.user_agent() %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecommenttxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/comment.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # This template has no interface.
-  #
-  # Form variables from a bug submission (i.e. the fields on a template from
-  # enter_bug.cgi) can be access via Bugzilla.cgi.param. It can be used to
-  # pull out various custom fields and format an initial Description entry
-  # from them.
-  #%]
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% Hook.process(&quot;form&quot;) %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreateguidedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create-guided.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create-guided.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create-guided.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Christine Begle &lt;cbegle@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +10,6 @@
</span><span class="cx">   # This template has the same interface as create.html.tmpl
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><span class="lines">@@ -31,78 +16,54 @@
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = &quot;Enter $terms.ABug&quot;
</span><span class="cx">    onload = &quot;PutDescription()&quot;
</span><del>-   style = &quot;#somebugs { width: 100%; height: 500px }&quot;
</del><ins>+   style_urls = ['skins/standard/bug.css']
</ins><span class="cx">  %]
</span><span class="cx"> 
</span><del>-[% style = &quot;&quot; %]
-
-&lt;p&gt;
-  &lt;font color=&quot;red&quot;&gt;
-    This is a template used on mozilla.org.  This template, and the
-    comment-guided.txt.tmpl template that formats the data submitted via 
-    the form in this template, are included as a demo of what it's
-    possible to do with custom templates in general, and custom [% terms.bug %]
-    entry templates in particular. As much of the text will not apply, 
-    you should alter it 
-    if you want to use this form on your [% terms.Bugzilla %] installation.
-  &lt;/font&gt;
-&lt;/p&gt;
-
-[% tablecolour = &quot;#FFFFCC&quot; %]
-
</del><span class="cx"> [%# This script displays the descriptions for selected components. %]
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> var descriptions = [
</span><span class="cx"> [% FOREACH c = product.components %]
</span><ins>+  [% NEXT IF NOT c.is_active %]
</ins><span class="cx">   '[% c.description FILTER js %]',
</span><span class="cx"> [% END %]
</span><span class="cx"> ];
</span><span class="cx"> 
</span><span class="cx"> function PutDescription() {
</span><del>-    if ((document.getElementById) &amp;&amp; (document.body.innerHTML)) {
-        var componentIndex = document.getElementById('component').selectedIndex;
-        if (componentIndex != -1) {
-            var description = document.getElementById('description');
-            description.innerHTML = descriptions[componentIndex];
-        }
-    }
</del><ins>+  var description = document.getElementById('description');
+  var componentIndex = document.getElementById('component').selectedIndex;
+  YAHOO.util.Dom.removeClass(&quot;description&quot;, &quot;bz_default_hidden&quot;);
+  if (componentIndex != -1) {
+    description.innerHTML = descriptions[componentIndex];
+  }
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h3 id=&quot;step1&quot;&gt;Step 1 of 3 - has your [% terms.bug %] already been reported?&lt;/h3&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;
-  &lt;font color=&quot;red&quot;&gt;Please don't skip this step - half of all 
-  [% terms.bugs %] filed are
-  reported already.&lt;/font&gt;
-    Check the two lists of frequently-reported [% terms.bugs %]:
</del><ins>+&lt;p class=&quot;warning&quot;&gt;
+  Please don't skip this step - half of all [% terms.bugs %] filed are
+  reported already.
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-[%# Include other products if sensible %]
-[% IF product.name == &quot;Firefox&quot; %]
-  [% productstring = &quot;product=Mozilla%20Application%20Suite&amp;amp;product=Firefox&quot; %]
-[% ELSIF product.name == &quot;Thunderbird&quot; %]
-  [% productstring = &quot;product=Mozilla%20Application%20Suite&amp;amp;product=Thunderbird&quot; %]
-[% ELSE %]
-  [% productstring = BLOCK %]product=[% product.name FILTER uri %][% END %]
-[% END %]
</del><ins>+&lt;p&gt;Check the two lists of frequently-reported [% terms.bugs %]:&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-    &lt;a href=&quot;duplicates.cgi?[% productstring %]&amp;amp;format=simple&quot; target=&quot;somebugs&quot;&gt;All-time Top 100&lt;/a&gt; (loaded initially) |
-    &lt;a href=&quot;duplicates.cgi?[% productstring %]&amp;amp;format=simple&amp;amp;sortby=delta&amp;amp;reverse=1&amp;amp;maxrows=100&amp;amp;changedsince=14&quot; target=&quot;somebugs&quot;&gt;Hot in the last two weeks&lt;/a&gt;  
</del><ins>+  &lt;a href=&quot;duplicates.cgi?product=[% product.name FILTER uri %]&amp;amp;format=simple&quot;
+     target=&quot;somebugs&quot;&gt;All-time Top 100&lt;/a&gt; (loaded initially) |
+  &lt;a href=&quot;duplicates.cgi?product=[% product.name FILTER uri %]&amp;amp;format=simple&amp;amp;sortby=delta&amp;amp;reverse=1&amp;amp;maxrows=100&amp;amp;changedsince=14&quot;
+     target=&quot;somebugs&quot;&gt;Hot in the last two weeks&lt;/a&gt;
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;iframe name=&quot;somebugs&quot; id=&quot;somebugs&quot;
</span><del>-  style=&quot;border: 2px black solid&quot;
-  src=&quot;duplicates.cgi?[% productstring %]&amp;amp;format=simple&quot;&gt;
</del><ins>+  src=&quot;duplicates.cgi?product=[% product.name FILTER uri %]&amp;amp;format=simple&quot;&gt;
</ins><span class="cx"> &lt;/iframe&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">     If your [% terms.bug %] isn't there, search [% terms.Bugzilla %] by entering
</span><span class="cx">     a few key words having to do with your [% terms.bug %] in this box.
</span><del>-    For example: &lt;tt&gt;&lt;b&gt;pop3 mail&lt;/b&gt;&lt;/tt&gt; or &lt;tt&gt;&lt;b&gt;copy paste&lt;/b&gt;&lt;/tt&gt;.
</del><ins>+    For example: &lt;kbd&gt;&lt;b&gt;pop3 mail&lt;/b&gt;&lt;/kbd&gt; or &lt;kbd&gt;&lt;b&gt;copy paste&lt;/b&gt;&lt;/kbd&gt;.
</ins><span class="cx">     The results will appear above.
</span><del>-  &lt;/p&gt;
</del><ins>+&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> [%# All bugs opened inside the past six months %]
</span><span class="cx">   &lt;form action=&quot;buglist.cgi&quot; method=&quot;get&quot; target=&quot;somebugs&quot;&gt;
</span><span class="lines">@@ -110,16 +71,6 @@
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;order&quot; value=&quot;relevance desc&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;bug_status&quot; value=&quot;__all__&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;[% product.name FILTER html %]&quot;&gt;
</span><del>-    [% IF product.name == &quot;Firefox&quot; OR 
-          product.name == &quot;Thunderbird&quot; OR 
-          product.name == &quot;Mozilla Application Suite&quot; OR
-          product.name == &quot;Camino&quot; %]
-      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;Core&quot;&gt;
-      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;Toolkit&quot;&gt;
-      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;PSM&quot;&gt;
-      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;NSPR&quot;&gt;
-      &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;NSS&quot;&gt;
-    [% END %]      
</del><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;chfieldfrom&quot; value=&quot;-6m&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;chfieldto&quot; value=&quot;Now&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;chfield&quot; value=&quot;[Bug creation]&quot;&gt;
</span><span class="lines">@@ -129,7 +80,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   Look through the search results. If you get the
</span><del>-  &lt;tt&gt;&lt;b&gt;[% terms.zeroSearchResults %]&lt;/b&gt;&lt;/tt&gt; message, [% terms.Bugzilla %]
</del><ins>+  &lt;kbd&gt;&lt;b&gt;[% terms.zeroSearchResults %]&lt;/b&gt;&lt;/kbd&gt; message, [% terms.Bugzilla %]
</ins><span class="cx">   found no [% terms.bugs %] that
</span><span class="cx">   match. Check for typing mistakes, or try fewer or different keywords.
</span><span class="cx">   If you find [% terms.abug %] that looks the same as yours, please add
</span><span class="lines">@@ -144,7 +95,7 @@
</span><span class="cx">   there, tell us all about it.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;form method=&quot;post&quot; action=&quot;post_bug.cgi&quot;&gt;
</del><ins>+&lt;form id=&quot;guided_form&quot; method=&quot;post&quot; action=&quot;post_bug.cgi&quot;&gt;
</ins><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;format&quot; value=&quot;guided&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;assigned_to&quot; value=&quot;&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;priority&quot;
</span><span class="lines">@@ -153,13 +104,10 @@
</span><span class="cx">          value=&quot;[% default.version FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;table valign=&quot;top&quot; cellpadding=&quot;5&quot; cellspacing=&quot;5&quot; border=&quot;0&quot;&gt;
-
-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Product&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+&lt;table&gt;
+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Product&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;[% product.name FILTER html %]&quot;&gt;
</span><span class="cx">       [% product.name FILTER html %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -166,93 +114,64 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Component&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
-      &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
-        &lt;tr&gt;
-          &lt;td valign=&quot;top&quot;&gt;
-            &lt;select name=&quot;component&quot; id=&quot;component&quot;
-                    size=&quot;5&quot; onchange=&quot;PutDescription()&quot;&gt;
-              [% IF NOT default.component_ %]
-                [%# Various b.m.o. products have a &quot;General&quot; component,
-                    which is a useful default. %]
-                [% default.component_ = &quot;General&quot; %]
-              [% END %]
-              [% FOREACH c = product.components %]
-                &lt;option value=&quot;[% c.name FILTER html %]&quot;
-                  [% &quot; selected=\&quot;selected\&quot;&quot; IF c.name == default.component_ %]&gt;
-                  [% c.name FILTER html %]
-                &lt;/option&gt;
-              [% END %]
-            &lt;/select&gt;
-          &lt;/td&gt;
-          &lt;td valign=&quot;top&quot; width=&quot;100%&quot;&gt;
-              &lt;div id=&quot;description&quot; style=&quot;color: green; margin-left: 10px;
-                                           height: 5em; overflow: auto;&quot;&gt;
-                &lt;script type=&quot;text/javascript&quot;&gt;
-                  if ((document.getElementById) &amp;&amp; (document.body.innerHTML)) {
-                    document.write(&quot;\
-                    Select a component to see its description here.&quot;);
-                  }
-                &lt;/script&gt;
-              &lt;/div&gt;
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      &lt;/table&gt;
-      
</del><ins>+    &lt;th&gt;Component&lt;/th&gt;
+    &lt;td&gt;
+      &lt;select name=&quot;component&quot; id=&quot;component&quot; size=&quot;5&quot; onchange=&quot;PutDescription()&quot;&gt;
+        [% IF NOT default.component_ %]
+          [% default.component_ = &quot;General&quot; %]
+        [% END %]
+        [% FOREACH c = product.components %]
+          [% NEXT IF NOT c.is_active %]
+          &lt;option value=&quot;[% c.name FILTER html %]&quot;
+                  [%+ 'selected=&quot;selected&quot;' IF c.name == default.component_ %]&gt;
+            [% c.name FILTER html %]
+          &lt;/option&gt;
+        [% END %]
+      &lt;/select&gt;
+
+      &lt;div id=&quot;description&quot; class=&quot;comment bz_default_hidden&quot;&gt;
+        Select a component to see its description here.
+      &lt;/div&gt;
+
</ins><span class="cx">       &lt;p&gt;
</span><span class="cx">         The area where the problem occurs.
</span><span class="cx">         To pick the right component, you could use the same one as
</span><span class="cx">         similar [% terms.bugs %] you found in your search, or read the full list of
</span><del>-        &lt;a target=&quot;_blank&quot; href=&quot;describecomponents.cgi?product=
-            [% product.name FILTER uri %]&quot;&gt;component
-        descriptions&lt;/a&gt; (opens in new window) if you need more help.
</del><ins>+        &lt;a href=&quot;describecomponents.cgi?product=[% product.name FILTER uri %]&quot;
+           target=&quot;_blank&quot; &gt;component descriptions&lt;/a&gt; (opens in new window) if
+        you need more help.
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  [%# We override rep_platform and op_sys for simplicity. The values chosen
-      are based on which are most common in the b.m.o database %]
</del><ins>+  [%# We override rep_platform and op_sys for simplicity. %]
</ins><span class="cx">   [% rep_platform = [ &quot;PC&quot;, &quot;Macintosh&quot;, &quot;All&quot;, &quot;Other&quot; ] %]
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Hardware Platform&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;[% field_descs.rep_platform FILTER html %]&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% PROCESS select sel = 'rep_platform' %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  [% op_sys = [ &quot;Windows 2000&quot;, &quot;Windows XP&quot;, &quot;Windows Vista&quot;, &quot;Windows 7&quot;,
</del><ins>+  [% op_sys = [ &quot;Windows XP&quot;, &quot;Windows Vista&quot;, &quot;Windows 7&quot;, &quot;Windows 8&quot;,
</ins><span class="cx">                 &quot;Mac OS X&quot;, &quot;Linux&quot;, &quot;All&quot;, &quot;Other&quot; ] %]
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Operating System&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;Operating System&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% PROCESS select sel = 'op_sys' %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  [% IF product.name.match(&quot;Firefox|Camino|Mozilla Application Suite&quot;) %]
-    [% matches = cgi.user_agent('Gecko/(\d+)') %]
-    [% buildid = cgi.user_agent() IF matches %]
-  [% END %]
-  
</del><span class="cx">   [%# Accept URL parameter build ID for non-browser products %]
</span><span class="cx">   [% IF cgi.param(&quot;buildid&quot;) %]
</span><span class="cx">     [% buildid = cgi.param(&quot;buildid&quot;) %]
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Build Identifier&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Build Identifier&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;input type=&quot;text&quot; size=&quot;80&quot; name=&quot;buildid&quot; value=&quot;[% buildid FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;p&gt;
</span><span class="cx">         This should identify the exact version of the product you were using.  
</span><span class="lines">@@ -266,25 +185,18 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;URL&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;URL&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;input type=&quot;text&quot; size=&quot;80&quot; name=&quot;bug_file_loc&quot; value=&quot;http://&quot;&gt;
</span><span class="cx">       &lt;p&gt;
</span><del>-        URL that demonstrates the problem you are seeing (optional).&lt;br&gt;
-        &lt;b&gt;IMPORTANT&lt;/b&gt;: if the problem is with a broken web page, you need
-        to report it
-        &lt;a href=&quot;https://bugzilla.mozilla.org/page.cgi?id=broken-website.html&quot;&gt;a different way&lt;/a&gt;.
</del><ins>+        URL that demonstrates the problem you are seeing (optional).
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Summary&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Summary&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;input type=&quot;text&quot; size=&quot;80&quot; name=&quot;short_desc&quot; id=&quot;short_desc&quot; 
</span><span class="cx">              maxlength=&quot;255&quot; spellcheck=&quot;true&quot;&gt;
</span><span class="cx">       &lt;p&gt;
</span><span class="lines">@@ -292,27 +204,26 @@
</span><span class="cx">         Please be descriptive and use lots of keywords.
</span><span class="cx">       &lt;/p&gt;
</span><span class="cx">       &lt;p&gt;
</span><del>-        &lt;tt&gt;
-          &lt;font color=&quot;#990000&quot;&gt;Bad example&lt;/font&gt;: mail crashed
-        &lt;/tt&gt;
</del><ins>+        &lt;kbd&gt;
+          &lt;span class=&quot;bad&quot;&gt;Bad example&lt;/span&gt;: mail crashed
+        &lt;/kbd&gt;
</ins><span class="cx">         &lt;br&gt;
</span><del>-        &lt;tt&gt;
-          &lt;font color=&quot;#009900&quot;&gt;Good example&lt;/font&gt;:
</del><ins>+        &lt;kbd&gt;
+          &lt;span class=&quot;good&quot;&gt;Good example&lt;/span&gt;:
</ins><span class="cx">           crash if I close the mail window while checking for new POP mail
</span><del>-        &lt;/tt&gt;
</del><ins>+        &lt;/kbd&gt;
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Details&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;Details&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><del>-        name    = 'comment'
-        minrows = 6
-        cols    = constants.COMMENT_COLS
</del><ins>+        name      = 'comment'
+        minrows   = 6
+        cols      = constants.COMMENT_COLS
+        mandatory = 1
</ins><span class="cx">       %]
</span><span class="cx">       &lt;p&gt;
</span><span class="cx">         Expand on the Summary. Please be
</span><span class="lines">@@ -319,26 +230,24 @@
</span><span class="cx">         as specific as possible about what is wrong.
</span><span class="cx">       &lt;/p&gt;
</span><span class="cx">       &lt;p&gt;
</span><del>-        &lt;tt&gt;
-          &lt;font color=&quot;#990000&quot;&gt;Bad example&lt;/font&gt;: Mozilla crashed.
</del><ins>+        &lt;kbd&gt;
+          &lt;span class=&quot;bad&quot;&gt;Bad example&lt;/span&gt;: Mozilla crashed.
</ins><span class="cx">           You suck!
</span><del>-        &lt;/tt&gt;
</del><ins>+        &lt;/kbd&gt;
</ins><span class="cx">         &lt;br&gt;
</span><del>-        &lt;tt&gt;
-          &lt;font color=&quot;#009900&quot;&gt;Good example&lt;/font&gt;: After a crash which
</del><ins>+        &lt;kbd&gt;
+          &lt;span class=&quot;good&quot;&gt;Good example&lt;/span&gt;: After a crash which
</ins><span class="cx">           happened when I was sorting in the Bookmark Manager,&lt;br&gt; all of my
</span><span class="cx">           top-level bookmark folders beginning with the letters Q to Z are 
</span><span class="cx">           no longer present.
</span><del>-        &lt;/tt&gt;
</del><ins>+        &lt;/kbd&gt;
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Reproducibility&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Reproducibility&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;select name=&quot;reproducible&quot;&gt;
</span><span class="cx">         &lt;option name=&quot;AlwaysReproducible&quot; value=&quot;Always&quot;&gt;
</span><span class="cx">           Happens every time.
</span><span class="lines">@@ -357,10 +266,8 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;
-      &lt;b&gt;Steps to Reproduce&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;Steps to Reproduce&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">         name           = 'reproduce_steps'
</span><span class="cx">         minrows        = 4
</span><span class="lines">@@ -374,11 +281,9 @@
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      &lt;b&gt;Actual Results&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Actual Results&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">         name    = 'actual_results'
</span><span class="cx">         minrows = 4
</span><span class="lines">@@ -391,10 +296,8 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      &lt;b&gt;Expected Results&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;Expected Results&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">         name    = 'expected_results'
</span><span class="cx">         minrows = 4
</span><span class="lines">@@ -406,11 +309,9 @@
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  &lt;tr bgcolor=&quot;[% tablecolour %]&quot;&gt;
-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      &lt;b&gt;Additional Information&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+  &lt;tr class=&quot;guided_form_field&quot;&gt;
+    &lt;th&gt;Additional Information&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">         name    = 'additional_info'
</span><span class="cx">         minrows = 8
</span><span class="lines">@@ -420,29 +321,26 @@
</span><span class="cx">         Add any additional information you feel may be
</span><span class="cx">         relevant to this [% terms.bug %], such as the &lt;b&gt;theme&lt;/b&gt; you were
</span><span class="cx">         using (does the [% terms.bug %] still occur
</span><del>-        with the default theme?), a 
-        &lt;b&gt;&lt;a href=&quot;http://kb.mozillazine.org/Quality_Feedback_Agent&quot;&gt;Talkback crash ID&lt;/a&gt;&lt;/b&gt;, or special
</del><ins>+        with the default theme?), or special
</ins><span class="cx">         information about &lt;b&gt;your computer's configuration&lt;/b&gt;. Any information
</span><span class="cx">         longer than a few lines, such as a &lt;b&gt;stack trace&lt;/b&gt; or &lt;b&gt;HTML
</span><span class="cx">         testcase&lt;/b&gt;, should be added
</span><span class="cx">         using the &quot;Add an Attachment&quot; link on the [% terms.bug %], after
</span><span class="cx">         it is filed. If you believe that it's relevant, please also include
</span><del>-        your build configuration, obtained by typing &lt;tt&gt;about:buildconfig&lt;/tt&gt;
</del><ins>+        your build configuration, obtained by typing &lt;kbd&gt;about:buildconfig&lt;/kbd&gt;
</ins><span class="cx">         into your URL bar.
</span><span class="cx">         &lt;br&gt;
</span><span class="cx">         &lt;br&gt;
</span><span class="cx">         If you are reporting a crash, note the module in
</span><del>-        which the software crashed (e.g., &lt;tt&gt;Application Violation in
-        gkhtml.dll&lt;/tt&gt;).
</del><ins>+        which the software crashed (e.g., &lt;kbd&gt;Application Violation in
+        gkhtml.dll&lt;/kbd&gt;).
</ins><span class="cx">       &lt;/p&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      &lt;b&gt;Severity&lt;/b&gt;
-    &lt;/td&gt;
-    &lt;td valign=&quot;top&quot;&gt;
</del><ins>+    &lt;th&gt;[% field_descs.bug_severity FILTER html %]&lt;/th&gt;
+    &lt;td&gt;
</ins><span class="cx">       &lt;select name=&quot;bug_severity&quot;&gt;
</span><span class="cx">         &lt;option name=&quot;critical&quot; value=&quot;critical&quot;&gt;
</span><span class="cx">           Critical: The software crashes, hangs, or causes you to
</span><span class="lines">@@ -479,11 +377,7 @@
</span><span class="cx"> &lt;h3 id=&quot;step3&quot;&gt;Step 3 of 3 - submit the [% terms.bug %] report&lt;/h3&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  &lt;input type=&quot;submit&quot; id=&quot;report&quot; value=&quot;    Submit [% terms.Bug %] Report    &quot;
-   onclick=&quot;if (this.form.comment.value == '')
-   { alert('Please enter some details about this [% terms.bug %].');
-     this.form.comment.focus();
-     return false; } return true;&quot;&gt;
</del><ins>+  &lt;input type=&quot;submit&quot; id=&quot;report&quot; value=&quot;Submit [% terms.Bug %] Report&quot;&gt;
</ins><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/create.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,41 +1,22 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Ville Skyttä &lt;ville.skytta@iki.fi&gt;
-  #                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
-  #                 Akamai Technologies &lt;bugzilla-dev@akamai.com&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% title = BLOCK %]Enter [% terms.Bug %]: [% product.name FILTER html %][% END %]
</span><ins>+[% use_qa_contact = Param(&quot;useqacontact&quot;) %]
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><ins>+  generate_api_token = 1
</ins><span class="cx">   yui = [ 'autocomplete', 'calendar', 'datatable', 'button' ]
</span><del>-  style_urls = [ 'skins/standard/attachment.css',
-                 'skins/standard/enter_bug.css' ]
</del><ins>+  style_urls = ['skins/standard/bug.css']
</ins><span class="cx">   javascript_urls = [ &quot;js/attachment.js&quot;, &quot;js/util.js&quot;,
</span><span class="cx">                       &quot;js/field.js&quot;, &quot;js/TUI.js&quot;, &quot;js/bug.js&quot; ]
</span><del>-  onload = &quot;set_assign_to(); hideElementById('attachment_true');
</del><ins>+  onload = &quot;set_assign_to($use_qa_contact); hideElementById('attachment_true');
</ins><span class="cx">             showElementById('attachment_false'); showElementById('btn_no_attachment');&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -81,76 +62,6 @@
</span><span class="cx">     [% count = count + 1 %]
</span><span class="cx"> [%- END %]
</span><span class="cx"> 
</span><del>-function set_assign_to() {
-    // Based on the selected component, fill the &quot;Assign To:&quot; field
-    // with the default component owner, and the &quot;QA Contact:&quot; field
-    // with the default QA Contact. It also selectively enables flags.
-    var form = document.Create;
-    var assigned_to = form.assigned_to.value;
-
-[% IF Param(&quot;useqacontact&quot;) %]
-    var qa_contact = form.qa_contact.value;
-[% END %]
-
-    var index = -1;
-    if (form.component.type == 'select-one') {
-        index = form.component.selectedIndex;
-    } else if (form.component.type == 'hidden') {
-        // Assume there is only one component in the list
-        index = 0;
-    }
-    if (index != -1) {
-        var owner = initialowners[index];
-        var component = components[index];
-        if (assigned_to == last_initialowner
-            || assigned_to == owner
-            || assigned_to == '') {
-            form.assigned_to.value = owner;
-            last_initialowner = owner;
-        }
-
-        document.getElementById('initial_cc').innerHTML = initialccs[index];
-        document.getElementById('comp_desc').innerHTML = comp_desc[index];
-
-        [% IF Param(&quot;useqacontact&quot;) %]
-            var contact = initialqacontacts[index];
-            if (qa_contact == last_initialqacontact
-                || qa_contact == contact
-                || qa_contact == '') {
-                  form.qa_contact.value = contact;
-                  last_initialqacontact = contact;
-            }
-        [% END %]
-
-        // First, we disable all flags. Then we re-enable those
-        // which are available for the selected component.
-        var inputElements = document.getElementsByTagName(&quot;select&quot;);
-        var inputElement, flagField;
-        for ( var i=0 ; i&lt;inputElements.length ; i++ ) {
-            inputElement = inputElements.item(i);
-            if (inputElement.name.search(/^flag_type-(\d+)$/) != -1) {
-                var id = inputElement.name.replace(/^flag_type-(\d+)$/, &quot;$1&quot;);
-                inputElement.disabled = true;
-                // Also hide the requestee field, if it exists.
-                inputElement = document.getElementById(&quot;requestee_type-&quot; + id);
-                if (inputElement)
-                  YAHOO.util.Dom.addClass(inputElement.parentNode, 'bz_default_hidden');
-            }
-        }
-        // Now enable flags available for the selected component.
-        for (var i = 0; i &lt; flags[index].length; i++) {
-            flagField = document.getElementById(&quot;flag_type-&quot; + flags[index][i]);
-            // Do not enable flags the user cannot set nor request.
-            if (flagField &amp;&amp; flagField.options.length &gt; 1) {
-                flagField.disabled = false;
-                // Re-enabling the requestee field depends on the status
-                // of the flag.
-                toggleRequesteeField(flagField, 1);
-            }
-        }
-    }
-}
-
</del><span class="cx"> var status_comment_required = new Array();
</span><span class="cx"> [% FOREACH status = bug_status %]
</span><span class="cx">   status_comment_required['[% status.name FILTER js %]'] = 
</span><span class="lines">@@ -219,7 +130,7 @@
</span><span class="cx">       desc_url = component_desc_url
</span><span class="cx">     %]      
</span><span class="cx">     &lt;td id=&quot;field_container_component&quot;&gt;
</span><del>-      &lt;select name=&quot;component&quot; id=&quot;component&quot; onchange=&quot;set_assign_to();&quot;
</del><ins>+      &lt;select name=&quot;component&quot; id=&quot;component&quot; onchange=&quot;set_assign_to([% Param(&quot;useqacontact&quot;) %]);&quot;
</ins><span class="cx">               size=&quot;7&quot; aria-required=&quot;true&quot; class=&quot;required&quot;&gt;
</span><span class="cx">         [%# Build the lists of assignees and QA contacts if &quot;usemenuforusers&quot; is enabled. %]
</span><span class="cx">         [% IF Param(&quot;usemenuforusers&quot;) %]
</span><span class="lines">@@ -231,7 +142,7 @@
</span><span class="cx">           [% NEXT IF NOT c.is_active %]
</span><span class="cx">           &lt;option value=&quot;[% c.name FILTER html %]&quot;
</span><span class="cx">                   id=&quot;v[% c.id FILTER html %]_component&quot;
</span><del>-            [% IF c.name == default.component_ %]
</del><ins>+            [% IF c.name.lower == default.component_.lower %]
</ins><span class="cx">               [%# This is for bug/field.html.tmpl, for visibility-related
</span><span class="cx">                 # controls. %]
</span><span class="cx">               [% default.component_id = c.id %]
</span><span class="lines">@@ -274,10 +185,11 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><del>-      field = bug_fields.version editable = 1 rowspan = 3 
</del><ins>+      field = bug_fields.version editable = 1 rowspan = 4
</ins><span class="cx">     %]
</span><del>-    &lt;td rowspan=&quot;3&quot;&gt;
-      &lt;select name=&quot;version&quot; id=&quot;version&quot; size=&quot;5&quot;&gt;
</del><ins>+    &lt;td rowspan=&quot;4&quot;&gt;
+      &lt;select name=&quot;version&quot; id=&quot;version&quot; size=&quot;5&quot; aria-required=&quot;true&quot;
+              class=&quot;required&quot;&gt;
</ins><span class="cx">         [%- FOREACH v = version %]
</span><span class="cx">           [% NEXT IF NOT v.is_active %]
</span><span class="cx">           &lt;option value=&quot;[% v.name FILTER html %]&quot;
</span><span class="lines">@@ -292,6 +204,16 @@
</span><span class="cx">       value = default.bug_severity %]
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><ins>+  &lt;tr class=&quot;expert_fields&quot;&gt;
+    [% IF Param('letsubmitterchoosepriority') %]
+      [% INCLUDE bug/field.html.tmpl
+        bug = default, field = bug_fields.priority, editable = 1, 
+        value = default.priority %]
+    [% ELSE %]
+      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
+    [% END %]
+  &lt;/tr&gt;
+
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE bug/field.html.tmpl
</span><span class="cx">       bug = default, field = bug_fields.rep_platform, editable = 1,
</span><span class="lines">@@ -305,7 +227,8 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   [% IF (!Param('defaultplatform') || !Param('defaultopsys')) &amp;&amp; !cloned_bug_id %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th colspan=&quot;3&quot;&gt;&amp;nbsp;&lt;/th&gt;
</del><ins>+      &lt;td colspan=&quot;2&quot; class=&quot;expert_fields&quot;&gt;&amp;nbsp;&lt;/td&gt;
+      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</ins><span class="cx">       &lt;td id=&quot;os_guess_note&quot; class=&quot;comment&quot;&gt;
</span><span class="cx">         &lt;div&gt;We've made a guess at your
</span><span class="cx">         [% IF Param('defaultplatform') %]
</span><span class="lines">@@ -329,13 +252,7 @@
</span><span class="cx">       &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-    [% IF Param('letsubmitterchoosepriority') %]
-      [% INCLUDE bug/field.html.tmpl
-        bug = default, field = bug_fields.priority, editable = 1, 
-        value = default.priority %]
-    [% ELSE %]
-      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
-    [% END %]
</del><ins>+    &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> &lt;/tbody&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -353,8 +270,7 @@
</span><span class="cx">     &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="cx">     [%# Calculate the number of rows we can use for flags %]
</span><span class="cx">     [% num_rows = 6 + (Param(&quot;useqacontact&quot;) ? 1 : 0) +
</span><del>-                      (user.is_timetracker ? 3 : 0) +
-                      (Param(&quot;usebugaliases&quot;) ? 1 : 0)
</del><ins>+                      (user.is_timetracker ? 3 : 0)
</ins><span class="cx">     %]
</span><span class="cx"> 
</span><span class="cx">     &lt;td rowspan=&quot;[% num_rows FILTER html %]&quot;&gt;
</span><span class="lines">@@ -464,7 +380,6 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[% IF Param(&quot;usebugaliases&quot;) %]
</del><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">       field = bug_fields.alias editable = 1
</span><span class="lines">@@ -473,13 +388,12 @@
</span><span class="cx">       &lt;input name=&quot;alias&quot; size=&quot;20&quot; value=&quot;[% alias FILTER html %]&quot;&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><del>-[% END %]
</del><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">       field = bug_fields.bug_file_loc editable = 1
</span><span class="cx">     %]
</span><del>-    &lt;td colspan=&quot;2&quot; class=&quot;field_value&quot;&gt;
</del><ins>+    &lt;td colspan=&quot;3&quot; class=&quot;field_value&quot;&gt;
</ins><span class="cx">       &lt;input name=&quot;bug_file_loc&quot; id=&quot;bug_file_loc&quot; class=&quot;text_input&quot;
</span><span class="cx">              size=&quot;40&quot; value=&quot;[% bug_file_loc FILTER html %]&quot;&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -513,7 +427,8 @@
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-  [% IF feature_enabled('jsonrpc') AND !cloned_bug_id %]
</del><ins>+  [% IF feature_enabled('jsonrpc') AND !cloned_bug_id
+        AND user.settings.possible_duplicates.value == 'on' %]
</ins><span class="cx">     &lt;tr id=&quot;possible_duplicates_container&quot; class=&quot;bz_default_hidden&quot;&gt;
</span><span class="cx">       &lt;th&gt;Possible&lt;br&gt;Duplicates:&lt;/th&gt;
</span><span class="cx">       &lt;td colspan=&quot;3&quot;&gt;
</span><span class="lines">@@ -562,9 +477,7 @@
</span><span class="cx">           # by global/textarea.html.tmpl. So we must not escape the comment here. %]
</span><span class="cx">         [% comment FILTER none %]
</span><span class="cx">       [%- END %]
</span><del>-      [% INCLUDE global/textarea.html.tmpl
-         name           = 'comment'
-         id             = 'comment'
</del><ins>+      [% INCLUDE bug/comment.html.tmpl
</ins><span class="cx">          minrows        = 10
</span><span class="cx">          maxrows        = 25
</span><span class="cx">          cols           = constants.COMMENT_COLS
</span><span class="lines">@@ -588,6 +501,9 @@
</span><span class="cx">         &lt;/label&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><ins>+    &lt;script&gt;
+      updateCommentTagControl(document.getElementById('comment_is_private'), 'comment');
+    &lt;/script&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF Param(&quot;maxattachmentsize&quot;) || Param(&quot;maxlocalattachment&quot;) %]
</span><span class="lines">@@ -617,17 +533,17 @@
</span><span class="cx"> &lt;/tbody&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tbody class=&quot;expert_fields&quot;&gt;
</span><ins>+  [% IF use_keywords %]
+    &lt;tr&gt;
+      [% INCLUDE bug/field.html.tmpl
+        bug = default, field = bug_fields.keywords, editable = 1,
+        value = keywords, possible_values = all_keywords,
+        desc_url = &quot;describekeywords.cgi&quot;, value_span = 3
+      %]
+    &lt;/tr&gt;
+  [% END %]
+  
</ins><span class="cx">   [% IF user.in_group('editbugs', product.id) %]
</span><del>-    [% IF use_keywords %]
-      &lt;tr&gt;
-        [% INCLUDE bug/field.html.tmpl
-           bug = default, field = bug_fields.keywords, editable = 1,
-           value = keywords, desc_url = &quot;describekeywords.cgi&quot;,
-           value_span = 2
-        %]
-      &lt;/tr&gt;
-    [% END %]
-
</del><span class="cx">     &lt;tr&gt;
</span><span class="cx">       [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">         field = bug_fields.dependson editable = 1
</span><span class="lines">@@ -645,6 +561,17 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><ins>+
+  [% IF Param('use_see_also') %]
+    &lt;tr&gt;
+      [% INCLUDE bug/field.html.tmpl
+         bug            = default
+         field          = bug_fields.see_also
+         editable       = 1
+         value          = see_also
+      %]
+    &lt;/tr&gt;
+  [% END %]
</ins><span class="cx"> &lt;/tbody&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tbody class=&quot;expert_fields&quot;&gt;
</span><span class="lines">@@ -654,13 +581,13 @@
</span><span class="cx">     &lt;td colspan=&quot;3&quot;&gt;
</span><span class="cx">       &lt;br&gt;
</span><span class="cx">         &lt;strong&gt;
</span><del>-          Only users in all of the selected groups can view this 
</del><ins>+          Only users in [%+ IF Param('or_groups') %]at least one[% ELSE %]all[% END %] of the selected groups can view this 
</ins><span class="cx">           [%+ terms.bug %]:
</span><span class="cx">         &lt;/strong&gt;
</span><span class="cx">       &lt;br&gt;
</span><del>-      &lt;font size=&quot;-1&quot;&gt;
</del><ins>+      &lt;span class=&quot;bz_info&quot;&gt;
</ins><span class="cx">         (Leave all boxes unchecked to make this a public [% terms.bug %].)
</span><del>-      &lt;/font&gt;
</del><ins>+      &lt;/span&gt;
</ins><span class="cx">       &lt;br&gt;
</span><span class="cx">       &lt;br&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatecreatedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/created.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/created.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/created.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -28,8 +16,6 @@
</span><span class="cx">   #     template bug/edit.html.tmpl
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS &quot;bug/show-header.html.tmpl&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;$terms.Bug $id Submitted &amp;ndash; $filtered_desc&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreatemaketemplatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/make-template.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/make-template.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/make-template.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,10 +11,8 @@
</span><span class="cx">   # short_desc: Bug summary as entered in the form.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-  title = &quot;Bookmarks are your friend&quot;
</del><ins>+  title = &quot;Bookmark For $terms.Bug Entry&quot;
</ins><span class="cx">   header = &quot;Template constructed&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugcreateusermessagehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/create/user-message.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/create/user-message.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/create/user-message.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Matthew Tuck &lt;matty@chariot.net.au&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Migration note: this file corresponds to the old Param
</span><span class="lines">@@ -27,8 +15,6 @@
</span><span class="cx">   # the 'product' variable.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> Before reporting [% terms.abug %], please read the 
</span><span class="cx"> &lt;a href=&quot;page.cgi?id=bug-writing.html&quot;&gt;
</span><span class="cx"> [% terms.bug %] writing guidelines&lt;/a&gt;, please look at the list of
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugdependencygraphhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-graph.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-graph.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-graph.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -30,8 +18,6 @@
</span><span class="cx">                        dependencies. (Optional)
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = &quot;Dependency Graph&quot;
</span><span class="cx">    header = title
</span><span class="cx">  %]
</span><span class="lines">@@ -65,7 +51,7 @@
</span><span class="cx"> &lt;form action=&quot;showdependencygraph.cgi&quot; method=&quot;GET&quot;&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;left&quot;&gt;&lt;label for=&quot;id&quot;&gt;[% terms.Bug %] numbers&lt;/label&gt;:&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;id&quot;&gt;[% terms.Bug %] numbers&lt;/label&gt;:&lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input id=&quot;id&quot; name=&quot;id&quot; value=&quot;[% bug_id %]&quot;&gt;&lt;/td&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;checkbox&quot; id=&quot;showsummary&quot; name=&quot;showsummary&quot; [% &quot; checked&quot; IF showsummary %]&gt;
</span><span class="lines">@@ -74,7 +60,7 @@
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;left&quot;&gt;&lt;label for=&quot;display&quot;&gt;Display:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;display&quot;&gt;Display:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td colspan=&quot;2&quot;&gt;
</span><span class="cx">         &lt;select id=&quot;display&quot; name=&quot;display&quot;&gt;
</span><span class="cx">           &lt;option value=&quot;tree&quot;[% 'selected=&quot;selected&quot;' IF (!display || display == &quot;tree&quot;) %]&gt;
</span><span class="lines">@@ -86,7 +72,7 @@
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;left&quot;&gt;&lt;label for=&quot;rankdir&quot;&gt;Orientation:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      &lt;th&gt;&lt;label for=&quot;rankdir&quot;&gt;Orientation:&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;td colspan=&quot;2&quot;&gt;
</span><span class="cx">         &lt;select id=&quot;rankdir&quot; name=&quot;rankdir&quot;&gt;
</span><span class="cx">           &lt;option value=&quot;TB&quot;[% &quot; selected&quot; IF rankdir == &quot;TB&quot; %]&gt;Top to bottom&lt;/option&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugdependencytreehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-tree.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-tree.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/dependency-tree.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Tobias Burnus &lt;burnus@net-b.de&gt;
-  #                 Ville Skyttä &lt;ville.skytta@iki.fi&gt;
-  #                 Myk Melez &lt;myk@mozilla.org&gt;
-  #                 André Batosti &lt;batosti@async.com.br&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS 'global/field-descs.none.tmpl' %]
-
</del><span class="cx"> [% filtered_desc = blocked_tree.$bugid.short_desc FILTER html %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title           = &quot;Dependency tree for $terms.Bug $bugid&quot;
</span><span class="lines">@@ -29,9 +12,9 @@
</span><span class="cx">    header          = &quot;Dependency tree for 
</span><span class="cx">                       &lt;a href=\&quot;show_bug.cgi?id=$bugid\&quot;&gt;$terms.Bug $bugid&lt;/a&gt;&quot;
</span><span class="cx">    javascript_urls = [&quot;js/expanding-tree.js&quot;]
</span><del>-   style_urls      = [&quot;skins/standard/dependency-tree.css&quot;]
-   subheader      = filtered_desc
-   doc_section = &quot;hintsandtips.html#dependencytree&quot;
</del><ins>+   style_urls      = ['skins/standard/bug.css']
+   subheader       = filtered_desc
+   doc_section     = &quot;using/understanding.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS depthControlToolbar %]
</span><span class="lines">@@ -169,9 +152,12 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK buginfo %]
</span><del>-  [% display_value(&quot;bug_status&quot;, bug.bug_status) FILTER html -%] [%+ display_value(&quot;resolution&quot;, bug.resolution) FILTER html %];
</del><ins>+  [% display_value(&quot;bug_status&quot;, bug.bug_status) FILTER html -%]
+  [%- IF bug.resolution %] [%+ display_value(&quot;resolution&quot;, bug.resolution) FILTER html %][% END %];
</ins><span class="cx">   [%-%] assigned to [% bug.assigned_to.login FILTER email FILTER html %]
</span><del>-  [%-%][% &quot;; Target: &quot; _ bug.target_milestone IF bug.target_milestone %]
</del><ins>+  [% IF Param(&quot;usetargetmilestone&quot;) AND bug.target_milestone %]
+    [%-%]; target: [% bug.target_milestone FILTER html %]
+  [% END %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%###########################################################################%]
</span><span class="lines">@@ -179,13 +165,12 @@
</span><span class="cx"> [%###########################################################################%]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK depthControlToolbar %]
</span><del>- &lt;table cellpadding=&quot;3&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#e0e0e0&quot;&gt;
</del><ins>+ &lt;table class=&quot;dependency_tree_controls&quot;&gt;
</ins><span class="cx">    &lt;tr&gt;
</span><span class="cx">    [%# Hide/show resolved button
</span><span class="cx">        Swaps text depending on the state of hide_resolved %]
</span><del>-   &lt;td align=&quot;center&quot;&gt;
-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-           style=&quot;display: inline; margin: 0px;&quot;&gt;
</del><ins>+   &lt;td&gt;
+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
</ins><span class="cx">      &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;[% bugid %]&quot;&gt;
</span><span class="cx">      [% IF maxdepth %]
</span><span class="cx">        &lt;input name=&quot;maxdepth&quot; type=&quot;hidden&quot; value=&quot;[% maxdepth %]&quot;&gt;
</span><span class="lines">@@ -205,11 +190,9 @@
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;td&gt;
</span><del>-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-         style=&quot;display: inline; margin: 0px;&quot;&gt;
</del><ins>+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
</ins><span class="cx">      [%# set to one form %]
</span><del>-     &lt;input type=&quot;submit&quot; id=&quot;change_maxdepth&quot;
-       value=&quot;&amp;nbsp;1&amp;nbsp;&quot; 
</del><ins>+     &lt;input type=&quot;submit&quot; id=&quot;change_maxdepth&quot; value=&quot;1&quot;
</ins><span class="cx">        [% &quot;disabled&quot; IF realdepth &lt; 2 || maxdepth == 1 %]&gt;
</span><span class="cx">      &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;[% bugid %]&quot;&gt;
</span><span class="cx">      &lt;input name=&quot;maxdepth&quot; type=&quot;hidden&quot; value=&quot;1&quot;&gt;
</span><span class="lines">@@ -218,8 +201,7 @@
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;td&gt;
</span><del>-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-         style=&quot;display: inline; margin: 0px;&quot;&gt;
</del><ins>+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
</ins><span class="cx">      [%# Minus one form
</span><span class="cx">          Allow subtracting only when realdepth and maxdepth &gt; 1 %]
</span><span class="cx">      &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;[% bugid %]&quot;&gt;
</span><span class="lines">@@ -228,15 +210,14 @@
</span><span class="cx">                        : ( maxdepth ? maxdepth - 1 : realdepth - 1 )
</span><span class="cx">      %]&quot;&gt;
</span><span class="cx">      &lt;input name=&quot;hide_resolved&quot; type=&quot;hidden&quot; value=&quot;[% hide_resolved %]&quot;&gt;
</span><del>-     &lt;input type=&quot;submit&quot; id=&quot;decrease_depth&quot; value=&quot;&amp;nbsp;&amp;lt;&amp;nbsp;&quot;
</del><ins>+     &lt;input type=&quot;submit&quot; id=&quot;decrease_depth&quot; value=&quot;&amp;lt;&quot;
</ins><span class="cx">        [% &quot;disabled&quot; IF realdepth &lt; 2 || ( maxdepth &amp;&amp; maxdepth &lt; 2 ) %]&gt;
</span><span class="cx">    &lt;/form&gt;
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;td&gt;
</span><del>-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-         style=&quot;display: inline; margin: 0px;&quot;&gt;
-     [%# Limit entry form: the button can not do anything when total depth
</del><ins>+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
+     [%# Limit entry form: the button cannot do anything when total depth
</ins><span class="cx">          is less than two, so disable it %]
</span><span class="cx">      &lt;input name=&quot;maxdepth&quot; size=&quot;4&quot; maxlength=&quot;4&quot; value=&quot;[%
</span><span class="cx">          maxdepth &gt; 0 &amp;&amp; maxdepth &lt;= realdepth ? maxdepth : &quot;&quot;
</span><span class="lines">@@ -251,8 +232,7 @@
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;td&gt;
</span><del>-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-         style=&quot;display: inline; margin: 0px;&quot;&gt;
</del><ins>+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
</ins><span class="cx">      [%# plus one form
</span><span class="cx">          Disable button if total depth &lt; 2, or if depth set to unlimited %]
</span><span class="cx">      &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;[% bugid %]&quot;&gt;
</span><span class="lines">@@ -260,19 +240,18 @@
</span><span class="cx">        &lt;input name=&quot;maxdepth&quot; type=&quot;hidden&quot; value=&quot;[% maxdepth + 1 %]&quot;&gt;
</span><span class="cx">      [% END %]
</span><span class="cx">      &lt;input name=&quot;hide_resolved&quot; type=&quot;hidden&quot; value=&quot;[% hide_resolved %]&quot;&gt;
</span><del>-     &lt;input type=&quot;submit&quot; id=&quot;increase_depth&quot; value=&quot;&amp;nbsp;&amp;gt;&amp;nbsp;&quot; 
</del><ins>+     &lt;input type=&quot;submit&quot; id=&quot;increase_depth&quot; value=&quot;&amp;gt;&quot;
</ins><span class="cx">         [% &quot;disabled&quot; IF realdepth &lt; 2 || !maxdepth || maxdepth &gt;= realdepth %]&gt;
</span><span class="cx">    &lt;/form&gt;
</span><span class="cx">    &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">    &lt;td&gt;
</span><del>-   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;
-         style=&quot;display: inline; margin: 0px;&quot;&gt;
</del><ins>+   &lt;form method=&quot;get&quot; action=&quot;showdependencytree.cgi&quot;&gt;
</ins><span class="cx">      [%# Unlimited button %]
</span><span class="cx">      &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;[% bugid %]&quot;&gt;
</span><span class="cx">      &lt;input name=&quot;hide_resolved&quot; type=&quot;hidden&quot; value=&quot;[% hide_resolved %]&quot;&gt;
</span><span class="cx">      &lt;input type=&quot;submit&quot; id=&quot;remove_limit&quot;
</span><del>-       value=&quot;&amp;nbsp;Unlimited&amp;nbsp;&quot;
</del><ins>+       value=&quot;Unlimited&quot;
</ins><span class="cx">        [% &quot;disabled&quot; IF maxdepth == 0 || maxdepth == realdepth %]&gt;
</span><span class="cx">    &lt;/form&gt;
</span><span class="cx">    &lt;/td&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugedithtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/edit.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/edit.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/edit.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,124 +1,52 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vaskin Kissoyan &lt;vkissoyan@yahoo.com&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Olav Vitters &lt;olav@bkor.dhs.org&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  #                 Elliotte Martin &lt;emartin@everythingsolved.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% PROCESS bug/time.html.tmpl %]
</span><span class="cx"> 
</span><del>-  &lt;script type=&quot;text/javascript&quot;&gt;
-  &lt;!--
-  
-  /* Outputs a link to call replyToComment(); used to reduce HTML output */
-  function addReplyLink(id, real_id) {
-      /* XXX this should really be updated to use the DOM Core's
-       * createElement, but finding a container isn't trivial.
-       */
-      [% IF user.settings.quote_replies.value != 'off' %]
-        document.write('[&lt;a href=&quot;#add_comment&quot; onclick=&quot;replyToComment(' + 
-                       id + ',' + real_id + '); return false;&quot;&gt;reply&lt;' + '/a&gt;]');
-      [% END %]
-  }
</del><ins>+[% IF Param('comment_taggers_group') %]
+  [% IF user.can_tag_comments %]
+    &lt;div id=&quot;bz_ctag_div&quot; class=&quot;bz_default_hidden&quot;&gt;
+      &lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;YAHOO.bugzilla.commentTagging.hideInput()&quot;&gt;x&lt;/a&gt;
+      &lt;div&gt;
+        &lt;input id=&quot;bz_ctag_add&quot; size=&quot;10&quot; placeholder=&quot;add tag&quot;
+              maxlength=&quot;[% constants.MAX_COMMENT_TAG_LENGTH FILTER html %]&quot;&gt;
+        &lt;span id=&quot;bz_ctag_autocomp&quot;&gt;&lt;/span&gt;
+      &lt;/div&gt;
+      &amp;nbsp;
+    &lt;/div&gt;
+    &lt;div id=&quot;bz_ctag_error&quot; class=&quot;bz_default_hidden&quot;&gt;
+      &lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;YAHOO.bugzilla.commentTagging.hideError()&quot;&gt;x&lt;/a&gt;
+      &lt;span id=&quot;bz_ctag_error_msg&quot;&gt;&lt;/span&gt;
+    &lt;/div&gt;
+  [% END %]
+  [% IF user.id %]
+    &lt;script type=&quot;text/javascript&quot;&gt;
+      YAHOO.bugzilla.commentTagging.init([% user.can_tag_comments ? 'true' : 'false' %]);
+      YAHOO.bugzilla.commentTagging.min_len = [% constants.MIN_COMMENT_TAG_LENGTH FILTER js %];
+      YAHOO.bugzilla.commentTagging.max_len = [% constants.MAX_COMMENT_TAG_LENGTH FILTER js %];
+      YAHOO.bugzilla.commentTagging.label = 'Comment Tags:';
+      YAHOO.bugzilla.commentTagging.min_len_error =
+        'Comment tags must be at least
+        [%~ &quot; &quot; _ constants.MIN_COMMENT_TAG_LENGTH FILTER js %] characters.';
+      YAHOO.bugzilla.commentTagging.max_len_error =
+        'Comment tags cannot be longer than
+        [%~ &quot; &quot; _ constants.MAX_COMMENT_TAG_LENGTH FILTER js %] characters.';
+    &lt;/script&gt;
+  [% END %]
+[% END %]
</ins><span class="cx"> 
</span><del>-  /* Adds the reply text to the `comment' textarea */
-  function replyToComment(id, real_id) {
-      var prefix = &quot;(In reply to comment #&quot; + id + &quot;)\n&quot;;
-      var replytext = &quot;&quot;;
-      [% IF user.settings.quote_replies.value == 'quoted_reply' %]
-        /* pre id=&quot;comment_name_N&quot; */
-        var text_elem = document.getElementById('comment_text_'+id);
-        var text = getText(text_elem);
-        replytext = prefix + wrapReplyText(text);
-      [% ELSIF user.settings.quote_replies.value == 'simple_reply' %]
-        replytext = prefix;
-      [% END %]
-
-    [% IF user.is_insider %]
-      if (document.getElementById('isprivate_' + real_id).checked) {
-          document.getElementById('newcommentprivacy').checked = 'checked';
-          updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment'); 
-      }
-    [% END %]
-
-      /* &lt;textarea id=&quot;comment&quot;&gt; */
-      var textarea = document.getElementById('comment');
-      textarea.value += replytext;
-
-      textarea.focus();
-  }
-
-  if (typeof Node == 'undefined') {
-      /* MSIE doesn't define Node, so provide a compatibility object */
-      window.Node = {
-          TEXT_NODE: 3,
-          ENTITY_REFERENCE_NODE: 5
-      };
-  }
-
-  /* Concatenates all text from element's childNodes. This is used
-   * instead of innerHTML because we want the actual text (and
-   * innerText is non-standard).
-   */
-  function getText(element) {
-      var child, text = &quot;&quot;;
-      for (var i=0; i &lt; element.childNodes.length; i++) {
-          child = element.childNodes[i];
-          var type = child.nodeType;
-          if (type == Node.TEXT_NODE || type == Node.ENTITY_REFERENCE_NODE) {
-              text += child.nodeValue;
-          } else {
-              /* recurse into nodes of other types */
-              text += getText(child);
-          }
-      }
-      return text;
-  }
-
</del><ins>+&lt;script type=&quot;text/javascript&quot;&gt;
+&lt;!--
</ins><span class="cx"> [% IF user.is_timetracker %]
</span><del>-  var fRemainingTime = [% bug.remaining_time %]; // holds the original value
-  function adjustRemainingTime() {
-      // subtracts time spent from remaining time
-      var new_time;
-
-      // prevent negative values if work_time &gt; fRemainingTime
-      new_time =
-          Math.max(fRemainingTime - document.changeform.work_time.value, 0.0);
-      // get upto 2 decimal places
-      document.changeform.remaining_time.value =
-          Math.round(new_time * 100)/100;
-  }
-
-  function updateRemainingTime() {
-      // if the remaining time is changed manually, update fRemainingTime
-      fRemainingTime = document.changeform.remaining_time.value;
-  }
-
</del><ins>+  var bz_remaining_time = [% bug.remaining_time %];
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% IF user.id %]
</ins><span class="cx">   /* Index all classifications so we can keep track of the classification
</span><span class="cx">    * for the selected product, which could control field visibility.
</span><span class="cx">    */
</span><span class="lines">@@ -127,14 +55,13 @@
</span><span class="cx">       all_classifications['[% product.name FILTER js %]'] = '
</span><span class="cx">           [%- product.classification.name FILTER js %]';
</span><span class="cx">   [%- END %]
</span><ins>+[% END %]
+//--&gt;
+&lt;/script&gt;
</ins><span class="cx"> 
</span><del>-  //--&gt;
-  &lt;/script&gt;
-
</del><span class="cx"> &lt;form name=&quot;changeform&quot; id=&quot;changeform&quot; method=&quot;post&quot; action=&quot;process_bug.cgi&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;delta_ts&quot; value=&quot;[% bug.delta_ts %]&quot;&gt;
</span><del>-  &lt;input type=&quot;hidden&quot; name=&quot;longdesclength&quot; value=&quot;[% bug.comments.size %]&quot;&gt;
</del><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% bug.bug_id %]&quot;&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token([bug.id, bug.delta_ts]) FILTER html %]&quot;&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -148,15 +75,19 @@
</span><span class="cx">         &lt;table&gt;
</span><span class="cx">           [%# *** ID, product, component, status, resolution, Hardware, and  OS *** %]
</span><span class="cx">           [% PROCESS section_status %]
</span><del>-          
</del><ins>+
</ins><span class="cx">           [% PROCESS section_spacer %]
</span><del>-          
</del><ins>+
+          [% PROCESS section_aliases %]
+
+          [% PROCESS section_spacer %]
+
</ins><span class="cx">           [% PROCESS section_details1 %]
</span><span class="cx">           
</span><span class="cx">           [% PROCESS section_spacer %]
</span><span class="cx">           
</span><del>-          [%# *** severity, priority, version and milestone *** %]
-          [% PROCESS section_details2 %]            
</del><ins>+          [%# *** severity, priority, version, milestone, and deadline *** %]
+          [% PROCESS section_details2 %]
</ins><span class="cx">           
</span><span class="cx">           [%# *** assigned to and qa contact *** %]
</span><span class="cx">           [% PROCESS section_people %]
</span><span class="lines">@@ -166,8 +97,10 @@
</span><span class="cx">           [% PROCESS section_url_keyword_whiteboard %]
</span><span class="cx">           
</span><span class="cx">           [% PROCESS section_spacer %]
</span><del>-          
-          [%# *** Dependencies *** %]
</del><ins>+
+          [%# *** Dependencies and duplicates *** %]
+          [% PROCESS section_duplicates %]
+
</ins><span class="cx">           [% PROCESS section_dependson_blocks %]
</span><span class="cx">           
</span><span class="cx">         &lt;/table&gt;
</span><span class="lines">@@ -177,22 +110,24 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       [%# 2nd Column %]
</span><span class="cx">       &lt;td id=&quot;bz_show_bug_column_2&quot; class=&quot;bz_show_bug_column&quot;&gt;
</span><del>-        &lt;table cellpadding=&quot;3&quot; cellspacing=&quot;1&quot;&gt;
</del><ins>+        &lt;table&gt;
</ins><span class="cx">         [%# *** Reported and modified dates *** %]
</span><span class="cx">          [% PROCESS section_dates %]
</span><del>-         
</del><ins>+
</ins><span class="cx">          [% PROCESS section_cclist %]
</span><del>-         
</del><ins>+
+         [% PROCESS section_bug_ignored %]
+
</ins><span class="cx">          [% PROCESS section_spacer %]
</span><span class="cx"> 
</span><span class="cx">          [% PROCESS section_see_also %] 
</span><del>-         
</del><ins>+
</ins><span class="cx">          [% PROCESS section_customfields %]
</span><del>-         
</del><ins>+
</ins><span class="cx">          [% PROCESS section_spacer %]
</span><del>-         
</del><ins>+
</ins><span class="cx">          [% Hook.process(&quot;after_custom_fields&quot;) %]
</span><del>-                
</del><ins>+
</ins><span class="cx">          [% PROCESS section_flags %]
</span><span class="cx"> 
</span><span class="cx">         &lt;/table&gt;
</span><span class="lines">@@ -205,7 +140,8 @@
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><del>-  &lt;table id=&quot;bz_big_form_parts&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;
</del><ins>+  &lt;table id=&quot;bz_big_form_parts&quot;&gt;
+  &lt;tr&gt;
</ins><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% IF user.is_timetracker %]
</span><span class="cx">       [% PROCESS section_timetracking %]
</span><span class="lines">@@ -250,65 +186,38 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK section_title %]
</span><span class="cx">   [%# That's the main table, which contains all editable fields. %]
</span><del>-  &lt;div class=&quot;bz_alias_short_desc_container edit_form&quot;&gt;
</del><ins>+  &lt;div class=&quot;bz_short_desc_container edit_form&quot;&gt;
</ins><span class="cx">       [% PROCESS commit_button id=&quot;_top&quot;%]
</span><span class="cx">      &lt;a href=&quot;show_bug.cgi?id=[% bug.bug_id %]&quot;&gt;
</span><span class="cx">         [%-# %]&lt;b&gt;[% terms.Bug %]&amp;nbsp;[% bug.bug_id FILTER html %]&lt;/b&gt;
</span><del>-     [%-# %]&lt;/a&gt; -&lt;span id=&quot;summary_alias_container&quot; class=&quot;bz_default_hidden&quot;&gt; 
-      [% IF Param(&quot;usebugaliases&quot;) %]
-        [% IF bug.alias != &quot;&quot; %]
-          (&lt;span id=&quot;alias_nonedit_display&quot;&gt;[% bug.alias FILTER html %]&lt;/span&gt;) 
-        [% END %]
</del><ins>+     [%-# %]&lt;/a&gt; &lt;span id=&quot;summary_container&quot; class=&quot;bz_default_hidden&quot;&gt;
+      [% IF bug.alias.size &gt; 0 %]
+        (&lt;span id=&quot;alias_nonedit_display&quot;&gt;[% bug.alias.join(', ') FILTER html %]&lt;/span&gt;)
</ins><span class="cx">       [% END %]
</span><del>-      &lt;span id=&quot;short_desc_nonedit_display&quot;&gt;[% bug.short_desc FILTER quoteUrls(bug) %]&lt;/span&gt;
-      [% IF bug.check_can_change_field('short_desc', 0, 1) || 
-            bug.check_can_change_field('alias', 0, 1)  %]
-        &lt;small class=&quot;editme&quot;&gt;(&lt;a href=&quot;#&quot; id=&quot;editme_action&quot;&gt;edit&lt;/a&gt;)&lt;/small&gt;
</del><ins>+      - &lt;span id=&quot;short_desc_nonedit_display&quot;&gt;[% bug.short_desc FILTER quoteUrls(bug) %]&lt;/span&gt;
+      [% can_edit_short_desc = bug.check_can_change_field('short_desc', 0, 1) %]
+      [% IF can_edit_short_desc %]
+        &lt;small&gt;(&lt;a href=&quot;#&quot; id=&quot;summary_edit_action&quot;&gt;edit&lt;/a&gt;)&lt;/small&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx">      &lt;/span&gt;
</span><del>-  
-       
-    &lt;div id=&quot;summary_alias_input&quot;&gt;
-      &lt;table id=&quot;summary&quot;&gt; 
-        [% IF Param(&quot;usebugaliases&quot;) %]
-          &lt;tr&gt;
-          [% IF bug.check_can_change_field('alias', 0, 1) %]      
-            &lt;td&gt;
-              &lt;label 
-                for=&quot;alias&quot; 
-                title=&quot;a name for the 
-                       [% terms.bug %] that can be used in place of its ID number, 
-                       [%%] e.g. when adding it to a list of dependencies&quot;
-                &gt;Alias&lt;/label&gt;:&lt;/td&gt;&lt;td&gt;
-          [% ELSIF bug.alias %]
-            &lt;td colspan=&quot;2&quot;&gt;(
-          [% ELSE %]
-            &lt;td colspan=&quot;2&quot;&gt;
-          [% END %]
-          [% PROCESS input inputname =&gt; &quot;alias&quot; 
-                     size =&gt; &quot;20&quot; 
-                     maxlength =&gt; &quot;20&quot;  
-                     no_td =&gt; 1 
-                     %][% &quot;)&quot; IF NOT bug.check_can_change_field('alias', 0, 1) 
-                                  &amp;&amp; bug.alias %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
-        [% END %] 
-        [%# *** Summary *** %]
-        &lt;tr&gt;
-          &lt;td&gt;
-            &lt;label accesskey=&quot;s&quot; for=&quot;short_desc&quot;&gt;&lt;u&gt;S&lt;/u&gt;ummary&lt;/label&gt;:
-          &lt;/td&gt;
-          &lt;td&gt;
-            [% PROCESS input inputname =&gt; &quot;short_desc&quot; size =&gt; &quot;80&quot; colspan =&gt; 2
-                             maxlength =&gt; 255 spellcheck =&gt; &quot;true&quot; no_td =&gt; 1 %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      &lt;/table&gt;
</del><ins>+
+    &lt;div id=&quot;summary_input&quot;&gt;
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+        field = bug_fields.short_desc
+        editable = can_edit_short_desc
+        accesskey = &quot;s&quot;
+        tag_name = 'span'
+      %]
+      [% PROCESS input inputname =&gt; &quot;short_desc&quot; size =&gt; &quot;80&quot;
+                       maxlength =&gt; 255 spellcheck =&gt; &quot;true&quot; no_td =&gt; 1 %]
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx">   &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-    hideAliasAndSummary('[% bug.short_desc FILTER js %]', '[% bug.alias FILTER js %]');
</del><ins>+    hideEditableField('summary_container',
+                      'summary_input',
+                      'summary_edit_action',
+                      'short_desc',
+                      '[% bug.short_desc FILTER js %]' );
</ins><span class="cx">   &lt;/script&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -322,11 +231,12 @@
</span><span class="cx">     [%#  PRODUCT  #%]
</span><span class="cx">     [%#############%]
</span><span class="cx">     &lt;tr&gt;
</span><del>-       [% INCLUDE bug/field.html.tmpl
-            bug = bug, field = bug_fields.product,
-            override_legal_values = bug.choices.product
-            desc_url = 'describecomponents.cgi', value = bug.product
-            editable = bug.check_can_change_field('product', 0, 1) %]
</del><ins>+      [% INCLUDE bug/field.html.tmpl
+          bug = bug, field = bug_fields.product, value = bug.product
+          override_legal_values = bug.choices.product
+          desc_url = &quot;describecomponents.cgi&quot;
+          editable = bug.check_can_change_field('product', 0, 1)
+      %]
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     [%# Classification is here so that it can be used in value controllers
</span><span class="lines">@@ -353,13 +263,12 @@
</span><span class="cx">       %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
</del><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-        &lt;label for=&quot;version&quot;&gt;&lt;b&gt;&lt;u&gt;V&lt;/u&gt;ersion&lt;/b&gt;&lt;/label&gt;:
-[%# endif // WEBKIT_CHANGES %]
-      &lt;/td&gt;
</del><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+          field = bug_fields.version
+          accesskey = &quot;v&quot;
+          editable = bug.check_can_change_field('version', 0, 1) %]
</ins><span class="cx"> 
</span><del>-[%# if WEBKIT_CHANGES %]
</del><span class="cx">       [% PROCESS select selname =&gt; &quot;version&quot; accesskey =&gt; &quot;v&quot; %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -367,23 +276,20 @@
</span><span class="cx">     [%# PLATFORM #%]
</span><span class="cx">     [%############%]    
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;rep_platform&quot; accesskey=&quot;h&quot;&gt;&lt;b&gt;Platform&lt;/b&gt;&lt;/label&gt;:
-      &lt;/td&gt;
</del><ins>+      [% can_edit_rep_platform = bug.check_can_change_field('rep_platform', 0, 1) %]
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+           field = bug_fields.rep_platform,
+           editable = can_edit_rep_platform,
+           accesskey = &quot;h&quot; %]
</ins><span class="cx">       &lt;td class=&quot;field_value&quot;&gt;
</span><del>-       [% INCLUDE bug/field.html.tmpl
</del><ins>+        [% INCLUDE bug/field.html.tmpl
</ins><span class="cx">             bug = bug, field = bug_fields.rep_platform,
</span><span class="cx">             no_tds = 1, value = bug.rep_platform
</span><del>-            editable = bug.check_can_change_field('rep_platform', 0, 1) %]
-       [%+ INCLUDE bug/field.html.tmpl 
</del><ins>+            editable = can_edit_rep_platform %]
+        [%+ INCLUDE bug/field.html.tmpl
</ins><span class="cx">             bug = bug, field = bug_fields.op_sys, 
</span><span class="cx">             no_tds = 1, value = bug.op_sys
</span><span class="cx">             editable = bug.check_can_change_field('op_sys', 0, 1) %]
</span><del>-       &lt;script type=&quot;text/javascript&quot;&gt;
-[%# if WEBKIT_CHANGES %]
-         assignToDefaultOnChange(['product']);
-[%# endif // WEBKIT_CHANGES %]
-       &lt;/script&gt;
</del><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -397,9 +303,9 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK section_status %]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td class=&quot;field_label&quot;&gt;
-      &lt;b&gt;&lt;a href=&quot;page.cgi?id=fields.html#status&quot;&gt;Status&lt;/a&gt;&lt;/b&gt;:
-    &lt;/td&gt;
</del><ins>+    &lt;th class=&quot;field_label&quot;&gt;
+      &lt;a href=&quot;page.cgi?id=fields.html#bug_status&quot;&gt;Status&lt;/a&gt;:
+    &lt;/th&gt;
</ins><span class="cx">     &lt;td id=&quot;bz_field_status&quot;&gt;
</span><span class="cx">       &lt;span id=&quot;static_bug_status&quot;&gt;
</span><span class="cx">         [% display_value(&quot;bug_status&quot;, bug.bug_status) FILTER html %]
</span><span class="lines">@@ -428,22 +334,21 @@
</span><span class="cx">  [%# Importance (priority and severity) #%]
</span><span class="cx">  [%###############################################################%]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;priority&quot; accesskey=&quot;i&quot;&gt;
-[%# if WEBKIT_CHANGES %]
-          &lt;b&gt;&lt;a href=&quot;page.cgi?id=fields.html#importance&quot;&gt;&lt;u&gt;I&lt;/u&gt;mportanc&lt;u&gt;e&lt;/u&gt;&lt;/a&gt;&lt;/b&gt;&lt;/label&gt;:
-[%# endif // WEBKIT_CHANGES %]
-      &lt;/td&gt;
</del><ins>+      &lt;th class=&quot;field_label&quot;&gt;
+        [% can_edit_priority = bug.check_can_change_field('priority', 0, 1) %]
+        &lt;label [% IF can_edit_priority %]for=&quot;priority&quot;[% END %] accesskey=&quot;i&quot;&gt;
+          &lt;a href=&quot;page.cgi?id=fields.html#importance&quot;&gt;&lt;u&gt;I&lt;/u&gt;mportance&lt;/a&gt;&lt;/label&gt;:
+      &lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">        [% INCLUDE bug/field.html.tmpl
</span><span class="cx">             bug = bug, field = bug_fields.priority,
</span><span class="cx">             no_tds = 1, value = bug.priority
</span><del>-            editable = bug.check_can_change_field('priority', 0, 1) %]
</del><ins>+            editable = can_edit_priority %]
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><span class="cx">        [%+ INCLUDE bug/field.html.tmpl
</span><span class="cx">             bug = bug, field = bug_fields.bug_severity,
</span><span class="cx">             no_tds = 1, value = bug.bug_severity
</span><del>-            accesskey = 'e'
</del><ins>+            accesskey = &quot;e&quot;
</ins><span class="cx">             editable = bug.check_can_change_field('bug_severity', 0, 1) %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">         [% Hook.process('after_importance', 'bug/edit.html.tmpl') %]
</span><span class="lines">@@ -452,19 +357,24 @@
</span><span class="cx"> 
</span><span class="cx">     [% IF Param(&quot;usetargetmilestone&quot;) &amp;&amp; bug.target_milestone %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td class=&quot;field_label&quot;&gt;
-          &lt;label for=&quot;target_milestone&quot;&gt;
-              &lt;a href=&quot;page.cgi?id=fields.html#target_milestone&quot;&gt;
</del><ins>+        [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+          field = bug_fields.target_milestone
+          editable = bug.check_can_change_field('target_milestone', 0, 1)
+        %]
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-            &lt;u&gt;T&lt;/u&gt;arget&amp;nbsp;Milestone&lt;/a&gt;&lt;/label&gt;:
-[%# endif // WEBKIT_CHANGES %]
-        &lt;/td&gt;
-[%# if WEBKIT_CHANGES %]
</del><span class="cx">         [% PROCESS select selname =&gt; &quot;target_milestone&quot; accesskey =&gt; &quot;t&quot; %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><del>-  
</del><ins>+
+    [% IF Param(&quot;timetrackinggroup&quot;) &amp;&amp; bug.deadline %]
+      &lt;tr&gt;
+        &lt;th class=&quot;field_label&quot;&gt;
+          &lt;a href=&quot;page.cgi?id=fields.html#deadline&quot;&gt;Deadline&lt;/a&gt;:
+        &lt;/th&gt;
+        &lt;td&gt;[% bug.deadline FILTER html %]&lt;/td&gt;
+      &lt;/tr&gt;
+    [% END %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -474,11 +384,13 @@
</span><span class="cx"> [% BLOCK section_people %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;b&gt;&lt;a href=&quot;page.cgi?id=fields.html#assigned_to&quot;&gt;Assigned To&lt;/a&gt;&lt;/b&gt;:
-      &lt;/td&gt;
</del><ins>+      [% can_edit_assigned_to = bug.check_can_change_field(&quot;assigned_to&quot;, 0, 1) %]
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+          field = bug_fields.assigned_to
+          editable = can_edit_assigned_to
+      %]
</ins><span class="cx">       &lt;td&gt;
</span><del>-        [% IF bug.check_can_change_field(&quot;assigned_to&quot;, 0, 1) %]
</del><ins>+        [% IF can_edit_assigned_to %]
</ins><span class="cx">           &lt;div id=&quot;bz_assignee_edit_container&quot; class=&quot;bz_default_hidden&quot;&gt;
</span><span class="cx">             &lt;span&gt;
</span><span class="cx">               [% INCLUDE global/user.html.tmpl who = bug.assigned_to %]
</span><span class="lines">@@ -523,28 +435,32 @@
</span><span class="cx"> 
</span><span class="cx">     [% IF Param('useqacontact') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;qa_contact&quot; accesskey=&quot;q&quot;&gt;&lt;b&gt;&lt;u&gt;Q&lt;/u&gt;A Contact&lt;/b&gt;&lt;/label&gt;:
-      &lt;/td&gt;
</del><ins>+      [% can_edit_qa_contact = bug.check_can_change_field(&quot;qa_contact&quot;, 0, 1) %]
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+        field = bug_fields.qa_contact
+        editable = can_edit_qa_contact
+        accesskey = &quot;q&quot;
+      %]
</ins><span class="cx">       &lt;td&gt;
</span><del>-        [% IF bug.check_can_change_field(&quot;qa_contact&quot;, 0, 1) %]
-          [% IF bug.qa_contact != &quot;&quot; %]
-           &lt;div id=&quot;bz_qa_contact_edit_container&quot; class=&quot;bz_default_hidden&quot;&gt;
</del><ins>+        [% IF can_edit_qa_contact %]
+          &lt;div id=&quot;bz_qa_contact_edit_container&quot; class=&quot;bz_default_hidden&quot;&gt;
</ins><span class="cx">             &lt;span&gt;
</span><del>-              &lt;span id=&quot;bz_qa_contact_edit_display&quot;&gt;
-              [% INCLUDE global/user.html.tmpl who = bug.qa_contact %]&lt;/span&gt;
</del><ins>+              [% INCLUDE global/user.html.tmpl who = bug.qa_contact %]
</ins><span class="cx">               (&lt;a href=&quot;#&quot; id=&quot;bz_qa_contact_edit_action&quot;&gt;edit&lt;/a&gt;)
</span><ins>+              [% IF bug.qa_contact.id != user.id %]
+                (&lt;a title=&quot;Change QA contact to yourself&quot; 
+                    href=&quot;#&quot; id=&quot;bz_qa_contact_take_action&quot;&gt;take&lt;/a&gt;)
+              [% END %]
</ins><span class="cx">             &lt;/span&gt;
</span><span class="cx">           &lt;/div&gt;
</span><del>-          [% END %]
</del><span class="cx">           &lt;div id=&quot;bz_qa_contact_input&quot;&gt;
</span><span class="cx">             [% INCLUDE global/userselect.html.tmpl
</span><del>-                id =&gt; &quot;qa_contact&quot;
-                name =&gt; &quot;qa_contact&quot;
-                value =&gt; bug.qa_contact.login
-                size =&gt; 30
-                classes =&gt; [&quot;bz_userfield&quot;]
-                emptyok =&gt; 1
</del><ins>+               id      =&gt; &quot;qa_contact&quot;
+               name    =&gt; &quot;qa_contact&quot;
+               value   =&gt; bug.qa_contact.login
+               size    =&gt; 30
+               classes =&gt; [&quot;bz_userfield&quot;]
+               emptyok =&gt; 1
</ins><span class="cx">             %]
</span><span class="cx">             &lt;br&gt;
</span><span class="cx">             &lt;input type=&quot;checkbox&quot; id=&quot;set_default_qa_contact&quot; name=&quot;set_default_qa_contact&quot; value=&quot;1&quot;&gt;
</span><span class="lines">@@ -551,13 +467,17 @@
</span><span class="cx">             &lt;label for=&quot;set_default_qa_contact&quot; id=&quot;set_default_qa_contact_label&quot;&gt;Reset QA Contact to default&lt;/label&gt;
</span><span class="cx">           &lt;/div&gt;
</span><span class="cx">           &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-            [% IF bug.qa_contact != &quot;&quot; %]
-              hideEditableField('bz_qa_contact_edit_container', 
-                                 'bz_qa_contact_input', 
-                                 'bz_qa_contact_edit_action', 
-                                 'qa_contact', 
-                                 '[% bug.qa_contact.login FILTER js %]');
-            [% END %]
</del><ins>+            hideEditableField('bz_qa_contact_edit_container', 
+                              'bz_qa_contact_input', 
+                              'bz_qa_contact_edit_action', 
+                              'qa_contact', 
+                              '[% bug.qa_contact.login FILTER js %]');
+            hideEditableField('bz_qa_contact_edit_container', 
+                              'bz_qa_contact_input', 
+                              'bz_qa_contact_take_action', 
+                              'qa_contact', 
+                              '[% bug.qa_contact.login FILTER js %]',
+                              '[% user.login FILTER js %]');
</ins><span class="cx">             initDefaultCheckbox('qa_contact');
</span><span class="cx">           &lt;/script&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="lines">@@ -566,6 +486,13 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% END %]
</span><ins>+[%# if WEBKIT_CHANGES %]
+    &lt;script type=&quot;text/javascript&quot;&gt;
+      assignToDefaultOnChange(['product'],
+        '[% bug.component_obj.default_assignee.login FILTER js %]',
+        '[% bug.component_obj.default_qa_contact.login FILTER js %]');
+    &lt;/script&gt;
+[%# endif WEBKIT_CHANGES %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -573,17 +500,18 @@
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> [% BLOCK section_url_keyword_whiteboard %]
</span><span class="cx">   &lt;tr&gt;
</span><ins>+    [% can_edit_bug_file_loc = bug.check_can_change_field(&quot;bug_file_loc&quot;, 0, 1) %]
</ins><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">       field = bug_fields.bug_file_loc
</span><del>-      editable = 1
</del><ins>+      editable = can_edit_bug_file_loc
</ins><span class="cx">       accesskey = &quot;u&quot;
</span><span class="cx">     %]
</span><span class="cx">     &lt;td&gt;
</span><del>-      [% IF bug.check_can_change_field(&quot;bug_file_loc&quot;, 0, 1) %]
</del><ins>+      [% IF can_edit_bug_file_loc %]
</ins><span class="cx">         &lt;span id=&quot;bz_url_edit_container&quot; class=&quot;bz_default_hidden&quot;&gt; 
</span><span class="cx">         [% IF is_safe_url(bug.bug_file_loc) %]
</span><span class="cx">            &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot; target=&quot;_blank&quot;
</span><del>-              title=&quot;[% bug.bug_file_loc FILTER html %]&quot;&gt;
</del><ins>+              rel=&quot;noreferrer&quot; title=&quot;[% bug.bug_file_loc FILTER html %]&quot;&gt;
</ins><span class="cx">              [% bug.bug_file_loc FILTER truncate(40) FILTER html %]&lt;/a&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="cx">           [% bug.bug_file_loc FILTER html %]
</span><span class="lines">@@ -591,10 +519,11 @@
</span><span class="cx">         (&lt;a href=&quot;#&quot; id=&quot;bz_url_edit_action&quot;&gt;edit&lt;/a&gt;)&lt;/span&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">       &lt;span id=&quot;bz_url_input_area&quot;&gt;
</span><del>-        [% url_output =  PROCESS input no_td=1 inputname =&gt; &quot;bug_file_loc&quot; size =&gt; &quot;40&quot; colspan =&gt; 2 %]
</del><ins>+        [% url_output = INCLUDE input no_td = 1 inputname = &quot;bug_file_loc&quot; size = 40 %]
</ins><span class="cx">         [% IF NOT bug.check_can_change_field(&quot;bug_file_loc&quot;, 0, 1)
</span><span class="cx">               AND is_safe_url(bug.bug_file_loc) %]
</span><del>-          &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot;&gt;[% url_output FILTER none %]&lt;/a&gt;
</del><ins>+          &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot;
+             rel=&quot;noreferrer&quot;&gt;[% url_output FILTER none %]&lt;/a&gt;
</ins><span class="cx">         [% ELSE %]
</span><span class="cx">           [% url_output FILTER none %]
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -610,36 +539,64 @@
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><del>-  
</del><ins>+
</ins><span class="cx">   [% IF Param('usestatuswhiteboard') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;status_whiteboard&quot; accesskey=&quot;w&quot;&gt;&lt;b&gt;&lt;u&gt;W&lt;/u&gt;hiteboard&lt;/b&gt;&lt;/label&gt;:
-      &lt;/td&gt;
-      [% PROCESS input inputname =&gt; &quot;status_whiteboard&quot; size =&gt; &quot;40&quot; colspan =&gt; 2 %]
</del><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+        field = bug_fields.status_whiteboard
+        editable = bug.check_can_change_field(&quot;status_whiteboard&quot;, 0, 1)
+        accesskey = &quot;w&quot;
+      %]
+      [% INCLUDE input inputname = &quot;status_whiteboard&quot; size = 40 %]
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><del>-  
</del><ins>+
</ins><span class="cx">   [% IF use_keywords %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;keywords&quot; accesskey=&quot;k&quot;&gt;
-          &lt;b&gt;&lt;a href=&quot;describekeywords.cgi&quot;&gt;&lt;u&gt;K&lt;/u&gt;eywords&lt;/a&gt;&lt;/b&gt;&lt;/label&gt;:
-      &lt;/td&gt;
-      &lt;td class=&quot;field_value&quot; colspan=&quot;2&quot;&gt;
</del><span class="cx">         [% INCLUDE bug/field.html.tmpl
</span><del>-           bug = bug, field = bug_fields.keywords, value = bug.keywords
-           editable = bug.check_can_change_field(&quot;keywords&quot;, 0, 1),
-           no_tds = 1
</del><ins>+          bug = bug, field = bug_fields.keywords, value = bug.keywords
+          editable = bug.check_can_change_field(&quot;keywords&quot;, 0, 1),
+          desc_url = &quot;describekeywords.cgi&quot;, possible_values = all_keywords
</ins><span class="cx">         %]
</span><del>-      &lt;/td&gt;
</del><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><ins>+
+  [% IF user.id %]
+    &lt;tr&gt;
+      [% INCLUDE bug/field.html.tmpl
+         bug = bug, field = bug_fields.tag, value = bug.tags.join(&quot;, &quot;),
+         editable = 1, possible_values = user.tags.keys
+      %]
+    &lt;/tr&gt;
+  [% END %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><del>-[%# Block for Depends On / Blocks                                              #%]
</del><ins>+[%# Block for Duplicates                                                     #%]
</ins><span class="cx"> [%############################################################################%]
</span><ins>+
+[% BLOCK section_duplicates %]
+  [% RETURN UNLESS bug.duplicates.size %]
+  &lt;tr&gt;
+    &lt;th class=&quot;field_label&quot;&gt;
+      &lt;label&gt;Duplicates ([% bug.duplicates.size %])&lt;/label&gt;:
+    &lt;/th&gt;
+    &lt;td class=&quot;field_value&quot;&gt;
+      &lt;span id=&quot;duplicates&quot;&gt;
+        [% FOREACH dupe = bug.duplicates %]
+          [% INCLUDE bug/link.html.tmpl bug = dupe, link_text = dupe.id, use_alias = 1 %][% &quot; &quot; %]
+        [% END %]
+      &lt;/span&gt;
+      (&lt;a href=&quot;buglist.cgi?bug_id=[% bug.duplicate_ids.join(&quot;,&quot;) FILTER html %]&quot;&gt;
+       [%-%]view as [% terms.bug %] list&lt;/a&gt;)
+    &lt;/td&gt;
+  &lt;/tr&gt;
+[% END %]
+
+[%############################################################################%]
+[%# Block for Depends On / Blocks                                            #%]
+[%############################################################################%]
+
</ins><span class="cx"> [% BLOCK section_dependson_blocks %]
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE dependencies 
</span><span class="lines">@@ -649,18 +606,21 @@
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     [% INCLUDE dependencies 
</span><span class="cx">          field = bug_fields.blocked deps = bug.blocks_obj %]
</span><del>-  
-  &lt;tr&gt;
-    &lt;th&gt;&amp;nbsp;&lt;/th&gt;
-  
-    &lt;td colspan=&quot;2&quot; align=&quot;left&quot; id=&quot;show_dependency_tree_or_graph&quot;&gt;
-      Show dependency &lt;a href=&quot;showdependencytree.cgi?id=[% bug.bug_id %]&amp;amp;hide_resolved=1&quot;&gt;tree&lt;/a&gt;
-  
-      [% IF Param('webdotbase') %]
-        /&amp;nbsp;&lt;a href=&quot;showdependencygraph.cgi?id=[% bug.bug_id %]&quot;&gt;graph&lt;/a&gt;
-      [% END %]
-    &lt;/td&gt;
</del><span class="cx">   &lt;/tr&gt;
</span><ins>+
+  [% IF bug.dependson.size || bug.blocked.size %]
+    &lt;tr&gt;
+      &lt;th&gt;&amp;nbsp;&lt;/th&gt;
+
+      &lt;td id=&quot;show_dependency_tree_or_graph&quot;&gt;
+        Show dependency &lt;a href=&quot;showdependencytree.cgi?id=[% bug.bug_id %]&amp;amp;hide_resolved=1&quot;&gt;tree&lt;/a&gt;
+
+        [% IF Param('webdotbase') %]
+          /&amp;nbsp;&lt;a href=&quot;showdependencygraph.cgi?id=[% bug.bug_id %]&quot;&gt;graph&lt;/a&gt;
+        [% END %]
+      &lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -685,8 +645,9 @@
</span><span class="cx">       [% IF NOT emitted_description %]
</span><span class="cx">         [% emitted_description = 1 %]
</span><span class="cx">           &lt;div id=&quot;bz_restrict_group_visibility_help&quot;&gt;
</span><del>-            &lt;b&gt;Only users in all of the selected groups can view this 
-              [%+ terms.bug %]:&lt;/b&gt;
</del><ins>+            &lt;b&gt;Only users in
+              [%+ IF Param('or_groups') %]at least one[% ELSE %]all[% END %]
+              of the selected groups can view this [% terms.bug %]:&lt;/b&gt;
</ins><span class="cx">              &lt;p class=&quot;instructions&quot;&gt;
</span><span class="cx">                Unchecking all boxes makes this a more public [% terms.bug %].
</span><span class="cx">              &lt;/p&gt;
</span><span class="lines">@@ -766,20 +727,20 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK section_dates %]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td class=&quot;field_label&quot;&gt;
-      &lt;b&gt;Reported&lt;/b&gt;:
-    &lt;/td&gt;
</del><ins>+    &lt;th class=&quot;field_label&quot;&gt;
+      Reported:
+    &lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;
</span><del>-     [% bug.creation_ts FILTER time %] by [% INCLUDE global/user.html.tmpl who = bug.reporter %]
</del><ins>+     [% bug.creation_ts FILTER time(&quot;%Y-%m-%d %H:%M %Z&quot;) %] by [% INCLUDE global/user.html.tmpl who = bug.reporter %]
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td class=&quot;field_label&quot;&gt;
-      &lt;b&gt; Modified&lt;/b&gt;:
-    &lt;/td&gt;
</del><ins>+    &lt;th class=&quot;field_label&quot;&gt;
+      Modified:
+    &lt;/th&gt;
</ins><span class="cx">     &lt;td&gt;
</span><del>-      [% bug.delta_ts FILTER time FILTER replace(':\d\d$', '') FILTER replace(':\d\d ', ' ')%] 
</del><ins>+      [% bug.delta_ts FILTER time(&quot;%Y-%m-%d %H:%M %Z&quot;) %]
</ins><span class="cx">       (&lt;a href=&quot;show_activity.cgi?id=[% bug.bug_id %]&quot;&gt;[%# terms.Bug %]History&lt;/a&gt;)
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   
</span><span class="lines">@@ -791,27 +752,24 @@
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> [% BLOCK section_cclist %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label&quot;&gt;
-        &lt;label for=&quot;newcc&quot; accesskey=&quot;a&quot;&gt;&lt;b&gt;CC List&lt;/b&gt;:&lt;/label&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;th class=&quot;field_label&quot;&gt;
+        &lt;label [% IF user.id %]for=&quot;newcc&quot;[% END %] accesskey=&quot;a&quot;&gt;
+          CC List:
+        &lt;/label&gt;
+      &lt;/th&gt;
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% IF user.id %]
</span><del>-          [% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
-            [% has_role = bug.user.isreporter
-                          || bug.assigned_to.id == user.id
-                          || (Param('useqacontact')
-                              &amp;&amp; bug.qa_contact
-                              &amp;&amp; bug.qa_contact.id == user.id) %]
</del><ins>+          [% IF NOT bug.cc.contains(user.login) %]
</ins><span class="cx">             &lt;input type=&quot;checkbox&quot; id=&quot;addselfcc&quot; name=&quot;addselfcc&quot;
</span><span class="cx">               [% &quot; checked=\&quot;checked\&quot;&quot;
</span><span class="cx">                    IF user.settings.state_addselfcc.value == 'always'
</span><del>-                      || (!has_role
</del><ins>+                      || (!bug.user.has_any_role
</ins><span class="cx">                           &amp;&amp; user.settings.state_addselfcc.value == 'cc_unless_role') %]&gt;
</span><span class="cx">             &lt;label for=&quot;addselfcc&quot;&gt;Add me to CC list&lt;/label&gt;
</span><span class="cx">             &lt;br&gt; 
</span><span class="cx">           [% END %]
</span><span class="cx">         [% END %]
</span><del>-        [% bug.cc.size || 0  FILTER html %] 
</del><ins>+        [% bug.cc.size FILTER html %] 
</ins><span class="cx">         [% IF bug.cc.size == 1 %]
</span><span class="cx">           user
</span><span class="cx">         [% ELSE %]
</span><span class="lines">@@ -842,9 +800,8 @@
</span><span class="cx">                 %]
</span><span class="cx">             &lt;/div&gt;
</span><span class="cx">           [% END %]
</span><del>-          [% IF bug.cc %]
-            &lt;select id=&quot;cc&quot; multiple=&quot;multiple&quot; size=&quot;5&quot;
-              [% IF bug.user.canedit %]name=&quot;cc&quot;[% END %]&gt;
</del><ins>+          [% IF bug.cc.size %]
+            &lt;select id=&quot;cc&quot; multiple=&quot;multiple&quot; size=&quot;5&quot; [% 'name=&quot;cc&quot;' IF bug.user.canedit %]&gt;
</ins><span class="cx">               [% FOREACH c = bug.cc %]
</span><span class="cx">                 &lt;option value=&quot;[% c FILTER email FILTER html %]&quot;&gt;
</span><span class="cx">                   [% c FILTER email FILTER html %]&lt;/option&gt;
</span><span class="lines">@@ -881,6 +838,29 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><ins>+[%# Block for Bug Ignored                                                    #%]
+[%############################################################################%]
+[% BLOCK section_bug_ignored %]
+  [% IF user.id %]
+    &lt;tr&gt;
+      &lt;th class=&quot;field_label&quot;&gt;
+        &lt;label for=&quot;bug_ignored&quot; title=&quot;Ignore all email for this [% terms.bug %]&quot;&gt;
+          Ignore [% terms.Bug %] Mail:
+        &lt;/label&gt;
+      &lt;/th&gt;
+      &lt;td&gt;
+        &lt;input type=&quot;hidden&quot; name=&quot;defined_bug_ignored&quot; value=&quot;1&quot;&gt;
+        &lt;span title=&quot;You will still receive emails for flag requests directed at you.&quot;&gt;
+          &lt;input type=&quot;checkbox&quot; name=&quot;bug_ignored&quot; id=&quot;bug_ignored&quot; value=&quot;1&quot;
+                 [% ' checked=&quot;checked&quot;' IF user.is_bug_ignored(bug.id) %]&gt;
+          (never email me about this [% terms.bug %])
+        &lt;/span&gt;
+      &lt;/td&gt;
+    &lt;/tr&gt;
+  [% END %]
+[% END %]
+
+[%############################################################################%]
</ins><span class="cx"> [%# Block for See Also                                                       #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> [% BLOCK section_see_also %]
</span><span class="lines">@@ -895,6 +875,50 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% BLOCK section_aliases %]
+  &lt;tr&gt;
+    [% INCLUDE &quot;bug/field-label.html.tmpl&quot; field = bug_fields.alias %]
+    &lt;td&gt;
+      [% IF bug.alias.size %]
+        [% bug.alias.join(', ') FILTER html %]
+      [% ELSE %]
+        None
+      [% END %]
+      [% IF bug.check_can_change_field('alias', 0, 1) %]
+        &lt;span id=&quot;alias_edit_area_showhide_container&quot; class=&quot;bz_default_hidden&quot;&gt;
+          (&lt;a href=&quot;#&quot; id=&quot;alias_edit_area_showhide&quot;&gt;edit&lt;/a&gt;)
+        &lt;/span&gt;
+        &lt;br&gt;
+        &lt;div id=&quot;alias_edit_area&quot;&gt;
+          &lt;div&gt;
+            &lt;label for=&quot;newalias&quot; class=&quot;field_label&quot;&gt;Add&lt;/label&gt;
+            &lt;br&gt;
+            &lt;input name=&quot;newalias&quot; id=&quot;newalias&quot; size=&quot;20&quot;&gt;
+          &lt;/div&gt;
+          [% IF bug.alias.size %]
+            &lt;select id=&quot;alias&quot; name=&quot;alias&quot; multiple=&quot;multiple&quot; size=&quot;5&quot;&gt;
+              [% FOREACH a = bug.alias %]
+                &lt;option value=&quot;[% a FILTER html %]&quot;&gt;[% a FILTER html %]&lt;/option&gt;
+              [% END %]
+            &lt;/select&gt;
+            &lt;br&gt;
+
+            &lt;input type=&quot;checkbox&quot; id=&quot;removealias&quot; name=&quot;removealias&quot;&gt;
+            &lt;label for=&quot;removealias&quot;&gt;Remove selected aliases&lt;/label&gt;
+          [% END %]
+        &lt;/div&gt;
+        &lt;script type=&quot;text/javascript&quot;&gt;
+          hideEditableField( 'alias_edit_area_showhide_container',
+                             'alias_edit_area',
+                             'alias_edit_area_showhide',
+                             '',
+                             '');
+        &lt;/script&gt;
+      [% END %]
+    &lt;/td&gt;
+  &lt;/tr&gt;
+[% END %]
+
</ins><span class="cx"> [%############################################################################%]
</span><span class="cx"> [%# Block for FLAGS                                                          #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -902,26 +926,52 @@
</span><span class="cx"> [% BLOCK section_flags %]
</span><span class="cx">   [%# *** Flags *** %]
</span><span class="cx">   [% show_bug_flags = 0 %]
</span><ins>+  [% bug_flags_set = 0 %]
+  [% show_more_flags = 0 %]
</ins><span class="cx">   [% FOREACH type = bug.flag_types %]
</span><del>-    [% IF (type.flags &amp;&amp; type.flags.size &gt; 0) || (user.id &amp;&amp; type.is_active) %]
</del><ins>+    [% IF type.flags.size || (user.id &amp;&amp; type.is_active &amp;&amp; user.can_request_flag(type)) %]
</ins><span class="cx">       [% show_bug_flags = 1 %]
</span><del>-      [% LAST %]
</del><span class="cx">     [% END %]
</span><ins>+    [% IF user.id &amp;&amp; type.is_active &amp;&amp; (!type.flags.size || type.is_multiplicable) %]
+      [% show_more_flags = 1 %]
+    [% END %]
+    [% IF type.flags.size %]
+      [% bug_flags_set = 1 %]
+    [% END %]
+    [% LAST IF show_bug_flags &amp;&amp; show_more_flags &amp;&amp; bug_flags_set %]
</ins><span class="cx">   [% END %]
</span><span class="cx">   [% IF show_bug_flags %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;field_label flags_label&quot;&gt;
-        &lt;label&gt;&lt;b&gt;Flags:&lt;/b&gt;&lt;/label&gt;
-      &lt;/td&gt;
-      &lt;td&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td colspan=&quot;2&quot;&gt;
-        [% IF bug.flag_types.size &gt; 0 %]
</del><ins>+      &lt;th class=&quot;field_label&quot;&gt;
+        &lt;label&gt;Flags:&lt;/label&gt;
+      &lt;/th&gt;
+      &lt;td&gt;
+        [% IF bug.flag_types.size %]
</ins><span class="cx">           [% PROCESS &quot;flag/list.html.tmpl&quot; flag_no_header = 1
</span><span class="cx">                                            flag_types = bug.flag_types
</span><span class="cx">                                            any_flags_requesteeble = bug.any_flags_requesteeble %]
</span><span class="cx">         [% END %]
</span><ins>+        [% IF show_more_flags %]
+          &lt;span id=&quot;bz_flags_more_container&quot; class=&quot;bz_default_hidden&quot;&gt;
+            [% IF !bug_flags_set %]&lt;em&gt;None yet set&lt;/em&gt;[% END %]
+            (&lt;a href=&quot;#&quot; id=&quot;bz_flags_more_action&quot;&gt;[% IF !bug_flags_set %]set[% ELSE %]more[% END %] flags&lt;/a&gt;)
+          &lt;/span&gt;
+          &lt;script type=&quot;text/javascript&quot;&gt;
+            YAHOO.util.Dom.removeClass('bz_flags_more_container', 'bz_default_hidden');
+            var table = YAHOO.util.Dom.get(&quot;flags&quot;);
+            var rows = YAHOO.util.Dom.getElementsByClassName('bz_flag_type', 'tbody', table);
+            for (var i = 0; i &lt; rows.length; i++) {
+                YAHOO.util.Dom.addClass(rows[i], 'bz_default_hidden');
+            }
+            YAHOO.util.Event.addListener('bz_flags_more_action', 'click', function (e) {
+                YAHOO.util.Dom.addClass('bz_flags_more_container', 'bz_default_hidden');
+                for (var i = 0; i &lt; rows.length; i++) {
+                    YAHOO.util.Dom.removeClass(rows[i], 'bz_default_hidden');
+                }
+                YAHOO.util.Event.preventDefault(e);
+            }); 
+          &lt;/script&gt;
+        [% END %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="lines">@@ -936,9 +986,10 @@
</span><span class="cx">   [% USE Bugzilla %]
</span><span class="cx">   [% FOREACH field = Bugzilla.active_custom_fields %]
</span><span class="cx">     &lt;tr&gt;
</span><ins>+      [%# Use PROCESS instead of INCLUDE, because extra_field_item is defined
+        # in the template and must be returned back. INCLUDE cannot do that. %]
</ins><span class="cx">       [% PROCESS bug/field.html.tmpl value = bug.${field.name}
</span><del>-                                     editable = bug.check_can_change_field(field.name, 0, 1)
-                                     value_span = 2 %]
</del><ins>+                                     editable = bug.check_can_change_field(field.name, 0, 1) %]
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF extra_field_item %]
</span><span class="cx">       &lt;tr&gt;
</span><span class="lines">@@ -978,10 +1029,9 @@
</span><span class="cx">                value=&quot;[% bug.${field.name}.join(', ') FILTER html %]&quot;&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/span&gt;
</span><del>-    
</del><ins>+
</ins><span class="cx">     [% FOREACH dep_bug = deps %]
</span><del>-      [% dep_bug.id FILTER bug_link(dep_bug, use_alias =&gt; 1)
-                    FILTER none %][% &quot; &quot; %]
</del><ins>+      [% INCLUDE bug/link.html.tmpl bug = dep_bug, link_text = dep_bug.id, use_alias = 1 %][% &quot; &quot; %]
</ins><span class="cx">     [% END %]
</span><span class="cx">     [% IF bug.check_can_change_field(field.name, 0, 1) %]
</span><span class="cx">       &lt;span id=&quot;[% field.name FILTER html %]_edit_container&quot; 
</span><span class="lines">@@ -1007,27 +1057,27 @@
</span><span class="cx"> [% BLOCK section_timetracking %]
</span><span class="cx">   &lt;table class=&quot;bz_time_tracking_table&quot;&gt;
</span><span class="cx">     &lt;tr&gt;
</span><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.estimated_time, editable = 1
+      %]
</ins><span class="cx">       &lt;th&gt;
</span><del>-        &lt;label for=&quot;estimated_time&quot;&gt;Orig. Est.&lt;/label&gt;
</del><ins>+        Current Est.:
</ins><span class="cx">       &lt;/th&gt;
</span><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.work_time, editable = 1
+      %]
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.remaining_time, editable = 1
+      %]
+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.percentage_complete
+      %]
</ins><span class="cx">       &lt;th&gt;
</span><del>-        Current Est.
</del><ins>+        Gain:
</ins><span class="cx">       &lt;/th&gt;
</span><del>-      &lt;th&gt;
-        &lt;label for=&quot;work_time&quot;&gt;Hours Worked&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;th&gt;
-        &lt;label for=&quot;remaining_time&quot;&gt;Hours Left&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;th&gt;
-        %Complete
-      &lt;/th&gt;
-      &lt;th&gt;
-        Gain
-      &lt;/th&gt;
-      &lt;th&gt;
-        &lt;label for=&quot;deadline&quot;&gt;Deadline&lt;/label&gt;
-      &lt;/th&gt;
</del><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.deadline, editable = 1
+      %]
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="lines">@@ -1085,7 +1135,7 @@
</span><span class="cx">       &lt;label for=&quot;comment&quot; accesskey=&quot;c&quot;&gt;&lt;b&gt;Additional 
</span><span class="cx">         &lt;u&gt;C&lt;/u&gt;omments&lt;/b&gt;&lt;/label&gt;:
</span><span class="cx"> 
</span><del>-      [% IF user.is_insider %]
</del><ins>+      [% IF user.is_insider &amp;&amp; bug.check_can_change_field('longdesc', 0, 1) %]
</ins><span class="cx">         &lt;input type=&quot;checkbox&quot; name=&quot;comment_is_private&quot; value=&quot;1&quot;
</span><span class="cx">                id=&quot;newcommentprivacy&quot;
</span><span class="cx">                onClick=&quot;updateCommentTagControl(this, 'comment')&quot;&gt;
</span><span class="lines">@@ -1097,23 +1147,31 @@
</span><span class="cx"> 
</span><span class="cx">       &lt;!-- This table keeps the submit button aligned with the box. --&gt;
</span><span class="cx">       &lt;table&gt;&lt;tr&gt;&lt;td&gt;
</span><del>-        [% INCLUDE global/textarea.html.tmpl
-                   name      = 'comment'
-                   id        = 'comment'
-                   minrows   = 10
-                   maxrows   = 25
-                   cols      = constants.COMMENT_COLS
-        %]
-        [% Hook.process(&quot;after_comment_textarea&quot;, 'bug/edit.html.tmpl') %]
</del><ins>+        [% IF bug.check_can_change_field('longdesc', 0, 1) %]
+          [% INCLUDE bug/comment.html.tmpl
+                     minrows   = 10
+                     maxrows   = 25
+                     cols      = constants.COMMENT_COLS
+          %]
+          [% IF user.is_insider %]
+            &lt;script&gt;
+               updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
+            &lt;/script&gt;
+          [% END %]
+          [% Hook.process(&quot;after_comment_textarea&quot;, 'bug/edit.html.tmpl') %]
+        [% ELSE %]
+          You are not allowed to make an additional comment on this [% terms.bug %].
+        [% END %]
</ins><span class="cx">         &lt;br&gt;
</span><span class="cx">         [% PROCESS commit_button id=&quot;&quot;%]
</span><span class="cx"> 
</span><del>-        &lt;table id=&quot;bug_status_bottom&quot;
-               class=&quot;status&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
</del><ins>+        [% Hook.process(&quot;after_comment_commit_button&quot;, 'bug/edit.html.tmpl') %]
+
+        &lt;table id=&quot;bug_status_bottom&quot; class=&quot;status&quot;&gt;
</ins><span class="cx">           &lt;tr&gt;
</span><del>-            &lt;td class=&quot;field_label&quot;&gt;
-              &lt;b&gt;&lt;a href=&quot;page.cgi?id=fields.html#status&quot;&gt;Status&lt;/a&gt;&lt;/b&gt;:
-            &lt;/td&gt;
</del><ins>+            &lt;th class=&quot;field_label&quot;&gt;
+              &lt;a href=&quot;page.cgi?id=fields.html#bug_status&quot;&gt;Status&lt;/a&gt;:
+            &lt;/th&gt;
</ins><span class="cx">             &lt;td&gt;
</span><span class="cx">               [% PROCESS bug/knob.html.tmpl %]
</span><span class="cx">             &lt;/td&gt;
</span><span class="lines">@@ -1148,9 +1206,9 @@
</span><span class="cx">   &lt;td&gt;
</span><span class="cx">     [% IF bug.check_can_change_field(selname, 0, 1) 
</span><span class="cx">           AND bug.choices.${selname}.size &gt; 1 %]
</span><ins>+      &lt;input type=&quot;hidden&quot; id=&quot;[% selname %]_dirty&quot;&gt;
</ins><span class="cx">       &lt;select id=&quot;[% selname %]&quot; name=&quot;[% selname %]&quot;&gt;
</span><span class="cx">         [% FOREACH x = bug.choices.${selname} %]
</span><del>-          [% NEXT IF NOT x.is_active AND x.name != bug.${selname} %]
</del><span class="cx">           &lt;option value=&quot;[% x.name FILTER html %]&quot;
</span><span class="cx">             [% &quot; selected&quot; IF x.name == bug.${selname} %]&gt;
</span><span class="cx">             [%- x.name FILTER html %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugfieldeventsjstmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/field-events.js.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/field-events.js.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/field-events.js.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is the San Jose State 
-  # University Foundation. Portions created by the Initial Developer
-  # are Copyright (C) 2008 the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugfieldhelpnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/field-help.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/field-help.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/field-help.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# This file describes both bug fields and search fields.
</span><span class="lines">@@ -36,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> alias =&gt;
</span><span class="cx">   &quot;A short, unique name assigned to $terms.abug in order to assist with
</span><del>-   looking it up and referring to it in other places in ${terms.Bugzilla}.&quot;,
</del><ins>+   looking it up and referring to it in other places in Bugzilla.&quot;,
</ins><span class="cx"> 
</span><span class="cx"> assigned_to =&gt;
</span><span class="cx">   &quot;The person in charge of resolving the ${terms.bug}.&quot;,
</span><span class="lines">@@ -51,7 +38,7 @@
</span><span class="cx"> 
</span><span class="cx"> bug_id =&gt;
</span><span class="cx">   &quot;The numeric id of $terms.abug, unique within this entire installation&quot;
</span><del>-  _ &quot; of ${terms.Bugzilla}.&quot;,
</del><ins>+  _ &quot; of Bugzilla.&quot;,
</ins><span class="cx"> 
</span><span class="cx"> bug_severity =&gt;
</span><span class="cx">   &quot;How severe the $terms.bug is, or whether it's an enhancement.&quot;,
</span><span class="lines">@@ -89,12 +76,16 @@
</span><span class="cx">   &quot;The amount of time that has been estimated it will take to resolve
</span><span class="cx">    this ${terms.bug}.&quot;,
</span><span class="cx"> 
</span><ins>+importance =&gt;
+  &quot;The importance of $terms.abug is described as the combination of
+   its $vars.field_descs.priority and ${vars.field_descs.bug_severity}.&quot;,
+
</ins><span class="cx"> keywords =&gt;
</span><span class="cx">    &quot;You can add keywords from a defined list to $terms.bugs, in order&quot;
</span><span class="cx">    _ &quot; to easily identify and group them.&quot;,
</span><span class="cx"> 
</span><span class="cx"> longdesc =&gt;
</span><del>-  &quot;$terms.Bugs have comments added to them by $terms.Bugzilla users.&quot;
</del><ins>+  &quot;$terms.Bugs have comments added to them by Bugzilla users.&quot;
</ins><span class="cx">   _ &quot; You can search for some text in those comments.&quot;,
</span><span class="cx"> 
</span><span class="cx"> op_sys =&gt;
</span><span class="lines">@@ -135,7 +126,7 @@
</span><span class="cx">   &quot;This allows you to refer to $terms.bugs in other installations.
</span><span class="cx">    You can enter a URL to $terms.abug in the 'Add $terms.Bug URLs'
</span><span class="cx">    field to note that that $terms.bug is related to this one. You can
</span><del>-   enter multiple URLs at once by separating them with a comma.
</del><ins>+   enter multiple URLs at once by separating them with whitespace.
</ins><span class="cx"> 
</span><span class="cx">    &lt;p&gt;You should normally use this field to refer to $terms.bugs in
</span><span class="cx">      &lt;em&gt;other&lt;/em&gt; installations. For $terms.bugs in this
</span><span class="lines">@@ -150,6 +141,13 @@
</span><span class="cx">   &quot;Each $terms.bug has a free-form single line text entry box for&quot;
</span><span class="cx">   _ &quot; adding tags and status information.&quot;,
</span><span class="cx"> 
</span><ins>+tag =&gt;
+  &quot;Unlike ${vars.field_descs.keywords} which are global and visible by
+   all users, ${vars.field_descs.tag} are personal and can only be
+   viewed and edited by their author.
+   Editing them won't send any notification to other users. Use them
+   to tag and keep track of ${terms.bugs}.&quot;,
+
</ins><span class="cx"> target_milestone =&gt;
</span><span class="cx">    &quot;The $vars.field_descs.target_milestone field is used to define when the&quot;
</span><span class="cx">    _ &quot; engineer the $terms.bug is assigned to expects to fix it.&quot;,
</span><span class="lines">@@ -220,13 +218,17 @@
</span><span class="cx"> 
</span><span class="cx">   [%# Add help for custom fields. %]
</span><span class="cx">   [% IF !vars.help_html.${help_field}.defined %]
</span><del>-    [% SET field_type = bug_fields.${help_field}.type %]
-    [% field_type_desc = BLOCK -%]
-      [% field_types.$field_type FILTER html %]
-    [%- END %]
-    [% vars.help_html.${help_field} = 
-      &quot;A custom $field_type_desc field in this installation&quot;
-      _ &quot; of ${terms.Bugzilla}.&quot; %]
</del><ins>+    [% IF bug_fields.${help_field}.long_desc %]
+      [% vars.help_html.${help_field} = bug_fields.${help_field}.long_desc %]
+    [% ELSE %]
+      [% SET field_type = bug_fields.${help_field}.type %]
+      [% field_type_desc = BLOCK -%]
+        [% field_types.$field_type FILTER html %]
+      [%- END %]
+      [% vars.help_html.${help_field} = 
+        &quot;A custom $field_type_desc field in this installation&quot;
+        _ &quot; of Bugzilla.&quot; %]
+    [% END %]
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [%# Add help for the search types, for query.cgi. %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugfieldlabelhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/field-label.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/field-label.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/field-label.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,14 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="cx">   #   field: a Bugzilla::Field object
</span><ins>+  #   editable: if true, a label pointing to the editable field will be added.
</ins><span class="cx">   #   desc_url: An alternate link to help for the field.
</span><span class="cx">   #   hidden: True if the field label should start hidden.
</span><span class="cx">   #   rowspan: a &quot;rowspan&quot; value for the label's &lt;th&gt;.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugfieldhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/field.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/field.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/field.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,15 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Elliotte Martin &lt;elliotte_martin@yahoo.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  #                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="cx">   #   field: a Bugzilla::Field object
</span><span class="cx">   #   value: The value of the field for this bug.
</span><ins>+  #   field_hidden (optional): boolean; if true, the field is hidden by default.
</ins><span class="cx">   #   override_legal_values (optional): The list of legal values, for select fields.
</span><span class="cx">   #   editable: Whether the field should be displayed as an editable
</span><span class="cx">   #             &lt;input&gt; or as just the plain text of its value.
</span><span class="lines">@@ -38,14 +23,14 @@
</span><span class="cx">   #   accesskey: set an accesskey attribute for this string
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% SET hidden = 0 %]
-[% IF bug AND !field.is_visible_on_bug(bug) %]
-  [% SET hidden = 1 %]
-[% END %]
</del><ins>+[% IF NOT no_tds %]
+  [% field_hidden = 0 %]
+  [% IF bug AND !field.is_visible_on_bug(bug) %]
+    [% field_hidden = 1 %]
+  [% END %]
</ins><span class="cx"> 
</span><del>-[% IF NOT no_tds %]
-  [% PROCESS &quot;bug/field-label.html.tmpl&quot; %]
-  &lt;td class=&quot;field_value [% ' bz_hidden_field' IF hidden %]&quot;
</del><ins>+  [% INCLUDE &quot;bug/field-label.html.tmpl&quot; hidden = field_hidden %]
+  &lt;td class=&quot;field_value [% ' bz_hidden_field' IF field_hidden %]&quot;
</ins><span class="cx">       id=&quot;field_container_[% field.name FILTER html %]&quot; 
</span><span class="cx">       [% &quot; colspan=\&quot;$value_span\&quot;&quot; FILTER none IF value_span %]&gt;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -52,7 +37,8 @@
</span><span class="cx"> [% Hook.process('start_field_column') %]
</span><span class="cx"> [% IF editable %]
</span><span class="cx">   [% SWITCH field.type %]
</span><del>-    [% CASE constants.FIELD_TYPE_FREETEXT %]
</del><ins>+    [% CASE [ constants.FIELD_TYPE_FREETEXT
+              constants.FIELD_TYPE_INTEGER ] %]
</ins><span class="cx">         &lt;input id=&quot;[% field.name FILTER html %]&quot; class=&quot;text_input&quot;
</span><span class="cx">                name=&quot;[% field.name FILTER html %]&quot;
</span><span class="cx">                value=&quot;[% value FILTER html %]&quot; size=&quot;40&quot;
</span><span class="lines">@@ -60,12 +46,21 @@
</span><span class="cx">                accesskey=&quot;[% accesskey FILTER html %]&quot;
</span><span class="cx"> [% END %]
</span><span class="cx">                maxlength=&quot;[% constants.MAX_FREETEXT_LENGTH FILTER none %]&quot;
</span><del>-               [% ' aria-required=&quot;true&quot;' IF field.is_mandatory %]&gt;
-    [% CASE constants.FIELD_TYPE_DATETIME %]
-      &lt;input name=&quot;[% field.name FILTER html %]&quot; size=&quot;20&quot;
</del><ins>+               [% IF field.type == constants.FIELD_TYPE_INTEGER %]
+                 pattern=&quot;-?\d+[% IF dontchange %]|[% dontchange FILTER html %][% END %]&quot;
+                 title=&quot;The value must be a valid positive or negative integer&quot;
+               [% END %]
+               [% IF field.is_mandatory %]
+                 data-required=&quot;true&quot; [% 'aria-required=&quot;true&quot; required' UNLESS field_hidden %]
+               [% END %]&gt;
+    [% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %]
+      [% size = (field.type == constants.FIELD_TYPE_DATE) ? 10 : 20 %]
+      &lt;input name=&quot;[% field.name FILTER html %]&quot; size=&quot;[% size FILTER none %]&quot;
</ins><span class="cx">              id=&quot;[% field.name FILTER html %]&quot;
</span><span class="cx">              value=&quot;[% value FILTER html %]&quot;
</span><del>-             [% ' aria-required=&quot;true&quot;' IF field.is_mandatory %]
</del><ins>+             [% IF field.is_mandatory %]
+               data-required=&quot;true&quot; [% 'aria-required=&quot;true&quot; required' UNLESS field_hidden %]
+             [% END %]
</ins><span class="cx">              onchange=&quot;updateCalendarFromField(this)&quot;&gt;
</span><span class="cx">       &lt;button type=&quot;button&quot; class=&quot;calendar_button&quot;
</span><span class="cx">               id=&quot;button_calendar_[% field.name FILTER html %]&quot;
</span><span class="lines">@@ -76,14 +71,16 @@
</span><span class="cx">       &lt;div id=&quot;con_calendar_[% field.name FILTER html %]&quot;&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">       &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-        createCalendar('[% field.name FILTER js %]')
-      &lt;/script&gt;
</del><ins>+        &lt;!--
+          [%+ PROCESS &quot;global/calendar.js.tmpl&quot; id = field.name %]
+        //--&gt;&lt;/script&gt;
</ins><span class="cx">     [% CASE constants.FIELD_TYPE_BUG_ID %]
</span><span class="cx">         &lt;span id=&quot;[% field.name FILTER html %]_input_area&quot;&gt;
</span><span class="cx">           &lt;input name=&quot;[% field.name FILTER html %]&quot; id=&quot;[% field.name FILTER html %]&quot;
</span><span class="cx">                  value=&quot;[% value FILTER html %]&quot; size=&quot;7&quot;
</span><del>-                 [% ' aria-required=&quot;true&quot;' IF field.is_mandatory %]&gt;
-
</del><ins>+                 [% IF field.is_mandatory %]
+                   data-required=&quot;true&quot; [% 'aria-required=&quot;true&quot; required' UNLESS field_hidden %]
+                 [% END %]&gt;
</ins><span class="cx">         &lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">         [% IF value %]  
</span><span class="lines">@@ -101,17 +98,25 @@
</span><span class="cx">         &lt;/script&gt;
</span><span class="cx">     [% CASE [ constants.FIELD_TYPE_SINGLE_SELECT 
</span><span class="cx">               constants.FIELD_TYPE_MULTI_SELECT ] %]
</span><ins>+      [%# The 'product' field needs its own template if classifications are enabled. %]
+      [% IF field.name == &quot;product&quot; AND Param('useclassification') %]
+        [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+                   id = &quot;product&quot;, name = &quot;product&quot;, value = value
+                   products = override_legal_values %]
+      [% ELSE %]
+        &lt;input type=&quot;hidden&quot; id=&quot;[% field.name FILTER html %]_dirty&quot;&gt;
</ins><span class="cx">         &lt;select id=&quot;[% field.name FILTER html %]&quot; 
</span><span class="cx">                 name=&quot;[% field.name FILTER html %]&quot; 
</span><span class="cx">                 [% IF field.type == constants.FIELD_TYPE_MULTI_SELECT %]
</span><del>-                    [% SET field_size = 5 %]
-                    [% IF field.legal_values.size &lt; 5 %]
-                        [% SET field_size = field.legal_values.size %]
-                    [% END %]
-                    size=&quot;[% field_size FILTER html %]&quot; multiple=&quot;multiple&quot;
-                    [% ' aria-required=&quot;true&quot;' IF field.is_mandatory %]
-                [% END %]
-                &gt;
</del><ins>+                  [% SET field_size = 5 %]
+                  [% IF field.legal_values.size &lt; 5 %]
+                    [% SET field_size = field.legal_values.size %]
+                  [% END %]
+                  size=&quot;[% field_size FILTER html %]&quot; multiple=&quot;multiple&quot;
+                  [% IF field.is_mandatory %]
+                    data-required=&quot;true&quot; [% 'aria-required=&quot;true&quot; required' UNLESS field_hidden %]
+                  [% END %]
+                [% END %]&gt;
</ins><span class="cx">           [% IF allow_dont_change %]
</span><span class="cx">             &lt;option value=&quot;[% dontchange FILTER html %]&quot;
</span><span class="cx">                    [% ' selected=&quot;selected&quot;' IF value == dontchange %]&gt;
</span><span class="lines">@@ -149,61 +154,85 @@
</span><span class="cx">         [% IF field.type == constants.FIELD_TYPE_MULTI_SELECT %]
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;defined_[% field.name FILTER html %]&quot;&gt;
</span><span class="cx">         [% END %]
</span><ins>+      [% END %]
</ins><span class="cx"> 
</span><del>-        &lt;script type=&quot;text/javascript&quot;&gt;
</del><ins>+      &lt;script type=&quot;text/javascript&quot;&gt;
</ins><span class="cx">         &lt;!--
</span><span class="cx">           initHidingOptionsForIE('[% field.name FILTER js %]');
</span><span class="cx">           [%+ INCLUDE &quot;bug/field-events.js.tmpl&quot;
</span><span class="cx">                       field = field, product = bug.product_obj %]
</span><span class="cx">         //--&gt;
</span><del>-        &lt;/script&gt;
</del><ins>+      &lt;/script&gt;
</ins><span class="cx"> 
</span><del>-     [% CASE constants.FIELD_TYPE_TEXTAREA %]
-       [% INCLUDE global/textarea.html.tmpl
-           id = field.name name = field.name minrows = 4 maxrows = 8
-           cols = 60 defaultcontent = value mandatory = field.is_mandatory %]
-     [% CASE constants.FIELD_TYPE_BUG_URLS %]
-       [% '&lt;ul class=&quot;bug_urls&quot;&gt;' IF value.size %]
-       [% FOREACH bug_url = value %]
-         &lt;li&gt;
-           [% PROCESS bug_url_link bug_url = bug_url %]
-           &lt;label&gt;&lt;input type=&quot;checkbox&quot; value=&quot;[% bug_url.name FILTER html %]&quot;
-                         name=&quot;remove_[% field.name FILTER html %]&quot;&gt;
-             Remove&lt;/label&gt;
-         &lt;/li&gt;
</del><ins>+    [% CASE constants.FIELD_TYPE_TEXTAREA %]
+       &lt;div id=&quot;[% field.name FILTER html %]_edit_container&quot; class=&quot;bz_default_hidden&quot;&gt;
+         &lt;div&gt;
+             (&lt;a href=&quot;#&quot; id=&quot;[% field.name FILTER html %]_edit_action&quot;&gt;edit&lt;/a&gt;)
+         &lt;/div&gt;
+         [% IF value %]
+           &lt;pre id=&quot;[% field.name FILTER html %]_readonly&quot;
+                class=&quot;field_textarea_readonly&quot;&gt;[% value FILTER html %]&lt;/pre&gt;
+         [% END %]
+       &lt;/div&gt;
+       &lt;div id=&quot;[% field.name FILTER html %]_input&quot;&gt;
+         [% INCLUDE global/textarea.html.tmpl
+            id = field.name name = field.name minrows = 4 maxrows = 8
+            cols = 60 defaultcontent = value mandatory = field.is_mandatory %]
+       &lt;/div&gt;
+       &lt;script type=&quot;text/javascript&quot;&gt;
+         hideEditableField('[% field.name FILTER js %]_edit_container',
+                           '[% field.name FILTER js %]_input',
+                           '[% field.name FILTER js %]_edit_action',
+                           '[% field.name FILTER js %]',
+                           '[% value FILTER js %]',
+                           '',
+                           true);
+       &lt;/script&gt;
+    [% CASE constants.FIELD_TYPE_BUG_URLS %]
+       [% IF bug.id &amp;&amp; value.size %]
+         &lt;ul class=&quot;bug_urls&quot;&gt;
+         [% FOREACH bug_url = value %]
+           &lt;li&gt;
+             [% PROCESS bug_url_link bug_url = bug_url %]
+             &lt;label&gt;&lt;input type=&quot;checkbox&quot; value=&quot;[% bug_url.name FILTER html %]&quot;
+                           name=&quot;remove_[% field.name FILTER html %]&quot;&gt;
+               Remove&lt;/label&gt;
+           &lt;/li&gt;
+         [% END %]
+         &lt;/ul&gt;
</ins><span class="cx">        [% END %]
</span><del>-       [% '&lt;/ul&gt;' IF value.size %]
-
</del><span class="cx">        [% IF Param('use_see_also') %]
</span><span class="cx">          &lt;span id=&quot;container_showhide_[% field.name FILTER html %]&quot;
</span><span class="cx">                class=&quot;bz_default_hidden&quot;&gt;
</span><del>-           &lt;a href=&quot;#&quot; id=&quot;showhide_[% field.name FILTER html %]&quot;&gt;(add)&lt;/a&gt;
</del><ins>+           (&lt;a href=&quot;#&quot; id=&quot;showhide_[% field.name FILTER html %]&quot;&gt;add&lt;/a&gt;)
</ins><span class="cx">          &lt;/span&gt;
</span><span class="cx">          &lt;div id=&quot;container_[% field.name FILTER html %]&quot;&gt;
</span><del>-           &lt;label for=&quot;[% field.name FILTER html %]&quot;&gt;
-             &lt;strong&gt;Add [% terms.Bug %] URLs:&lt;/strong&gt;
-           &lt;/label&gt;&lt;br&gt;
</del><span class="cx">            &lt;input type=&quot;text&quot; id=&quot;[% field.name FILTER html %]&quot; size=&quot;40&quot;
</span><del>-                  class=&quot;text_input&quot; name=&quot;[% field.name FILTER html %]&quot;&gt;
</del><ins>+                  class=&quot;text_input&quot; name=&quot;[% field.name FILTER html %]&quot;
+                  [% IF !bug.id %]value=&quot;[% value FILTER html %]&quot;[% END %]&gt;
</ins><span class="cx">          &lt;/div&gt;
</span><del>-         &lt;script type=&quot;text/javascript&quot;&gt;
</del><ins>+         [% IF bug.id %]
+           &lt;script type=&quot;text/javascript&quot;&gt;
</ins><span class="cx">              setupEditLink('[% field.name FILTER js %]');
</span><del>-         &lt;/script&gt;
</del><ins>+           &lt;/script&gt;
+         [% END %]
</ins><span class="cx">        [% END %]
</span><span class="cx">      [% CASE constants.FIELD_TYPE_KEYWORDS %]
</span><del>-       &lt;div id=&quot;keyword_container&quot;&gt;
</del><ins>+       &lt;div id=&quot;[% field.name FILTER html %]_container&quot;&gt;
</ins><span class="cx">          &lt;input type=&quot;text&quot; id=&quot;[% field.name FILTER html %]&quot; size=&quot;40&quot;
</span><span class="cx">                 class=&quot;text_input&quot; name=&quot;[% field.name FILTER html %]&quot;
</span><span class="cx">                 value=&quot;[% value FILTER html %]&quot;&gt;
</span><del>-         &lt;div id=&quot;keyword_autocomplete&quot;&gt;&lt;/div&gt;
</del><ins>+         &lt;div id=&quot;[% field.name FILTER html %]_autocomplete&quot;&gt;&lt;/div&gt;
</ins><span class="cx">        &lt;/div&gt;
</span><del>-       &lt;script type=&quot;text/javascript&quot; defer=&quot;defer&quot;&gt;
-         YAHOO.bugzilla.keyword_array = [
-           [%- FOREACH keyword = all_keywords %]
-             [%-# %]&quot;[% keyword.name FILTER js %]&quot;
</del><ins>+       &lt;script type=&quot;text/javascript&quot;&gt;
+         if (typeof YAHOO.bugzilla.field_array === &quot;undefined&quot;)
+           YAHOO.bugzilla.field_array = [];
+         YAHOO.bugzilla.field_array[&quot;[% field.name FILTER js %]&quot;] = [
+           [%- FOREACH val = possible_values %]
+             [%-# %]&quot;[% val FILTER js %]&quot;
</ins><span class="cx">              [%- &quot;,&quot; IF NOT loop.last %][% END %]];
</span><del>-         YAHOO.bugzilla.keywordAutocomplete.init('[% field.name FILTER js %]', 
-                                                 'keyword_autocomplete');
</del><ins>+         YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]',
+                                               '[% field.name FILTER js %]_autocomplete');
</ins><span class="cx">        &lt;/script&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> [% ELSE %]
</span><span class="lines">@@ -232,6 +261,12 @@
</span><span class="cx">       [% value.join(', ') FILTER html %]
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><ins>+
+[% IF bug &amp;&amp; field.name == 'component' %]
+  (&lt;a href=&quot;buglist.cgi?component=[% bug.component FILTER uri %]&amp;amp;product=[% bug.product FILTER uri %]&amp;amp;bug_status=__open__&quot;
+      target=&quot;_blank&quot;&gt;show other [% terms.bugs %]&lt;/a&gt;)
+[% END %]
+
</ins><span class="cx"> [% Hook.process('end_field_column') %]
</span><span class="cx"> [% '&lt;/td&gt;' IF NOT no_tds %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugformat_commenttxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/format_comment.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/format_comment.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/format_comment.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Marc Schumann.
-  # Portions created by Marc Schumann are Copyright (c) 2008 Marc Schumann.
-  # All rights reserved.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# NOTE: Everywhere you use this template, you must call 
</span><span class="lines">@@ -29,7 +18,6 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Please don't use field-descs here. It can slow down Bugzilla. %]
</span><del>-[% PROCESS 'global/variables.none.tmpl' %]
</del><span class="cx"> 
</span><span class="cx"> [% SET comment_body = comment.body %]
</span><span class="cx"> 
</span><span class="lines">@@ -42,7 +30,9 @@
</span><span class="cx"> [% ELSIF comment.type == constants.CMT_ATTACHMENT_CREATED %]
</span><span class="cx"> Created attachment [% comment.extra_data %]
</span><span class="cx"> [% IF is_bugmail %]
</span><ins>+[%# if WEBKIT_CHANGES %]
</ins><span class="cx">   --&gt; [% urlbase _ &quot;attachment.cgi?id=&quot; _ comment.extra_data _ &quot;&amp;action=review&quot; %]
</span><ins>+[%# endif // WEBKIT_CHANGES %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> [%+ comment.attachment.description %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugknobhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/knob.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/knob.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/knob.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vaskin Kissoyan &lt;vkissoyan@yahoo.com&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> &lt;div id=&quot;status&quot;&gt;
</span><span class="cx">   [% PROCESS bug/field.html.tmpl
</span><span class="cx">       no_tds = 1
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbuglinkhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/link.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/link.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/link.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,15 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="cx">   #   bug: a Bugzilla::Bug object
</span><ins>+  #   user: the Bugzilla::User object to which this template is addressed.
+  #         If not set, the currently logged in user object is used.
</ins><span class="cx">   #   link_text: the text that we're highlighting.
</span><span class="cx">   #   use_alias: boolean; If true, we display the bug's alias as the link
</span><span class="cx">   #              text instead of link_text.
</span><span class="lines">@@ -44,8 +34,8 @@
</span><span class="cx"> [% IF user.can_see_bug(bug) %]
</span><span class="cx">   [% link_title = link_title _ ' - ' _ bug.short_desc %]
</span><span class="cx"> 
</span><del>-  [% IF use_alias &amp;&amp; bug.alias %]
-    [% link_text = bug.alias %]
</del><ins>+  [% IF use_alias &amp;&amp; bug.alias.size %]
+    [% link_text = bug.alias.join(', ') %]
</ins><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugnavigatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/navigate.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/navigate.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/navigate.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% RETURN IF !bug %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% IF bottom_navigator == 1 %]
</span><span class="cx">   &lt;ul class=&quot;related_actions&quot;&gt;
</span><span class="cx">     &lt;li&gt;&lt;a href=&quot;show_bug.cgi?format=multiple&amp;amp;id=
</span><span class="lines">@@ -35,12 +21,11 @@
</span><span class="cx">     [% Hook.process(&quot;links&quot;) %]
</span><span class="cx">     &lt;li&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;#&quot;&gt;Top of page &lt;/a&gt;&lt;/li&gt;
</span><span class="cx">     &lt;/ul&gt;
</span><del>-[% END %]        
</del><ins>+[% END %]
</ins><span class="cx"> 
</span><del>-
-&lt;div class=&quot;navigation&quot;&gt;
</del><span class="cx"> [% SET my_search = user.recent_search_for(bug) %]
</span><span class="cx"> [% IF my_search %]
</span><ins>+  &lt;div class=&quot;navigation&quot;&gt;
</ins><span class="cx">   [% SET last_bug_list = my_search.bug_list %]
</span><span class="cx">   [% SET this_bug_idx = lsearch(last_bug_list, bug.id) %]
</span><span class="cx">   &lt;b&gt;[% terms.Bug %] List:&lt;/b&gt;
</span><span class="lines">@@ -47,17 +32,30 @@
</span><span class="cx"> 
</span><span class="cx">   ([% this_bug_idx + 1 %] of [% last_bug_list.size %])
</span><span class="cx"> 
</span><del>-  &lt;a href=&quot;show_bug.cgi?id=
-           [%- last_bug_list.first FILTER uri %]&amp;amp;list_id=
</del><ins>+  [% IF this_bug_idx &gt; 0 %]
+    &lt;a href=&quot;show_bug.cgi?id=
+             [%- last_bug_list.first FILTER uri %]&amp;amp;list_id=
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-           [%- my_search.id FILTER uri %]&quot;&gt;|&amp;laquo;&amp;nbsp;First&lt;/a&gt;
</del><ins>+             [%- my_search.id FILTER uri %]&quot;&gt;|&amp;laquo;&amp;nbsp;First&lt;/a&gt;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><del>-  &lt;a href=&quot;show_bug.cgi?id=
-           [%- last_bug_list.last FILTER uri %]&amp;amp;list_id=
</del><ins>+  [% ELSE %]
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-           [%- my_search.id FILTER uri %]&quot;&gt;Last&amp;nbsp;&amp;raquo;|&lt;/a&gt;
</del><ins>+    &lt;span class=&quot;navigation_link&quot;&gt;|&amp;laquo;&amp;nbsp;First&lt;/span&gt;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><ins>+  [% END %]
</ins><span class="cx"> 
</span><ins>+  [% IF this_bug_idx + 1 &lt; last_bug_list.size %]
+    &lt;a href=&quot;show_bug.cgi?id=
+             [%- last_bug_list.last FILTER uri %]&amp;amp;list_id=
+[%# if WEBKIT_CHANGES %]
+             [%- my_search.id FILTER uri %]&quot;&gt;Last&amp;nbsp;&amp;raquo;|&lt;/a&gt;
+[%# endif // WEBKIT_CHANGES %]
+  [% ELSE %]
+[%# if WEBKIT_CHANGES %]
+    &lt;span class=&quot;navigation_link&quot;&gt;Last&amp;nbsp;&amp;raquo;|&lt;/span&gt;
+[%# endif // WEBKIT_CHANGES %]
+  [% END %]
+
</ins><span class="cx">   [% IF this_bug_idx &gt; 0 %]
</span><span class="cx">     [% prev_bug = this_bug_idx - 1 %]
</span><span class="cx">     &lt;a href=&quot;show_bug.cgi?id=
</span><span class="lines">@@ -67,7 +65,7 @@
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">   [% ELSE %]
</span><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-    &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;&amp;laquo;&amp;nbsp;Prev&lt;/font&gt;&lt;/i&gt;
</del><ins>+    &lt;span class=&quot;navigation_link&quot;&gt;&amp;laquo;&amp;nbsp;Prev&lt;/span&gt;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -80,22 +78,11 @@
</span><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">   [% ELSE %]
</span><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-    &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;Next&amp;nbsp;&amp;raquo;&lt;/font&gt;&lt;/i&gt;
</del><ins>+    &lt;span class=&quot;navigation_link&quot;&gt;Next&amp;nbsp;&amp;raquo;&lt;/span&gt;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   &amp;nbsp;&amp;nbsp;&lt;a href=&quot;buglist.cgi?regetlastlist=
</span><span class="cx">               [%- my_search.id FILTER uri %]&quot;&gt;Show last search results&lt;/a&gt;
</span><del>-[% ELSE %]
-  [%# With no list, don't show link to search results %]
-[%# if WEBKIT_CHANGES %]
-  &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;|&amp;laquo;&amp;nbsp;First&lt;/font&gt;&lt;/i&gt;
-  &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;Last&amp;nbsp;&amp;raquo;|&lt;/font&gt;&lt;/i&gt;
-  &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;&amp;laquo;&amp;nbsp;Prev&lt;/font&gt;&lt;/i&gt;
-  &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;Next&amp;nbsp;&amp;raquo;&lt;/font&gt;&lt;/i&gt;
-[%# endif // WEBKIT_CHANGES %]
-  &amp;nbsp;&amp;nbsp;
-  &lt;i&gt;&lt;font color=&quot;#777777&quot;&gt;This [% terms.bug %] is not in your last
-    search results.&lt;/font&gt;&lt;/i&gt;
</del><ins>+  &lt;/div&gt;
</ins><span class="cx"> [% END %]
</span><del>-&lt;/div&gt;
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessbugmailhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/bugmail.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/bugmail.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/bugmail.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-  #                 J. Paul Reed &lt;preed@sigkill.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,30 +11,12 @@
</span><span class="cx">   # sent_bugmail: The results of Bugzilla::BugMail::Send().
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> &lt;dl&gt;
</span><del>-[% PROCESS emails
-   description = &quot;Email sent to&quot;
-   names = sent_bugmail.sent
-%]
-
-[% PROCESS emails
-   description = &quot;Excluding&quot;
-   names = sent_bugmail.excluded
-%]
-&lt;/dl&gt;
-
-[%############################################################################%]
-[%# Block for a set of email addresses                                       #%]
-[%############################################################################%]
-
-[% BLOCK emails %]
-  &lt;dt&gt;[% description FILTER html %]:&lt;/dt&gt;
</del><ins>+  &lt;dt&gt;Email sent to:&lt;/dt&gt;
</ins><span class="cx">   &lt;dd&gt;
</span><span class="cx">   [% IF user.can_see_bug(mailing_bugid) %]
</span><del>-    [% IF names.size &gt; 0 %]
-      [%+ FOREACH name = names %]
</del><ins>+    [% IF sent_bugmail.sent.size %]
+      [% FOREACH name = sent_bugmail.sent %]
</ins><span class="cx">         &lt;code&gt;[% name FILTER html %]&lt;/code&gt;[% &quot;, &quot; UNLESS loop.last() %]
</span><span class="cx">       [% END %]
</span><span class="cx">     [% ELSE %]
</span><span class="lines">@@ -57,4 +26,4 @@
</span><span class="cx">     (list of e-mails not available)
</span><span class="cx">   [% END %]
</span><span class="cx">   &lt;/dd&gt;
</span><del>-[% END %]
</del><ins>+&lt;/dl&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessconfirmduplicatehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/confirm-duplicate.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/confirm-duplicate.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/confirm-duplicate.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -27,7 +15,6 @@
</span><span class="cx">   #   of the original bug can access that bug.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% PROCESS global/header.html.tmpl title=&quot;Duplicate Warning&quot; %]
</span><span class="cx"> [% orig_bug = &quot;$terms.bug $original_bug_id&quot;
</span><span class="cx">      FILTER bug_link(original_bug_id) %]
</span><span class="lines">@@ -46,7 +33,7 @@
</span><span class="cx">   [% ELSE %]
</span><span class="cx">     might, in the future,
</span><span class="cx">   [% END %]
</span><del>-  allow him/her access to view this [% terms.bug %].&lt;/b&gt;
</del><ins>+  allow them access to view this [% terms.bug %].&lt;/b&gt;
</ins><span class="cx">   Do you wish to do this?
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessheaderhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/header.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/header.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/header.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,8 +10,6 @@
</span><span class="cx">   # As global/header.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;bug/show-header.html.tmpl&quot; %]
</span><span class="lines">@@ -31,7 +17,7 @@
</span><span class="cx"> [% IF    title_tag == &quot;bug_processed&quot; %]
</span><span class="cx">   [% title = BLOCK %]
</span><span class="cx">     [% IF Bugzilla.cgi.param('id') %]
</span><del>-      [% terms.Bug %] [%+ id FILTER html %]
</del><ins>+      [%+ id FILTER html %]
</ins><span class="cx">     [% ELSE %]
</span><span class="cx">       [% terms.Bugs %]
</span><span class="cx">     [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessmidairhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/midair.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/midair.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/midair.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,10 +11,6 @@
</span><span class="cx">   #   used by bug/activity/table.html.tmpl to display recent changes that will
</span><span class="cx">   #   be overwritten if the user submits these changes.  See that template
</span><span class="cx">   #   for further documentation.
</span><del>-  # start_at: number; the comment at which show/comments.tmpl should begin
-  #   displaying comments, either the index of the last comment (if the user
-  #   entered a comment along with their change) or a number less than that
-  #   (if they didn't), in which case no comments are displayed.
</del><span class="cx">   # comments: array; all the comments on the bug.
</span><span class="cx">   # bug: Bugzilla::Bug; the bug being changed.
</span><span class="cx">   #%]
</span><span class="lines">@@ -35,8 +19,6 @@
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% UNLESS header_done %]
</span><span class="cx">   [% PROCESS bug/process/header.html.tmpl %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -54,7 +36,7 @@
</span><span class="cx">   [% PROCESS &quot;bug/activity/table.html.tmpl&quot; incomplete_data=0 %]
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-[% IF comments.size &gt; start_at %]
</del><ins>+[% IF comments.size %]
</ins><span class="cx"> &lt;p&gt;
</span><span class="cx">   Added the comment(s):
</span><span class="cx">   &lt;blockquote&gt;
</span><span class="lines">@@ -85,7 +67,7 @@
</span><span class="cx">           exclude=&quot;^Bugzilla_login|Bugzilla_password|delta_ts$&quot; %]
</span><span class="cx">       &lt;input type=&quot;submit&quot; id=&quot;process&quot; value=&quot;Submit my changes anyway&quot;&gt;
</span><span class="cx">         This will cause all of the above changes to be overwritten
</span><del>-        [% &quot;, except for the added comment(s)&quot; IF comments.size &gt; start_at %].
</del><ins>+        [% &quot;, except for the added comment(s)&quot; IF comments.size %].
</ins><span class="cx">     &lt;/form&gt;
</span><span class="cx">   &lt;/li&gt;
</span><span class="cx">   [% IF cgi.param(&quot;comment&quot;) %]
</span><span class="lines">@@ -96,7 +78,6 @@
</span><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;comment&quot; value=&quot;[% cgi.param(&quot;comment&quot;) FILTER html %]&quot;&gt;
</span><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;comment_is_private&quot;
</span><span class="cx">                value=&quot;[% cgi.param(&quot;comment_is_private&quot;) FILTER html %]&quot;&gt;
</span><del>-        &lt;input type=&quot;hidden&quot; name=&quot;longdesclength&quot; value=&quot;[% bug.comments.size %]&quot;&gt;
</del><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% cgi.param(&quot;token&quot;) FILTER html %]&quot;&gt;
</span><span class="cx">         &lt;input type=&quot;submit&quot; id=&quot;process_comment&quot; value=&quot;Submit only my new comment&quot;&gt;
</span><span class="cx">       &lt;/form&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessresultshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/results.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/results.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/results.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,8 +14,6 @@
</span><span class="cx">   #   and &quot;dep&quot; when a bug is checked for changes to its dependencies.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% UNLESS header_done %]
</span><span class="cx">   [% PROCESS bug/process/header.html.tmpl %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -34,8 +20,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT type=&quot;bug&quot; %]
</span><span class="cx"> 
</span><del>-[% Link = BLOCK %][% &quot;$terms.Bug $id&quot; FILTER bug_link(id) %][% END %]
-[% link = BLOCK %][% &quot;$terms.bug $id&quot; FILTER bug_link(id) %][% END %]
</del><ins>+[% link = BLOCK %][% terms.bug %] [%+ id FILTER bug_link(id) FILTER none %][% END %]
</ins><span class="cx"> 
</span><span class="cx"> [%
</span><span class="cx">   title = {
</span><span class="lines">@@ -42,8 +27,8 @@
</span><span class="cx">     'bug' =&gt; &quot;Changes submitted for $link&quot; ,
</span><span class="cx">     'dupe' =&gt; &quot;Duplicate notation added to $link&quot; ,
</span><span class="cx">     'dep' =&gt; &quot;Checking for dependency changes on $link&quot; ,
</span><del>-    'created' =&gt; &quot;$Link has been added to the database&quot; ,
-    'move' =&gt; &quot;$Link has been moved to another database&quot; ,
</del><ins>+    'created' =&gt; &quot;$link has been successfully created&quot; ,
+    'move' =&gt; &quot;$link has been moved to another database&quot; ,
</ins><span class="cx">   }
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -50,7 +35,7 @@
</span><span class="cx"> [% Hook.process('title') %]
</span><span class="cx"> 
</span><span class="cx"> &lt;dl&gt;
</span><del>-  &lt;dt&gt;[% title.$type %]&lt;/dt&gt;
</del><ins>+  &lt;dt&gt;[% title.$type.ucfirst %]&lt;/dt&gt;
</ins><span class="cx">   &lt;dd&gt;
</span><span class="cx">     [% PROCESS &quot;bug/process/bugmail.html.tmpl&quot; mailing_bugid = id %]
</span><span class="cx">     [%# Links to more information about the changed bug. %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugprocessverifynewproducthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/process/verify-new-product.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/process/verify-new-product.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/process/verify-new-product.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -31,10 +17,10 @@
</span><span class="cx">   # verify_bug_groups: If groups need to be confirmed in addition to fields.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-  title = 'Verify New Product Details...' %]
</del><ins>+  title = 'Verify New Product Details...'
+  style_urls = ['skins/standard/buglist.css']
+%]
</ins><span class="cx"> 
</span><span class="cx"> &lt;form action=&quot;process_bug.cgi&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -116,8 +102,26 @@
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> [% IF verify_bug_groups %]
</span><del>-  &lt;h3&gt;Verify [% terms.Bug %] Group&lt;/h3&gt;
</del><ins>+  [% mandatory_groups = [] %]
+  [% optional_groups = [] %]
+
+  [% FOREACH gid = product.group_controls.keys %]
+    [% group = product.group_controls.$gid %]
+    [% NEXT UNLESS group.group.is_active %]
+
+    [% IF group.membercontrol == constants.CONTROLMAPMANDATORY
+          || (group.othercontrol ==  constants.CONTROLMAPMANDATORY &amp;&amp; !user.in_group(group.group.name)) %]
+      [% mandatory_groups.push(group) %]
+    [% ELSIF (group.membercontrol != constants.CONTROLMAPNA &amp;&amp; user.in_group(group.group.name))
+              || group.othercontrol != constants.CONTROLMAPNA %]
+      [% optional_groups.push(group) %]
+    [% END %]
+  [% END %]
</ins><span class="cx">   
</span><ins>+  [% IF old_groups.size || optional_groups.size || mandatory_groups.size %]
+    &lt;h3&gt;Verify [% terms.Bug %] Group&lt;/h3&gt;
+  [% END %]
+  
</ins><span class="cx">   [% IF old_groups.size %]
</span><span class="cx">     &lt;p&gt;These groups are not legal for the '[% product.name FILTER html %]'
</span><span class="cx">     product or you are not allowed to restrict [% terms.bugs %] to these groups.
</span><span class="lines">@@ -134,38 +138,64 @@
</span><span class="cx">     &lt;/p&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  [% mandatory_groups = [] %]
-  [% optional_groups = [] %]
</del><span class="cx"> 
</span><del>-  [% FOREACH gid = product.group_controls.keys %]
-    [% group = product.group_controls.$gid %]
-    [% NEXT UNLESS group.group.is_active %]
-
-    [% IF group.membercontrol == constants.CONTROLMAPMANDATORY
-          || (group.othercontrol ==  constants.CONTROLMAPMANDATORY &amp;&amp; !user.in_group(group.group.name)) %]
-      [% mandatory_groups.push(group) %]
-    [% ELSIF (group.membercontrol != constants.CONTROLMAPNA &amp;&amp; user.in_group(group.group.name))
-              || group.othercontrol != constants.CONTROLMAPNA %]
-      [% optional_groups.push(group) %]
-    [% END %]
-  [% END %]
-
</del><span class="cx">   [% IF optional_groups.size %]
</span><span class="cx">     &lt;p&gt;These groups are optional. You can decide to restrict [% terms.bugs %] to
</span><span class="cx">     one or more of the following groups:&lt;br&gt;
</span><del>-    [% FOREACH group = optional_groups %]
-      &lt;input type=&quot;hidden&quot; name=&quot;defined_groups&quot;
-             value=&quot;[% group.group.name FILTER html %]&quot;&gt;
-      &lt;input type=&quot;checkbox&quot; id=&quot;group_[% group.group.id FILTER html %]&quot;
-             name=&quot;groups&quot;
-             [% ' checked=&quot;checked&quot;' IF ((group.membercontrol == constants.CONTROLMAPDEFAULT &amp;&amp; user.in_group(group.group.name))
-                 || (group.othercontrol == constants.CONTROLMAPDEFAULT &amp;&amp; !user.in_group(group.group.name))
-                 || cgi.param(&quot;groups&quot;).contains(group.group.name)) %]
-             value=&quot;[% group.group.name FILTER html %]&quot;&gt;
-      &lt;label for=&quot;group_[% group.group.id FILTER html %]&quot;&gt;
-        [% group.group.name FILTER html %]: [% group.group.description FILTER html %]
-      &lt;/label&gt;
-      &lt;br&gt;
</del><ins>+    [% IF multiple_bugs %]
+      &lt;script type=&quot;text/javascript&quot;&gt;
+        function turn_off(myself, id) {
+            var other_checkbox = document.getElementById(id);
+            if (myself.checked &amp;&amp; other_checkbox) {
+                other_checkbox.checked = false;
+            }
+        }
+      &lt;/script&gt;
+
+      &lt;table id=&quot;groups_edit_multiple&quot;&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;narrow_column&quot;&gt;Remove [% terms.bugs %] from this group&lt;/th&gt;
+          &lt;th class=&quot;narrow_column&quot;&gt;Add [% terms.bugs %] to this group&lt;/th&gt;
+          &lt;th&gt;Group Name&lt;/th&gt;
+        &lt;/tr&gt;
+
+        [% FOREACH group = optional_groups %]
+        &lt;tr&gt;
+          &lt;td class=&quot;center&quot;&gt;
+            &lt;input type=&quot;checkbox&quot; name=&quot;defined_groups&quot;
+                   id=&quot;defined_group_[% group.group.id FILTER html %]&quot;
+                   value=&quot;[% group.group.name FILTER html %]&quot;
+                   [% IF cgi.param(&quot;defined_groups&quot;).contains(group.group.name) %] checked=&quot;checked&quot;[% END %]
+                   onchange=&quot;turn_off(this, 'group_[% group.group.id FILTER html %]')&quot;&gt;
+          &lt;/td&gt;
+          &lt;td class=&quot;center&quot;&gt;
+            &lt;input type=&quot;checkbox&quot; name=&quot;groups&quot;
+                   id=&quot;group_[% group.group.id FILTER html %]&quot;
+                   value=&quot;[% group.group.name FILTER html %]&quot;
+                   [% IF cgi.param(&quot;groups&quot;).contains(group.group.name) %] checked=&quot;checked&quot;[% END %]
+                   onchange=&quot;turn_off(this, 'defined_group_[% group.group.id FILTER html %]')&quot;&gt;
+          &lt;/td&gt;
+          &lt;td&gt;
+            [% group.group.description FILTER html %]
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        [% END %]
+      &lt;/table&gt;
+    [% ELSE %]
+      [% FOREACH group = optional_groups %]
+        &lt;input type=&quot;hidden&quot; name=&quot;defined_groups&quot;
+               value=&quot;[% group.group.name FILTER html %]&quot;&gt;
+        &lt;input type=&quot;checkbox&quot; id=&quot;group_[% group.group.id FILTER html %]&quot;
+               name=&quot;groups&quot;
+               [% ' checked=&quot;checked&quot;' IF ((group.membercontrol == constants.CONTROLMAPDEFAULT &amp;&amp; user.in_group(group.group.name))
+                   || (group.othercontrol == constants.CONTROLMAPDEFAULT &amp;&amp; !user.in_group(group.group.name))
+                   || cgi.param(&quot;groups&quot;).contains(group.group.name)) %]
+               value=&quot;[% group.group.name FILTER html %]&quot;&gt;
+        &lt;label for=&quot;group_[% group.group.id FILTER html %]&quot;&gt;
+          [% group.group.name FILTER html %]: [% group.group.description FILTER html %]
+        &lt;/label&gt;
+        &lt;br&gt;
+      [% END %]
</ins><span class="cx">     [% END %]
</span><span class="cx">     &lt;/p&gt;
</span><span class="cx">   [% END %]
</span><span class="lines">@@ -202,4 +232,3 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugshowheaderhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/show-header.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/show-header.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/show-header.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vaskin Kissoyan &lt;vkissoyan@yahoo.com&gt;
-  #                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# This template should be called with PROCESS before processing
</span><span class="lines">@@ -28,28 +13,57 @@
</span><span class="cx">   # be overridden by the calling templates.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><ins>+[% filtered_alias = bug.alias.join(', ') FILTER html %]
</ins><span class="cx"> [% filtered_desc = bug.short_desc FILTER html %]
</span><ins>+[% filtered_timestamp = bug.delta_ts FILTER time %]
+
</ins><span class="cx"> [% subheader = filtered_desc %]
</span><del>-[% filtered_timestamp = bug.delta_ts FILTER time %]
-[% title = &quot;$terms.Bug $bug.bug_id &amp;ndash; $filtered_desc&quot; %]
-[% header = &quot;$terms.Bug&amp;nbsp;$bug.bug_id&quot; %]
-[% header_addl_info = &quot;Last modified: $filtered_timestamp&quot; %]
</del><ins>+[% title = &quot;$bug.bug_id &amp;ndash; &quot; %]
+[% IF bug.alias.size %]
+  [% title = title _ &quot;($filtered_alias) &quot; %]
+[% END %]
+[% title = title _ filtered_desc %]
+[% generate_api_token = 1 %]
</ins><span class="cx"> [% yui = ['autocomplete', 'calendar'] %]
</span><ins>+[% yui.push('container') IF user.can_tag_comments %]
</ins><span class="cx"> [% javascript_urls = [ &quot;js/util.js&quot;, &quot;js/field.js&quot; ] %]
</span><ins>+[% javascript_urls.push(&quot;js/bug.js&quot;) IF user.id  %]
+[% javascript_urls.push('js/comment-tagging.js')
+     IF user.id &amp;&amp; Param('comment_taggers_group') %]
</ins><span class="cx"> [% IF bug.defined %]
</span><del>-  [% unfiltered_title = &quot;$terms.Bug $bug.bug_id – $bug.short_desc&quot; %]
</del><ins>+  [% header = &quot;$terms.Bug&amp;nbsp;$bug.bug_id&quot; %]
+  [% header_addl_info = &quot;Last modified: $filtered_timestamp&quot; %]
+  [% unfiltered_title = &quot;$bug.bug_id – &quot; %]
+  [% IF bug.alias.size %]
+    [% unfiltered_title = unfiltered_title _ &quot;(&quot; _ bug.alias.join(', ') _ &quot;) &quot; %]
+  [% END %]
+  [% unfiltered_title = unfiltered_title _ bug.short_desc %]
</ins><span class="cx">   [% javascript =  BLOCK %]
</span><del>-    if( !document.location.href.match(/show_bug\.cgi/) &amp;&amp; history &amp;&amp; history.replaceState ) {
-      history.replaceState( null, 
-                         &quot;[% unfiltered_title FILTER js %]&quot;,  
-                         &quot;show_bug.cgi?id=[% bug.bug_id FILTER js %]&quot; );
-      document.title = &quot;[% unfiltered_title FILTER js %]&quot;;
</del><ins>+    if (history &amp;&amp; history.replaceState) {
+      if(!document.location.href.match(/show_bug\.cgi/)) {
+        history.replaceState( null,
+                             &quot;[% unfiltered_title FILTER js %]&quot;,
+                             &quot;show_bug.cgi?id=[% bug.bug_id FILTER js %]&quot; );
+        document.title = &quot;[% unfiltered_title FILTER js %]&quot;;
+      }
+      if (document.location.href.match(/show_bug\.cgi\?.*list_id=/)) {
+        var href = document.location.href;
+        href = href.replace(/[\?&amp;]+list_id=(\d+|cookie)/, '');
+        history.replaceState(null, &quot;[% unfiltered_title FILTER js %]&quot;, href);
+      }
</ins><span class="cx">     }
</span><ins>+    YAHOO.util.Event.onDOMReady(function() {
+      initDirtyFieldTracking();
+
+      [% IF user.id AND user.is_involved_in_bug(bug) %]
+        YAHOO.bugzilla.bugUserLastVisit.update([% bug.bug_id FILTER none %]);
+      [% END %]
+    });
</ins><span class="cx">     [% javascript FILTER none %]
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><del>-[% style_urls = [ &quot;skins/standard/show_bug.css&quot; ] %]
-[% doc_section = &quot;bug_page.html&quot; %]
</del><ins>+[% style_urls = ['skins/standard/bug.css'] %]
+[% doc_section = &quot;using/understanding.html&quot; %]
</ins><span class="cx"> [% bodyclasses = ['bz_bug',
</span><span class="cx">                   &quot;bz_status_$bug.bug_status&quot;,
</span><span class="cx">                   &quot;bz_product_$bug.product&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugshowmultiplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/show-multiple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/show-multiple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/show-multiple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,37 +1,20 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Toms Baugis &lt;toms@myrealbox.com&gt;
-  #                 Olav Vitters &lt;olav@bkor.dhs.org&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Elliotte Martin &lt;emartin@everythingsolved.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Full Text $terms.Bug Listing&quot;
</span><span class="cx">   h1 = &quot;&quot;
</span><del>-  style_urls = [&quot;skins/standard/show_multiple.css&quot;,
-                &quot;skins/standard/buglist.css&quot;]
-  doc_section = &quot;bug_page.html&quot;
</del><ins>+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/understanding.html&quot;
</ins><span class="cx"> %]
</span><ins>+
+[% USE Bugzilla %]
+
</ins><span class="cx"> [% PROCESS bug/time.html.tmpl %]
</span><span class="cx"> [% IF bugs.first %]
</span><span class="cx">   [% ids = [] %]
</span><span class="lines">@@ -65,9 +48,10 @@
</span><span class="cx">   &lt;h1&gt;
</span><span class="cx">     [% terms.Bug %] 
</span><span class="cx">     &lt;a href=&quot;show_bug.cgi?id=[% bug.bug_id FILTER html %]&quot;&gt;[% bug.bug_id FILTER html %]&lt;/a&gt;
</span><del>-    [% IF Param(&quot;usebugaliases&quot;) AND bug.alias AND NOT bug.error %]
-      (&lt;a href=&quot;show_bug.cgi?id=[% bug.alias FILTER uri %]&quot;&gt;
-        [% bug.alias FILTER html %]&lt;/a&gt;)
</del><ins>+    [% IF bug.alias.size AND NOT bug.error %] (
+      [%- FOREACH alias IN bug.alias %]&lt;a href=&quot;show_bug.cgi?id=[% alias FILTER uri %]&quot;&gt;
+        [% alias FILTER html %]&lt;/a&gt;[% UNLESS loop.last %], [% END %]
+      [%- END %])
</ins><span class="cx">     [% END %]
</span><span class="cx">   &lt;/h1&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -74,10 +58,10 @@
</span><span class="cx">   &lt;table class=&quot;bugfields&quot;&gt;
</span><span class="cx">   [% IF bug.error %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;error&quot;&gt;
</del><ins>+      &lt;td class=&quot;warning&quot;&gt;
</ins><span class="cx">         [% IF bug.error == &quot;InvalidBugId&quot; %]
</span><span class="cx">           '[%+ bug.bug_id FILTER html %]' is not a valid [% terms.bug %] number
</span><del>-          [%- IF Param(&quot;usebugaliases&quot;) %] nor a known [% terms.bug %] alias[% END %].
</del><ins>+          nor a known [% terms.bug %] alias.
</ins><span class="cx">         [% ELSIF bug.error == &quot;NotPermitted&quot; %]
</span><span class="cx">           You are not allowed to view this [% terms.bug %].
</span><span class="cx">         [% ELSIF bug.error == &quot;NotFound&quot; %]
</span><span class="lines">@@ -95,7 +79,7 @@
</span><span class="cx">       [% rightcells.push('qa_contact') %]
</span><span class="cx">     [% END %]
</span><span class="cx">     [% rightcells.push('') %]
</span><del>-    [% IF bug.cc %]
</del><ins>+    [% IF bug.cc.size %]
</ins><span class="cx">       [% rightcells.push('cc') %]
</span><span class="cx">     [% END %]
</span><span class="cx">     [% IF bug.keywords %]
</span><span class="lines">@@ -164,7 +148,7 @@
</span><span class="cx">         &lt;th&gt;[% field_descs.bug_file_loc FILTER html %]:&lt;/th&gt;
</span><span class="cx">         &lt;td colspan=&quot;3&quot;&gt;
</span><span class="cx">           [% IF is_safe_url(bug.bug_file_loc) %]
</span><del>-            &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot;&gt;
</del><ins>+            &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot; rel=&quot;noreferrer&quot;&gt;
</ins><span class="cx">                      [% bug.bug_file_loc FILTER html %]&lt;/a&gt;
</span><span class="cx">           [% ELSE %]
</span><span class="cx">             [% bug.bug_file_loc FILTER html %]
</span><span class="lines">@@ -189,7 +173,6 @@
</span><span class="cx">       [% PROCESS row cell = &quot;status_whiteboard&quot; fullrow = 1 %]
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-    [% USE Bugzilla %]
</del><span class="cx">     [% field_counter = 0 %]
</span><span class="cx">     [% FOREACH field = Bugzilla.active_custom_fields %]
</span><span class="cx">         [% field_counter = field_counter + 1 %]
</span><span class="lines">@@ -252,6 +235,8 @@
</span><span class="cx">           &lt;/table&gt;
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><ins>+    [% END %]
+    [% IF Param(&quot;timetrackinggroup&quot;) &amp;&amp; bug.deadline %]
</ins><span class="cx">       [% PROCESS row cell=&quot;deadline&quot; %]
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -278,7 +263,7 @@
</span><span class="cx">                     [% ELSE %]
</span><span class="cx">                       [% FOREACH flag = attachment.flags %]
</span><span class="cx">                         [% flag.setter.nick FILTER html %]:
</span><del>-                        [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
</del><ins>+                        &lt;span class=&quot;nowrap&quot;&gt;[%+ flag.type.name FILTER html %][% flag.status %]&lt;/span&gt;
</ins><span class="cx">                         [% IF flag.status == &quot;?&quot; &amp;&amp; flag.requestee %]
</span><span class="cx">                           ([% flag.requestee.nick FILTER html %])
</span><span class="cx">                         [% END %][% &quot;, &quot; IF not loop.last() %]
</span><span class="lines">@@ -367,7 +352,7 @@
</span><span class="cx">           [% FOREACH type = bug.flag_types %]
</span><span class="cx">             [% FOREACH flag = type.flags %]
</span><span class="cx">                 [% flag.setter.nick FILTER html %]:
</span><del>-                [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
</del><ins>+                &lt;span class=&quot;nowrap&quot;&gt;[%+ flag.type.name FILTER html %][% flag.status %]&lt;/span&gt;
</ins><span class="cx">                 [%+ IF flag.status == &quot;?&quot; &amp;&amp; flag.requestee %]
</span><span class="cx">                   ([% flag.requestee.nick FILTER html %])
</span><span class="cx">                 [% END %]&lt;br&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugshowhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/show.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/show.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/show.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vaskin Kissoyan &lt;vkissoyan@yahoo.com&gt;
-  #                 Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [%# This script/template only handles one bug #%]
</span><span class="cx"> [% bug = bugs.0 %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugshowxmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/show.xml.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/show.xml.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/show.xml.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,15 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-  #                 Colin Ogilvie &lt;mozilla@colinogilvie.co.uk&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> [% PROCESS bug/time.html.tmpl %]
</span><ins>+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
</ins><span class="cx"> &lt;?xml version=&quot;1.0&quot; [% IF Param('utf8') %]encoding=&quot;UTF-8&quot; [% END %]standalone=&quot;yes&quot; ?&gt;
</span><del>-&lt;!DOCTYPE bugzilla SYSTEM &quot;[% urlbase FILTER html %]bugzilla.dtd&quot;&gt;
</del><ins>+&lt;!DOCTYPE bugzilla [% IF cgi.param('dtd') %][[% PROCESS pages/bugzilla.dtd.tmpl %]][% ELSE %]SYSTEM &quot;[% urlbase FILTER xml %]page.cgi?id=bugzilla.dtd&quot;[% END %]&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;bugzilla version=&quot;[% constants.BUGZILLA_VERSION %]&quot;
</span><span class="cx">           urlbase=&quot;[% urlbase FILTER xml %]&quot;
</span><span class="lines">@@ -65,20 +53,11 @@
</span><span class="cx">       [% PROCESS section_flags obj =&gt; bug %]
</span><span class="cx"> 
</span><span class="cx">       [% IF displayfields.long_desc %]
</span><ins>+          [% sort_order = user.settings.comment_sort_order.value %]
+          &lt;comment_sort_order&gt;[% sort_order FILTER xml %]&lt;/comment_sort_order&gt;  
+          
</ins><span class="cx">         [% FOREACH c = bug.comments %]
</span><del>-          [% NEXT IF c.is_private &amp;&amp; !user.is_insider %]
-          &lt;long_desc isprivate=&quot;[% c.is_private FILTER xml %]&quot;&gt;
-            &lt;commentid&gt;[% c.id FILTER xml %]&lt;/commentid&gt;
-            [% IF c.is_about_attachment %]
-              &lt;attachid&gt;[% c.extra_data FILTER xml %]&lt;/attachid&gt;
-            [% END %]
-            &lt;who name=&quot;[% c.author.name FILTER xml %]&quot;&gt;[% c.author.email FILTER email FILTER xml %]&lt;/who&gt;
-            &lt;bug_when&gt;[% c.creation_ts FILTER time(&quot;%Y-%m-%d %T %z&quot;) FILTER xml %]&lt;/bug_when&gt;
-            [% IF user.is_timetracker &amp;&amp; (c.work_time - 0 != 0) %]
-              &lt;work_time&gt;[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]&lt;/work_time&gt;
-            [% END %]
-            &lt;thetext&gt;[% c.body_full FILTER xml %]&lt;/thetext&gt;
-          &lt;/long_desc&gt;
</del><ins>+          [% PROCESS a_comment %]
</ins><span class="cx">         [% END %]
</span><span class="cx">       [% END %]
</span><span class="cx">       
</span><span class="lines">@@ -97,7 +76,8 @@
</span><span class="cx">             &lt;filename&gt;[% a.filename FILTER xml %]&lt;/filename&gt;
</span><span class="cx">             &lt;type&gt;[% a.contenttype FILTER xml %]&lt;/type&gt;
</span><span class="cx">             &lt;size&gt;[% a.datasize FILTER xml %]&lt;/size&gt;
</span><del>-            &lt;attacher&gt;[% a.attacher.email FILTER email FILTER xml %]&lt;/attacher&gt;
</del><ins>+            &lt;attacher[% IF a.attacher.name != '' %] name=&quot;[% a.attacher.name FILTER xml %]&quot;[% END -%]&gt;
+            [% a.attacher.email FILTER email FILTER xml %]&lt;/attacher&gt;
</ins><span class="cx">             [%# This is here so automated clients can still use attachment.cgi %]
</span><span class="cx">             [% IF displayfields.token &amp;&amp; user.id %]
</span><span class="cx">               &lt;token&gt;[% issue_hash_token([a.id, a.modification_time]) FILTER xml %]&lt;/token&gt;
</span><span class="lines">@@ -162,3 +142,20 @@
</span><span class="cx">     /&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><ins>+
+[% BLOCK a_comment %]
+  [% RETURN IF c.is_private &amp;&amp; !user.is_insider %]
+  &lt;long_desc isprivate=&quot;[% c.is_private FILTER xml %]&quot; &gt;
+    &lt;commentid&gt;[% c.id FILTER xml %]&lt;/commentid&gt;
+    &lt;comment_count&gt;[% c.count FILTER xml %]&lt;/comment_count&gt;
+    [% IF c.is_about_attachment %]
+      &lt;attachid&gt;[% c.extra_data FILTER xml %]&lt;/attachid&gt;
+    [% END %]
+    &lt;who name=&quot;[% c.author.name FILTER xml %]&quot;&gt;[% c.author.email FILTER email FILTER xml %]&lt;/who&gt;
+    &lt;bug_when&gt;[% c.creation_ts FILTER time(&quot;%Y-%m-%d %T %z&quot;) FILTER xml %]&lt;/bug_when&gt;
+    [% IF user.is_timetracker &amp;&amp; (c.work_time - 0 != 0) %]
+      &lt;work_time&gt;[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]&lt;/work_time&gt;
+    [% END %]
+    &lt;thetext&gt;[% c.body_full FILTER xml %]&lt;/thetext&gt;
+  &lt;/long_desc&gt;
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugsummarizetimehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/summarize-time.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/summarize-time.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/summarize-time.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Christian Reis &lt;kiko@async.com.br&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% title = &quot;Time Summary &quot; %]
</span><span class="cx"> [% IF do_depends %]
</span><span class="cx">     [% title = title _ &quot;for &quot; %]
</span><span class="lines">@@ -28,10 +18,10 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><del>-    title = title 
-    header = header 
-    style_urls = [&quot;skins/standard/summarize-time.css&quot;]
-    doc_section = &quot;timetracking.html&quot;
</del><ins>+    title = title
+    header = header
+    style_urls = ['skins/standard/buglist.css']
+    doc_section = &quot;using/editing.html#time-tracking&quot;
</ins><span class="cx">     yui = ['calendar']
</span><span class="cx">     javascript_urls = [ &quot;js/util.js&quot;, &quot;js/field.js&quot; ]
</span><span class="cx">     %]
</span><span class="lines">@@ -45,15 +35,13 @@
</span><span class="cx">   [% FOREACH workdata = part_list %]
</span><span class="cx">     [%# parts contains date ranges (from, to). %]
</span><span class="cx">     [% part = parts.shift %]
</span><del>-    &lt;div align=&quot;right&quot;&gt;
-      &lt;h4 style=&quot;padding-right: 2em; margin: 0;&quot;&gt;
-        [% IF part.0 or part.1 %]
-          [% part.0 OR &quot;Up&quot; FILTER html %] to [% part.1 OR &quot;now&quot; FILTER html %]
-        [% ELSE %]
-          Full summary (no period specified)
-        [% END %]
-      &lt;/h4&gt;
-    &lt;/div&gt;
</del><ins>+    &lt;h4&gt;
+      [% IF part.0 or part.1 %]
+        [% part.0 OR &quot;Up&quot; FILTER html %] to [% part.1 OR &quot;now&quot; FILTER html %]
+      [% ELSE %]
+        Full summary (no period specified)
+      [% END %]
+    &lt;/h4&gt;
</ins><span class="cx">     [% IF group_by == &quot;number&quot; %]
</span><span class="cx">       [% INCLUDE number_report %]
</span><span class="cx">     [% ELSE %]
</span><span class="lines">@@ -62,7 +50,7 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF detailed %]
</span><del>-    &lt;h4 style=&quot;margin: 0&quot;&gt;
</del><ins>+    &lt;h4&gt;
</ins><span class="cx">       Total of [% global.remaining FILTER format(&quot;%.2f&quot;) %]h remains from
</span><span class="cx">       original estimate of [% global.estimated FILTER format(&quot;%.2f&quot;) %]h
</span><span class="cx">       [% IF global.deadline %]
</span><span class="lines">@@ -72,13 +60,13 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF monthly %]
</span><del>-    &lt;h4 style=&quot;margin: 0&quot;&gt;Total of [% global.grand_total FILTER format(&quot;%.2f&quot;) %] hours worked&lt;/h4&gt;
-    &lt;hr noshade size=&quot;1&quot;&gt;
</del><ins>+    &lt;h4&gt;Total of [% global.grand_total FILTER format(&quot;%.2f&quot;) %] hours worked&lt;/h4&gt;
+    &lt;hr&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF null.size &gt; 0 %]
</span><span class="cx">     [% INCLUDE inactive_report %]
</span><del>-    &lt;h4 style=&quot;margin: 0&quot;&gt;Total of [% null.size %] inactive [% terms.bugs %]&lt;/h4&gt;
</del><ins>+    &lt;h4&gt;Total of [% null.size %] inactive [% terms.bugs %]&lt;/h4&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -93,7 +81,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK owner_report %]
</span><span class="cx">     [% global.total = 0 global.bug_count = {} global.owner_count = {} %]
</span><del>-    &lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot; class=&quot;realitems owner&quot;&gt;
</del><ins>+    &lt;table class=&quot;realitems owner&quot;&gt;
</ins><span class="cx">         [% FOREACH owner = workdata.keys.sort %]
</span><span class="cx">             [% INCLUDE do_one_owner owner=owner ownerdata=workdata.$owner
</span><span class="cx">                                     detailed=detailed %]
</span><span class="lines">@@ -122,11 +110,10 @@
</span><span class="cx">         [% subtotal = subtotal + bugdata.total_time %]
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td colspan=&quot;4&quot; align=&quot;right&quot;&gt;&lt;b&gt;Total&lt;/b&gt;:&lt;/td&gt;
-      &lt;td align=&quot;right&quot; class=&quot;subtotal&quot; width=&quot;100&quot;&gt;
-        &lt;b&gt;[% subtotal FILTER format(&quot;%.2f&quot;) %]&lt;/b&gt;&lt;/td&gt;
-        [% global.total = global.total + subtotal %]
</del><ins>+      &lt;th colspan=&quot;4&quot; class=&quot;right&quot;&gt;Total:&lt;/th&gt;
+      &lt;td class=&quot;subtotal&quot;&gt;[% subtotal FILTER format(&quot;%.2f&quot;) %]&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+    [% global.total = global.total + subtotal %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%#
</span><span class="lines">@@ -138,7 +125,7 @@
</span><span class="cx"> [% BLOCK number_report %]
</span><span class="cx">     [% global.total = 0 global.owner_count = {} global.bug_count = {} %]
</span><span class="cx"> 
</span><del>-    &lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot; class=&quot;realitems number&quot;&gt;
</del><ins>+    &lt;table class=&quot;realitems number&quot;&gt;
</ins><span class="cx">     [% FOREACH bug = workdata.keys.nsort %]
</span><span class="cx">         [% INCLUDE do_one_bug id=bug bugdata=workdata.$bug
</span><span class="cx">                               detailed=detailed %]
</span><span class="lines">@@ -166,19 +153,14 @@
</span><span class="cx">             &lt;tr class=&quot;owner_header[% 2 FILTER none IF cid % 2 %]&quot;&gt;
</span><span class="cx">                 &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="cx">                 &lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;[% login_name FILTER html %]&lt;/b&gt;&lt;/td&gt;
</span><del>-                &lt;td align=&quot;right&quot;&gt;
</del><ins>+                &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">                 [% work_time FILTER format(&quot;%.2f&quot;) %]&lt;/td&gt;
</span><span class="cx">             &lt;/tr&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
-      &lt;td align=&quot;right&quot;&gt;
-      &lt;b&gt;Total&lt;/b&gt;:
-      &lt;/td&gt;
-      &lt;td align=&quot;right&quot; class=&quot;subtotal&quot; width=&quot;100&quot;&gt;
-        &lt;b&gt;[% subtotal FILTER format(&quot;%.2f&quot;) %]&lt;/b&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;th colspan=&quot;3&quot; class=&quot;right&quot;&gt;Total:&lt;/th&gt;
+      &lt;td class=&quot;subtotal&quot;&gt;[% subtotal FILTER format(&quot;%.2f&quot;) %]&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% global.total = global.total + subtotal %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -185,13 +167,13 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK bug_header %]
</span><span class="cx">     &lt;tr class=&quot;bug_header[% '2' IF cid % 2 %]&quot;&gt;
</span><del>-        &lt;td width=&quot;80&quot; valign=&quot;top&quot;&gt;
-          &lt;b&gt;[% &quot;$terms.Bug $id&quot; FILTER bug_link(id) FILTER none %]&lt;/b&gt;
-        &lt;/td&gt;
-        &lt;td width=&quot;100&quot;&gt;&lt;b&gt;[% display_value(&quot;bug_status&quot;, bugs.$id.bug_status) FILTER html %]&lt;/b&gt;&lt;/td&gt;
</del><ins>+        &lt;th class=&quot;bug_id&quot;&gt;[% &quot;$terms.Bug $id&quot; FILTER bug_link(id) FILTER none %]&lt;/th&gt;
+        &lt;th class=&quot;bug_status&quot;&gt;
+          [% display_value(&quot;bug_status&quot;, bugs.$id.bug_status) FILTER html %]
+        &lt;/th&gt;
</ins><span class="cx">         &lt;td colspan=&quot;2&quot;&gt;[% bugs.$id.short_desc FILTER html %]&lt;/td&gt;
</span><span class="cx">         [% IF extra %]
</span><del>-          &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;[% bugdata.total_time FILTER html %]&lt;/td&gt;
</del><ins>+          &lt;td class=&quot;right&quot;&gt;[% bugdata.total_time FILTER html %]&lt;/td&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     [% IF detailed %]
</span><span class="lines">@@ -198,19 +180,15 @@
</span><span class="cx">       &lt;tr class=&quot;bug_header[% '2' IF cid % 2 %]&quot;&gt;
</span><span class="cx">         &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="cx">         &lt;td colspan=&quot;3&quot;&gt;
</span><del>-          &lt;table width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
-            &lt;tr&gt;
-              &lt;td width=&quot;33%&quot;&gt;
-                Estimated: [% bugs.$id.estimated_time FILTER format(&quot;%.2f&quot;) %]h
-              &lt;/td&gt;
-              &lt;td width=&quot;33%&quot;&gt;
-                Remaining: [% bugs.$id.remaining_time FILTER format(&quot;%.2f&quot;) %]h
-              &lt;/td&gt;
-              &lt;td width=&quot;33%&quot;&gt;
-                Deadline: [% bugs.$id.deadline || &quot;&lt;b&gt;Not set&lt;/b&gt;&quot; %]
-              &lt;/td&gt;
-            &lt;/tr&gt;
-          &lt;/table&gt;
</del><ins>+          &lt;span class=&quot;time_info&quot;&gt;
+            Estimated: [% bugs.$id.estimated_time FILTER format(&quot;%.2f&quot;) %]h
+          &lt;/span&gt;
+          &lt;span class=&quot;time_info&quot;&gt;
+            Remaining: [% bugs.$id.remaining_time FILTER format(&quot;%.2f&quot;) %]h
+          &lt;/span&gt;
+          &lt;span class=&quot;time_info&quot;&gt;
+            Deadline: [% bugs.$id.deadline || &quot;&lt;b&gt;Not set&lt;/b&gt;&quot; %]
+          &lt;/span&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">         [% IF extra %]
</span><span class="cx">           &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="lines">@@ -232,7 +210,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK inactive_report %]
</span><span class="cx">     &lt;h3&gt;Inactive [% terms.bugs %]&lt;/h3&gt;
</span><del>-    &lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot; class=&quot;zeroitems&quot;&gt;
</del><ins>+    &lt;table class=&quot;zeroitems&quot;&gt;
</ins><span class="cx">     [% cid = 0 %]
</span><span class="cx">     [% FOREACH bug_id = null.nsort %]
</span><span class="cx">         [% INCLUDE bug_header id=bug_id cid=cid %]
</span><span class="lines">@@ -246,8 +224,8 @@
</span><span class="cx">   [% IF global.total &gt; 0 %]
</span><span class="cx">     &lt;tr class=&quot;section_total&quot;&gt;
</span><span class="cx">       &lt;td&gt;&lt;b&gt;Totals&lt;/b&gt;&lt;/td&gt;
</span><del>-      &lt;td colspan=&quot;[% colspan FILTER html %]&quot; align=&quot;right&quot;&gt;&lt;b&gt;[% additional FILTER html %]&lt;/b&gt;&lt;/td&gt;
-      &lt;td align=&quot;right&quot;&gt;&lt;b&gt;[% global.total FILTER format(&quot;%.2f&quot;) %]&lt;/b&gt;&lt;/td&gt;
</del><ins>+      &lt;th colspan=&quot;[% colspan FILTER html %]&quot; class=&quot;right&quot;&gt;[% additional FILTER html %]&lt;/th&gt;
+      &lt;th class=&quot;right&quot;&gt;[% global.total FILTER format(&quot;%.2f&quot;) %]&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% ELSE %]
</span><span class="cx">     &lt;tr&gt;
</span><span class="lines">@@ -264,88 +242,90 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK query_form %]
</span><del>-&lt;hr noshade size=1&gt;
-&lt;form method=&quot;post&quot; name=&quot;summary&quot; style=&quot;display: inline&quot; action=&quot;summarize_time.cgi&quot;&gt;
</del><ins>+&lt;hr&gt;
+&lt;form method=&quot;post&quot; name=&quot;summary&quot; action=&quot;summarize_time.cgi&quot;&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;do_depends&quot; value=&quot;[% do_depends FILTER html %]&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% ids.join(&quot;,&quot;) FILTER html %]&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;do_report&quot; value=&quot;1&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> [% IF warn_swap_dates %]
</span><del>-    &lt;h4 style=&quot;border: 1px solid red; margin: 1em; padding: 0.5em&quot;&gt;The
-    end date specified occurs before the start date, which doesn't
-    make sense; the dates below have therefore been swapped.&lt;/h4&gt;
</del><ins>+  &lt;p class=&quot;warning_swapped_data&quot;&gt;
+    The end date specified occurs before the start date, which doesn't
+    make sense; the dates below have therefore been swapped.
+  &lt;/p&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> &lt;table&gt;
</span><del>-&lt;tr&gt;
-&lt;td align=&quot;right&quot;&gt;
-  &lt;b&gt;&lt;label accesskey=&quot;s&quot; 
-             for=&quot;start_date&quot;&gt;Period &lt;u&gt;s&lt;/u&gt;tarting&lt;/label&gt;&lt;/b&gt;: 
-&lt;/td&gt;&lt;td colspan=&quot;3&quot;&gt;
-  &lt;input type=&quot;text&quot; id=&quot;start_date&quot; name=&quot;start_date&quot; size=&quot;11&quot;
-         align=&quot;right&quot; value=&quot;[% start_date FILTER html %]&quot; maxlength=&quot;10&quot;
-         onchange=&quot;updateCalendarFromField(this)&quot;&gt;
-  &lt;button type=&quot;button&quot; class=&quot;calendar_button&quot;
-    id=&quot;button_calendar_start_date&quot;
-    onclick=&quot;showCalendar('start_date')&quot;&gt;&lt;span&gt;Calendar&lt;/span&gt;
-  &lt;/button&gt;
-  &lt;div id=&quot;con_calendar_start_date&quot;&gt;&lt;/div&gt;
-  &amp;nbsp;
-  &lt;b&gt;and &lt;label accesskey=&quot;e&quot; for=&quot;end_date&quot;&gt;&lt;u&gt;e&lt;/u&gt;nding&lt;/label&gt;&lt;/b&gt;: 
-  &lt;input type=&quot;text&quot; name=&quot;end_date&quot; size=&quot;11&quot; id=&quot;end_date&quot;
-         align=&quot;right&quot; value =&quot;[% end_date FILTER html %]&quot; maxlength=&quot;10&quot;
-         onchange=&quot;updateCalendarFromField(this)&quot;&gt;
-  &lt;button type=&quot;button&quot; class=&quot;calendar_button&quot;
-    id=&quot;button_calendar_end_date&quot;
-    onclick=&quot;showCalendar('end_date')&quot;&gt;&lt;span&gt;Calendar&lt;/span&gt;
-  &lt;/button&gt;
-  &lt;div id=&quot;con_calendar_end_date&quot;&gt;&lt;/div&gt;
-&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;
-  &lt;input type=&quot;submit&quot; id=&quot;summarize&quot; value=&quot;Summarize&quot;&gt;
-&lt;/td&gt;&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td colspan=&quot;4&quot;&gt;
-  &lt;small&gt;(Dates are optional, and in YYYY-MM-DD format)&lt;/small&gt;
-&lt;/td&gt;
-&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;
-  &lt;b&gt;Group by&lt;/b&gt;:
-&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;
-  &lt;input type=&quot;radio&quot; name=&quot;group_by&quot; id=&quot;number&quot; value=&quot;number&quot; [%+
-    'checked=&quot;checked&quot;' IF group_by == &quot;number&quot;
-  %]&gt;&lt;label 
-  for=&quot;number&quot; accesskey=&quot;n&quot;&gt;[% terms.Bug %] &lt;u&gt;N&lt;/u&gt;umber&lt;/label&gt;
-  &lt;input type=&quot;radio&quot; name=&quot;group_by&quot; id=&quot;owner&quot; value=&quot;owner&quot; [%+
-    'checked=&quot;checked&quot;' IF group_by == &quot;owner&quot;
-  %]&gt;&lt;label 
-  for=&quot;owner&quot; accesskey=&quot;d&quot;&gt;&lt;u&gt;D&lt;/u&gt;eveloper&lt;/label&gt;
-&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;
-  &lt;label for=&quot;ctype&quot;&gt;&lt;b&gt;Format&lt;/b&gt;&lt;/label&gt;: &lt;select name=&quot;ctype&quot; id=&quot;ctype&quot;&gt;
-    &lt;option value=&quot;html&quot;&gt;HTML Report&lt;/option&gt;
-  &lt;/select&gt;
-&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
-&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td colspan=&quot;4&quot;&gt;
-  &lt;input type=&quot;checkbox&quot; name=&quot;monthly&quot; [% 'checked=&quot;checked&quot;' IF
-      monthly %] id=&quot;monthly&quot;&gt;
-  &lt;label for=&quot;monthly&quot; accesskey=&quot;m&quot;&gt;Split by &lt;u&gt;m&lt;/u&gt;onth&lt;/label&gt;
-  [%# XXX: allow splitting by other intervals %]
-  &amp;nbsp;
-  &lt;input type=&quot;checkbox&quot; name=&quot;detailed&quot; [% 'checked=&quot;checked&quot;' IF
-      detailed %] id=&quot;detailed&quot;&gt;
-  &lt;label for=&quot;detailed&quot; accesskey=&quot;t&quot;&gt;De&lt;u&gt;t&lt;/u&gt;ailed summaries&lt;/label&gt;
-  &amp;nbsp;
-  &lt;input type=&quot;checkbox&quot; name=&quot;inactive&quot; [% 'checked=&quot;checked&quot;' IF
-      inactive %] id=&quot;inactive&quot;&gt;
-  &lt;label for=&quot;inactive&quot; accesskey=&quot;i&quot;&gt;Also show &lt;u&gt;i&lt;/u&gt;nactive
-  [%+ terms.bugs %]&lt;/label&gt;
-&lt;/td&gt;
-&lt;/tr&gt;&lt;/table&gt;
</del><ins>+  &lt;tr&gt;
+    &lt;th&gt;
+      &lt;label accesskey=&quot;s&quot; for=&quot;start_date&quot;&gt;Period &lt;u&gt;s&lt;/u&gt;tarting&lt;/label&gt;:
+    &lt;/th&gt;
+    &lt;td&gt;
+      &lt;input id=&quot;start_date&quot; name=&quot;start_date&quot; size=&quot;10&quot; autofocus
+             value=&quot;[% start_date FILTER html %]&quot; maxlength=&quot;10&quot;
+             onchange=&quot;updateCalendarFromField(this)&quot;&gt;
+      &lt;button type=&quot;button&quot; class=&quot;calendar_button&quot; id=&quot;button_calendar_start_date&quot;
+              onclick=&quot;showCalendar('start_date')&quot;&gt;&lt;span&gt;Calendar&lt;/span&gt;
+      &lt;/button&gt;
+      &lt;div id=&quot;con_calendar_start_date&quot;&gt;&lt;/div&gt;
+      &lt;span class=&quot;label&quot;&gt;
+        and &lt;label accesskey=&quot;e&quot; for=&quot;end_date&quot;&gt;&lt;u&gt;e&lt;/u&gt;nding&lt;/label&gt;:
+      &lt;/span&gt;
+      &lt;input type=&quot;text&quot; name=&quot;end_date&quot; size=&quot;10&quot; id=&quot;end_date&quot;
+             value =&quot;[% end_date FILTER html %]&quot; maxlength=&quot;10&quot;
+             onchange=&quot;updateCalendarFromField(this)&quot;&gt;
+      &lt;button type=&quot;button&quot; class=&quot;calendar_button&quot; id=&quot;button_calendar_end_date&quot;
+              onclick=&quot;showCalendar('end_date')&quot;&gt;&lt;span&gt;Calendar&lt;/span&gt;
+      &lt;/button&gt;
+      &lt;div id=&quot;con_calendar_end_date&quot;&gt;&lt;/div&gt;
+      &lt;br&gt;
+      &lt;span class=&quot;bz_info&quot;&gt;(Dates are optional, and in YYYY-MM-DD format)&lt;/span&gt;
+    &lt;/td&gt;
+    &lt;th&gt;&lt;input type=&quot;submit&quot; id=&quot;summarize&quot; value=&quot;Summarize&quot;&gt;&lt;/th&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> 
</span><ins>+  &lt;tr&gt;
+    &lt;th&gt;Group by:&lt;/th&gt;
+    &lt;td&gt;
+      &lt;input type=&quot;radio&quot; name=&quot;group_by&quot; id=&quot;number&quot; value=&quot;number&quot;
+             [% 'checked=&quot;checked&quot;' IF group_by == &quot;number&quot; %]&gt;
+      &lt;label for=&quot;number&quot; accesskey=&quot;n&quot;&gt;[% terms.Bug %] &lt;u&gt;N&lt;/u&gt;umber&lt;/label&gt;
+      &lt;input type=&quot;radio&quot; name=&quot;group_by&quot; id=&quot;owner&quot; value=&quot;owner&quot;
+             [% 'checked=&quot;checked&quot;' IF group_by == &quot;owner&quot; %]&gt;
+      &lt;label for=&quot;owner&quot; accesskey=&quot;d&quot;&gt;&lt;u&gt;D&lt;/u&gt;eveloper&lt;/label&gt;
+    &lt;/td&gt;
+    &lt;th&gt;
+      &lt;label for=&quot;ctype&quot;&gt;Format&lt;/label&gt;:
+      &lt;select name=&quot;ctype&quot; id=&quot;ctype&quot;&gt;
+        &lt;option value=&quot;html&quot;&gt;HTML Report&lt;/option&gt;
+      &lt;/select&gt;
+    &lt;/th&gt;
+  &lt;/tr&gt;
+
+  &lt;tr&gt;
+    &lt;th&gt;&amp;nbsp;&lt;/th&gt;
+    &lt;td colspan=&quot;2&quot;&gt;
+      &lt;input type=&quot;checkbox&quot; name=&quot;monthly&quot; id=&quot;monthly&quot;
+             [% 'checked=&quot;checked&quot;' IF monthly %]&gt;
+      &lt;label for=&quot;monthly&quot; accesskey=&quot;m&quot;&gt;Split by &lt;u&gt;m&lt;/u&gt;onth&lt;/label&gt;
+      [%# XXX: allow splitting by other intervals %]
+      &lt;input type=&quot;checkbox&quot; name=&quot;detailed&quot; id=&quot;detailed&quot;
+             [% 'checked=&quot;checked&quot;' IF detailed %]&gt;
+      &lt;label for=&quot;detailed&quot; accesskey=&quot;t&quot;&gt;De&lt;u&gt;t&lt;/u&gt;ailed summaries&lt;/label&gt;
+      &lt;input type=&quot;checkbox&quot; name=&quot;inactive&quot; id=&quot;inactive&quot;
+             [% 'checked=&quot;checked&quot;' IF inactive %]&gt;
+      &lt;label for=&quot;inactive&quot; accesskey=&quot;i&quot;&gt;Also show &lt;u&gt;i&lt;/u&gt;nactive
+        [%+ terms.bugs %]&lt;/label&gt;
+    &lt;/td&gt;
+  &lt;/tr&gt;
+&lt;/table&gt;
+
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-&lt;!--
-  createCalendar('start_date');
-  createCalendar('end_date');
-  document.forms['summary'].start_date.focus();
-//--&gt;&lt;/script&gt;
-&lt;hr noshade size=1&gt;
</del><ins>+  &lt;!--
+    [%+ PROCESS &quot;global/calendar.js.tmpl&quot; id = 'start_date' %]
+    [% PROCESS &quot;global/calendar.js.tmpl&quot; id = 'end_date' %]
+  //--&gt;
+&lt;/script&gt;
+&lt;hr&gt;
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultbugtimehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/bug/time.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/bug/time.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/bug/time.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Jeff Hedlund &lt;jeff.hedlund@matrixsi.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-                                      
</del><ins>+
</ins><span class="cx"> [% BLOCK formattimeunit %]
</span><span class="cx">   [%# INTERFACE:
</span><span class="cx">     # time_unit:  the number converting, converts to 2 decimal places
</span><span class="lines">@@ -26,11 +13,7 @@
</span><span class="cx">     #             1 decimal place
</span><span class="cx">     #%]
</span><span class="cx">   [% time_unit = time_unit FILTER format('%.2f') %]
</span><del>-  [% IF time_unit.match('0\Z') %]
-    [% time_unit FILTER format('%.1f') %]
-  [% ELSE %]
-    [% time_unit FILTER format('%.2f') %]
-  [% END %]
</del><ins>+  [% time_unit.replace('0\Z', '') %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK calculatepercentage %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultconfigjstmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/config.js.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/config.js.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/config.js.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> //
</span><span class="cx"> // This file contains installation specific values for third-party clients.
</span><span class="lines">@@ -42,9 +30,16 @@
</span><span class="cx"> // Keywords
</span><span class="cx"> // ========
</span><span class="cx"> 
</span><del>-var keyword       = [ [% FOREACH x = keyword %]'[% x FILTER js %]', [% END %] ];
</del><ins>+var keyword       = [ [% FOREACH k = keywords %]'[% k.name FILTER js %]', [% END %] ];
+var keyword_descs = [
+[% FOREACH k = keywords %]
+  {
+    name:        '[% k.name FILTER js %]',
+    description: '[% k.description FILTER js %]',
+  },
+[% END %]
+];
</ins><span class="cx"> 
</span><del>-
</del><span class="cx"> // Platforms
</span><span class="cx"> // =========
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultconfigrdftmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/config.rdf.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/config.rdf.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/config.rdf.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# The url to the installation is going to be displayed many times.
</span><span class="lines">@@ -67,13 +54,18 @@
</span><span class="cx">     &lt;/Seq&gt;
</span><span class="cx">   &lt;/bz:resolution&gt;
</span><span class="cx"> 
</span><del>-  &lt;bz:keyword&gt;
</del><ins>+  &lt;bz:keywords&gt;
</ins><span class="cx">     &lt;Seq&gt;
</span><del>-      [% FOREACH item = keyword %]
-        &lt;li&gt;[% item FILTER html %]&lt;/li&gt;
</del><ins>+      [% FOREACH keyword = keywords %]
+        &lt;li&gt;
+          &lt;bz:keyword rdf:about=&quot;[% escaped_urlbase %]keyword.cgi?name=[% keyword.name FILTER uri %]&quot;&gt;
+            &lt;bz:name&gt;[% keyword.name FILTER html %]&lt;/bz:name&gt;
+            &lt;bz:description&gt;[% keyword.description FILTER html %]&lt;/bz:description&gt;
+          &lt;/bz:keyword&gt;
+        &lt;/li&gt;
</ins><span class="cx">       [% END %]
</span><span class="cx">     &lt;/Seq&gt;
</span><del>-  &lt;/bz:keyword&gt;
</del><ins>+  &lt;/bz:keywords&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;bz:platform&gt;
</span><span class="cx">     &lt;Seq&gt;
</span><span class="lines">@@ -118,6 +110,23 @@
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% IF Param('useclassification') %]
+  &lt;bz:classifications&gt;
+    &lt;Seq&gt;
+      [% FOREACH classification = classifications %]
+      &lt;li&gt;
+        &lt;bz:classification rdf:about=&quot;[% escaped_urlbase %]classification.cgi?name=
+          [% classification.name FILTER uri %]&quot;&gt;
+          &lt;bz:name&gt;[% classification.name FILTER html %]&lt;/bz:name&gt;
+          &lt;bz:description&gt;[% classification.description FILTER html %]&lt;/bz:description&gt;
+          &lt;bz:sortkey&gt;[% classification.sortkey FILTER html %]&lt;/bz:sortkey&gt;
+        &lt;/bz:classification&gt;
+      &lt;/li&gt;
+      [% END %]
+    &lt;/Seq&gt;
+  &lt;/bz:classifications&gt;
+[% END %]
+
</ins><span class="cx">   &lt;bz:products&gt;
</span><span class="cx">     &lt;Seq&gt;
</span><span class="cx">       [% FOREACH product = products %]
</span><span class="lines">@@ -125,11 +134,13 @@
</span><span class="cx">           &lt;bz:product rdf:about=&quot;[% escaped_urlbase %]product.cgi?name=[% product.name FILTER uri %]&quot;&gt;
</span><span class="cx">             &lt;bz:name&gt;[% product.name FILTER html %]&lt;/bz:name&gt;
</span><span class="cx">             &lt;bz:allows_unconfirmed&gt;[% product.allows_unconfirmed FILTER html %]&lt;/bz:allows_unconfirmed&gt;
</span><del>-
</del><ins>+            [% IF Param('useclassification') %]
+              &lt;bz:classification&gt;[% class_names.${product.classification_id}.name FILTER html %]&lt;/bz:classification&gt;
+            [% END %]
</ins><span class="cx">             &lt;bz:components&gt;
</span><span class="cx">               &lt;Seq&gt;
</span><del>-                [% FOREACH component = product.components %]
-                  &lt;li resource=&quot;[% escaped_urlbase %]component.cgi?name=[% component.name FILTER uri
</del><ins>+                [% FOREACH comp = product.components %]
+                  &lt;li resource=&quot;[% escaped_urlbase %]component.cgi?name=[% comp.name FILTER uri
</ins><span class="cx">                       %]&amp;amp;product=[% product.name FILTER uri %]&quot;/&gt;
</span><span class="cx">                 [% END %]
</span><span class="cx">               &lt;/Seq&gt;
</span><span class="lines">@@ -138,7 +149,8 @@
</span><span class="cx">             &lt;bz:versions&gt;
</span><span class="cx">               &lt;Seq&gt;
</span><span class="cx">                 [% FOREACH version = product.versions %]
</span><del>-                  &lt;li resource=&quot;[% escaped_urlbase %]version.cgi?name=[% version.name FILTER uri %]&quot;/&gt;
</del><ins>+                  &lt;li resource=&quot;[% escaped_urlbase %]version.cgi?name=[% version.name FILTER uri
+                      %]&amp;amp;product=[% product.name FILTER uri %]&quot;/&gt;
</ins><span class="cx">                 [% END %]
</span><span class="cx">               &lt;/Seq&gt;
</span><span class="cx">             &lt;/bz:versions&gt;
</span><span class="lines">@@ -147,7 +159,8 @@
</span><span class="cx">               &lt;bz:target_milestones&gt;
</span><span class="cx">                 &lt;Seq&gt;
</span><span class="cx">                   [% FOREACH milestone = product.milestones %]
</span><del>-                    &lt;li resource=&quot;[% escaped_urlbase %]milestone.cgi?name=[% milestone.name FILTER uri %]&quot;/&gt;
</del><ins>+                    &lt;li resource=&quot;[% escaped_urlbase %]milestone.cgi?name=[% milestone.name FILTER uri
+                        %]&amp;amp;product=[% product.name FILTER uri %]&quot;/&gt;
</ins><span class="cx">                   [% END %]
</span><span class="cx">                 &lt;/Seq&gt;
</span><span class="cx">               &lt;/bz:target_milestones&gt;
</span><span class="lines">@@ -163,15 +176,16 @@
</span><span class="cx">   &lt;bz:components&gt;
</span><span class="cx">     &lt;Seq&gt;
</span><span class="cx">       [% FOREACH product = products %]
</span><del>-        [% FOREACH component = product.components %]
</del><ins>+        [% FOREACH comp = product.components %]
</ins><span class="cx">           &lt;li&gt;
</span><del>-            &lt;bz:component rdf:about=&quot;[% escaped_urlbase %]component.cgi?name=[% component.name FILTER uri
</del><ins>+            &lt;bz:component rdf:about=&quot;[% escaped_urlbase %]component.cgi?name=[% comp.name FILTER uri
</ins><span class="cx">                           %]&amp;amp;product=[% product.name FILTER uri %]&quot;&gt;
</span><del>-              &lt;bz:name&gt;[% component.name FILTER html %]&lt;/bz:name&gt;
</del><ins>+              &lt;bz:name&gt;[% comp.name FILTER html %]&lt;/bz:name&gt;
+              &lt;bz:is_active&gt;[% comp.is_active FILTER html %]&lt;/bz:is_active&gt;
</ins><span class="cx">               [% IF show_flags %]
</span><span class="cx">                 &lt;bz:flag_types&gt;
</span><span class="cx">                   &lt;Seq&gt;
</span><del>-                    [% flag_types = component.flag_types.bug.merge(component.flag_types.attachment) %]
</del><ins>+                    [% flag_types = comp.flag_types.bug.merge(comp.flag_types.attachment) %]
</ins><span class="cx">                     [% FOREACH flag_type = flag_types %]
</span><span class="cx">                       [% NEXT UNLESS flag_type.is_active %]
</span><span class="cx">                       [% all_visible_flag_types.${flag_type.id} = flag_type %]
</span><span class="lines">@@ -193,8 +207,10 @@
</span><span class="cx">       [% FOREACH product = products %]
</span><span class="cx">         [% FOREACH version = product.versions %]
</span><span class="cx">           &lt;li&gt;
</span><del>-            &lt;bz:version rdf:about=&quot;[% escaped_urlbase %]version.cgi?name=[% version.name FILTER uri %]&quot;&gt;
</del><ins>+            &lt;bz:version rdf:about=&quot;[% escaped_urlbase %]version.cgi?name=[% version.name FILTER uri
+                        %]&amp;amp;product=[% product.name FILTER uri %]&quot;&gt;
</ins><span class="cx">               &lt;bz:name&gt;[% version.name FILTER html %]&lt;/bz:name&gt;
</span><ins>+              &lt;bz:is_active&gt;[% version.is_active FILTER html %]&lt;/bz:is_active&gt;
</ins><span class="cx">             &lt;/bz:version&gt;
</span><span class="cx">           &lt;/li&gt;
</span><span class="cx">         [% END %]
</span><span class="lines">@@ -208,8 +224,10 @@
</span><span class="cx">         [% FOREACH product = products %]
</span><span class="cx">           [% FOREACH milestone = product.milestones %]
</span><span class="cx">             &lt;li&gt;
</span><del>-              &lt;bz:target_milestone rdf:about=&quot;[% escaped_urlbase %]milestone.cgi?name=[% milestone.name FILTER uri %]&quot;&gt;
</del><ins>+              &lt;bz:target_milestone rdf:about=&quot;[% escaped_urlbase %]milestone.cgi?name=[% milestone.name FILTER uri
+                                   %]&amp;amp;product=[% product.name FILTER uri %]&quot;&gt;
</ins><span class="cx">                 &lt;bz:name&gt;[% milestone.name FILTER html %]&lt;/bz:name&gt;
</span><ins>+                &lt;bz:is_active&gt;[% milestone.is_active FILTER html %]&lt;/bz:is_active&gt;
</ins><span class="cx">               &lt;/bz:target_milestone&gt;
</span><span class="cx">             &lt;/li&gt;
</span><span class="cx">           [% END %]
</span><span class="lines">@@ -257,6 +275,9 @@
</span><span class="cx">               &lt;bz:type_desc&gt;[% field_types.${item.type} FILTER html %]&lt;/bz:type_desc&gt;
</span><span class="cx">               &lt;bz:enter_bug&gt;[% item.enter_bug FILTER html %]&lt;/bz:enter_bug&gt;
</span><span class="cx">             [% END %]
</span><ins>+            [% IF item.is_active.defined %]
+              &lt;bz:is_active&gt;[% item.is_active FILTER html %]&lt;/bz:is_active&gt;
+            [% END %]
</ins><span class="cx">           &lt;/bz:field&gt;
</span><span class="cx">         &lt;/li&gt;
</span><span class="cx">       [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailcommontxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-common.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-common.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-common.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Guy Pyrzak
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx">   
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% field_label = field_descs.${change.field_name} %]
</span><span class="cx"> [% old_value = display_value(change.field_name, change.old) %]
</span><span class="cx"> [% new_value = display_value(change.field_name, change.new) %]
</span><span class="lines">@@ -35,4 +22,4 @@
</span><span class="cx"> [% IF change.field_name == 'longdescs.isprivate' %]
</span><span class="cx">   [% field_label = field_label.replace('^(Comment )?', &quot;Comment #${change.num} &quot;) %]
</span><span class="cx"> [% END %]
</span><del>-  
</del><span class="cx">\ No newline at end of file
</span><ins>+  
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailheadertxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-header.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-header.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail-header.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,47 +1,23 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): André Batosti &lt;batosti@async.com.br&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx">   
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% PROCESS &quot;global/reason-descs.none.tmpl&quot; %]
</span><span class="cx"> [% isnew = bug.lastdiffed ? 0 : 1 %]
</span><ins>+[% show_new = isnew
+              &amp;&amp; (to_user.settings.bugmail_new_prefix.value == 'on') %]
</ins><span class="cx"> 
</span><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% to_user.email %]
</span><del>-Subject: [[% terms.Bug %] [%+ bug.id %]] [% 'New: ' IF isnew %][%+ bug.short_desc %]
</del><ins>+Subject: [[% terms.Bug %] [%+ bug.id %]] [% 'New: ' IF show_new %][%+ bug.short_desc %]
</ins><span class="cx"> Date: [% date %]
</span><span class="cx"> X-Bugzilla-Reason: [% reasonsheader %]
</span><del>-X-Bugzilla-Type: [% isnew ? 'new' : 'changed' %]
</del><ins>+X-Bugzilla-Type: [% bugmailtype %]
</ins><span class="cx"> X-Bugzilla-Watch-Reason: [% reasonswatchheader %]
</span><del>-[% IF Param('useclassification') %]
-X-Bugzilla-Classification: [% bug.classification %]
-[% END %]
-X-Bugzilla-Product: [% bug.product %]
-X-Bugzilla-Component: [% bug.component %]
-X-Bugzilla-Keywords: [% bug.keywords %]
-X-Bugzilla-Severity: [% bug.bug_severity %]
-X-Bugzilla-Who: [% changer.login %]
-X-Bugzilla-Status: [% bug.bug_status %]
-X-Bugzilla-Priority: [% bug.priority %]
-X-Bugzilla-Assigned-To: [% bug.assigned_to.login %]
-X-Bugzilla-Target-Milestone: [% bug.target_milestone %]
</del><ins>+[%+ INCLUDE &quot;email/header-common.txt.tmpl&quot; %]
</ins><span class="cx"> X-Bugzilla-Changed-Fields: [% changedfields.join(&quot; &quot;) %]
</span><span class="cx"> [%+ threadingmarker %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,48 +1,55 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Guy Pyrzak
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx">   
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% PROCESS &quot;global/reason-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% isnew = bug.lastdiffed ? 0 : 1 %]
</span><span class="cx"> &lt;html&gt;
</span><span class="cx">     &lt;head&gt;
</span><del>-      &lt;base href=&quot;[% urlbase FILTER html %]&quot; /&gt;
</del><ins>+      &lt;base href=&quot;[% urlbase FILTER html %]&quot;&gt;
</ins><span class="cx">     &lt;/head&gt;
</span><span class="cx">     &lt;body&gt;
</span><ins>+      [% Hook.process('start') %]
</ins><span class="cx">       [% PROCESS generate_diffs %]
</span><span class="cx">       &lt;p&gt;
</span><span class="cx">       [% FOREACH comment = new_comments.reverse %]
</span><span class="cx">         &lt;div&gt;
</span><span class="cx">           [% IF comment.count %]
</span><del>-            &lt;b&gt;[% &quot;Comment # ${comment.count}&quot; FILTER bug_link(bug,
-              {comment_num =&gt; comment.count, full_url =&gt; 1, user =&gt; to_user}) FILTER none %]
-              on [% &quot;$terms.bug $bug.id&quot; FILTER bug_link(bug, { full_url =&gt; 1, user =&gt; to_user }) FILTER none %]
-              from [% INCLUDE global/user.html.tmpl who = comment.author %]&lt;/b&gt;
</del><ins>+            &lt;b&gt;[% INCLUDE bug/link.html.tmpl bug = bug, link_text = &quot;Comment # ${comment.count}&quot;,
+                                             comment_num = comment.count, full_url = 1, user = to_user %]
+              on [% INCLUDE bug/link.html.tmpl bug = bug, link_text = &quot;$terms.bug $bug.id&quot;,
+                                               full_url = 1, user = to_user %]
+              from [% INCLUDE global/user.html.tmpl user = to_user, who = comment.author %]&lt;/b&gt;
</ins><span class="cx">           [% END %]
</span><span class="cx">         &lt;pre&gt;[% comment.body_full({ wrap =&gt; 1 }) FILTER quoteUrls(bug, comment, to_user) %]&lt;/pre&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">       &lt;/p&gt;
</span><ins>+
+      [% IF referenced_bugs.size %]
+        &lt;div id=&quot;referenced&quot;&gt;
+          &lt;hr style=&quot;border: 1px dashed #969696&quot;&gt;
+          &lt;b&gt;Referenced [% terms.Bugs %]:&lt;/b&gt;
+          &lt;ul&gt;
+            [% FOREACH ref_bug = referenced_bugs %]
+              &lt;li&gt;
+                [[% &quot;${terms.Bug} ${ref_bug.id}&quot; FILTER bug_link(ref_bug, {full_url =&gt; 1, user =&gt; to_user}) FILTER none %]] 
+                [% ref_bug.short_desc FILTER html %]
+              &lt;/li&gt;
+            [% END %]
+          &lt;/ul&gt;
+        &lt;/div&gt;
+        &lt;br&gt;
+      [% END %]
+
</ins><span class="cx">       &lt;hr&gt;
</span><span class="cx">       &lt;span&gt;You are receiving this mail because:&lt;/span&gt;
</span><del>-      
</del><ins>+
</ins><span class="cx">       &lt;ul&gt;
</span><span class="cx">       [% FOREACH reason = reasons %]
</span><span class="cx">         [%  IF reason_descs.$reason  %]
</span><span class="lines">@@ -62,23 +69,23 @@
</span><span class="cx">   [% SET in_table = 0 %]
</span><span class="cx">   [% last_changer = 0 %]
</span><span class="cx">     [% FOREACH change = diffs %]
</span><del>-      [% IF !isnew &amp;&amp; changer.id != last_changer %]
-        [% last_changer = changer.id %]
</del><ins>+      [% IF !isnew &amp;&amp; change.who.id != last_changer %]
+        [% last_changer = change.who.id %]
</ins><span class="cx">         [% IF in_table == 1 %]
</span><span class="cx">           &lt;/table&gt;
</span><span class="cx">           [% SET in_table = 0 %]
</span><span class="cx">         [% END %]
</span><span class="cx">         [% IF change.blocker %]
</span><del>-              [% &quot;${terms.Bug} ${bug.id}&quot; FILTER bug_link(bug, {full_url =&gt; 1, user =&gt; to_user}) FILTER none %]
-              depends on
-              [%+ &quot;${terms.bug} ${change.blocker.id}&quot;
-                  FILTER bug_link(change.blocker, {full_url =&gt; 1, user =&gt; to_user}) FILTER none %],
-              which changed state.
</del><ins>+          [% INCLUDE bug/link.html.tmpl bug = bug, link_text = &quot;$terms.Bug $bug.id&quot;, full_url = 1, user = to_user %]
+          depends on
+          [%+ INCLUDE bug/link.html.tmpl bug = change.blocker, link_text = &quot;$terms.bug $change.blocker.id&quot;,
+                                         full_url = 1, user = to_user %],
+          which changed state.
</ins><span class="cx">         [% ELSE %]
</span><del>-              [% INCLUDE global/user.html.tmpl who = change.who %] changed
-              [%+ &quot;${terms.bug} ${bug.id}&quot; FILTER bug_link(bug, {full_url =&gt; 1, user =&gt; to_user}) FILTER none %]
</del><ins>+          [% INCLUDE global/user.html.tmpl user = to_user, who = change.who %] changed
+          [%+ INCLUDE bug/link.html.tmpl bug = bug, link_text = &quot;$terms.bug $bug.id&quot;, full_url = 1, user = to_user %]
</ins><span class="cx">         [% END %]
</span><del>-        &lt;br&gt;
</del><ins>+          &lt;br&gt;
</ins><span class="cx">           [% IF in_table == 0 %]
</span><span class="cx">              &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;8&quot;&gt;
</span><span class="cx">              [% SET in_table = 1 %]
</span><span class="lines">@@ -100,7 +107,7 @@
</span><span class="cx">           &lt;th&gt;[% field_label FILTER html %]&lt;/th&gt;
</span><span class="cx">           &lt;td&gt;
</span><span class="cx">             [% IF change.field_name == &quot;bug_id&quot; %]
</span><del>-              [% new_value FILTER bug_link(bug, {full_url =&gt; 1, user =&gt; to_user}) FILTER none %]
</del><ins>+              [% INCLUDE bug/link.html.tmpl bug = bug, link_text = new_value, full_url = 1, user = to_user %]
</ins><span class="cx">             [% ELSE %]
</span><span class="cx">               [% new_value FILTER html %]
</span><span class="cx">             [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailbugmailtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/bugmail.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,17 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): André Batosti &lt;batosti@async.com.br&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% PROCESS &quot;global/reason-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% isnew = bug.lastdiffed ? 0 : 1 %]
</span><span class="cx"> 
</span><ins>+[% Hook.process('start') %]
+
</ins><span class="cx"> [%+ PROCESS generate_diffs -%]
</span><span class="cx"> 
</span><span class="cx"> [% FOREACH comment = new_comments %]
</span><span class="lines">@@ -35,6 +22,15 @@
</span><span class="cx"> [%+ comment.body_full({ is_bugmail =&gt; 1, wrap =&gt; 1 }) FILTER strip_control_chars %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[% IF referenced_bugs.size %]
+
+Referenced [% terms.Bugs %]:
+
+[% FOREACH ref_bug = referenced_bugs %]
+[%+ urlbase %]show_bug.cgi?id=[% ref_bug.id %]
+[%+ &quot;[&quot; _ terms.Bug _ &quot; &quot; _ ref_bug.id _ &quot;] &quot; _ ref_bug.short_desc FILTER wrap_comment %]
+[% END %]
+[% END %]
</ins><span class="cx"> -- [%# Protect the trailing space of the signature marker %]
</span><span class="cx"> You are receiving this mail because:
</span><span class="cx"> [% SET reason_lines = [] %]
</span><span class="lines">@@ -49,11 +45,13 @@
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK generate_diffs %]
</span><span class="cx">   [% urlbase %]show_bug.cgi?id=[% bug.id %]
</span><del>-
</del><span class="cx"> [%+ last_changer = 0 %]
</span><ins>+[% IF isnew %]
+[%+ +%]
+[% END %]
</ins><span class="cx">   [% FOREACH change = diffs %]
</span><del>-    [% IF !isnew &amp;&amp; changer.id != last_changer %]
-      [% last_changer = changer.id %]
</del><ins>+    [% IF !isnew &amp;&amp; change.who.id != last_changer %]
+      [% last_changer = change.who.id %]
</ins><span class="cx">       [% IF change.blocker %]
</span><span class="cx">         [% terms.Bug %] [%+ bug.id %] depends on [% terms.bug %] [%+ change.blocker.id %], which changed state.
</span><span class="cx"> 
</span><span class="lines">@@ -60,7 +58,8 @@
</span><span class="cx"> [%+ terms.Bug %] [%+ change.blocker.id %] Summary: [% change.blocker.short_desc %]
</span><span class="cx"> [%+ urlbase %]show_bug.cgi?id=[% change.blocker.id %]
</span><span class="cx">       [% ELSE %]
</span><del>-        [%~ changer.identity %] changed:
</del><ins>+
+[% change.who.identity %] changed:
</ins><span class="cx">       [% END %]
</span><span class="cx"> 
</span><span class="cx">            What    |Removed                     |Added
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailflagmailtxttmplfromrev211528trunkWebsitesbugswebkitorgtemplateendefaultrequestemailtxttmpl"></a>
<div class="copfile"><h4>Copied: trunk/Websites/bugs.webkit.org/template/en/default/email/flagmail.txt.tmpl (from rev 211528, trunk/Websites/bugs.webkit.org/template/en/default/request/email.txt.tmpl) (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/flagmail.txt.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/flagmail.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[% bugidsummary = bug.bug_id _ ': ' _ bug.short_desc %]
+[% attidsummary = attachment.id _ ': ' _ attachment.description %]
+[% flagtype_name = flag ? flag.type.name : old_flag.type.name %]
+[% statuses = { '+' =&gt; &quot;granted&quot; , '-' =&gt; 'denied' , 'X' =&gt; &quot;canceled&quot; ,
+                '?' =&gt; &quot;asked&quot; } %]
+
+[% to_identity = &quot;&quot; %]
+[% on_behalf_of = 0 %]
+[% action = flag.status || 'X' %]
+
+[% IF flag &amp;&amp; flag.status == '?' %]
+  [% subject_status = &quot;requested&quot; %]
+  [% IF flag.setter_id == user.id %]
+    [% to_identity = flag.requestee.identity _ &quot; for&quot; %]
+  [% ELSE %]
+    [% on_behalf_of = 1 %]
+    [% IF flag.requestee %][% to_identity = &quot; to &quot; _ flag.requestee.identity %][% END %]
+  [% END %]
+[% ELSE %]
+  [% IF old_flag &amp;&amp; old_flag.status == '?' %]
+    [% to_identity = old_flag.setter.identity _ &quot;'s request for&quot; %]
+    [% IF old_flag.requestee.defined %]
+        [% requestee_identity = old_flag.requestee.identity _ &quot;'s&quot; %]
+    [% END %]
+  [% END %]
+  [% subject_status = statuses.$action %]
+[% END %]
+From: [% Param('mailfrom') %]
+To: [% to %]
+Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
+[%- IF attachment %] :
+  [Attachment [% attachment.id %]] [% attachment.description FILTER clean_text %][% END %]
+Date: [% date %]
+X-Bugzilla-Type: request
+[%+ INCLUDE &quot;email/header-common.txt.tmpl&quot; %]
+[%+ threadingmarker %]
+
+[%+ USE wrap -%]
+[%- FILTER bullet = wrap(80) -%]
+
+[% IF on_behalf_of %]
+[% user.identity %] has reassigned [% flag.setter.identity %]'s request for [% IF requestee_identity %] [%+ requestee_identity %] [% END %] [% flagtype_name %]
+[% to_identity %]:
+[% ELSE %]
+[% user.identity %] has [% statuses.$action %] [%+ to_identity %] [% IF requestee_identity %] [%+ requestee_identity %] [% END %] [%+ flagtype_name %]:
+[% END %]
+
+[% terms.Bug %] [%+ bugidsummary %]
+[% END %]
+[%+ urlbase %]show_bug.cgi?id=[% bug.bug_id %]
+[% IF attachment %]
+
+[% FILTER bullet = wrap(80) %]
+Attachment [% attidsummary %]
+[%- END %]
+[%# if WEBKIT_CHANGES #%]
+[%+ urlbase %]attachment.cgi?id=[% attachment.id %]&amp;action=review
+[%# endif // WEBKIT_CHANGES #%]
+[%- END %]
+
+[%- Hook.process('after_summary') -%]
+
+[%- FILTER bullet = wrap(80) %]
+
+[% FOREACH comment = new_comments %]
+
+[%- IF comment.count %]
+--- Comment #[% comment.count %] from [% comment.author.identity %] ---
+[% ELSE %]
+--- Description ---
+[% END %]
+[%+ comment.body_full({ is_bugmail =&gt; 1, wrap =&gt; 1 }) FILTER strip_control_chars %]
+[% END %]
+
+[%- END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailheadercommontxttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/email/header-common.txt.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/header-common.txt.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/header-common.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+[% IF Param('useclassification') %]
+X-Bugzilla-Classification: [% bug.classification %]
+[% END %]
+X-Bugzilla-Product: [% bug.product %]
+X-Bugzilla-Component: [% bug.component %]
+X-Bugzilla-Version: [% bug.version %]
+X-Bugzilla-Keywords: [% bug.keywords %]
+X-Bugzilla-Severity: [% bug.bug_severity %]
+X-Bugzilla-Who: [% changer.login %]
+X-Bugzilla-Status: [% bug.bug_status %]
+X-Bugzilla-Resolution: [% bug.resolution %]
+X-Bugzilla-Priority: [% bug.priority %]
+X-Bugzilla-Assigned-To: [% bug.assigned_to.login %]
+[% IF Param('usetargetmilestone') %]
+X-Bugzilla-Target-Milestone: [% bug.target_milestone %]
+[% END %]
+X-Bugzilla-Flags:[% FOREACH flag = bug.flags %] [%+ flag.name %][% flag.status %][% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemaillockouttxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/lockout.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/lockout.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/lockout.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,17 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is the Mozilla Corporation.
-  # Portions created by the Initial Developer are Copyright (C) 2008
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% Param('maintainer') %]
</span><del>-Subject: [[% terms.Bugzilla %]] Account Lock-Out: [% locked_user.login %] ([% attempts.0.ip_addr %])
</del><ins>+Subject: [[% terms.Bugzilla %]] Account Lock-Out: [% locked_user.login %] ([% address %])
</ins><span class="cx"> X-Bugzilla-Type: admin
</span><span class="cx"> 
</span><del>-The IP address [% attempts.0.ip_addr %] failed too many login attempts (
</del><ins>+The address [% address %] failed too many login attempts (
</ins><span class="cx"> [%- constants.MAX_LOGIN_ATTEMPTS +%]) for
</span><span class="cx"> the account [% locked_user.login %]. 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailnewapikeytxttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/email/new-api-key.txt.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/new-api-key.txt.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/new-api-key.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # user: The Bugzilla::User object of the user being created
+  # new_key: The API key created
+  #%]
+
+From: [% Param('mailfrom') %]
+To: [% user.email %]
+Subject: [% terms.Bugzilla %]: New API key created
+X-Bugzilla-Type: admin
+
+[This e-mail has been automatically generated]
+
+A new [% terms.Bugzilla %] API key[% IF new_key.description %], with the
+description '[% new_key.description %]'[% END %] has been created. You can view
+or update the key at the following URL:
+
+[%+ urlbase %]userprefs.cgi?tab=apikey
+
+IMPORTANT: If you did not request a new key, your [% terms.Bugzilla %] account
+may have been compromised. In this case, please disable the key at the above
+URL, and change your password immediately.
+
+For security reasons, we have not included your new key in this e-mail.
+
+If you have any issues regarding your account, please contact [% Param('maintainer') %].
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailnewuserdetailstxttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/email/new-user-details.txt.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/new-user-details.txt.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/new-user-details.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # new_user: The Bugzilla::User object of the user being created
+  #%]
+
+From: [% Param('mailfrom') %]
+To: [% new_user.email %]
+Subject: [% terms.Bugzilla %]: New account created
+X-Bugzilla-Type: admin
+
+[This e-mail has been automatically generated]
+
+A new [% terms.Bugzilla %] user account has been created at [% urlbase %]:
+
+Login: [% new_user.login %]
+[% IF new_user.realname %]
+Real name: [% new_user.realname %]
+[% END %]
+
+For security reasons, we have not included your new password in this e-mail.
+If you have not being given it via other means, you can use the 'Forgot
+Password' link to set a new password.
+
+If you have any issues regarding your account, please contact [% Param('maintainer') %].
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailsanitychecktxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/sanitycheck.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/sanitycheck.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/sanitycheck.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/variables.none.tmpl&quot; %]
</del><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% addressee %]
</span><span class="cx"> Subject: [[% terms.Bugzilla %]] Sanity Check Results
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailsudotxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/sudo.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/sudo.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/sudo.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 2005 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): A. Karl Kornel &lt;karl@kornel.name&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> Content-Type: text/plain
</span><span class="cx"> From: [% Param('mailfrom') %]
</span><span class="cx"> To: [% user.email %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultemailwhinetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/email/whine.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/email/whine.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/email/whine.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Emmanuel Seyman &lt;eseyman@linagora.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> From: [% Param(&quot;mailfrom&quot;) %]
</span><span class="cx"> To: [% email %][% Param(&quot;emailsuffix&quot;) %]
</span><span class="cx"> Subject: Your [% terms.Bugzilla %] [%+ terms.bug %] list needs attention.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsconfigpmtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/config.pm.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/config.pm.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/config.pm.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- mode: perl -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,12 +10,13 @@
</span><span class="cx">   # name: string; The name of the extension.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS extensions/license.txt.tmpl %]
</span><span class="cx"> 
</span><del>-package B[% %]ugzilla::Extension::[% name %];
</del><ins>+package Bugzilla::Extension::[% name %];
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use constant NAME =&gt; '[% name %]';
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsextensionpmtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/extension.pm.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/extension.pm.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/extension.pm.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- mode: perl -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,20 +10,22 @@
</span><span class="cx">   # name: string; The name of the extension.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS extensions/license.txt.tmpl %]
</span><span class="cx"> 
</span><del>-package B[% %]ugzilla::Extension::[% name %];
</del><ins>+package Bugzilla::Extension::[% name %];
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(B[% %]ugzilla::Extension);
</del><ins>+use warnings;
</ins><span class="cx"> 
</span><ins>+use parent qw(Bugzilla::Extension);
+
</ins><span class="cx"> # This code for this is in [% path %]/lib/Util.pm
</span><del>-use B[% %]ugzilla::Extension::[% name %]::Util;
</del><ins>+use Bugzilla::Extension::[% name %]::Util;
</ins><span class="cx"> 
</span><span class="cx"> our $VERSION = '0.01';
</span><span class="cx"> 
</span><del>-# See the documentation of B[% %]ugzilla::Hook (&quot;perldoc B[% %]ugzilla::Hook&quot; 
</del><ins>+# See the documentation of Bugzilla::Hook (&quot;perldoc Bugzilla::Hook&quot; 
</ins><span class="cx"> # in the bugzilla directory) for a list of all available hooks.
</span><span class="cx"> sub install_update_db {
</span><span class="cx">     my ($self, $args) = @_;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionshookreadmetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/hook-readme.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/hook-readme.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/hook-readme.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> Template hooks go in this directory. Template hooks are called in normal
</span><del>-[%+ terms.Bugzilla %] templates like [[% '%' %] Hook.process('some-hook') %].
</del><ins>+Bugzilla templates like [[% '%' %] Hook.process('some-hook') %].
</ins><span class="cx"> More information about them can be found in the documentation of 
</span><del>-B[% %]ugzilla::Extension. (Do &quot;perldoc B[% %]ugzilla::Extension&quot; from the main
-[%+ terms.Bugzilla %] directory to see that documentation.)
</del><ins>+Bugzilla::Extension. (Do &quot;perldoc Bugzilla::Extension&quot; from the main
+Bugzilla directory to see that documentation.)
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsindexadminrsttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-admin.rst.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-admin.rst.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-admin.rst.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # name: string; the name of the extension.
+  #%]
+
+[% USE String('#') %]
+[% name %]
+[%+ String.repeat(name.length) %]
+
+This is a sample Adminstrator documentation file for the [% name %] extension.
+Like all of the Bugzilla docs, it's written in
+`reStructured Text (reST) format &lt;http://sphinx-doc.org/latest/rest.html&gt;`_
+and will be compiled by `Sphinx &lt;http://sphinx-doc.org/&gt;`_.
+
+If you build the docs yourself using :file:`makedocs.pl`, this file will get
+incorporated into the Installed Extensions chapter of the Administration Guide.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsindexuserrsttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-user.rst.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-user.rst.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/index-user.rst.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # name: string; the name of the extension.
+  #%]
+
+[% USE String('#') %]
+[% name %]
+[%+ String.repeat(name.length) %]
+
+This is a sample User documentation file for the [% name %] extension.
+Like all of the Bugzilla docs, it's written in
+`reStructured Text (reST) format &lt;http://sphinx-doc.org/latest/rest.html&gt;`_
+and will be compiled by `Sphinx &lt;http://sphinx-doc.org/&gt;`_.
+
+If you build the docs yourself using :file:`makedocs.pl`, this file will get
+incorporated into the Installed Extensions chapter of the User Guide.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionslicensetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/license.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/license.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/license.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- mode: perl -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,25 +10,9 @@
</span><span class="cx">   # name: string; The name of the extension.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the [% name %] [%+ terms.Bugzilla %] Extension.
-#
-# The Initial Developer of the Original Code is YOUR NAME
-# Portions created by the Initial Developer are Copyright (C) [% year %] the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   YOUR NAME &lt;YOUR EMAIL ADDRESS&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsnamereadmetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/name-readme.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/name-readme.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/name-readme.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,38 +1,24 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> Normal templates go in this directory. You can load them in your
</span><span class="cx"> code like this:
</span><span class="cx"> 
</span><del>-use B[% %]ugzilla::Error;
-my $template = B[% %]ugzilla-&gt;template;
</del><ins>+use Bugzilla::Error;
+my $template = Bugzilla-&gt;template;
</ins><span class="cx"> $template-&gt;process('[% name FILTER lower %]/some-template.html.tmpl')
</span><span class="cx">   or ThrowTemplateError($template-&gt;error());
</span><span class="cx"> 
</span><del>-That would be how to load a file called some-template.html.tmpl that
</del><ins>+That would be how to load a file called &lt;kbd&gt;some-template.html.tmpl&lt;/kbd&gt; that
</ins><span class="cx"> was in this directory.
</span><span class="cx"> 
</span><span class="cx"> Note that you have to be careful that the full path of your template
</span><del>-never conflicts with a template that exists in [% terms.Bugzilla %] or in 
</del><ins>+never conflicts with a template that exists in Bugzilla or in 
</ins><span class="cx"> another extension, or your template might override that template. That's why
</span><span class="cx"> we created this directory called '[% name FILTER lower %]' for you, so you
</span><span class="cx"> can put your templates in here to help avoid conflicts.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionsutilpmtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/util.pm.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/util.pm.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/util.pm.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- mode: perl -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,19 +10,21 @@
</span><span class="cx">   # name: string; The name of the extension.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS extensions/license.txt.tmpl %]
</span><span class="cx"> 
</span><del>-package B[% %]ugzilla::Extension::[% name %]::Util;
</del><ins>+package Bugzilla::Extension::[% name %]::Util;
+
+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-use base qw(Exporter);
</del><ins>+use warnings;
+
+use parent qw(Exporter);
</ins><span class="cx"> our @EXPORT = qw(
</span><span class="cx">     
</span><span class="cx"> );
</span><span class="cx"> 
</span><span class="cx"> # This file can be loaded by your extension via 
</span><del>-# &quot;use B[% %]ugzilla::Extension::[% name %]::Util&quot;. You can put functions
</del><ins>+# &quot;use Bugzilla::Extension::[% name %]::Util&quot;. You can put functions
</ins><span class="cx"> # used by your extension in here. (Make sure you also list them in
</span><span class="cx"> # @EXPORT.)
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultextensionswebreadmetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/extensions/web-readme.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/extensions/web-readme.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/extensions/web-readme.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> Web-accessible files, like JavaScript, CSS, and images go in this
</span><span class="cx"> directory. You can reference them directly in your HTML. For example,
</span><span class="cx"> if you have a file called &quot;style.css&quot; and your extension is called
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultfilterexceptionspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/filterexceptions.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/filterexceptions.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/filterexceptions.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code are the Bugzilla tests.
-#
-# The Initial Developer of the Original Code is Jacob Steenhagen.
-# Portions created by Jacob Steenhagen are
-# Copyright (C) 2001 Jacob Steenhagen. All
-# Rights Reserved.
-#
-# Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # Important! The following classes of directives are excluded in the test,
</span><span class="cx"> # and so do not need to be added here. Doing so will cause warnings.
</span><span class="lines">@@ -52,7 +38,6 @@
</span><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'flag/list.html.tmpl' =&gt; [
</span><del>-  'flag.id', 
</del><span class="cx">   'flag.status', 
</span><span class="cx">   'type.id', 
</span><span class="cx"> ],
</span><span class="lines">@@ -93,9 +78,6 @@
</span><span class="cx">   'classes.$row_idx.$col_idx', 
</span><span class="cx">   'urlbase', 
</span><span class="cx">   'data.$tbl.$col.$row', 
</span><del>-  'row_total',
-  'col_totals.$col',
-  'grand_total', 
</del><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'reports/report.html.tmpl' =&gt; [
</span><span class="lines">@@ -104,7 +86,6 @@
</span><span class="cx">   'imageurl', 
</span><span class="cx">   'formaturl', 
</span><span class="cx">   'other_format.name', 
</span><del>-  'sizeurl', 
</del><span class="cx">   'switchbase',
</span><span class="cx">   'cumulate',
</span><span class="cx"> ],
</span><span class="lines">@@ -189,10 +170,6 @@
</span><span class="cx">   'series.frequency * 2',
</span><span class="cx"> ],
</span><span class="cx"> 
</span><del>-'global/per-bug-queries.html.tmpl' =&gt; [
-  '&quot; value=\&quot;$bugids\&quot;&quot; IF bugids',
-],
-
</del><span class="cx"> 'global/select-menu.html.tmpl' =&gt; [
</span><span class="cx">   'options', 
</span><span class="cx">   'size', 
</span><span class="lines">@@ -212,10 +189,6 @@
</span><span class="cx">   'script',
</span><span class="cx"> ],
</span><span class="cx"> 
</span><del>-'global/site-navigation.html.tmpl' =&gt; [
-  'bug.bug_id', 
-],
-
</del><span class="cx"> 'bug/comments.html.tmpl' =&gt; [
</span><span class="cx">   'comment.id',
</span><span class="cx">   'comment.count',
</span><span class="lines">@@ -281,16 +254,13 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 'bug/time.html.tmpl' =&gt; [
</span><del>-  'time_unit FILTER format(\'%.1f\')', 
-  'time_unit FILTER format(\'%.2f\')', 
</del><ins>+  &quot;time_unit.replace('0\\Z', '')&quot;,
</ins><span class="cx">   '(act / (act + rem)) * 100 
</span><span class="cx">        FILTER format(&quot;%d&quot;)', 
</span><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'bug/process/results.html.tmpl' =&gt; [
</span><del>-  'title.$type', 
-  '&quot;$terms.Bug $id&quot; FILTER bug_link(id)',
-  '&quot;$terms.bug $id&quot; FILTER bug_link(id)',
</del><ins>+  'title.$type.ucfirst',
</ins><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'bug/create/create.html.tmpl' =&gt; [
</span><span class="lines">@@ -298,9 +268,7 @@
</span><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'bug/create/create-guided.html.tmpl' =&gt; [
</span><del>-  'tablecolour',
</del><span class="cx">   'sel',
</span><del>-  'productstring', 
</del><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'bug/activity/table.html.tmpl' =&gt; [
</span><span class="lines">@@ -320,8 +288,8 @@
</span><span class="cx"> 'attachment/edit.html.tmpl' =&gt; [
</span><span class="cx">   'attachment.id', 
</span><span class="cx">   'attachment.bug_id', 
</span><del>-  'a',
</del><span class="cx">   'editable_or_hide',
</span><ins>+  'use_patchviewer',
</ins><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'attachment/list.html.tmpl' =&gt; [
</span><span class="lines">@@ -354,10 +322,8 @@
</span><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'attachment/diff-file.html.tmpl' =&gt; [
</span><del>-  'lxr_prefix',
</del><span class="cx">   'file.minus_lines',
</span><span class="cx">   'file.plus_lines',
</span><del>-  'bonsai_prefix',
</del><span class="cx">   'section.old_start',
</span><span class="cx">   'section_num',
</span><span class="cx">   'current_line_old',
</span><span class="lines">@@ -369,7 +335,7 @@
</span><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'admin/table.html.tmpl' =&gt; [
</span><del>-  'link_uri'
</del><ins>+  'contentlink'
</ins><span class="cx"> ],
</span><span class="cx"> 
</span><span class="cx"> 'admin/custom_fields/cf-js.js.tmpl' =&gt; [
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultflaglisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/flag/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/flag/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/flag/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,12 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% IF user.id AND !read_only_flags %]
</del><ins>+[% IF user.id &amp;&amp; (!bug || bug.check_can_change_field('flagtypes.name', 0, 1)) %]
</ins><span class="cx"> 
</span><span class="cx"> [%# We list flags by looping twice over the flag types relevant for the bug.
</span><span class="cx">   # In the first loop, we display existing flags and then, for active types,
</span><span class="lines">@@ -35,14 +23,13 @@
</span><span class="cx"> &lt;table id=&quot;[% flag_table_id FILTER html %]&quot;&gt;
</span><span class="cx">   [% UNLESS flag_no_header %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th colspan=&quot;3&quot;&gt;
-        Flags:
-      &lt;/th&gt;
</del><ins>+      &lt;th colspan=&quot;3&quot;&gt;Flags:&lt;/th&gt;
</ins><span class="cx">       [% IF any_flags_requesteeble %]
</span><del>-        &lt;th&gt;
-          Requestee:
-        &lt;/th&gt;
</del><ins>+        &lt;th&gt;Requestee:&lt;/th&gt;
</ins><span class="cx">       [% END %]
</span><ins>+      [% IF edit_multiple_bugs %]
+        &lt;th&gt;&amp;nbsp;&lt;/th&gt;
+      [% END %]
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -51,85 +38,33 @@
</span><span class="cx"> 
</span><span class="cx">     [%-# Step 1a: Display existing flag(s). %]
</span><span class="cx">     [% FOREACH flag = type.flags %]
</span><del>-      &lt;tr&gt;
-        &lt;td&gt;
-          &lt;span title=&quot;[% flag.setter.identity FILTER html %]&quot;&gt;[% flag.setter.nick FILTER html %]&lt;/span&gt;:
-        &lt;/td&gt;
-        &lt;td&gt;
-          &lt;label title=&quot;[% type.description FILTER html %]&quot;
-                 for=&quot;flag-[% flag.id %]&quot;&gt;
-            [%- type.name FILTER html FILTER no_break -%]&lt;/label&gt;
-        &lt;/td&gt;
-        &lt;td&gt;
-          &lt;select id=&quot;flag-[% flag.id %]&quot; name=&quot;flag-[% flag.id %]&quot; 
-                  title=&quot;[% type.description FILTER html %]&quot;
-                  onchange=&quot;toggleRequesteeField(this);&quot;
-                  class=&quot;flag_select flag_type-[% type.id %]&quot;&gt;
-            [%# Only display statuses the user is allowed to set. %]
-            [% IF user.can_request_flag(type) || flag.setter_id == user.id %]
-              &lt;option value=&quot;X&quot;&gt;&lt;/option&gt;
-            [% END %]
-            [% IF type.is_active %]
-              [% IF (type.is_requestable &amp;&amp; user.can_request_flag(type)) || flag.status == &quot;?&quot; %]
-                &lt;option value=&quot;?&quot; [% &quot;selected&quot; IF flag.status == &quot;?&quot; %]&gt;?&lt;/option&gt;
-              [% END %]
-              [% IF user.can_set_flag(type) || flag.status == &quot;+&quot; %]
-                &lt;option value=&quot;+&quot; [% &quot;selected&quot; IF flag.status == &quot;+&quot; %]&gt;+&lt;/option&gt;
-              [% END %]
-              [% IF user.can_set_flag(type) || flag.status == &quot;-&quot; %]
-                &lt;option value=&quot;-&quot; [% &quot;selected&quot; IF flag.status == &quot;-&quot; %]&gt;-&lt;/option&gt;
-              [% END %]
-            [% ELSE %]
-              &lt;option value=&quot;[% flag.status %]&quot; selected=&quot;selected&quot;&gt;[% flag.status %]&lt;/option&gt;
-            [% END %]
-          &lt;/select&gt;
-        &lt;/td&gt;
-        [% IF any_flags_requesteeble %]
-          &lt;td&gt;
-            [% IF (type.is_active &amp;&amp; type.is_requestable &amp;&amp; type.is_requesteeble) || flag.requestee %]
-              &lt;span style=&quot;white-space: nowrap;&quot;&gt;
-                [% SET flag_custom_list = [] %]
-                [% IF Param('usemenuforusers') %]
-                  [% flag_custom_list = flag.type.grant_list %]
-                  [% IF !(type.is_active &amp;&amp; type.is_requestable &amp;&amp; type.is_requesteeble) %]
-                    [%# We are here only because there was already a requestee. In this case,
-                        the only valid action is to remove the requestee or leave it alone;
-                        nothing else. %]
-                    [% flag_custom_list = [flag.requestee] %]
-                  [% END %]
-                [% END %]
-                [% INCLUDE global/userselect.html.tmpl
-                           name     =&gt; &quot;requestee-$flag.id&quot;
-                           id       =&gt; &quot;requestee-$flag.id&quot;
-                           value    =&gt; flag.requestee.login
-                           multiple =&gt; 0
-                           emptyok  =&gt; 1
-                           classes =&gt; [&quot;requestee&quot;]
-                           custom_userlist =&gt; flag_custom_list
-                %]
-              &lt;/span&gt;
-            [% END %]
-          &lt;/td&gt;
-        [% END %]
-      &lt;/tr&gt;
</del><ins>+      [% PROCESS flag_row flag = flag type = type %]
</ins><span class="cx">     [% END -%]
</span><span class="cx"> 
</span><ins>+    [% SET flag = &quot;&quot; %]
+    [% NEXT IF read_only_flags %]
+
</ins><span class="cx">     [%-# Step 1b: Display UI for setting flag. %]
</span><span class="cx">     [% IF (!type.flags || type.flags.size == 0) &amp;&amp; type.is_active %]
</span><del>-
-      [% PROCESS flag_row first_cell_empty = 1 addl_text = &quot;&quot; %]
</del><ins>+      [% PROCESS flag_row type = type %]
</ins><span class="cx">     [% END %]
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  [%# Step 2: Display flag type again (if type is multiplicable). %]
-  [% FOREACH type = flag_types %]
-    [% NEXT UNLESS type.flags &amp;&amp; type.flags.size &gt; 0 &amp;&amp; type.is_multiplicable &amp;&amp; type.is_active %]
-    [% IF !separator_displayed %]
-        &lt;tr&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;hr&gt;&lt;/td&gt;&lt;/tr&gt;
</del><ins>+  [% IF !read_only_flags %]
+    [%# Step 2: Display flag type again (if type is multiplicable). %]
+    [% FOREACH type = flag_types %]
+      [% NEXT UNLESS type.flags &amp;&amp; type.flags.size &gt; 0 &amp;&amp; type.is_multiplicable &amp;&amp; type.is_active %]
+      [% IF !separator_displayed %]
+        &lt;tbody class=&quot;bz_flag_type&quot;&gt;
+          [% sep_length = 3 + (any_flags_requesteeble ? 1 : 0) + (edit_multiple_bugs ? 1 : 0) %]
+          &lt;tr&gt;
+            &lt;td colspan=&quot;[% sep_length FILTER html %]&quot;&gt;&lt;hr&gt;&lt;/td&gt;
+          &lt;/tr&gt;
+        &lt;/tbody&gt;
</ins><span class="cx">         [% separator_displayed = 1 %]
</span><ins>+      [% END %]
+      [% PROCESS flag_row type = type addl_text = &quot;addl.&quot; %]
</ins><span class="cx">     [% END %]
</span><del>-
-    [% PROCESS flag_row first_cell_empty = 0 addl_text = &quot;addl.&quot; %]
</del><span class="cx">   [% END %]
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -147,7 +82,7 @@
</span><span class="cx">       [% ELSE %]
</span><span class="cx">         [% flag.setter.nick FILTER html %]:
</span><span class="cx">       [% END %]
</span><del>-      [%+ type.name FILTER html FILTER no_break %][% flag.status %]
</del><ins>+      &lt;span class=&quot;nowrap&quot;&gt;[%+ type.name FILTER html %][% flag.status %]&lt;/span&gt;
</ins><span class="cx">       [% IF flag.requestee %]
</span><span class="cx">         [% IF flag.requestee.name %]
</span><span class="cx">           (&lt;span title=&quot;[% flag.requestee.name FILTER html %]&quot;&gt;[% flag.requestee.nick FILTER html %]&lt;/span&gt;)
</span><span class="lines">@@ -159,58 +94,100 @@
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[%# Display a table row for unset flags %]
</del><ins>+[%# Display a table row for flags %]
</ins><span class="cx"> 
</span><span class="cx"> [% BLOCK flag_row %]
</span><del>-  &lt;tr&gt;
-  [% IF first_cell_empty %]
-    &lt;td&gt;&amp;nbsp;&lt;/td&gt;
-    &lt;td&gt;
-  [% ELSE %]
-    &lt;td colspan=&quot;2&quot;&gt;
-  [% END %]
-
-      [% addl_text FILTER html %]
-      &lt;label title=&quot;[% type.description FILTER html %]&quot; for=&quot;flag_type-[% type.id %]&quot;&gt;
-        [%- type.name FILTER html FILTER no_break %]&lt;/label&gt;
-    &lt;/td&gt;
-    &lt;td&gt;
-      &lt;select id=&quot;flag_type-[% type.id %]&quot; name=&quot;flag_type-[% type.id %]&quot;
-              title=&quot;[% type.description FILTER html %]&quot;
-              [% &quot; disabled=\&quot;disabled\&quot;&quot; UNLESS (type.is_requestable &amp;&amp; user.can_request_flag(type)) || user.can_set_flag(type) %]
-              onchange=&quot;toggleRequesteeField(this);&quot;
-              class=&quot;flag_select flag_type-[% type.id %]&quot;&gt;
-        &lt;option value=&quot;X&quot;&gt;&lt;/option&gt;
-        [% IF type.is_requestable &amp;&amp; user.can_request_flag(type) %]
-          &lt;option value=&quot;?&quot;&gt;?&lt;/option&gt;
</del><ins>+  [% RETURN IF !flag &amp;&amp; !((type.is_requestable &amp;&amp; user.can_request_flag(type)) || user.can_set_flag(type)) %]
+  [% SET fid = flag ? &quot;flag-$flag.id&quot; : &quot;flag_type-$type.id&quot; %]
+  [% can_edit_flag = (!read_only_flags || (flag &amp;&amp; (flag.setter_id == user.id || (flag.requestee_id &amp;&amp; flag.requestee_id == user.id)))) ? 1 : 0 %]
+  &lt;tbody[% ' class=&quot;bz_flag_type&quot;' IF !flag %]&gt;
+    &lt;tr&gt;
+      &lt;td&gt;
+        [% IF flag %]
+          &lt;span title=&quot;[% flag.setter.identity FILTER html %]&quot;&gt;[% flag.setter.nick FILTER html %]&lt;/span&gt;:
+        [% ELSE %]
+          [% addl_text FILTER html %]
</ins><span class="cx">         [% END %]
</span><del>-        [% IF user.can_set_flag(type) %]
-          &lt;option value=&quot;+&quot;&gt;+&lt;/option&gt;
-          &lt;option value=&quot;-&quot;&gt;-&lt;/option&gt;
-        [% END %]
-      &lt;/select&gt;
-    &lt;/td&gt;
-    [% IF any_flags_requesteeble %]
</del><ins>+      &lt;/td&gt;
+      &lt;td class=&quot;nowrap&quot;&gt;
+        &lt;label title=&quot;[% type.description FILTER html %]&quot; for=&quot;[% fid FILTER html %]&quot;&gt;
+          [%- type.name FILTER html %]&lt;/label&gt;
+      &lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        [% IF type.is_requestable &amp;&amp; type.is_requesteeble %]
-          &lt;span style=&quot;white-space: nowrap;&quot;&gt;
-            [% SET grant_list = [] %]
-            [% IF Param('usemenuforusers') %]
-              [% grant_list = type.grant_list %]
-            [% END %]
-            [% INCLUDE  global/userselect.html.tmpl
-                        name     =&gt; &quot;requestee_type-$type.id&quot;
-                        id       =&gt; &quot;requestee_type-$type.id&quot;
-                        multiple =&gt; type.is_multiplicable * 3
-                        emptyok  =&gt; !type.is_multiplicable
-                        value    =&gt; &quot;&quot;
-                        custom_userlist =&gt; grant_list
-                        classes =&gt; [&quot;requestee&quot;]
-            %]            
-            
-          &lt;/span&gt;
</del><ins>+        &lt;input type=&quot;hidden&quot; id=&quot;[% fid FILTER html %]_dirty&quot;&gt;
+        &lt;select id=&quot;[% fid FILTER html %]&quot; name=&quot;[% fid FILTER html %]&quot;
+                title=&quot;[% type.description FILTER html %]&quot;
+                onchange=&quot;toggleRequesteeField(this);&quot;
+                class=&quot;flag_select flag_type-[% type.id %]&quot;
+                [% IF !can_edit_flag %] disabled=&quot;disabled&quot;[% END %]&gt;
+        [%# Only display statuses the user is allowed to set. %]
+        [% IF edit_multiple_bugs &amp;&amp; dontchange %]
+          &lt;option value=&quot;[% dontchange FILTER html %]&quot;&gt;[% dontchange FILTER html %]&lt;/option&gt;
</ins><span class="cx">         [% END %]
</span><ins>+        [% IF !flag || (can_edit_flag &amp;&amp; user.can_request_flag(type)) || flag.setter_id == user.id %]
+[%# if WEBKIT_CHANGES %]
+          &lt;option value=&quot;X&quot; label=&quot; &quot;&gt;&lt;/option&gt;
+[%# endif WEBKIT_CHANGES %]
+        [% END %]
+        [% IF type.is_active &amp;&amp; can_edit_flag %]
+          [% IF (type.is_requestable &amp;&amp; user.can_request_flag(type)) || (flag &amp;&amp; flag.status == &quot;?&quot;) %]
+            &lt;option value=&quot;?&quot; [% &quot;selected&quot; IF flag &amp;&amp; flag.status == &quot;?&quot; %]&gt;?&lt;/option&gt;
+          [% END %]
+          [% IF user.can_set_flag(type) || (flag &amp;&amp; flag.status == &quot;+&quot;) %]
+            &lt;option value=&quot;+&quot; [% &quot;selected&quot; IF flag &amp;&amp; flag.status == &quot;+&quot; %]&gt;+&lt;/option&gt;
+          [% END %]
+          [% IF user.can_set_flag(type) || (flag &amp;&amp; flag.status == &quot;-&quot;) %]
+            &lt;option value=&quot;-&quot; [% &quot;selected&quot; IF flag &amp;&amp; flag.status == &quot;-&quot; %]&gt;-&lt;/option&gt;
+          [% END %]
+        [% ELSE %]
+          &lt;option value=&quot;[% flag.status %]&quot; selected=&quot;selected&quot;&gt;[% flag.status %]&lt;/option&gt;
+        [% END %]
+        &lt;/select&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><del>-    [% END %]
-  &lt;/tr&gt;
</del><ins>+      [% IF any_flags_requesteeble %]
+        &lt;td class=&quot;bz_flags&quot;&gt;
+          [% IF (type.is_active &amp;&amp; type.is_requestable &amp;&amp; type.is_requesteeble) || (flag &amp;&amp; flag.requestee) %]
+              [% SET grant_list = [] %]
+              [% IF Param('usemenuforusers') %]
+                [% IF !can_edit_flag || (flag &amp;&amp; !(type.is_active &amp;&amp; type.is_requestable &amp;&amp; type.is_requesteeble)) %]
+                  [%# We are here only because there was already a requestee. In this case,
+                      the only valid action is to remove the requestee or leave it alone;
+                      nothing else. %]
+                  [% grant_list = [flag.requestee] %]
+                [% ELSE %]
+                  [% grant_list = type.grant_list %]
+                [% END %]
+              [% END %]
+              [% SET flag_name = flag ? &quot;requestee-$flag.id&quot; : &quot;requestee_type-$type.id&quot; %]
+              [% SET flag_requestee = (flag &amp;&amp; flag.requestee) ? flag.requestee.login : '' %]
+              [% SET flag_multiple = flag ? 0 : type.is_multiplicable * 3 %]
+              [% SET flag_empty_ok = flag ? 1 : !type.is_multiplicable %]
+              [% INCLUDE global/userselect.html.tmpl
+                         name     =&gt; flag_name
+                         id       =&gt; flag_name
+                         value    =&gt; flag_requestee
+                         multiple =&gt; flag_multiple
+                         emptyok  =&gt; flag_empty_ok
+                         classes  =&gt; [&quot;requestee&quot;]
+                         custom_userlist =&gt; grant_list
+                         disabled =&gt; !can_edit_flag
+              %]
+          [% END %]
+        &lt;/td&gt;
+      [% END %]
+      [% IF edit_multiple_bugs %]
+        &lt;td&gt;
+        [% IF type.is_multiplicable %]
+          &lt;input type=&quot;checkbox&quot; name=&quot;flags_add-[% type.id %]&quot;
+                 id=&quot;flags_add-[% type.id %]&quot; value=&quot;1&quot;&gt;
+          &lt;label for=&quot;flags_add-[% type.id %]&quot;
+                 title=&quot;If ticked, always create a new flag. Leaving it unchecked will
+                        update existing flag(s) and add a new flag if it does not exist&quot;&gt;
+            Always add
+          &lt;/label&gt;
+        [% END %]
+        &lt;/td&gt;
+      [% END %]
+    &lt;/tr&gt;
+  &lt;/tbody&gt;
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalbannerhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/banner.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/banner.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/banner.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Matthew Tuck &lt;matty@chariot.net.au&gt;
-  #                 Vitaly Harisov  &lt;vitaly@rathedg.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Migration note: this file corresponds to the old Param 'bannerhtml' %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalcalendarjstmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/global/calendar.js.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/calendar.js.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/calendar.js.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # id: The id of the input field the calendar widget is to be assigned to.
+  #%]
+
+[%# This template exists because createCalendar accepts additional parameters
+  # which allow for localization. Please see the YUI documentation at
+  # http://developer.yahoo.com/yui/calendar/#internationalization for details.
+  # As an example, here's what you'd specify as additional parameters to
+  # localize for German calendars; replace the ellipsis (&quot;...&quot;) by the original
+  # parameter (we cannot put it into the example because it'd break this
+  # template comment):
+  #
+  #   createCalendar(...
+  #                  /* The weekday the week begins on; 0 is Sunday,
+  #                   * 1 is Monday and so on: */
+  #                  1,
+  #                  /* Months, full names; first must be January: */
+  #                  ['Januar',    'Februar',   'März',      'April',
+  #                   'Mai',       'Juni',      'Juli',      'August',
+  #                   'September', 'Oktober',   'November',  'Dezember'],
+  #                  /* Weekdays, two-letter abbreviations; first must be
+  #                   * Sunday: */
+  #                  ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa']);
+  #%]
+createCalendar('[% id FILTER js %]');
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalchooseclassificationhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/choose-classification.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/choose-classification.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/choose-classification.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Albert Ting
-  #
-  # Contributor(s): Albert Ting &lt;alt@sonic.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -21,23 +12,26 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF target == &quot;enter_bug.cgi&quot; %]
</span><del>-  [% title = &quot;Select Classification&quot; %]
-  [% subheader = &quot;Please select the classification.&quot; %]
</del><ins>+  [% title = &quot;Enter $terms.Bug&quot; %]
+  [% subheader = &quot;Select Classification&quot; %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT title = &quot;Choose the classification&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl %]
</span><span class="cx"> 
</span><del>-&lt;table&gt;
</del><ins>+[% USE Bugzilla %]
+[% previous_params = Bugzilla.cgi.canonicalise_query('classification') %]
+
+&lt;h2&gt;First, you must pick a classification on which to enter [% terms.abug %]:&lt;/h2&gt;
+&lt;table id=&quot;choose_classification&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;right&quot;&gt;
</del><ins>+    &lt;th class=&quot;right&quot;&gt;
</ins><span class="cx">       &lt;a href=&quot;[% target FILTER uri %]?classification=__all
</span><del>-            [% IF cloned_bug_id %]&amp;amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
-            [%- IF format %]&amp;amp;format=[% format FILTER uri %][% END %]&quot;&gt;
</del><ins>+            [%- IF previous_params %]&amp;amp;[% previous_params FILTER none %][% END -%]&quot;&gt;
</ins><span class="cx">       All&lt;/a&gt;:
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx"> 
</span><del>-    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;Show all products&lt;/td&gt;
</del><ins>+    &lt;td&gt;Show all products&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="lines">@@ -45,15 +39,14 @@
</span><span class="cx"> 
</span><span class="cx"> [% FOREACH class = classifications %]
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;right&quot;&gt;
</del><ins>+    &lt;th class=&quot;right&quot;&gt;
</ins><span class="cx">       &lt;a href=&quot;[% target FILTER uri %]?classification=[% class.name FILTER uri -%]
</span><del>-            [%- IF cloned_bug_id %]&amp;amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
-            [%- IF format %]&amp;amp;format=[% format FILTER uri %][% END %]&quot;&gt;
</del><ins>+            [%- IF previous_params %]&amp;amp;[% previous_params FILTER none %][% END -%]&quot;&gt;
</ins><span class="cx">       [% class.name FILTER html %]&lt;/a&gt;:
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx"> 
</span><span class="cx">     [% IF class.description %]
</span><del>-      &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;[% class.description FILTER html_light %]&lt;/td&gt;
</del><ins>+      &lt;td&gt;[% class.description FILTER html_light %]&lt;/td&gt;
</ins><span class="cx">     [% END %]
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalchooseproducthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/choose-product.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/choose-product.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/choose-product.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,15 +11,15 @@
</span><span class="cx">   #                  classification object and 'products' the list of
</span><span class="cx">   #                  product objects the user can enter bugs into.
</span><span class="cx">   # target:   the script that displays this template.
</span><del>-  # cloned_bug_id: ID of the bug being cloned.
-  # format:   the desired format to display the target.
</del><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% IF target == &quot;enter_bug.cgi&quot; %]
</span><span class="cx">   [% title = &quot;Enter $terms.Bug&quot; %]
</span><del>-  [% h2 = BLOCK %]First, you must pick a product on which to enter [% terms.abug %]: [% END %]
</del><ins>+  [% subheader = &quot;Select Product&quot; %]
+  [% h2 = BLOCK %]
+    [% IF Param('useclassification') %]Next[% ELSE %]First[% END %],
+    you must pick a product on which to enter [% terms.abug %]:
+  [% END %]
</ins><span class="cx"> [% ELSIF target == &quot;describecomponents.cgi&quot; %]
</span><span class="cx">   [% title = &quot;Browse&quot; %]
</span><span class="cx">   [% h2 = &quot;Select a product category to browse:&quot; %]
</span><span class="lines">@@ -40,14 +28,17 @@
</span><span class="cx"> [% DEFAULT title = &quot;Choose a Product&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl %]
</span><span class="cx"> 
</span><ins>+[% USE Bugzilla %]
+[% previous_params = Bugzilla.cgi.canonicalise_query('classification', 'product') %]
+
</ins><span class="cx"> &lt;h2&gt;[% h2 FILTER html %]&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;table&gt;
</del><ins>+&lt;table id=&quot;choose_product&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% FOREACH c = classifications %]
</span><span class="cx">   [% IF c.object %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th colspan=&quot;2&quot; align=&quot;left&quot;&gt;[% c.object.name FILTER html %]:
</del><ins>+      &lt;th colspan=&quot;2&quot; class=&quot;left&quot;&gt;[% c.object.name FILTER html %]:
</ins><span class="cx">       [%+ c.object.description FILTER html_light %]&lt;/th&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="lines">@@ -54,32 +45,33 @@
</span><span class="cx"> 
</span><span class="cx">   [% FOREACH p = c.products %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
</del><ins>+      &lt;th class=&quot;right nowrap&quot;&gt;
</ins><span class="cx">         &lt;a href=&quot;[% target %]?product=[% p.name FILTER uri -%]
</span><del>-              [%- IF cloned_bug_id %]&amp;amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
-              [%- IF format %]&amp;amp;format=[% format FILTER uri %][% END %]&quot;&gt;
-        [% p.name FILTER html FILTER no_break %]&lt;/a&gt;:&amp;nbsp;
</del><ins>+              [%- IF previous_params %]&amp;amp;[% previous_params FILTER none %][% END -%]&quot;&gt;
+        [% p.name FILTER html %]&lt;/a&gt;:
</ins><span class="cx">       &lt;/th&gt;
</span><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;[% p.description FILTER html_light %]&lt;/td&gt;
</del><ins>+      &lt;td&gt;[% p.description FILTER html_light %]&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><ins>+[%# if WEBKIT_CHANGES #%]
</ins><span class="cx">     &lt;!-- Custom Web Accessibility Link --&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
-        &lt;a href=&quot;https://webkit.org/new-ax-bug&quot;&gt;Accessibility&lt;/a&gt;:&amp;nbsp;
</del><ins>+      &lt;th class=&quot;right nowrap&quot;&gt;
+        &lt;a href=&quot;https://webkit.org/new-ax-bug&quot;&gt;Accessibility&lt;/a&gt;:
</ins><span class="cx">       &lt;/th&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;Accessibility-related bugs for WebKit&lt;/td&gt;
</del><ins>+      &lt;td&gt;Accessibility-related bugs for WebKit&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;!-- Custom Web Inspector Link --&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th align=&quot;right&quot; valign=&quot;top&quot;&gt;
-        &lt;a href=&quot;https://webkit.org/new-inspector-bug&quot;&gt;Inspector&lt;/a&gt;:&amp;nbsp;
</del><ins>+      &lt;th class=&quot;right nowrap&quot;&gt;
+        &lt;a href=&quot;https://webkit.org/new-inspector-bug&quot;&gt;Inspector&lt;/a&gt;:
</ins><span class="cx">       &lt;/th&gt;
</span><del>-      &lt;td valign=&quot;top&quot;&gt;The Web Inspector Developer Tools&lt;/td&gt;
</del><ins>+      &lt;td&gt;The Web Inspector Developer Tools&lt;/td&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><ins>+[%# endif // WEBKIT_CHANGES #%]
</ins><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalcodeerrorhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/code-error.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/code-error.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/code-error.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -32,8 +20,6 @@
</span><span class="cx">   # in this file; if you do not wish to change it, use the &quot;none&quot; filter.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% DEFAULT title = &quot;Internal Error&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% error_message = BLOCK %]
</span><span class="lines">@@ -54,11 +40,6 @@
</span><span class="cx">     The result value of [% value FILTER html %] was not handled by
</span><span class="cx">     the login code.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;bad_page_cgi_id&quot; %]
-    [% title = &quot;Invalid Page ID&quot; %]
-    The ID &lt;code&gt;[% page_id FILTER html %]&lt;/code&gt; is not a
-    valid page identifier.
-
</del><span class="cx">   [% ELSIF error == &quot;bad_arg&quot; %]
</span><span class="cx">     Bad argument &lt;code&gt;[% argument FILTER html %]&lt;/code&gt; sent to
</span><span class="cx">     &lt;code&gt;[% function FILTER html %]&lt;/code&gt; function.
</span><span class="lines">@@ -68,9 +49,9 @@
</span><span class="cx">     the error [% bug.error FILTER html %].
</span><span class="cx">     
</span><span class="cx">   [% ELSIF error == &quot;chart_data_not_generated&quot; %]
</span><del>-    [% admindocslinks = {'extraconfig.html' =&gt; 'Setting up Charting'} %]
-    [% IF product %]
-      Charts for the &lt;em&gt;[% product FILTER html %]&lt;/em&gt; product are not
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Setting up Charting'} %]
+    [% IF product.id %]
+      Charts for the &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt; product are not
</ins><span class="cx">       available yet because no charting data has been collected for it since it
</span><span class="cx">       was created.
</span><span class="cx">     [% ELSE %]
</span><span class="lines">@@ -83,13 +64,13 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;chart_datafile_corrupt&quot; %]
</span><span class="cx">     The chart data file [% file FILTER html %] is corrupt.
</span><del>-        
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;chart_dir_nonexistent&quot; %]
</span><del>-    One of the directories &lt;tt&gt;[% dir FILTER html %]&lt;/tt&gt; and 
-    &lt;tt&gt;[% graph_dir FILTER html %]&lt;/tt&gt; does not exist.
-  
</del><ins>+    One of the directories &lt;kbd&gt;[% dir FILTER html %]&lt;/kbd&gt; and
+    &lt;kbd&gt;[% graph_dir FILTER html %]&lt;/kbd&gt; does not exist.
+
</ins><span class="cx">   [% ELSIF error == &quot;chart_file_open_fail&quot; %]
</span><del>-    Unable to open the chart datafile &lt;tt&gt;[% filename FILTER html %]&lt;/tt&gt;.
</del><ins>+    Unable to open the chart datafile &lt;kbd&gt;[% filename FILTER html %]&lt;/kbd&gt;.
</ins><span class="cx">  
</span><span class="cx">   [% ELSIF error == &quot;column_alter_nonexistent_fk&quot; %]
</span><span class="cx">     You attempted to modify the foreign key for 
</span><span class="lines">@@ -131,7 +112,7 @@
</span><span class="cx">     Every cookie must have a value.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;env_no_email&quot; %]
</span><del>-    [% terms.Bugzilla %] did not receive an email address from the 
</del><ins>+    Bugzilla did not receive an email address from the
</ins><span class="cx">     environment.
</span><span class="cx">     [% IF Param(&quot;auth_env_email&quot;) %]
</span><span class="cx">       This means that the '[% Param(&quot;auth_env_email&quot;) FILTER html %]'
</span><span class="lines">@@ -142,11 +123,6 @@
</span><span class="cx">       address.
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;extension_disabled&quot; %]
-    [% title = &quot;Extension Disabled&quot; %]
-    You cannot access this page because the extension '[% name FILTER html %]'
-    is disabled.
-
</del><span class="cx">   [% ELSIF error == &quot;extension_must_be_subclass&quot; %]
</span><span class="cx">     &lt;code&gt;[% package FILTER html %]&lt;/code&gt; from 
</span><span class="cx">     &lt;code&gt;[% filename FILTER html %]&lt;/code&gt; is not a subclass of
</span><span class="lines">@@ -193,28 +169,13 @@
</span><span class="cx">     [% title = &quot;Field Type Not Specified&quot; %]
</span><span class="cx">     You must specify a type when creating a custom field.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;illegal_content_type_method&quot; %]
-    Your form submission got corrupted somehow.  The &lt;em&gt;content
-    method&lt;/em&gt; field, which specifies how the content type gets determined,
-    should have been either &lt;em&gt;autodetect&lt;/em&gt;, &lt;em&gt;list&lt;/em&gt;,
-    or &lt;em&gt;manual&lt;/em&gt;, but was instead
-    &lt;em&gt;[% contenttypemethod FILTER html %]&lt;/em&gt;.
-
</del><span class="cx">   [% ELSIF error == &quot;illegal_field&quot; %]
</span><span class="cx">     A legal [% field FILTER html %] was not set.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_attach_id_to_obsolete&quot; %]
-     The attachment number of one of the attachments you wanted to obsolete,
-     [%+ attach_id FILTER html %], is invalid.
-          
</del><span class="cx">   [% ELSIF error == &quot;invalid_customfield_type&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Field Type&quot; %]
</span><span class="cx">     The type &lt;em&gt;[% type FILTER html %]&lt;/em&gt; is not a valid field type.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_dimensions&quot; %]
-    [% title = &quot;Invalid Dimensions&quot; %]
-    The width or height specified is not a positive integer.
-
</del><span class="cx">   [% ELSIF error == &quot;invalid_feature&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Feature Name&quot; %]
</span><span class="cx">     [% feature FILTER html %] is not a valid feature name. See
</span><span class="lines">@@ -243,30 +204,11 @@
</span><span class="cx">     There is no such group: [% group FILTER html %]. Check your $webservergroup
</span><span class="cx">     setting in [% constants.bz_locations.localconfig FILTER html %].
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;mismatched_bug_ids_on_obsolete&quot; %]
-    Attachment [% attach_id FILTER html %] is attached to another [% terms.bug %],
-    but you tried to flag it as obsolete while creating a new attachment to 
-    [%+ terms.bug %] [%+ my_bug_id FILTER html %].
-
-  [% ELSIF error == &quot;feature_disabled&quot; %]
-    The [% install_string(&quot;feature_$feature&quot;) FILTER html %] feature is not
-    available in this [% terms.Bugzilla %]. 
-    [% IF user.in_group('admin') %]
-      If you would like to enable this feature, please run 
-      &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; to see how to install the necessary
-      requirements for this feature.
-    [% END %]
-
</del><span class="cx">   [% ELSIF error == &quot;flag_unexpected_object&quot; %]
</span><span class="cx">     [% title = &quot;Object Not Recognized&quot; %]
</span><span class="cx">     Flags cannot be set for objects of type [% caller FILTER html %].
</span><span class="cx">     They can only be set for [% terms.bugs %] and attachments.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;flag_requestee_disabled&quot; %]
-    [% title = &quot;Flag not Requestable from Specific Person&quot; %]
-    You can't ask a specific person for
-    &lt;em&gt;[% type.name FILTER html %]&lt;/em&gt;.
-  
</del><span class="cx">   [% ELSIF error == &quot;flag_type_inactive&quot; %]
</span><span class="cx">     [% title = &quot;Inactive Flag Type&quot; %]
</span><span class="cx">     The flag type [% type FILTER html %] is inactive and cannot be used
</span><span class="lines">@@ -277,23 +219,9 @@
</span><span class="cx">     but rather &lt;em&gt;[% target_type FILTER html %]&lt;/em&gt;.
</span><span class="cx">   
</span><span class="cx">   [% ELSIF error == &quot;invalid_field_name&quot; %]
</span><del>-    Can't use [% field FILTER html %] as a field name.
</del><ins>+    [% title = &quot;Invalid Field Name&quot; %]
+    Can't use &quot;[% field.truncate(30, &quot;...&quot;) FILTER html %]&quot; as a field name.
</ins><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_keyword_id&quot; %]
-    The keyword ID &lt;em&gt;[% id FILTER html %]&lt;/em&gt; couldn't be
-    found.
-
-  [% ELSIF error == &quot;invalid_user&quot; %]
-    [% title = &quot;Invalid User&quot; %]
-    There is no user account
-    [% IF user_id %]
-      with ID &lt;em&gt;[% user_id FILTER html %]&lt;/em&gt;.
-    [% ELSIF user_login %]
-      with login name &lt;em&gt;[% user_login FILTER html %]&lt;/em&gt;.
-    [% ELSE %]
-      given.
-    [% END %]
-
</del><span class="cx">   [% ELSIF error == &quot;jobqueue_insert_failed&quot; %]
</span><span class="cx">    [% title = &quot;Job Queue Failure&quot; %]
</span><span class="cx">     Inserting a &lt;code&gt;[% job FILTER html %]&lt;/code&gt; job into the Job 
</span><span class="lines">@@ -335,17 +263,11 @@
</span><span class="cx">     to '[% mail.header('To') FILTER html %]':
</span><span class="cx">     [%+ msg FILTER html %]
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;missing_bug_id&quot; %]
-    No [% terms.bug %] ID was given.
-    
</del><span class="cx">   [% ELSIF error == &quot;missing_series_id&quot; %]
</span><span class="cx">     Having inserted a series into the database, no series_id was returned for
</span><span class="cx">     it. Series: [% series.category FILTER html %] / 
</span><span class="cx">     [%+ series.subcategory FILTER html %] / 
</span><span class="cx">     [%+ series.name FILTER html %].
</span><del>-    
-  [% ELSIF error == &quot;need_quipid&quot; %]
-    A valid quipid is needed.
</del><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;object_dep_sort_loop&quot; %]
</span><span class="cx">     There is a loop in VALIDATOR_DEPENDENCIES involving
</span><span class="lines">@@ -368,6 +290,14 @@
</span><span class="cx">     a &lt;code&gt;[% param FILTER html %]&lt;/code&gt; argument, and that
</span><span class="cx">     argument was not set.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;param_integer_required&quot; %]
+    The function &lt;code&gt;[% function FILTER html %]&lt;/code&gt; requires
+    that &lt;code&gt;[% param FILTER html %]&lt;/code&gt; be an integer.
+
+  [% ELSIF error == &quot;param_scalar_array_required&quot; %]
+    The &lt;code&gt;[% param FILTER html %]&lt;/code&gt; parameter must be an array of scalars
+    (integers and/or strings).
+
</ins><span class="cx">   [% ELSIF error == &quot;params_required&quot; %]
</span><span class="cx">     [% title = &quot;Missing Parameter&quot; %]
</span><span class="cx">     The function &lt;code&gt;[% function FILTER html %]&lt;/code&gt; requires
</span><span class="lines">@@ -404,13 +334,6 @@
</span><span class="cx">     An error occurred while preparing for a RADIUS authentication request:
</span><span class="cx">     &lt;code&gt;[% errstr FILTER html %]&lt;/code&gt;.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;report_axis_invalid&quot; %]
-    &lt;em&gt;[% val FILTER html %]&lt;/em&gt; is not a valid value for 
-    [%+ IF    fld == &quot;x&quot; %]the horizontal axis
-    [%+ ELSIF fld == &quot;y&quot; %]the vertical axis
-    [%+ ELSIF fld == &quot;z&quot; %]the multiple tables/images
-    [%+ ELSE %]a report axis[% END %] field.
-
</del><span class="cx">   [% ELSIF error == &quot;search_cp_without_op&quot; %]
</span><span class="cx">     Search argument f[% id FILTER html %] is &quot;CP&quot; but there is no
</span><span class="cx">     matching &quot;OP&quot; before it.
</span><span class="lines">@@ -470,8 +393,9 @@
</span><span class="cx">     Invalid setting for post_bug_submit_action
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;search_field_operator_unsupported&quot; %]
</span><del>-    [% terms.Bugzilla %] does not support the search type
-    &quot;[% operator FILTER html %]&quot;.
</del><ins>+    [% title = &quot;Invalid Search Type&quot; %]
+    Bugzilla does not support the search type
+    &quot;[% operator.truncate(30, &quot;...&quot;) FILTER html %]&quot;.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSE %]
</span><span class="cx">     [%# Try to find hooked error messages %]
</span><span class="lines">@@ -478,7 +402,7 @@
</span><span class="cx">     [% error_message = Hook.process(&quot;errors&quot;) %]
</span><span class="cx">     [% IF NOT error_message %]
</span><span class="cx">       [% title = &quot;Internal error&quot; %]
</span><del>-      An internal error has occurred, but [% terms.Bugzilla %] doesn't know
</del><ins>+      An internal error has occurred, but Bugzilla doesn't know
</ins><span class="cx">       what &lt;code&gt;[% error FILTER html %]&lt;/code&gt; means.
</span><span class="cx"> 
</span><span class="cx">       If you are a [% terms.Bugzilla %] end-user seeing this message, please save
</span><span class="lines">@@ -509,30 +433,25 @@
</span><span class="cx">    admindocslinks = admindocslinks
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;tt&gt;
-  &lt;p&gt;
-    [% terms.Bugzilla %] has suffered an internal error. Please save this page and send
-    it to [% Param(&quot;maintainer&quot;) %] with details of what you were doing at
-    the time this message appeared.
-  &lt;/p&gt;
-  &lt;script type=&quot;text/javascript&quot;&gt; &lt;!--
-    document.write(&quot;&lt;p&gt;URL: &quot; + 
-                    document.location.href.replace(/&amp;/g,&quot;&amp;amp;&quot;)
-                                          .replace(/&lt;/g,&quot;&amp;lt;&quot;)
-                                          .replace(/&gt;/g,&quot;&amp;gt;&quot;) + &quot;&lt;/p&gt;&quot;);
-  // --&gt;
-  &lt;/script&gt;
-&lt;/tt&gt;
</del><ins>+&lt;p&gt;
+  An unexpected error occurred. This could be a temporary problem, or some code
+  is behaving incorrectly. If this problem persists, please email this page
+  to &lt;a href=&quot;mailto:[% Param(&quot;maintainer&quot;) %]&quot;&gt;[% Param(&quot;maintainer&quot;) %]&lt;/a&gt;
+  with details of what you were doing at the time this message appeared.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;table cellpadding=&quot;20&quot;&gt;
-  &lt;tr&gt;
-    &lt;td id=&quot;error_msg&quot; class=&quot;throw_error&quot;&gt;
-      [% error_message FILTER none %]
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+&lt;p&gt;
+  &lt;samp&gt;URL: [% Bugzilla.cgi.self_url FILTER html %]&lt;/samp&gt;
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Traceback:&lt;/p&gt;
</del><ins>+&lt;div id=&quot;error_msg&quot; class=&quot;throw_error&quot;&gt;
+  [% error_message FILTER none %]
+&lt;/div&gt;
+
+&lt;p id=&quot;post_err_msg&quot;&gt;
+  Traceback:
+&lt;/p&gt;
+
</ins><span class="cx"> &lt;pre&gt;[% traceback FILTER html %]&lt;/pre&gt;
</span><span class="cx"> 
</span><span class="cx"> [% IF variables %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalcommonlinkshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/common-links.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/common-links.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/common-links.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Svetlana Harisova &lt;light@rathedg.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT qs_suffix = &quot;&quot; %]
</span><span class="lines">@@ -34,6 +21,13 @@
</span><span class="cx">         onsubmit=&quot;if (this.quicksearch.value == '')
</span><span class="cx">                   { alert('Please enter one or more search terms first.');
</span><span class="cx">                     return false; } return true;&quot;&gt;
</span><ins>+    &lt;input type=&quot;hidden&quot; id=&quot;no_redirect[% qs_suffix FILTER html %]&quot; name=&quot;no_redirect&quot; value=&quot;0&quot;&gt;
+    &lt;script type=&quot;text/javascript&quot;&gt;
+      if (history &amp;&amp; history.replaceState) {
+        var no_redirect = document.getElementById(&quot;no_redirect[% qs_suffix FILTER js %]&quot;);
+        no_redirect.value = 1;
+      }
+    &lt;/script&gt;
</ins><span class="cx">     &lt;input class=&quot;txt&quot; type=&quot;text&quot; id=&quot;quicksearch[% qs_suffix FILTER html %]&quot; name=&quot;quicksearch&quot; 
</span><span class="cx">            title=&quot;Quick Search&quot; value=&quot;[% quicksearch FILTER html %]&quot;&gt;
</span><span class="cx">     &lt;input class=&quot;btn&quot; type=&quot;submit&quot; value=&quot;Search&quot; 
</span><span class="lines">@@ -55,13 +49,11 @@
</span><span class="cx">     [% END %]
</span><span class="cx">   [%-# Work around FF bug: keep this on one line %]&lt;/li&gt;
</span><span class="cx"> 
</span><ins>+  [% Hook.process('action-links') %]
+
</ins><span class="cx">   [% IF user.login %]
</span><span class="cx">     &lt;li&gt;&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;&lt;a href=&quot;userprefs.cgi&quot;&gt;Preferences&lt;/a&gt;&lt;/li&gt;
</span><del>-    [% IF user.in_group('tweakparams') || user.in_group('editusers') || user.can_bless
-          || (Param('useclassification') &amp;&amp; user.in_group('editclassifications'))
-          || user.in_group('editcomponents') || user.in_group('admin') || user.in_group('creategroups')
-          || user.in_group('editkeywords') || user.in_group('bz_canusewhines')
-          || user.get_products_by_permission(&quot;editcomponents&quot;).size %]
</del><ins>+    [% IF user.can_administer %]
</ins><span class="cx">       &lt;li&gt;&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;&lt;a href=&quot;admin.cgi&quot;&gt;Administration&lt;/a&gt;&lt;/li&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -108,7 +100,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% Hook.process(&quot;link-row&quot;) %]
</span><span class="cx"> [% BLOCK link_to_documentation %]
</span><del>-    [% IF doc_section &amp;&amp; Param('docs_urlbase') %]
</del><ins>+    [% IF doc_section %]
</ins><span class="cx">       &lt;li&gt;
</span><span class="cx">         &lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;
</span><span class="cx">         &lt;a href=&quot;[% docs_urlbase _ doc_section FILTER html %]&quot; target=&quot;_blank&quot;&gt;Help&lt;/a&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalconfirmactionhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-action.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-action.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-action.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  # Portions created by Frédéric Buclin are Copyright (C) 2008
-  # Frédéric Buclin. All Rights Reserved.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalconfirmusermatchhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-user-match.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-user-match.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/confirm-user-match.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Erik Stambaugh &lt;not_erik@dasbistro.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -35,9 +22,6 @@
</span><span class="cx">   #     self-referential URL
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[%# use the global field descs %]
-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [%# This lists fields which use the user auto-completion feature and which
</span><span class="cx">   # are not listed in field_descs. %]
</span><span class="cx"> [% field_labels = { # Used by editcomponents.cgi
</span><span class="lines">@@ -70,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;p&gt;
</span><span class="cx">     [% IF matchmultiple %]
</span><del>-      [% terms.Bugzilla %] cannot make a conclusive match for one or more
</del><ins>+      Bugzilla cannot make a conclusive match for one or more
</ins><span class="cx">       of the names and/or email addresses you entered on the previous page.
</span><span class="cx">       &lt;br&gt;Please examine the lists of potential matches below and select the
</span><span class="cx">       ones you want,
</span><span class="lines">@@ -85,7 +69,7 @@
</span><span class="cx"> [% ELSE %]
</span><span class="cx">   [% PROCESS global/header.html.tmpl title=&quot;Match Failed&quot; %]
</span><span class="cx">   &lt;p&gt;
</span><del>-    [% terms.Bugzilla %] was unable to make any match at all for one or more of
</del><ins>+    Bugzilla was unable to make any match at all for one or more of
</ins><span class="cx">     the names and/or email addresses you entered on the previous page.
</span><span class="cx">     [% IF !user.id %]
</span><span class="cx">       &lt;b&gt;Note: You are currently logged out. Only exact matches against e-mail
</span><span class="lines">@@ -95,21 +79,13 @@
</span><span class="cx">   &lt;p&gt;Please go back and try other names or email addresses.&lt;/p&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-  &lt;table border=&quot;0&quot;&gt;
-    &lt;tr&gt;
-      &lt;td colspan=&quot;2&quot;&gt;
-        &lt;hr width=&quot;100%&quot; size=&quot;1&quot;&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-
-  [%# this is messy to allow later expansion %]
-
</del><ins>+&lt;table id=&quot;user_match_table&quot;&gt;
</ins><span class="cx">   [% FOREACH field = matches %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td align=&quot;left&quot; valign=&quot;top&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">         [% PROCESS field_names field_name=field.key %]:
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td align=&quot;left&quot; valign=&quot;top&quot;&gt;
</del><ins>+      &lt;td&gt;
</ins><span class="cx">           [% FOREACH query = field.value %]
</span><span class="cx">             &lt;div class=&quot;user_match&quot;&gt;
</span><span class="cx">               &lt;b&gt;[% query.key FILTER html %]&lt;/b&gt;
</span><span class="lines">@@ -116,9 +92,9 @@
</span><span class="cx">             [% IF query.value.users.size %]
</span><span class="cx">                 [% IF query.value.users.size &gt; 1 %]
</span><span class="cx">                   [% IF query.value.status == 'fail' %]
</span><del>-                    &lt;font color=&quot;#FF0000&quot;&gt;
</del><ins>+                    &lt;span class=&quot;warning&quot;&gt;
</ins><span class="cx">                       matches multiple users.
</span><del>-                    &lt;/font&gt;
</del><ins>+                    &lt;/span&gt;
</ins><span class="cx">                     Please go back and try again with a more specific
</span><span class="cx">                     name/address.
</span><span class="cx">                   [% ELSE %]
</span><span class="lines">@@ -152,31 +128,26 @@
</span><span class="cx">                   &lt;b&gt;[% query.value.users.0.identity FILTER html %]&lt;/b&gt;
</span><span class="cx">                 [% END %]
</span><span class="cx">             [% ELSE %]
</span><del>-                [% IF (query.key.length &lt; 3) &amp;&amp; !Param('emailsuffix') %]
-                  &lt;font color=&quot;#FF0000&quot;&gt;was too short for substring match
-                  (minimum 3 characters)&lt;/font&gt;
</del><ins>+              &lt;span class=&quot;warning&quot;&gt;
+                [% IF query.key.length &lt; 3 %]
+                  was too short for substring match (minimum 3 characters)
</ins><span class="cx">                 [% ELSE %]
</span><del>-                  &lt;font color=&quot;#FF0000&quot;&gt;did not match anything&lt;/font&gt;
</del><ins>+                  did not match anything
</ins><span class="cx">                 [% END %]
</span><ins>+              &lt;/span&gt;
</ins><span class="cx">             [% END %]
</span><span class="cx">             &lt;/div&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><del>-    &lt;tr&gt;
-      &lt;td colspan=&quot;2&quot;&gt;
-        &lt;hr width=&quot;100%&quot; size=&quot;1&quot;&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
</del><span class="cx">   [% END %]
</span><ins>+&lt;/table&gt;
</ins><span class="cx"> 
</span><del>-  &lt;/table&gt;
-
</del><span class="cx"> [% IF matchsuccess == 1 %]
</span><span class="cx"> 
</span><span class="cx">   [% SET exclude_these = ['Bugzilla_login', 'Bugzilla_password'] %]
</span><span class="cx">   [% FOREACH key IN matches.keys %]
</span><del>-    [% exclude_these.push(key) IF cgi.param(key) == '' %]
</del><ins>+    [% exclude_these.push(key) IF Bugzilla.cgi.param(key) == '' %]
</ins><span class="cx">   [% END %]
</span><span class="cx">   [% SET exclude = '^' _ exclude_these.join('|') _ '$' %]
</span><span class="cx">   [% PROCESS &quot;global/hidden-fields.html.tmpl&quot; exclude = exclude %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaldocslinkshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/docslinks.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/docslinks.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/docslinks.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,18 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><del>-  # docslinks: hash. Hash keys will be used as text of the documentation links,
-  #            hash values will be used as links to the document, relative to
</del><ins>+  # docslinks: hash. Hash values will be used as text of the documentation links,
+  #            hash keys will be used as links to the document, relative to
</ins><span class="cx">   #            the main Bugzilla documentation directory.
</span><span class="cx">   #            Example: If you want a 'FAQ' link to point to, the &quot;faq-general&quot;
</span><span class="cx">   #            named anchor on faq.html, assign
</span><del>-  #               { 'FAQ' =&gt; &quot;faq.html#faq-general&quot; }
</del><ins>+  #               { &quot;faq.html#faq-general&quot; =&gt; 'FAQ' }
</ins><span class="cx">   #            to docslinks.
</span><span class="cx">   #            You may only link to sections by their given ID; it is not allowed
</span><span class="cx">   #            to link to a section which is not given an ID (thus getting
</span><span class="lines">@@ -26,18 +19,17 @@
</span><span class="cx">   #            assigned an automatically generated ID). Otherwise, the link
</span><span class="cx">   #            would break on a recompilation of the documentation.
</span><span class="cx">   # admindocslinks: hash. Same as docslinks, but will only be displayed to
</span><del>-  #                 members of the admin group.
</del><ins>+  #                 members of the 'editcomponents' group.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% IF Param('docs_urlbase') &amp;&amp;
-      docslinks.keys.size || (admindocslinks.keys.size &amp;&amp; user.in_group('admin')) %]
</del><ins>+[% IF docslinks.keys.size || (admindocslinks.keys.size &amp;&amp; user.in_group('editcomponents')) %]
</ins><span class="cx">   &lt;div id=&quot;docslinks&quot;&gt;
</span><span class="cx">     &lt;h2&gt;Related documentation&lt;/h2&gt;
</span><span class="cx">     &lt;ul&gt;
</span><del>-      [% IF user.in_group('admin') %]
-        [% PROCESS docslinkslist docstype = admindocslinks %]
</del><ins>+      [% IF user.in_group('editcomponents') %]
+        [% PROCESS docslinkslist docstype = admindocslinks admin = 1 %]
</ins><span class="cx">       [% END %]
</span><del>-      [% PROCESS docslinkslist docstype = docslinks %]
</del><ins>+      [% PROCESS docslinkslist docstype = docslinks admin = 0 %]
</ins><span class="cx">     &lt;/ul&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -45,7 +37,7 @@
</span><span class="cx"> [% BLOCK docslinkslist %]
</span><span class="cx">   [% FOREACH docslink = docstype.keys %]
</span><span class="cx">     &lt;li&gt;
</span><del>-      &lt;a href=&quot;[% docs_urlbase FILTER html %]
</del><ins>+      &lt;a href=&quot;[% docs_urlbase FILTER html %][% &quot;administering/&quot; IF admin %]
</ins><span class="cx">                [% docslink FILTER none %]&quot;&gt;[% docstype.$docslink FILTER html %]&lt;/a&gt;
</span><span class="cx">     &lt;/li&gt;
</span><span class="cx">   [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalfielddescsnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/field-descs.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/field-descs.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/field-descs.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Elliotte Martin &lt;elliotte_martin@yahoo.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Remember to PROCESS rather than INCLUDE this template. %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% SET search_descs = {
</span><span class="cx">   &quot;noop&quot;           =&gt; &quot;---&quot;,
</span><span class="cx">   &quot;equals&quot;         =&gt; &quot;is equal to&quot;,
</span><span class="lines">@@ -49,15 +34,19 @@
</span><span class="cx">   &quot;changedto&quot;      =&gt; &quot;changed to&quot;,
</span><span class="cx">   &quot;changedby&quot;      =&gt; &quot;changed by&quot;,
</span><span class="cx">   &quot;matches&quot;        =&gt; &quot;matches&quot;,
</span><del>-  &quot;notmatches&quot;      =&gt; &quot;does not match&quot;,
</del><ins>+  &quot;notmatches&quot;     =&gt; &quot;does not match&quot;,
+  &quot;isempty&quot;        =&gt; &quot;is empty&quot;,
+  &quot;isnotempty&quot;     =&gt; &quot;is not empty&quot;,
</ins><span class="cx"> } %]
</span><span class="cx"> 
</span><span class="cx"> [% field_types = { ${constants.FIELD_TYPE_UNKNOWN}       =&gt; &quot;Unknown Type&quot;,
</span><span class="cx">                    ${constants.FIELD_TYPE_FREETEXT}      =&gt; &quot;Free Text&quot;,
</span><ins>+                   ${constants.FIELD_TYPE_INTEGER}       =&gt; &quot;Integer&quot;,
</ins><span class="cx">                    ${constants.FIELD_TYPE_SINGLE_SELECT} =&gt; &quot;Drop Down&quot;,
</span><span class="cx">                    ${constants.FIELD_TYPE_MULTI_SELECT}  =&gt; &quot;Multiple-Selection Box&quot;,
</span><span class="cx">                    ${constants.FIELD_TYPE_TEXTAREA}      =&gt; &quot;Large Text Box&quot;,
</span><span class="cx">                    ${constants.FIELD_TYPE_DATETIME}      =&gt; &quot;Date/Time&quot;,
</span><ins>+                   ${constants.FIELD_TYPE_DATE}          =&gt; &quot;Date&quot;,
</ins><span class="cx">                    ${constants.FIELD_TYPE_BUG_ID}        =&gt; &quot;$terms.Bug ID&quot;,
</span><span class="cx">                 } %]
</span><span class="cx"> 
</span><span class="lines">@@ -107,6 +96,7 @@
</span><span class="cx">      &quot;everconfirmed&quot;           =&gt; &quot;Ever confirmed&quot;,
</span><span class="cx">      &quot;flagtypes.name&quot;          =&gt; &quot;Flags&quot;,
</span><span class="cx">      &quot;keywords&quot;                =&gt; &quot;Keywords&quot;,
</span><ins>+     &quot;last_visit_ts&quot;           =&gt; &quot;Last Visit&quot;,
</ins><span class="cx">      &quot;longdesc&quot;                =&gt; &quot;Comment&quot;,
</span><span class="cx">      &quot;longdescs.count&quot;         =&gt; &quot;Number of Comments&quot;,
</span><span class="cx">      &quot;longdescs.isprivate&quot;     =&gt; &quot;Comment is private&quot;,
</span><span class="lines">@@ -134,7 +124,7 @@
</span><span class="cx">      &quot;short_desc&quot;              =&gt; &quot;Summary&quot;,
</span><span class="cx">      &quot;short_short_desc&quot;        =&gt; &quot;Summary&quot;,
</span><span class="cx">      &quot;status_whiteboard&quot;       =&gt; &quot;Whiteboard&quot;,
</span><del>-     &quot;tag.name&quot;                =&gt; &quot;Tags&quot;,
</del><ins>+     &quot;tag&quot;                     =&gt; &quot;Personal Tags&quot;,
</ins><span class="cx">      &quot;target_milestone&quot;        =&gt; &quot;Target Milestone&quot;,
</span><span class="cx">      &quot;version&quot;                 =&gt; &quot;Version&quot;,
</span><span class="cx">      &quot;work_time&quot;               =&gt; &quot;Hours Worked&quot;,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalfooterhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/footer.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/footer.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/footer.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Svetlana Harisova &lt;light@rathedg.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,30 +11,19 @@
</span><span class="cx">   # global/useful-links.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% INCLUDE &quot;global/help.html.tmpl&quot; %]
</del><ins>+      [% Hook.process('main-end') %]
+    &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-&lt;/div&gt;
</del><ins>+    &lt;div id=&quot;footer&quot;&gt;
+      &lt;div class=&quot;intro&quot;&gt;[% Hook.process('intro') %]&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-[%# Migration note: below this point, this file corresponds to the old Param
-  # 'footerhtml'
-  #%]
</del><ins>+      [% PROCESS &quot;global/useful-links.html.tmpl&quot; %]
</ins><span class="cx"> 
</span><del>-&lt;div id=&quot;footer&quot;&gt;
-  &lt;div class=&quot;intro&quot;&gt;[% Hook.process('intro') %]&lt;/div&gt;
</del><ins>+      &lt;div class=&quot;outro&quot;&gt;[% Hook.process('outro') %]&lt;/div&gt;
+    &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-[%# Migration note: the old param 'blurbhtml' goes here %]
-
-[%# Migration note: useful-links.html.tmpl corresponds to %commandmenu% %]
-
-           [% PROCESS &quot;global/useful-links.html.tmpl&quot; %]
-
-  &lt;div class=&quot;outro&quot;&gt;[% Hook.process('outro') %]&lt;/div&gt;
-&lt;/div&gt;
-
-[% Hook.process(&quot;end&quot;) %]
-
-&lt;!-- WEBKIT_CHANGES --&gt;
-&lt;script defer src=&quot;/committers-autocomplete.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
</del><ins>+    [% Hook.process(&quot;end&quot;) %]
+    &lt;!-- WEBKIT_CHANGES --&gt;
+    &lt;script defer src=&quot;/committers-autocomplete.js&quot;&gt;&lt;/script&gt;
+  &lt;/body&gt;
</ins><span class="cx"> &lt;/html&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalheaderhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/header.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/header.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/header.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vaskin Kissoyan &lt;vkissoyan@yahoo.com&gt;
-  #                 Vitaly Harisov &lt;vitaly@rathedg.com&gt;
-  #                 Svetlana Harisova &lt;light@rathedg.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -36,6 +21,7 @@
</span><span class="cx">   # message: string. A message to display to the user. May contain HTML.
</span><span class="cx">   # rsslink: RSS link URL, May contain HTML (WEBKIT_CHANGES)
</span><span class="cx">   # hide_content: boolean. Turns off content if not being used. (WEBKIT_CHANGES)
</span><ins>+  # generate_api_token: generate a token which can be used to make authenticated webservice calls
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF message %]
</span><span class="lines">@@ -47,7 +33,10 @@
</span><span class="cx">   header_addl_info = &quot;&quot;
</span><span class="cx">   onload = &quot;&quot;
</span><span class="cx">   style_urls = []
</span><ins>+  javascript_urls = []
</ins><span class="cx">   yui = []
</span><ins>+  generate_api_token = 0
+  favicon_url = &quot;images/favicon.ico&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% SET yui_css = {
</span><span class="lines">@@ -91,8 +80,7 @@
</span><span class="cx">   # set header's default value here only if it is undefined. %]
</span><span class="cx"> [% IF !header.defined %][% header = title %][% END %]
</span><span class="cx"> 
</span><del>-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
-                      &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html lang=&quot;en&quot;&gt;
</span><span class="cx">   &lt;head&gt;
</span><span class="cx">     [% Hook.process(&quot;start&quot;) %]
</span><span class="lines">@@ -102,44 +90,20 @@
</span><span class="cx">       &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-[%# Migration note: contents of the old Param 'headerhtml' would go here %]
</del><ins>+    [% SET yui = yui_resolve_deps(yui, yui_deps) %]
</ins><span class="cx"> 
</span><del>-    [% PROCESS &quot;global/site-navigation.html.tmpl&quot; %]
-
-    [% PROCESS 'global/setting-descs.none.tmpl' %]
-
-    [% SET yui = yui_resolve_deps(yui, yui_deps) %]
</del><span class="cx">     [% SET css_sets = css_files(style_urls, yui, yui_css) %]
</span><del>-
-    [%# CSS cascade, part 1: Standard Bugzilla stylesheet set (persistent).
-      # Always present.
-      #%]
-    [%# This allows people to switch back to the &quot;Classic&quot; skin if they
-      # are in another skin. 
-      #%]
-    &lt;link href=&quot;[% 'skins/standard/global.css' FILTER mtime FILTER html %]&quot;
-          rel=&quot;alternate stylesheet&quot; 
-          title=&quot;[% setting_descs.standard FILTER html %]&quot;&gt;
-    [% FOREACH style_url = css_sets.standard %]
-      [% PROCESS format_css_link css_set_name = 'standard' %]
-    [% END %]
-
-    [%# CSS cascade, part 2 &amp; 3: Third-party stylesheet set (selected and
-      # selectable). All third-party skins are present as alternate
-      # stylesheets, even if they are not currently in use.
-      #%]
-    [% FOREACH style_url = css_sets.skin %]
-      [% PROCESS format_css_link css_set_name = user.settings.skin.value %]
-    [% END %]
-
-    [% FOREACH alternate_skin = css_sets.alternate.keys %]
-      [% FOREACH style_url = css_sets.alternate.$alternate_skin %]
-        [% PROCESS format_css_link css_set_name = alternate_skin %]
</del><ins>+    [% IF constants.CONCATENATE_ASSETS %]
+      [% PROCESS format_css_link asset_url = css_sets.unified_standard_skin %]
+    [% ELSE %]
+      [% FOREACH asset_url = css_sets.standard %]
+        [% PROCESS format_css_link %]
</ins><span class="cx">       [% END %]
</span><ins>+      [% FOREACH asset_url = css_sets.skin %]
+        [% PROCESS format_css_link %]
+      [% END %]
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-    [%# CSS cascade, part 4: page-specific styles.
-      #%]
</del><span class="cx">     [% IF style %]
</span><span class="cx">       &lt;style type=&quot;text/css&quot;&gt;
</span><span class="cx">         [% style %]
</span><span class="lines">@@ -146,12 +110,14 @@
</span><span class="cx">       &lt;/style&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><del>-    [%# CSS cascade, part 5: Custom Bugzilla stylesheet set (persistent).
-      # Always present. Site administrators may override all other style
-      # definitions, including skins, using custom stylesheets.
-      #%]
-    [% FOREACH style_url = css_sets.custom %]
-      [% PROCESS format_css_link css_set_name = 'standard' %]
</del><ins>+    [% IF css_sets.unified_custom %]
+      [% IF constants.CONCATENATE_ASSETS %]
+        [% PROCESS format_css_link asset_url = css_sets.unified_custom %]
+      [% ELSE %]
+        [% FOREACH asset_url = css_sets.custom %]
+          [% PROCESS format_css_link %]
+        [% END %]
+      [% END %]
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">     [%# YUI Scripts %]
</span><span class="lines">@@ -160,7 +126,7 @@
</span><span class="cx">     [% END %]
</span><span class="cx">     [% starting_js_urls.push('js/global.js') %]
</span><span class="cx"> 
</span><del>-    [% FOREACH javascript_url = starting_js_urls %]
</del><ins>+    [% FOREACH asset_url = concatenate_js(starting_js_urls) %]
</ins><span class="cx">       [% PROCESS format_js_link %]
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -204,16 +170,19 @@
</span><span class="cx">                 [%# Please keep these in alphabetical order. %]
</span><span class="cx"> 
</span><span class="cx">                 attach_desc_required:
</span><del>-                    'You must enter a Description for this attachment.',
</del><ins>+                    &quot;You must enter a Description for this attachment.&quot;,
</ins><span class="cx">                 component_required:
</span><del>-                    'You must select a Component for this [% terms.bug %].',
</del><ins>+                    &quot;You must select a Component for this [% terms.bug %].&quot;,
</ins><span class="cx">                 description_required:
</span><del>-                    'You must enter a Description for this [% terms.bug %].',
</del><ins>+                    &quot;You must enter a Description for this [% terms.bug %].&quot;,
</ins><span class="cx">                 short_desc_required:
</span><del>-                    'You must enter a Summary for this [% terms.bug %].',
</del><ins>+                    &quot;You must enter a Summary for this [% terms.bug %].&quot;,
</ins><span class="cx">                 version_required:
</span><del>-                    'You must select a Version for this [% terms.bug %].'
</del><ins>+                    &quot;You must select a Version for this [% terms.bug %].&quot;
</ins><span class="cx">             }
</span><ins>+            [% IF generate_api_token %]
+              , api_token: '[% get_api_token FILTER js FILTER html %]'
+            [% END %]
</ins><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         [% FOREACH yui_name = yui %]
</span><span class="lines">@@ -227,7 +196,7 @@
</span><span class="cx">     // --&gt;
</span><span class="cx">     &lt;/script&gt;
</span><span class="cx"> 
</span><del>-    [% FOREACH javascript_url = javascript_urls %]
</del><ins>+    [% FOREACH asset_url = concatenate_js(javascript_urls) %]
</ins><span class="cx">       [% PROCESS format_js_link %]
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -235,7 +204,7 @@
</span><span class="cx">     [%# this puts the live bookmark up on firefox for the RSS feed %]
</span><span class="cx">     [% IF rsslink %]
</span><span class="cx">        &lt;link rel=&quot;alternate&quot; 
</span><del>-             type=&quot;application/rss+xml&quot; title=&quot;RSS 1.0&quot; 
</del><ins>+             type=&quot;application/rss+xml&quot; title=&quot;RSS 1.0&quot;
</ins><span class="cx">              href=&quot;[% rsslink FILTER html %]&quot;&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES #%]
</span><span class="lines">@@ -243,118 +212,76 @@
</span><span class="cx">     [%# Required for the 'Autodiscovery' feature in Firefox 2 and IE 7. %]
</span><span class="cx">     &lt;link rel=&quot;search&quot; type=&quot;application/opensearchdescription+xml&quot;
</span><span class="cx">                        title=&quot;[% terms.Bugzilla %]&quot; href=&quot;./search_plugin.cgi&quot;&gt;
</span><del>-    &lt;link rel=&quot;shortcut icon&quot; href=&quot;images/favicon.ico&quot; &gt;
</del><ins>+    &lt;link rel=&quot;shortcut icon&quot; href=&quot;[% favicon_url FILTER html %]&quot;&gt;
</ins><span class="cx">     [% Hook.process(&quot;additional_header&quot;) %]
</span><span class="cx">   &lt;/head&gt;
</span><span class="cx"> 
</span><del>-[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag,
-  # but set the onload attribute in the DEFAULT directive above.
-  #%]
-
-  &lt;body onload=&quot;[% onload %]&quot;
-        class=&quot;[% urlbase.replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]
</del><ins>+  &lt;body [% IF onload %] onload=&quot;[% onload %]&quot;[% END %]
+        class=&quot;[% urlbase.replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') FILTER css_class_quote %]
</ins><span class="cx">                [% FOREACH class = bodyclasses %]
</span><del>-                 [% ' ' %][% class FILTER css_class_quote %]
</del><ins>+                 [%+ class FILTER css_class_quote %]
</ins><span class="cx">                [% END %] yui-skin-sam&quot;&gt;
</span><span class="cx"> 
</span><del>-[%# Migration note: the following file corresponds to the old Param
-  # 'bannerhtml'
-  #%]
-
</del><span class="cx"> [% IF !hide_content %][%# WEBKIT_CHANGES #%]
</span><span class="cx"> 
</span><del>-&lt;div id=&quot;header&quot;&gt;
-
</del><ins>+  &lt;div id=&quot;header&quot;&gt;
</ins><span class="cx"> [%# if WEBKIT_CHANGES #%]
</span><del>-[%# INCLUDE global/banner.html.tmpl #%]
</del><ins>+    [%# INCLUDE global/banner.html.tmpl #%]
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES #%]
</span><span class="cx"> 
</span><del>-&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; id=&quot;titles&quot;&gt;
-&lt;tr&gt;
-    &lt;td id=&quot;title&quot;&gt;
</del><ins>+    &lt;div id=&quot;titles&quot;&gt;
</ins><span class="cx"> [%# if WEBKIT_CHANGES #%]
</span><del>-      &lt;p&gt;WebKit [% terms.Bugzilla %]
-      [%# &quot; &amp;ndash; $header&quot; IF header #%]&lt;/p&gt;
</del><ins>+      &lt;span id=&quot;title&quot;&gt; WebKit [% terms.Bugzilla %][%# &quot; &amp;ndash; $header&quot; IF header #%]&lt;/span&gt;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES #%]
</span><del>-    &lt;/td&gt;
</del><span class="cx"> 
</span><span class="cx"> [%# WEBKIT_CHANGES: Removed subheader and header_addl_info output #%]
</span><del>-&lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+    &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-&lt;table id=&quot;lang_links_container&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;
-       class=&quot;bz_default_hidden&quot;&gt;&lt;tr&gt;&lt;td&gt;
-[% IF Bugzilla.languages.size &gt; 1 %]
-  &lt;ul class=&quot;links&quot;&gt;
-  [% FOREACH lang = Bugzilla.languages.sort %]
-    &lt;li&gt;[% IF NOT loop.first %]&lt;span class=&quot;separator&quot;&gt; | &lt;/span&gt;[% END %]
-    [% IF lang == current_language %]
-      &lt;span class=&quot;lang_current&quot;&gt;[% lang FILTER html FILTER upper %]&lt;/span&gt;
-    [% ELSE %]
-      &lt;a href=&quot;#&quot; onclick=&quot;set_language('[% lang FILTER none %]');&quot;&gt;
-       [%- lang FILTER html FILTER upper %]&lt;/a&gt;
</del><ins>+    [% USE Bugzilla %]
+    [% IF Bugzilla.languages.size &gt; 1 %]
+      &lt;div id=&quot;lang_links_container&quot; class=&quot;bz_default_hidden&quot;&gt;
+        &lt;ul class=&quot;links&quot;&gt;
+          [% FOREACH lang = Bugzilla.languages.sort %]
+            &lt;li&gt;
+              [% IF NOT loop.first %]&lt;span class=&quot;separator&quot;&gt; | &lt;/span&gt;[% END %]
+              [% IF lang == current_language %]
+                &lt;span class=&quot;lang_current&quot;&gt;[% lang FILTER html FILTER upper %]&lt;/span&gt;
+              [% ELSE %]
+                &lt;a href=&quot;#&quot; onclick=&quot;set_language('[% lang FILTER none %]');&quot;&gt;
+                  [%- lang FILTER html FILTER upper %]&lt;/a&gt;
+              [% END %]
+            &lt;/li&gt;
+          [% END %]
+        &lt;/ul&gt;
+      &lt;/div&gt;
</ins><span class="cx">     [% END %]
</span><del>-    &lt;/li&gt;
-  [% END %]
-  &lt;/ul&gt;
-[% END %]
-&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
</del><span class="cx"> 
</span><span class="cx"> [%# if WEBKIT_CHANGES #%]
</span><del>-  [% IF header || subheader %]
-    &lt;div id=&quot;bug_title&quot;&gt;[% header %][% &quot;: $subheader&quot; IF subheader %]&lt;/div&gt;
-  [% END %]
</del><ins>+    [% IF header || subheader %]
+        &lt;div id=&quot;bug_title&quot;&gt;[% header %][% &quot;: $subheader&quot; IF subheader %]&lt;/div&gt;
+    [% END %]
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/common-links.html.tmpl&quot; qs_suffix = &quot;_top&quot; %]
-&lt;/div&gt; [%# header %]
</del><ins>+    &lt;div id=&quot;common_links&quot;&gt;
+      [% PROCESS &quot;global/common-links.html.tmpl&quot; qs_suffix = &quot;_top&quot; %]
+    &lt;/div&gt;
+  &lt;/div&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% END %][%# !hide_content #%][%# WEBKIT_CHANGES #%]
</span><span class="cx"> 
</span><del>-&lt;div id=&quot;bugzilla-body&quot;&gt;
</del><ins>+  &lt;div id=&quot;bugzilla-body&quot;&gt;
+    [% IF Param('announcehtml') %]
+      [% Param('announcehtml') FILTER none %]
+    [% END %]
</ins><span class="cx"> 
</span><del>-[% IF Param('announcehtml') %]
-[% Param('announcehtml') FILTER none %]
-[% END %]
</del><ins>+    [% IF message %]
+      &lt;div id=&quot;message&quot;&gt;[% message %]&lt;/div&gt;
+    [% END %]
</ins><span class="cx"> 
</span><del>-[% IF message %]
-&lt;div id=&quot;message&quot;&gt;[% message %]&lt;/div&gt;
-[% END %]
-
</del><span class="cx"> [% BLOCK format_css_link %]
</span><del>-  [% IF style_url.match('/IE-fixes\.css') %]
-    &lt;!--[if lte IE 7]&gt;
-      [%# Internet Explorer treats [if IE] HTML comments as uncommented.
-        # We use it to import CSS fixes so that Bugzilla looks decent on IE 7
-        # and below.
-        #%]
-  [% END %]
-
-  [% IF css_set_name == 'standard'
-       OR css_set_name == user.settings.skin.value
-  %]
-    [% SET css_rel = 'stylesheet' %]
-    [% SET css_set_display_name = setting_descs.${user.settings.skin.value}
-                                  || user.settings.skin.value %]
-  [% ELSE %]
-    [% SET css_rel = 'alternate stylesheet' %]
-    [% SET css_set_display_name = setting_descs.$css_set_name || css_set_name %]
-  [% END %]
-
-  [% IF css_set_name == 'standard' %]
-    [% SET css_title_link = '' %]
-  [% ELSE %]
-    [% css_title_link = BLOCK ~%]
-      title=&quot;[% css_set_display_name FILTER html %]&quot;
-    [% END %]
-  [% END %]
-
-  &lt;link href=&quot;[% style_url FILTER html %]&quot; rel=&quot;[% css_rel FILTER none %]&quot;
-        type=&quot;text/css&quot; [% css_title_link FILTER none %]&gt;
-
-  [% '&lt;![endif]--&gt;' IF style_url.match('/IE-fixes\.css') %]
</del><ins>+  &lt;link href=&quot;[% asset_url FILTER html %]&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK format_js_link %]
</span><del>-  &lt;script type=&quot;text/javascript&quot; src=&quot;[% javascript_url FILTER mtime FILTER html %]&quot;&gt;&lt;/script&gt;
</del><ins>+  &lt;script type=&quot;text/javascript&quot; src=&quot;[% asset_url FILTER mtime FILTER html %]&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalhelphtmltmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/global/help.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/help.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/help.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #%]
-
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
-[% IF cgi.param(&quot;help&quot;) %]
-  &lt;script type=&quot;text/javascript&quot;&gt; &lt;!--
-    [% FOREACH help_name = help_html.keys %]
-      g_helpTexts[&quot;[% help_name FILTER js %]&quot;] = 
-        &quot;[%- help_html.$help_name FILTER js -%]&quot;;
-    [% END %]
-    // --&gt;
-  &lt;/script&gt;
-[% END %]
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalhiddenfieldshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/hidden-fields.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/hidden-fields.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/hidden-fields.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalinitializenonetmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/global/initialize.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/initialize.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/initialize.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #%]
-
-[%# This template is a place to put directives that should get processed
-  # every time a primary template gets processed.  Primary templates are those
-  # called from Perl code rather than from other templates via the PROCESS
-  # and INCLUDE directives.
-  #
-  # This template gets auto-processed at the beginning of primary templates
-  # via the PRE_PROCESS configuration parameter.  Note that it gets processed
-  # for non-HTML templates too, so don't put HTML-specific stuff in here;
-  # put that into header.html.tmpl instead.
-  #%]
-
-[% USE Hook %]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaljsproductshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/js-products.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/js-products.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/js-products.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,20 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# The javascript block gets used in header.html.tmpl. %]
</span><span class="cx"> [% javascript = BLOCK %]
</span><del>-  var useclassification = false; // No classification level in use
</del><span class="cx">   var first_load = true; // Is this the first time we load the page?
</span><span class="cx">   var last_sel = []; // Caches last selection
</span><span class="cx">   var cpts = new Array();
</span><ins>+
</ins><span class="cx">   [% n = 1 %]
</span><span class="cx">   [% FOREACH prod = products %]
</span><del>-    cpts['[% n %]'] = [
-      [%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%] ];
</del><ins>+    cpts['[% n %]'] = [[% FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%]];
</ins><span class="cx">     [% n = n+1 %]
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalmessagehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/message.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/message.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/message.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +11,6 @@
</span><span class="cx">   # link: string. The link text for that URL.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% DEFAULT title = &quot;$terms.Bugzilla Message&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalmessagetxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/message.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/message.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/message.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Max Kanat-Alexander.
-  # Portions created by Max Kanat-Alexander are Copyright (C) 2005
-  # Max Kanat-Alexander. All Rights Reserved.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [%# Yes, this may show some HTML. But it's the best we
</span><span class="cx">   # can do at the moment. %]
</span><span class="cx"> [% PROCESS global/messages.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalmessageshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/messages.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/messages.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/messages.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# This is a list of all the possible messages. Please keep them in
</span><span class="lines">@@ -23,10 +10,6 @@
</span><span class="cx">   # alphabetical order by message tag, and leave a blank line between messages.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% message_tag = message %]
</span><span class="cx"> 
</span><span class="cx"> [% message = BLOCK %]
</span><span class="lines">@@ -43,14 +26,12 @@
</span><span class="cx">     canceled.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;account_updated&quot; %]
</span><del>-    [% IF changed_fields.size
-          + groups_added_to.size + groups_removed_from.size
-          + groups_granted_rights_to_bless.size + groups_denied_rights_to_bless.size %]
</del><ins>+    [% IF changes.size %]
</ins><span class="cx">       [% title = &quot;User $loginold updated&quot; %]
</span><span class="cx">       The following changes have been made to the user account
</span><span class="cx">       [%+ loginold FILTER html %]:
</span><span class="cx">       &lt;ul&gt;
</span><del>-        [% FOREACH field = changed_fields %]
</del><ins>+        [% FOREACH field = changes.keys %]
</ins><span class="cx">           &lt;li&gt;
</span><span class="cx">             [% IF    field == 'login_name' %]
</span><span class="cx">               The login is now [% otheruser.login FILTER html %].
</span><span class="lines">@@ -59,9 +40,9 @@
</span><span class="cx">             [% ELSIF field == 'cryptpassword' %]
</span><span class="cx">               A new password has been set.
</span><span class="cx">             [% ELSIF field == 'disabledtext' %]
</span><del>-              The disable text has been modified.
</del><ins>+              The &quot;login disabled&quot; text has been modified.
</ins><span class="cx">             [% ELSIF field == 'is_enabled' %]
</span><del>-              The user has been [% otheruser.is_enabled ? 'enabled' : 'disabled' %].
</del><ins>+              Logging in with this user account has been [% otheruser.is_enabled ? 'enabled' : 'disabled' %].
</ins><span class="cx">             [% ELSIF field == 'extern_id' %]
</span><span class="cx">               The user's External Login ID has been modified.
</span><span class="cx">             [% ELSIF field == 'disable_mail' %]
</span><span class="lines">@@ -70,37 +51,31 @@
</span><span class="cx">               [% ELSE %]
</span><span class="cx">                 [% terms.Bug %]mail has been enabled.
</span><span class="cx">               [% END %]
</span><ins>+            [% ELSIF field == 'groups' %]
+              [% IF changes.groups.1.size %]
+                The account has been added to the
+                [%+ changes.groups.1.join(', ') FILTER html %]
+                group[% 's' IF changes.groups.1.size &gt; 1 %].
+              [% END %]
+              [% IF changes.groups.0.size %]
+                The account has been removed from the
+                [%+ changes.groups.0.join(', ') FILTER html %]
+                group[% 's' IF changes.groups.0.size &gt; 1 %].
+              [% END %]
+            [% ELSIF field == 'bless_groups' %]
+              [% IF changes.bless_groups.1.size %]
+                The account has been granted rights to bless the
+                [%+ changes.bless_groups.1.join(', ') FILTER html %]
+                group[% 's' IF changes.bless_groups.1.size &gt; 1 %].
+              [% END %]
+              [% IF changes.bless_groups.0.size %]
+                The account has been denied rights to bless the
+                [%+ changes.bless_groups.0.join(', ') FILTER html %]
+                group[% 's' IF changes.bless_groups.0.size &gt; 1 %].
+              [% END %]
</ins><span class="cx">             [% END %]
</span><span class="cx">           &lt;/li&gt;
</span><span class="cx">         [% END %]
</span><del>-        [% IF groups_added_to.size %]
-          &lt;li&gt;
-            The account has been added to the
-            [%+ groups_added_to.join(', ') FILTER html %]
-            group[% 's' IF groups_added_to.size &gt; 1 %].
-          &lt;/li&gt;
-        [% END %]
-        [% IF groups_removed_from.size %]
-          &lt;li&gt;
-            The account has been removed from the
-            [%+ groups_removed_from.join(', ') FILTER html %]
-            group[% 's' IF groups_removed_from.size &gt; 1 %].
-          &lt;/li&gt;
-        [% END %]
-        [% IF groups_granted_rights_to_bless.size %]
-          &lt;li&gt;
-            The account has been granted rights to bless the
-            [%+ groups_granted_rights_to_bless.join(', ') FILTER html %]
-            group[% 's' IF groups_granted_rights_to_bless.size &gt; 1 %].
-          &lt;/li&gt;
-        [% END %]
-        [% IF groups_denied_rights_to_bless.size %]
-          &lt;li&gt;
-            The account has been denied rights to bless the
-            [%+ groups_denied_rights_to_bless.join(', ') FILTER html %]
-            group[% 's' IF groups_denied_rights_to_bless.size &gt; 1 %].
-          &lt;/li&gt;
-        [% END %]
</del><span class="cx">       &lt;/ul&gt;
</span><span class="cx">     [% ELSE %]
</span><span class="cx">       [% title = &quot;User $otheruser.login not changed&quot; %]
</span><span class="lines">@@ -114,8 +89,8 @@
</span><span class="cx">     successfully.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;account_disabled&quot; %]
</span><del>-    The user account [% account FILTER html %] is disabled, so you
-    cannot change its password.
</del><ins>+    Logging in with this user account [% account FILTER html %] is disabled, so
+    you cannot change its password.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;attachment_creation_failed&quot; %]
</span><span class="cx">     The [% terms.bug %] was created successfully, but attachment creation
</span><span class="lines">@@ -221,7 +196,7 @@
</span><span class="cx">         &lt;li&gt;Default assignee updated to '[% comp.default_assignee.login FILTER html %]'&lt;/li&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">       [% IF changes.initialqacontact.defined %]
</span><del>-        [% IF comp.default_qa_contact.id %]
</del><ins>+        [% IF comp.default_qa_contact %]
</ins><span class="cx">           &lt;li&gt;Default QA contact updated to '[% comp.default_qa_contact.login FILTER html %]'&lt;/li&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="cx">           &lt;li&gt;Default QA contact deleted&lt;/li&gt;
</span><span class="lines">@@ -289,8 +264,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;extension_created&quot; %]
</span><span class="cx">     An extension named [% name FILTER html %] has been created
</span><del>-    in [% path FILTER html %]. Make sure you change &quot;YOUR NAME&quot; and 
-    &quot;YOUR EMAIL ADDRESS&quot; in the code to your name and your email address.
</del><ins>+    in [% path FILTER html %].
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;field_value_created&quot; %]
</span><span class="cx">     [% title = &quot;New Field Value Created&quot; %]
</span><span class="lines">@@ -439,6 +413,8 @@
</span><span class="cx">           [% CASE 'visible_to_me_remove' %]
</span><span class="cx">             &lt;li&gt;This group may no longer see users in the following groups:
</span><span class="cx">               [%+ changes.visible_to_me_remove.join(', ') FILTER html %]&lt;/li&gt;
</span><ins>+          [% CASE %]
+            [% Hook.process('group_updated_fields') %]
</ins><span class="cx">         [% END %]
</span><span class="cx">       [% END %]
</span><span class="cx">       &lt;/ul&gt;
</span><span class="lines">@@ -484,7 +460,7 @@
</span><span class="cx">     [% title = &quot;Logged Out&quot; %]
</span><span class="cx">     [% url = &quot;index.cgi?GoAheadAndLogIn=1&quot; %]
</span><span class="cx">     [% link = &quot;Log in again.&quot; %]
</span><del>-    &lt;b&gt;Your login has been forgotten&lt;/b&gt;.
</del><ins>+    &lt;b&gt;You logged out successfully&lt;/b&gt;.
</ins><span class="cx">     The cookie that was remembering your login is now gone. You will be
</span><span class="cx">     prompted for a login the next time it is required.
</span><span class="cx"> 
</span><span class="lines">@@ -587,7 +563,8 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;password_change_request&quot; %]
</span><span class="cx">     [% title = &quot;Request to Change Password&quot; %]
</span><del>-    A token for changing your password has been emailed to you.
</del><ins>+    A token for changing your password has been emailed to
+    &lt;em&gt;[% login_name FILTER html %]&lt;/em&gt;.
</ins><span class="cx">     Follow the instructions in that email to change your password.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;password_changed&quot; %]
</span><span class="lines">@@ -751,7 +728,7 @@
</span><span class="cx">     Renaming the '[% old FILTER html %]' table to '[% new FILTER html %]'...
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;install_urlbase_default&quot; %]
</span><del>-    Now that you have installed [% terms.Bugzilla %], you should visit the
</del><ins>+    Now that you have installed Bugzilla, you should visit the
</ins><span class="cx">     'Parameters' page (linked in the footer of the Administrator
</span><span class="cx">     account) to ensure it is set up as you wish - this includes
</span><span class="cx">     setting the 'urlbase' option to the correct URL.
</span><span class="lines">@@ -770,7 +747,7 @@
</span><span class="cx">     other files (including the localconfig file which stores your database
</span><span class="cx">     password) must be world readable. This means that _anyone_ who can obtain
</span><span class="cx">     local access to this machine can do whatever they want to your 
</span><del>-    [%+ terms.Bugzilla %] installation, and is probably also able to run 
</del><ins>+    Bugzilla installation, and is probably also able to run
</ins><span class="cx">     arbitrary Perl code as the user that the web server runs as.
</span><span class="cx"> 
</span><span class="cx">     You really, really, really need to change this setting.
</span><span class="lines">@@ -780,7 +757,7 @@
</span><span class="cx">     Warning: you have entered a value for the &quot;webservergroup&quot; parameter in
</span><span class="cx">     localconfig, but you are not either a) running this script as [% constants.ROOT_USER FILTER html %]; 
</span><span class="cx">     or b) a member of this group. This can cause permissions problems and 
</span><del>-    decreased security.  If you experience problems running [% terms.Bugzilla %]
</del><ins>+    decreased security.  If you experience problems running Bugzilla
</ins><span class="cx">     scripts, log in as [% constants.ROOT_USER FILTER html %] and re-run this script, become a 
</span><span class="cx">     member of the group, or remove the value of the &quot;webservergroup&quot; parameter.
</span><span class="cx"> 
</span><span class="lines">@@ -788,7 +765,7 @@
</span><span class="cx">     Warning: You have set webservergroup in [% constants.bz_locations.localconfig FILTER html %]
</span><span class="cx">     Please understand that this does not bring you any security when
</span><span class="cx">     running under Windows.
</span><del>-    Verify that the file permissions in your [% terms.Bugzilla %] directory are
</del><ins>+    Verify that the file permissions in your Bugzilla directory are
</ins><span class="cx">     suitable for your system. Avoid unnecessary write access.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;install_workflow_init&quot; %]
</span><span class="lines">@@ -796,9 +773,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;product_created&quot; %]
</span><span class="cx">     [% title = &quot;Product Created&quot; %]
</span><del>-    The product &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt; has been created. You will need to
-    &lt;a href=&quot;editcomponents.cgi?action=add&amp;product=[% product.name FILTER uri %]&quot;&gt;
-    add at least one component&lt;/a&gt; before anyone can enter [% terms.bugs %] against this product.
</del><ins>+    The product &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt; has been created.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;product_deleted&quot; %]
</span><span class="cx">     [% title = &quot;Product Deleted&quot; %]
</span><span class="lines">@@ -815,6 +790,39 @@
</span><span class="cx">     or you don't have access to it. The following is a list of the
</span><span class="cx">     products you can choose from.
</span><span class="cx"> 
</span><ins>+  [% ELSIF message_tag == &quot;quips_added&quot; %]
+    Your quip &lt;em&gt;[% added_quip FILTER html %]&lt;/em&gt; has been added.
+    [% IF Param(&quot;quip_list_entry_control&quot;) == &quot;moderated&quot; AND
+          !user.in_group('bz_quip_moderators') %]
+      It will be used as soon as it gets approved.
+    [% END %]
+
+  [% ELSIF message_tag == &quot;quips_deleted&quot; %]
+    The quip &lt;em&gt;[% deleted_quip FILTER html %]&lt;/em&gt; has been deleted.
+
+  [% ELSIF message_tag == &quot;quips_approved_unapproved&quot; %]
+    [% IF approved.size == 1 %]
+      One quip
+    [% ELSE %]
+      [% approved.size %] quips
+    [% END %]
+    approved and
+    [% IF unapproved.size == 1 %]
+      one quip
+    [% ELSE %]
+      [%+ unapproved.size %] quips
+    [% END %]
+    unapproved.
+
+  [% ELSIF message_tag == &quot;report_created&quot; %]
+    OK, you have a new saved report named &lt;em&gt;[% reportname FILTER html %]&lt;/em&gt;.
+
+  [% ELSIF message_tag == &quot;report_deleted&quot; %]
+    OK, the &lt;em&gt;[% reportname FILTER html %]&lt;/em&gt; report is gone.
+
+  [% ELSIF message_tag == &quot;report_updated&quot; %]
+    The saved report &lt;em&gt;[% reportname FILTER html %]&lt;/em&gt; has been updated.
+
</ins><span class="cx">   [% ELSIF message_tag == &quot;remaining_time_zeroed&quot; %]
</span><span class="cx">     The [% field_descs.remaining_time FILTER html %] field has been 
</span><span class="cx">     set to zero automatically as part of closing this [% terms.bug %]
</span><span class="lines">@@ -842,8 +850,8 @@
</span><span class="cx">   
</span><span class="cx">   [% ELSIF message_tag == &quot;sudo_ended&quot; %]
</span><span class="cx">     [% title = &quot;Sudo session complete&quot; %]
</span><del>-      The sudo session has been ended.  From this point forward, everything you 
-      do you do as yourself.
</del><ins>+      Your sudo session has ended. All future actions will be attributed
+      to your own account.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF message_tag == &quot;series_created&quot; %]
</span><span class="cx">     [% title = &quot;Series Created&quot; %]
</span><span class="lines">@@ -861,26 +869,27 @@
</span><span class="cx">       [%+ series.name FILTER html %]&lt;/em&gt;
</span><span class="cx">       has been deleted.
</span><span class="cx"> 
</span><ins>+  [% ELSIF message_tag == &quot;series_updated&quot; %]
+    [% title = &quot;Series Updated&quot; %]
+    The series &lt;em&gt;[% default.category FILTER html %] /
+    [%+ default.subcategory FILTER html %] /
+    [%+ default.name FILTER html %]&lt;/em&gt; has been updated.
+
</ins><span class="cx">   [% ELSIF message_tag == &quot;shutdown&quot; %]
</span><span class="cx">     [% title = &quot;$terms.Bugzilla is Down&quot; %]
</span><span class="cx">     [% Param(&quot;shutdownhtml&quot;) %]
</span><span class="cx">     [% IF userid %]
</span><del>-      &lt;p&gt;For security reasons, you have been logged out automatically.
-      The cookie that was remembering your login is now gone.
</del><ins>+      &lt;p&gt;
+        For security reasons, you have been logged out automatically.
+        The cookie that was remembering your login is now gone.
+      &lt;/p&gt;
</ins><span class="cx">     [% END %]
</span><ins>+    &lt;p&gt;
+      If you are an administrator, you can
+      &lt;a href=&quot;editparams.cgi?section=general&quot;&gt;reactivate [% terms.Bugzilla %]&lt;/a&gt;
+      by clearing the &lt;kbd&gt;shutdownhtml&lt;/kbd&gt; parameter.
+    &lt;/p&gt;
</ins><span class="cx"> 
</span><del>-  [% ELSIF message_tag == &quot;tag_updated&quot; %]
-    [% title = &quot;Tag Updated&quot; %]
-    The '&lt;a href=&quot;buglist.cgi?tag=[% tag FILTER uri %]&quot;&gt;[% tag FILTER html %]&lt;/a&gt;'
-    tag has been
-    [% IF action == &quot;add&quot; %]
-      added to
-    [% ELSE %]
-      removed from
-    [% END %]
-    [%+ buglist.size &gt; 1 ? terms.bugs : terms.bug %]
-    [%+ buglist.join(&quot;, &quot;) FILTER html %].
-
</del><span class="cx">   [% ELSIF message_tag == &quot;term&quot; %]
</span><span class="cx">     [% terms.$term FILTER html %]
</span><span class="cx"> 
</span><span class="lines">@@ -940,9 +949,9 @@
</span><span class="cx"> [%# Give sensible error if the message function is used incorrectly. #%]
</span><span class="cx"> [% IF !message %]
</span><span class="cx">   [% message = BLOCK %]
</span><del>-    You are using [% terms.Bugzilla %]'s messaging functions incorrectly. You
</del><ins>+    You are using Bugzilla's messaging functions incorrectly. You
</ins><span class="cx">     passed in the string '[% message_tag FILTER html %]'. The correct use is to pass
</span><del>-    in a tag, and define that tag in the file messages.html.tmpl.&lt;br&gt;
</del><ins>+    in a tag, and define that tag in the file &lt;kbd&gt;messages.html.tmpl&lt;/kbd&gt;.&lt;br&gt;
</ins><span class="cx">     &lt;br&gt;
</span><span class="cx">     If you are a [% terms.Bugzilla %] end-user seeing this message, please
</span><span class="cx">     save this page and send it to [% Param('maintainer') %].
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalperbugquerieshtmltmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/global/per-bug-queries.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/per-bug-queries.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/per-bug-queries.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,95 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #%]
-
-[% IF user.id &amp;&amp; user.settings.per_bug_queries.value == &quot;on&quot; %]
-  &lt;li id=&quot;links-special&quot;&gt;
-    &lt;script type=&quot;text/javascript&quot;&gt;
-      &lt;!--
-      function update_text() {
-        // 'lob' means list_of_bugs.
-        var lob_action = document.getElementById('lob_action');
-        var action = lob_action.options[lob_action.selectedIndex].value;
-        var text = document.getElementById('lob_direction');
-        var new_query_text = document.getElementById('lob_new_query_text');
-
-        if (action == &quot;add&quot;) {
-          text.innerHTML = &quot;to&quot;;
-          new_query_text.style.display = 'inline';
-        }
-        else {
-          text.innerHTML = &quot;from&quot;;
-          new_query_text.style.display = 'none';
-        }
-      }
-
-      function manage_old_lists() {
-        var old_lists = document.getElementById('lob_oldqueryname');
-        // If there is no saved searches available, returns.
-        if (!old_lists) return;
-
-        var new_query = document.getElementById('lob_newqueryname').value;
-
-        if (new_query != &quot;&quot;) {
-          old_lists.disabled = true;
-        }
-        else {
-          old_lists.disabled = false;
-        }
-      }
-      //--&gt;
-    &lt;/script&gt;
-
-    &lt;div class=&quot;label&quot;&gt;&lt;/div&gt;
-    &lt;ul class=&quot;links&quot;&gt;&lt;li class=&quot;form&quot;&gt;
-      &lt;form id=&quot;list_of_bugs&quot; action=&quot;buglist.cgi&quot; method=&quot;get&quot;&gt;
-        &lt;input type=&quot;hidden&quot; name=&quot;cmdtype&quot; value=&quot;doit&quot;&gt;
-        &lt;input type=&quot;hidden&quot; name=&quot;remtype&quot; value=&quot;asnamed&quot;&gt;
-        &lt;input type=&quot;hidden&quot; name=&quot;list_of_bugs&quot; value=&quot;1&quot;&gt;
-        &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['savedsearch']) FILTER html %]&quot;&gt;
-        &lt;select id=&quot;lob_action&quot; name=&quot;action&quot; onchange=&quot;update_text();&quot;&gt;
-          &lt;option value=&quot;add&quot;&gt;Add&lt;/option&gt;
-          [% IF user.tags.size %]
-            &lt;option value=&quot;remove&quot;&gt;Remove&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-
-        [% IF Param('docs_urlbase') %]
-          &lt;a href=&quot;[% docs_urlbase FILTER html %]query.html#individual-buglists&quot;&gt;the named tag&lt;/a&gt;
-        [% ELSE %]
-          the named tag
-        [% END %]
-
-        [% IF user.tags.size %]
-          &lt;select id=&quot;lob_oldqueryname&quot; name=&quot;oldqueryname&quot;&gt;
-            [% FOREACH tag = user.tags.keys %]
-              &lt;option value=&quot;[% tag FILTER html %]&quot;&gt;[% tag FILTER html %]&lt;/option&gt;
-            [% END %]
-          &lt;/select&gt;
-        [% END %]
-        &lt;span id=&quot;lob_new_query_text&quot;&gt;
-          [% &quot; or create and add the tag&quot; IF user.tags.size %]
-          &lt;input class=&quot;txt&quot; type=&quot;text&quot; id=&quot;lob_newqueryname&quot;
-                 size=&quot;20&quot; maxlength=&quot;64&quot; name=&quot;newqueryname&quot;
-                 onkeyup=&quot;manage_old_lists();&quot;&gt;
-        &lt;/span&gt;
-        &lt;span id=&quot;lob_direction&quot;&gt;to&lt;/span&gt;
-        [%+ terms.bugs %]
-        &lt;input type=&quot;text&quot; name=&quot;bug_ids&quot; size=&quot;12&quot; maxlength=&quot;80&quot;
-         [%- &quot; value=\&quot;$bugids\&quot;&quot; IF bugids %]&gt;
-        &lt;input type=&quot;submit&quot; value=&quot;Commit&quot; id=&quot;commit_list_of_bugs&quot;&gt;
-      &lt;/form&gt;
-    &lt;/li&gt;&lt;/ul&gt;
-  &lt;/li&gt;
-[% END %]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalproductselecthtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/global/product-select.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/product-select.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/product-select.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,92 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # name: mandatory; field name
+  # id: optional; field id
+  # value: optional; default field value/selection
+  # classes: optional; an array of classes to be added
+  # onchange: optional; onchange attribute value
+  # disabled: optional; if true, the field is disabled
+  # accesskey: optional;  accesskey attribute value
+  # add: optional;  prepend menu option for value specified to start of select
+  # dontchange: optional; prepend menu option for &quot;dontchange&quot; to start of select
+  # multiple: optional; do multiselect box, value is size (height) of box
+  # title: optional; extra information to display as a tooltip
+  # products: optional; an array of custom product names
+  # isselect: optional; whether the product list should be displayed as a &lt;select&gt;
+  #           or as just the plain text of its value.
+  # valueattribute: optional; the product attribute to be used for &lt;option value=&quot;&quot;&gt;,
+  #           defaults to product name
+  #%]
+
+[% IF !isselect.defined %]
+  [% isselect = 1 %]
+[% END %]
+[% DEFAULT valueattribute = &quot;name&quot; %]
+[% IF isselect %]
+  &lt;select name=&quot;[% name FILTER html %]&quot;
+    [% IF id %] id=&quot;[% id FILTER html %]&quot; [% END %]
+    [% IF classes %] class=&quot;[% classes.join(' ') FILTER html %]&quot; [% END %]
+    [% IF onchange %] onchange=&quot;[% onchange FILTER html %]&quot; [% END %]
+    [% IF disabled %] disabled=&quot;[% disabled FILTER html %]&quot; [% END %]
+    [% IF accesskey %] accesskey=&quot;[% accesskey FILTER html %]&quot; [% END %]
+    [% IF multiple %] multiple=&quot;multiple&quot; size=&quot;[% multiple FILTER html %]&quot; [% END %]
+    [% IF title %] title=&quot;[% title FILTER html %]&quot; [% END %]
+  &gt;
+    [% IF add %]
+      &lt;option value=&quot;&quot;&gt;[% add FILTER html %]&lt;/option&gt;
+    [% END %]
+    [% IF dontchange %]
+      &lt;option value=&quot;[% dontchange FILTER html %]&quot;&gt;[% dontchange FILTER html %]&lt;/option&gt;
+    [% END %]
+
+    [% IF Param('useclassification') %]
+      [% classifications = {} %]
+      [% IF products %]
+        [% FOREACH p = products %]
+          [% IF NOT classifications.${p.classification.name}.defined %]
+            [% classifications.${p.classification.name} = [] %]
+          [% END %]
+          [% classifications.${p.classification.name}.push(p) %]
+        [% END %]
+      [% ELSE %]
+        [% FOREACH c = user.get_selectable_classifications %]
+          [% classifications.${c.name} = [] %]
+          [% FOREACH p = user.get_selectable_products(c.id) %]
+            [% classifications.${c.name}.push(p) %]
+          [% END %]
+        [% END %]
+      [% END %]
+
+      [% FOREACH c = all_classifications %]
+        [% NEXT UNLESS classifications.${c}.size %]
+        &lt;optgroup label=&quot;[% c FILTER html %]&quot;&gt;
+          [% FOREACH p = classifications.$c %]
+            &lt;option value=&quot;[% p.$valueattribute FILTER html %]&quot;
+              [% &quot; selected&quot; IF (cgi.param(name) == p.name) || (value.contains(p.name)) %]&gt;
+              [% p.name FILTER html %]
+            &lt;/option&gt;
+          [% END %]
+        &lt;/optgroup&gt;
+      [% END %]
+    [% ELSE %]
+      [% IF NOT products.defined %]
+        [% products = user.get_selectable_products %]
+      [% END %]
+      [% FOREACH p = products %]
+        &lt;option value=&quot;[% p.$valueattribute FILTER html %]&quot;
+          [% &quot; selected&quot; IF (cgi.param(name) == p.name) || (value.contains(p.name)) %]&gt;
+          [% p.name FILTER html %]
+        &lt;/option&gt;
+      [% END %]
+    [% END %]
+  &lt;/select&gt;
+[% ELSE %]
+  [% value.join(', ') FILTER html %]
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalreasondescsnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/reason-descs.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/reason-descs.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/reason-descs.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% SET reason_descs = {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalselectmenuhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/select-menu.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/select-menu.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/select-menu.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalsettingdescsnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/setting-descs.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/setting-descs.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/setting-descs.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,13 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# Remember to PROCESS rather than INCLUDE this template. %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% setting_descs = { 
</span><span class="cx">    &quot;comment_sort_order&quot;               =&gt; &quot;When viewing $terms.abug, show comments in this order&quot;,
</span><span class="cx">    &quot;csv_colsepchar&quot;                   =&gt; &quot;Field separator character for CSV files&quot;,
</span><span class="lines">@@ -28,7 +18,6 @@
</span><span class="cx">    &quot;off&quot;                              =&gt; &quot;Off&quot;,
</span><span class="cx">    &quot;oldest_to_newest&quot;                 =&gt; &quot;Oldest to Newest&quot;,
</span><span class="cx">    &quot;on&quot;                               =&gt; &quot;On&quot;,
</span><del>-   &quot;per_bug_queries&quot;                  =&gt; &quot;Enable tags for $terms.bugs&quot;,
</del><span class="cx">    &quot;post_bug_submit_action&quot;           =&gt; &quot;After changing $terms.abug&quot;,
</span><span class="cx">    &quot;next_bug&quot;                         =&gt; &quot;Show next $terms.bug in my list&quot;,
</span><span class="cx">    &quot;same_bug&quot;                         =&gt; &quot;Show the updated $terms.bug&quot;,
</span><span class="lines">@@ -52,6 +41,9 @@
</span><span class="cx">    &quot;email_format&quot;                     =&gt; &quot;Preferred email format&quot;,
</span><span class="cx">    &quot;html&quot;                             =&gt; &quot;HTML&quot;,
</span><span class="cx">    &quot;text_only&quot;                        =&gt; &quot;Text Only&quot;,
</span><ins>+   &quot;requestee_cc&quot;                     =&gt; &quot;Automatically add me to the CC list of $terms.bugs I am requested to review&quot;,
+   &quot;bugmail_new_prefix&quot;               =&gt; &quot;Add 'New:' to subject line of email sent when a new $terms.bug is filed&quot;,
+   &quot;possible_duplicates&quot;              =&gt; &quot;Display possible duplicates when reporting a new $terms.bug&quot;, 
</ins><span class="cx">                    } 
</span><span class="cx"> %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalsitenavigationhtmltmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/global/site-navigation.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/site-navigation.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/site-navigation.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,90 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Toms Baugis &lt;toms.baugis@tietoenator.com&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
-  #%]
-
-[%# INTERFACE:
-  # bug.bug_id: integer. Number of current bug (for navigation purposes)
-  #%]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
-[% IF NOT (cgi.user_agent(&quot;MSIE [1-6]&quot;) OR cgi.user_agent(&quot;Mozilla/4&quot;)) %]
-  &lt;link rel=&quot;Top&quot; href=&quot;[% urlbase FILTER html %]&quot;&gt;
-
-  [%# *** Attachment *** %]
-  [% IF attachment &amp;&amp; attachment.bug_id %]
-    &lt;link rel=&quot;Up&quot; href=&quot;show_bug.cgi?id=[% attachment.bug_id FILTER none %]&quot;&gt;
-  [% END %]
-
-
-  [%# *** Dependencies, Activity, Print-version *** %]
-  [% IF bug %]
-    &lt;link rel=&quot;Show&quot; title=&quot;Dependency Tree&quot;
-          href=&quot;showdependencytree.cgi?id=[% bug.bug_id %]&amp;amp;hide_resolved=1&quot;&gt;
-    [% IF Param('webdotbase') %]
-      &lt;link rel=&quot;Show&quot; title=&quot;Dependency Graph&quot;
-            href=&quot;showdependencygraph.cgi?id=[% bug.bug_id %]&quot;&gt;
-    [% END %]
-
-      &lt;link rel=&quot;Show&quot; title=&quot;[% terms.Bug %] Activity&quot;
-            href=&quot;show_activity.cgi?id=[% bug.bug_id %]&quot;&gt;
-      &lt;link rel=&quot;Show&quot; title=&quot;Printer-Friendly Version&quot;
-            href=&quot;show_bug.cgi?format=multiple&amp;amp;id=[% bug.bug_id %]&quot;&gt;
-  [% END %]
-
-
-  [%# *** Saved Searches *** %]
-  [% IF user.showmybugslink %]
-    [% user_login = user.login FILTER uri %]
-    &lt;link rel=&quot;Saved&amp;nbsp;Searches&quot; title=&quot;My [% terms.Bugs %]&quot;
-          href=&quot;[% Param('mybugstemplate').replace('%userid%', user_login) %]&quot;&gt;
-  [% END %]
-
-  [% FOREACH q = user.queries_subscribed %]
-    &lt;link rel=&quot;Saved&amp;nbsp;Search&quot;
-          title=&quot;[% q.name FILTER html %] ([% q.user.login FILTER html %])&quot;
-          href=&quot;buglist.cgi?cmdtype=dorem&amp;amp;remaction=run&amp;amp;namedcmd=
-                 [% q.name FILTER uri %]&amp;amp;sharer_id=
-                 [% q.user.id FILTER uri %]&quot;&gt;
-  [% END %]
-
-  [%# *** Bugzilla Administration Tools *** %]
-  [% IF user.login %] 
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Parameters&quot;    
-              href=&quot;editparams.cgi&quot;&gt;' IF user.in_group('tweakparams') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Users&quot;    
-              href=&quot;editusers.cgi&quot;&gt;' IF user.in_group('editusers') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Products&quot; href=&quot;editproducts.cgi&quot;&gt;'
-       IF user.in_group('editcomponents') || user.get_products_by_permission(&quot;editcomponents&quot;).size %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Flag Types&quot;   
-              href=&quot;editflagtypes.cgi&quot;&gt;' IF user.in_group('editcomponents') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Groups&quot;        
-              href=&quot;editgroups.cgi&quot;&gt;' IF user.in_group('creategroups') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Keywords&quot;      
-              href=&quot;editkeywords.cgi&quot;&gt;' IF user.in_group('editkeywords') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Whining&quot;       
-              href=&quot;editwhines.cgi&quot;&gt;' IF user.in_group('bz_canusewhines') %]
-    [% '&lt;link rel=&quot;Administration&quot; title=&quot;Sanity Check&quot;  
-              href=&quot;sanitycheck.cgi&quot;&gt;' IF user.in_group('editcomponents') %]
-  [% END %]  
-[% END %]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaltabshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/tabs.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/tabs.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/tabs.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,7 +15,7 @@
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;tabbed&quot;&gt;
</span><del>-  &lt;table class=&quot;tabs&quot; cellspacing=&quot;0&quot; cellpadding=&quot;10&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;
</del><ins>+  &lt;table class=&quot;tabs&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;td class=&quot;spacer&quot;&gt;&amp;nbsp;&lt;/td&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +25,7 @@
</span><span class="cx">             [% tab.label FILTER html %]&lt;/td&gt;
</span><span class="cx">         [% ELSE %]
</span><span class="cx">           &lt;td id=&quot;tab_[% tab.name FILTER html %]&quot; class=&quot;clickable_area&quot;
</span><del>-              onClick=&quot;document.location='[% tab.link FILTER html %]'&quot;&gt;
</del><ins>+              onClick=&quot;document.location='[% tab.link FILTER js FILTER html %]'&quot;&gt;
</ins><span class="cx">             &lt;a href=&quot;[% tab.link FILTER html %]&quot;&gt;[% tab.label FILTER html %]&lt;/a&gt;
</span><span class="cx">           &lt;/td&gt;
</span><span class="cx">         [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaltextareahtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/textarea.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/textarea.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/textarea.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -18,7 +11,6 @@
</span><span class="cx">   # id:             (optional) The &quot;id&quot;-attribute of the textarea.
</span><span class="cx">   # name:           (optional) The &quot;name&quot;-attribute of the textarea.
</span><span class="cx">   # accesskey:      (optional) The &quot;accesskey&quot;-attribute of the textarea.
</span><del>-  # style:          (optional) The &quot;style&quot;-attribute of the textarea.
</del><span class="cx">   # classes:        (optional) The &quot;class&quot;-attribute of the textarea.
</span><span class="cx">   # wrap:           (deprecated; optional) The &quot;wrap&quot;-attribute of the textarea.
</span><span class="cx">   # disabled:       (optional) Disable the textarea.
</span><span class="lines">@@ -35,12 +27,13 @@
</span><span class="cx">   # defaultcontent: (optional) Default content for the textarea.
</span><span class="cx">   # mandatory:      (optional) Boolean specifying whether or not the textarea
</span><span class="cx">   #                 is mandatory.
</span><ins>+  # field_hidden:   (optional) True if the field is hidden. Only useful if
+  #                 the field is mandatory.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;textarea [% IF name %]name=&quot;[% name FILTER html %]&quot;[% END %]
</span><span class="cx">           [% IF id %] id=&quot;[% id FILTER html %]&quot;[% END %]
</span><span class="cx">           [% IF accesskey %] accesskey=&quot;[% accesskey FILTER html %]&quot;[% END %]
</span><del>-          [% IF style %] style=&quot;[% style FILTER html %]&quot;[% END %]
</del><span class="cx">           [% IF classes %] class=&quot;[% classes FILTER html %]&quot;[% END %]
</span><span class="cx">           [% IF wrap %] wrap=&quot;[% wrap FILTER html %]&quot;[% END %]
</span><span class="cx">           [% IF disabled %] disabled=&quot;disabled&quot;[% END %]
</span><span class="lines">@@ -55,5 +48,8 @@
</span><span class="cx">             onFocus=&quot;this.rows=[% maxrows FILTER html %]&quot;
</span><span class="cx">           [% END %]
</span><span class="cx">           [% IF mandatory %]
</span><del>-            aria-required=&quot;true&quot;
</del><ins>+            data-required=&quot;true&quot; [% 'aria-required=&quot;true&quot; required' UNLESS field_hidden %]
+          [% END %]
+          [% IF onchange %]
+            onchange=&quot;[% onchange FILTER html %]&quot;
</ins><span class="cx">           [% END %]&gt;[% defaultcontent FILTER html %]&lt;/textarea&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalusefullinkshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/useful-links.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/useful-links.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/useful-links.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Svetlana Harisova &lt;light@rathedg.com&gt;
-  #                 Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[%# Migration note: this whole file corresponds to the old %commandmenu% 
-    substitution param in 'footerhtml' %]
-
-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> &lt;ul id=&quot;useful-links&quot;&gt;
</span><span class="cx">   &lt;li id=&quot;links-actions&quot;&gt;
</span><span class="cx">       [% PROCESS &quot;global/common-links.html.tmpl&quot; qs_suffix = &quot;_bottom&quot; %]
</span><span class="lines">@@ -31,51 +12,61 @@
</span><span class="cx">   &lt;/li&gt;
</span><span class="cx"> 
</span><span class="cx">   [%# Saved searches %]
</span><del>-    
-  [% IF user.showmybugslink OR user.queries.size 
-        OR user.queries_subscribed.size 
-  %]
-    [% print_pipe = 0 %]
</del><ins>+
+  [% IF user.showmybugslink OR user.queries.size %]
</ins><span class="cx">     &lt;li id=&quot;links-saved&quot;&gt;
</span><span class="cx">       &lt;ul class=&quot;links&quot;&gt;
</span><ins>+        [% print_pipe = 0 %]
</ins><span class="cx">         [% IF user.showmybugslink %]
</span><span class="cx">           [% filtered_username = user.login FILTER uri %]
</span><del>-          &lt;li&gt;&lt;a href=&quot;[% Param('mybugstemplate').replace('%userid%', filtered_username) %]&quot;&gt;My [% terms.Bugs %]&lt;/a&gt;&lt;/li&gt;
</del><ins>+          &lt;li&gt;
+            &lt;a href=&quot;[% Param('mybugstemplate').replace('%userid%', filtered_username) %]&quot;&gt;My [% terms.Bugs %]&lt;/a&gt;
+          &lt;/li&gt;
</ins><span class="cx">           [% print_pipe = 1 %]
</span><span class="cx">         [% END %]
</span><span class="cx"> 
</span><span class="cx">         [% FOREACH q = user.queries %]
</span><del>-          [% IF q.link_in_footer %]
-            &lt;li&gt;[% '&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;' IF print_pipe %]
-            &lt;a href=&quot;buglist.cgi?cmdtype=runnamed&amp;amp;namedcmd=[% q.name FILTER uri %]&quot;&gt;[% q.name FILTER html %]&lt;/a&gt;&lt;/li&gt;
-            [% print_pipe = 1 %]
-          [% END %]
</del><ins>+          [% NEXT UNLESS q.link_in_footer %]
+          &lt;li&gt;
+            [% '&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;' IF print_pipe %]
+            &lt;a href=&quot;buglist.cgi?cmdtype=runnamed&amp;amp;namedcmd=[% q.name FILTER uri %]&quot;&gt;[% q.name FILTER html %]&lt;/a&gt;
+          &lt;/li&gt;
+          [% print_pipe = 1 %]
</ins><span class="cx">         [% END %]
</span><del>-        [% new_line = print_pipe %]
-        [% print_pipe = 0 %]
</del><ins>+      &lt;/ul&gt;
+    &lt;/li&gt;
+  [% END %]
+
+  [% IF user.queries_subscribed.size %]
+    &lt;li id=&quot;links-shared&quot;&gt;
+      &lt;ul class=&quot;links&quot;&gt;
</ins><span class="cx">         [% FOREACH q = user.queries_subscribed %]
</span><del>-          [% IF new_line %]
-            &lt;br&gt;
-            [% new_line = 0 %]
-          [% END %]
</del><span class="cx">           &lt;li&gt;
</span><del>-            [% '&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;' IF print_pipe %]
</del><ins>+            [% '&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;' UNLESS loop.first %]
</ins><span class="cx">             &lt;a href=&quot;buglist.cgi?cmdtype=dorem&amp;amp;remaction=run&amp;amp;namedcmd=
</span><del>-                     [% q.name FILTER uri %]&amp;amp;sharer_id=
-                     [% q.user.id FILTER uri %]&quot;
-               class=&quot;shared&quot;
-               title=&quot;Shared by [% q.user.identity FILTER html %]&quot;
-               &gt;[% q.name FILTER html FILTER no_break %]&lt;/a&gt;&lt;/li&gt;
-          [% print_pipe = 1 %]
</del><ins>+                     [%- q.name FILTER uri %]&amp;amp;sharer_id=[% q.user.id FILTER uri %]&quot;
+               class=&quot;shared&quot; title=&quot;Shared by [% q.user.identity FILTER html %]&quot;&gt;
+              [%- q.name FILTER html %]&lt;/a&gt;
+          &lt;/li&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/ul&gt;
</span><span class="cx">     &lt;/li&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  [%# Individual bugs addition %]
</del><ins>+  [% IF user.reports.size %]
+    &lt;li id=&quot;reports-saved&quot;&gt;
+      &lt;ul class=&quot;links&quot;&gt;
+        [% FOREACH r = user.reports %]
+          &lt;li&gt;
+            [% '&lt;span class=&quot;separator&quot;&gt;| &lt;/span&gt;' UNLESS loop.first %]
+            &lt;a href=&quot;report.cgi?[% r.query FILTER html %]&amp;amp;saved_report_id=
+                     [%~ r.id FILTER uri %]&quot;&gt;[% r.name FILTER html %]&lt;/a&gt;
+          &lt;/li&gt;
+        [% END %]
+      &lt;/ul&gt;
+    &lt;/li&gt;
+  [% END %]
</ins><span class="cx"> 
</span><del>-  [% PROCESS &quot;global/per-bug-queries.html.tmpl&quot; %]
-
</del><span class="cx">   [%# Sections of links to more things users can do on this installation. %]
</span><span class="cx">   [% Hook.process(&quot;end&quot;) %]
</span><span class="cx"> &lt;/ul&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalusererrorhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/user-error.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/user-error.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/user-error.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -39,8 +25,6 @@
</span><span class="cx">   # nobody can guarantee the hook files processing order in the future.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><span class="cx"> [% DEFAULT title = &quot;Error&quot; %]
</span><span class="lines">@@ -93,9 +77,13 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;alias_in_use&quot; %]
</span><span class="cx">     [% title = &quot;Alias In Use&quot; %]
</span><del>-    [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
</del><ins>+    [% IF user.can_see_bug(bug_id) %]
+      [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
+    [% ELSE %]
+      Another [% terms.bug %]
+    [% END %]
</ins><span class="cx">     has already taken the alias &lt;em&gt;[% alias FILTER html %]&lt;/em&gt;.
</span><del>-    Please choose another one.
</del><ins>+    Please choose another alias.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;alias_is_numeric&quot; %]
</span><span class="cx">     [% title = &quot;Alias Is Numeric&quot; %]
</span><span class="lines">@@ -106,9 +94,18 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;alias_too_long&quot; %]
</span><span class="cx">     [% title = &quot;Alias Too Long&quot; %]
</span><del>-    [% terms.Bug %] aliases cannot be longer than 20 characters.
</del><ins>+    [% terms.Bug %] aliases cannot be longer than 40 characters.
</ins><span class="cx">     Please choose a shorter alias.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;api_key_not_valid&quot; %]
+    [% title = &quot;Invalid API key&quot; %]
+    The API key you specified is invalid. Please check that you typed it
+    correctly.
+
+  [% ELSIF error == &quot;api_key_revoked&quot; %]
+    [% title = &quot;Invalid API key&quot; %]
+    The API key you specified has been revoked by the user that created it.
+
</ins><span class="cx">   [% ELSIF error == &quot;attachment_bug_id_mismatch&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Attachments&quot; %]
</span><span class="cx">     You tried to perform an action on attachments from different [% terms.bugs %].
</span><span class="lines">@@ -122,7 +119,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;auth_failure&quot; %]
</span><span class="cx">     [% title = &quot;Authorization Required&quot; %]
</span><del>-    [% admindocslinks = {'groups.html' =&gt; 'Group Security'} %]
</del><ins>+    [% admindocslinks = {'groups.html#groups' =&gt; 'Group Security'} %]
</ins><span class="cx">     Sorry,
</span><span class="cx">     [% IF group %]
</span><span class="cx">       you aren't a member of the '[% group FILTER html %]' group,
</span><span class="lines">@@ -182,6 +179,8 @@
</span><span class="cx">       classifications
</span><span class="cx">     [% ELSIF object == &quot;components&quot; %]
</span><span class="cx">       components
</span><ins>+    [% ELSIF object == &quot;comment_tags&quot; %]
+      comment tags
</ins><span class="cx">     [% ELSIF object == &quot;custom_fields&quot; %]
</span><span class="cx">       custom fields
</span><span class="cx">     [% ELSIF object == &quot;field_values&quot; %]
</span><span class="lines">@@ -229,6 +228,20 @@
</span><span class="cx"> 
</span><span class="cx">     [% Hook.process(&quot;auth_failure&quot;) %]
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;auth_invalid_token&quot; %]
+    [% title = 'A token error occurred' %]
+    The token '[% token FILTER html %]' is not valid. It could be because
+    you loaded this page more than 3 days ago.
+
+  [% ELSIF error == &quot;auth_untrusted_request&quot; %]
+    [% title = &quot;Untrusted Authentication Request&quot; %]
+    You tried to log in using the &lt;em&gt;[% login FILTER html %]&lt;/em&gt; account,
+    but [% terms.Bugzilla %] is unable to trust your request. Make sure
+    your web browser accepts cookies and that you haven't been redirected
+    here from an external web site.
+    &lt;a href=&quot;index.cgi?GoAheadAndLogIn=1&quot;&gt;Click here&lt;/a&gt; if you really want
+    to log in.
+
</ins><span class="cx">   [% ELSIF error == &quot;attachment_deletion_disabled&quot; %]
</span><span class="cx">     [% title = &quot;Attachment Deletion Disabled&quot; %]
</span><span class="cx">     Attachment deletion is disabled on this installation.
</span><span class="lines">@@ -237,14 +250,19 @@
</span><span class="cx">     [% title = &quot;Attachment Removed&quot; %]
</span><span class="cx">     The attachment you are attempting to access has been removed.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;bad_page_cgi_id&quot; %]
+    [% title = &quot;Invalid Page ID&quot; %]
+    The ID &lt;code&gt;[% page_id FILTER html %]&lt;/code&gt; is not a
+    valid page identifier.
+
</ins><span class="cx">   [% ELSIF error == &quot;bug_access_denied&quot; %]
</span><del>-    [% title = &quot;Access Denied&quot; %]
-    [% admindocslinks = {'groups.html' =&gt; 'Group Security'} %]
</del><ins>+    [% title = &quot;$terms.Bug Access Denied&quot; %]
+    [% admindocslinks = {'groups.html#groups' =&gt; 'Group Security'} %]
</ins><span class="cx">     You are not authorized to access [% terms.bug %] #[% bug_id FILTER html %].
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;bug_access_query&quot; %]
</span><del>-    [% title = &quot;Access Denied&quot; %]
-    [% docslinks = {'myaccount.html' =&gt; 'Creating an account'} %]
</del><ins>+    [% title = &quot;$terms.Bug Access Denied&quot; %]
+    [% docslinks = {'administering/users.html#creating-new-users' =&gt; 'Creating an account'} %]
</ins><span class="cx">     You are not authorized to access [% terms.bug %] #[% bug_id FILTER html %].
</span><span class="cx">     To see this [% terms.bug %], you must
</span><span class="cx">     first &lt;a href=&quot;show_bug.cgi?id=
</span><span class="lines">@@ -258,10 +276,12 @@
</span><span class="cx">       URLs must start with &quot;http&quot; or &quot;https&quot;.
</span><span class="cx">     [% ELSIF reason == 'path_only' %]
</span><span class="cx">       You must specify a full URL.
</span><del>-    [% ELSIF reason == 'show_bug' %]
</del><ins>+    [% ELSIF reason == 'id' %]
+      There is no valid [% terms.bug %] id in that URL.
+    [% ELSE %]
</ins><span class="cx">       [%+ field_descs.see_also FILTER html %] URLs should point to one of:
</span><span class="cx">       &lt;ul&gt;
</span><del>-        &lt;li&gt;&lt;code&gt;show_bug.cgi&lt;/code&gt; in a [% terms.Bugzilla %]
</del><ins>+        &lt;li&gt;&lt;code&gt;show_bug.cgi&lt;/code&gt; in a Bugzilla
</ins><span class="cx">           installation.&lt;/li&gt;
</span><span class="cx">         &lt;li&gt;A b[% %]ug on launchpad.net&lt;/li&gt;
</span><span class="cx">         &lt;li&gt;An issue on code.google.com.&lt;/li&gt;
</span><span class="lines">@@ -271,21 +291,21 @@
</span><span class="cx">         &lt;li&gt;A ticket in a Trac installation.&lt;/li&gt;
</span><span class="cx">         &lt;li&gt;A b[% %]ug in a MantisBT installation.&lt;/li&gt;
</span><span class="cx">         &lt;li&gt;A b[% %]ug on sourceforge.net.&lt;/li&gt;
</span><ins>+        &lt;li&gt;An issue/pull request on github.com.&lt;/li&gt;
+        [% Hook.process('bug_url_invalid_tracker') %]
</ins><span class="cx">       &lt;/ul&gt;
</span><del>-    [% ELSIF reason == 'id' %]
-      There is no valid [% terms.bug %] id in that URL.
</del><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;bug_url_too_long&quot; %]
</span><span class="cx">     [% title = &quot;Invalid $terms.Bug URL&quot; %]
</span><del>-    [% terms.Bug %] URLs can not be longer than 
</del><ins>+    [% terms.Bug %] URLs cannot be longer than 
</ins><span class="cx">     [%+ constants.MAX_BUG_URL_LENGTH FILTER none %] characters long.
</span><span class="cx">     &lt;code&gt;[% url FILTER html %]&lt;/code&gt; is too long.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;buglist_parameters_required&quot; %]
</span><span class="cx">     [% title = &quot;Parameters Required&quot; %]
</span><del>-    [% docslinks = {'query.html' =&gt; &quot;Searching for $terms.bugs&quot;,
-                    'query.html#list' =&gt; &quot;$terms.Bug lists&quot;} %]
</del><ins>+    [% docslinks = {'using/finding.html' =&gt; &quot;Searching for $terms.bugs&quot;,
+                    'using/finding.html#bug-lists' =&gt; &quot;$terms.Bug lists&quot;} %]
</ins><span class="cx">     You may not search, or create saved searches, without any search terms.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;cc_remove_denied&quot; %]
</span><span class="lines">@@ -309,9 +329,10 @@
</span><span class="cx">   [% ELSIF error == &quot;comment_required&quot; %]
</span><span class="cx">     [% title = &quot;Comment Required&quot; %]
</span><span class="cx">     You have to specify a
</span><del>-    [% IF old &amp;&amp; new %]
-      &lt;b&gt;comment&lt;/b&gt; when changing the status of [% terms.abug %] from
-      [%+ old.name FILTER html %] to [% new.name FILTER html %].
</del><ins>+    [% IF old.defined &amp;&amp; new.defined %]
+      &lt;b&gt;comment&lt;/b&gt; when changing the [% field_descs.$field FILTER html %]
+      of [% terms.abug %] from [% (old || &quot;(empty)&quot;) FILTER html %]
+      to [% (new || &quot;(empty)&quot;) FILTER html %].
</ins><span class="cx">     [% ELSIF new %]
</span><span class="cx">       description for this [% terms.bug %].
</span><span class="cx">     [% ELSE %]
</span><span class="lines">@@ -323,6 +344,25 @@
</span><span class="cx">     Comments cannot be longer than 
</span><span class="cx">     [%+ constants.MAX_COMMENT_LENGTH FILTER html %] characters.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;comment_tag_disabled&quot; %]
+    [% title = &quot;Comment Tagging Disabled&quot; %]
+    The comment tagging is not enabled.
+
+  [% ELSIF error == &quot;comment_tag_invalid&quot; %]
+    [% title = &quot;Invalid Comment Tag&quot; %]
+    The comment tag &quot;[% tag FILTER html %]&quot; contains invalid characters or
+    words.
+
+  [% ELSIF error == &quot;comment_tag_too_long&quot; %]
+    [% title = &quot;Comment Tag Too Long&quot; %]
+    Comment tags cannot be longer than
+    [%+ constants.MAX_COMMENT_TAG_LENGTH FILTER html %] characters.
+
+  [% ELSIF error == &quot;comment_tag_too_short&quot; %]
+    [% title = &quot;Comment Tag Too Short&quot; %]
+    Comment tags must be at least
+    [%+ constants.MIN_COMMENT_TAG_LENGTH FILTER html %] characters.
+
</ins><span class="cx">   [% ELSIF error == &quot;auth_classification_not_enabled&quot; %]
</span><span class="cx">     [% title = &quot;Classification Not Enabled&quot; %]
</span><span class="cx">     Sorry, classification is not enabled.
</span><span class="lines">@@ -346,8 +386,8 @@
</span><span class="cx">     integer between 0 and [% constants.MAX_SMALLINT FILTER html %].
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;classification_not_deletable&quot; %]
</span><del>-    [% title = &quot;Default Classification Can Not Be Deleted&quot; %]
-    You can not delete the default classification
</del><ins>+    [% title = &quot;Default Classification Cannot Be Deleted&quot; %]
+    You cannot delete the default classification
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;classification_has_products&quot; %]
</span><span class="cx">      Sorry, there are products for this classification. You
</span><span class="lines">@@ -373,6 +413,11 @@
</span><span class="cx">     You must reassign those [% terms.bugs %] to another component before you
</span><span class="cx">     can delete this one.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;component_is_last&quot; %]
+    [% title = BLOCK %]Last Component in this Product[% END %]
+    '[% comp.name FILTER html %]' is the last component of the
+    '[% comp.product.name FILTER html %]' product. You cannot delete it.
+
</ins><span class="cx">   [% ELSIF error == &quot;component_name_too_long&quot; %]
</span><span class="cx">     [% title = &quot;Component Name Is Too Long&quot; %]
</span><span class="cx">     The name of a component is limited to [% constants.MAX_COMPONENT_SIZE FILTER html %]
</span><span class="lines">@@ -440,25 +485,20 @@
</span><span class="cx">     [% title = &quot;Email Change Already In Progress&quot; %]
</span><span class="cx">     Email change already in progress; please check your email.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;email_confirmation_failed&quot; %]
-    [% title = &quot;Email Address Confirmation Failed&quot; %]
-    Email address confirmation failed.
</del><ins>+  [% ELSIF error == &quot;email_no_body&quot; %]
+    Your message did not contain any text, as far as we could tell.
</ins><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;email_no_text_plain&quot; %]
-    Your message did not contain any text.[% terms.Bugzilla %] does not
-    accept HTML-only email, or HTML email with attachments.
-
</del><span class="cx">   [% ELSIF error == &quot;empty_group_description&quot; %]
</span><del>-    [% title = &quot;The group description can not be empty&quot; %]
</del><ins>+    [% title = &quot;The group description cannot be empty&quot; %]
</ins><span class="cx">     You must enter a description for the group.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;empty_group_name&quot; %]
</span><del>-    [% title = &quot;The group name can not be empty&quot; %]
</del><ins>+    [% title = &quot;The group name cannot be empty&quot; %]
</ins><span class="cx">     You must enter a name for the group.
</span><span class="cx">   
</span><span class="cx">   [% ELSIF error == &quot;entry_access_denied&quot; %]
</span><span class="cx">     [% title = &quot;Permission Denied&quot; %]
</span><del>-    [% admindocslinks = {'groups.html' =&gt; 'Group Security'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#product-group-controls' =&gt; 'Group Security'} %]
</ins><span class="cx">     Sorry, either the product &lt;em&gt;[% product FILTER html %]&lt;/em&gt;
</span><span class="cx">     does not exist or you aren't authorized to
</span><span class="cx">     enter [% terms.abug %] into it.
</span><span class="lines">@@ -466,10 +506,24 @@
</span><span class="cx">   [% ELSIF error == &quot;extension_create_no_name&quot; %]
</span><span class="cx">     You must specify a name for your extension, as an argument to this script.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;extension_disabled&quot; %]
+    [% title = &quot;Extension Disabled&quot; %]
+    You cannot access this page because the extension '[% name FILTER html %]'
+    is disabled.
+
</ins><span class="cx">   [% ELSIF error == &quot;extension_first_letter_caps&quot; %]
</span><span class="cx">     The first letter of your extension's name must be a capital letter.
</span><span class="cx">     (You specified '[% name FILTER html %]'.)
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;feature_disabled&quot; %]
+    The [% install_string(&quot;feature_$feature&quot;) FILTER html %] feature is not
+    available in this Bugzilla.
+    [% IF user.in_group('admin') %]
+      If you would like to enable this feature, please run
+      &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; to see how to install the necessary
+      requirements for this feature.
+    [% END %]
+
</ins><span class="cx">   [% ELSIF error == &quot;field_already_exists&quot; %]
</span><span class="cx">     [% title = &quot;Field Already Exists&quot; %]
</span><span class="cx">     The field '[% field.name FILTER html %]'     
</span><span class="lines">@@ -501,6 +555,11 @@
</span><span class="cx">     [% title = &quot;Missing Description for Field&quot; %]
</span><span class="cx">     You must enter a description for this field.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;field_long_desc_too_long&quot; %]
+    [% title = &quot;Long Description for Field too long&quot; %]
+    The long description you have provided for this field is longer than 
+    [% constants.MAX_FIELD_LONG_DESC_LENGTH FILTER html %] characters.
+
</ins><span class="cx">   [% ELSIF error == &quot;field_missing_name&quot; %]
</span><span class="cx">     [% title = &quot;Missing Name for Field&quot; %]
</span><span class="cx">     You must enter a name for this field.
</span><span class="lines">@@ -582,9 +641,9 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;fieldvalue_sortkey_invalid&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Field Value Sortkey&quot; %]
</span><del>-    The sortkey '[% sortkey FILTER html %]' for the 
-    [%+ field.description FILTER html %] field is not a valid 
-    (positive) number.
</del><ins>+    The sortkey '[% sortkey FILTER html %]' for the
+    [%+ field.description FILTER html %] field must be an integer
+    between 0 and [% constants.MAX_SMALLINT FILTER none %].
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;fieldvalue_still_has_bugs&quot; %]
</span><span class="cx">     [% title = &quot;You Cannot Delete This Field Value&quot; %]
</span><span class="lines">@@ -615,10 +674,20 @@
</span><span class="cx">     [%+ max_limit.nsort.last FILTER html %] KB. &lt;br&gt;
</span><span class="cx">     We recommend that you store your attachment elsewhere
</span><span class="cx">     and then paste the URL to this file on the attachment
</span><del>-    creation page in the appropriate text field.
</del><ins>+    creation page in the appropriate text field, which you can access by
+    clicking the &quot;paste text as attachment&quot; link.
</ins><span class="cx">     &lt;br&gt;Alternately, if your attachment is an image, you could convert
</span><span class="cx">     it to a compressible format like JPG or PNG and try again.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;flag_type_requestee_disabled&quot; %]
+    [% title = &quot;Flag not Requestable from Specific Person&quot; %]
+    You can't ask a specific person for &lt;em&gt;[% type.name FILTER html %]&lt;/em&gt;.
+
+  [% ELSIF error == &quot;flag_requestee_disabled&quot; %]
+    [% title = &quot;Flag Requestee Disabled&quot; %]
+    You can't ask &lt;em&gt;[% requestee.identity FILTER html %]&lt;/em&gt; because that
+    account is disabled.
+
</ins><span class="cx">   [% ELSIF error == &quot;flag_requestee_needs_privs&quot; %]
</span><span class="cx">     [% title = &quot;Flag Requestee Needs Privileges&quot; %]
</span><span class="cx">     [% requestee.identity FILTER html %] does not have permission to set the
</span><span class="lines">@@ -627,10 +696,9 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_requestee_unauthorized&quot; %]
</span><span class="cx">     [% title = &quot;Flag Requestee Not Authorized&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags',
-                         'groups.html' =&gt; 'Group Security'} %]
-    [% docslinks = {'flags-overview.html' =&gt; 'An overview on Flags',
-                    'flags.html' =&gt; 'Using Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags',
+                         'categorization.html#assigning-group-controls-to-products' =&gt; 'Group Security'} %]
+    [% docslinks = {'using/understanding.html#flags' =&gt; 'Using Flags'} %]
</ins><span class="cx"> 
</span><span class="cx">     You asked [% requestee.identity FILTER html %]
</span><span class="cx">     for &lt;code&gt;[% flag_type.name FILTER html %]&lt;/code&gt; on [% terms.bug %] 
</span><span class="lines">@@ -644,10 +712,9 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_requestee_unauthorized_attachment&quot; %]
</span><span class="cx">     [% title = &quot;Flag Requestee Not Authorized&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags',
-                         'groups.html' =&gt; 'Group Security'} %]
-    [% docslinks = {'flags-overview.html' =&gt; 'An overview on Flags',
-                    'flags.html' =&gt; 'Using Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags',
+                         'categorization.html#assigning-group-controls-to-products' =&gt; 'Group Security'} %]
+    [% docslinks = {'using/understanding.html#flags' =&gt; 'Using Flags'} %]
</ins><span class="cx"> 
</span><span class="cx">     You asked [% requestee.identity FILTER html %]
</span><span class="cx">     for &lt;code&gt;[% flag_type.name FILTER html %]&lt;/code&gt; on 
</span><span class="lines">@@ -677,7 +744,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_type_cc_list_invalid&quot; %]
</span><span class="cx">     [% title = &quot;Flag Type CC List Invalid&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags'} %]
</ins><span class="cx">     The CC list [% cc_list FILTER html %] must be less than 200 characters long.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_type_component_without_product&quot; %]
</span><span class="lines">@@ -686,12 +753,12 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_type_description_invalid&quot; %]
</span><span class="cx">     [% title = &quot;Flag Type Description Invalid&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags'} %]
</ins><span class="cx">     You must enter a description for this flag type.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_type_name_invalid&quot; %]
</span><span class="cx">     [% title = &quot;Flag Type Name Invalid&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags'} %]
</ins><span class="cx">     The name &lt;em&gt;[% name FILTER html %]&lt;/em&gt; must be 1-50 characters long
</span><span class="cx">     and must not contain any spaces or commas.
</span><span class="cx"> 
</span><span class="lines">@@ -700,18 +767,26 @@
</span><span class="cx">     You are not allowed to edit properties of the '[% flagtype.name FILTER html %]'
</span><span class="cx">     flag type, because this flag type is not available for the products you can administer.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;flag_not_unique&quot; %]
+    [% title = &quot;Flag not Unique&quot; %]
+    The flag '[% value FILTER html %]' has been set multiple times.
+    You must specify the id value to update the flag.
+
+  [% ELSIF error == &quot;flag_type_not_unique&quot; %]
+    [% title = &quot;Flag Type not Unique&quot; %]
+    The flag type '[% value FILTER html %]' matches several flag types.
+    You must specify the type id value to update or add a flag.
+
</ins><span class="cx">   [% ELSIF error == &quot;flag_type_not_multiplicable&quot; %]
</span><del>-    [% docslinks = {'flags-overview.html' =&gt; 'An overview on Flags',
-                    'flags.html' =&gt; 'Using Flags'} %]
</del><ins>+    [% docslinks = {'using/understanding.html#flags' =&gt; 'Using Flags'} %]
</ins><span class="cx">     You cannot have several &lt;em&gt;[% type.name FILTER html %]&lt;/em&gt; flags
</span><span class="cx">     for this [% IF attachment %] attachment [% ELSE %] [%+ terms.bug %] [% END %].
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;flag_update_denied&quot; %]
</span><span class="cx">     [% title = &quot;Flag Modification Denied&quot; %]
</span><del>-    [% admindocslinks = {'flags-overview.html#flags-admin'  =&gt; 'Administering Flags',
-                         'groups.html' =&gt; 'Group Security'} %]
-    [% docslinks = {'flags-overview.html' =&gt; 'An overview on Flags',
-                    'flags.html' =&gt; 'Using Flags'} %]
</del><ins>+    [% admindocslinks = {'flags.html' =&gt; 'Administering Flags',
+                         'categorization.html#assigning-group-controls-to-products' =&gt; 'Group Security'} %]
+    [% docslinks = {'using/understanding.html#flags' =&gt; 'Using Flags'} %]
</ins><span class="cx">     You tried to [% IF status == &quot;+&quot; %] grant [% ELSIF status == &quot;-&quot; %] deny
</span><span class="cx">     [% ELSIF status == &quot;X&quot; %] clear [% ELSE %] request [% END %]
</span><span class="cx">     &lt;code&gt;[% name FILTER html %]
</span><span class="lines">@@ -723,7 +798,10 @@
</span><span class="cx">     [% title = &quot;Format Not Found&quot; %]
</span><span class="cx">     The requested format &lt;em&gt;[% format FILTER html %]&lt;/em&gt; does not exist with
</span><span class="cx">     a content type of &lt;em&gt;[% ctype FILTER html %]&lt;/em&gt;.
</span><del>-    
</del><ins>+    [% IF invalid %]
+      Both parameters must contain letters and hyphens only.
+    [% END %]
+
</ins><span class="cx">   [% ELSIF error == &quot;flag_type_sortkey_invalid&quot; %]
</span><span class="cx">     [% title = &quot;Flag Type Sort Key Invalid&quot; %]
</span><span class="cx">     The sort key &lt;em&gt;[% sortkey FILTER html %]&lt;/em&gt; must be an integer
</span><span class="lines">@@ -745,6 +823,11 @@
</span><span class="cx">     in the database which refer to it. All references to this group must
</span><span class="cx">     be removed before you can remove it.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;group_cannot_view&quot; %]
+    [% title = &quot;Cannot View Groups&quot; %]
+    In order to view groups, you need to be a member of the 'editusers' or
+    'creategroups' group, or have bless privileges to at least one group.
+
</ins><span class="cx">   [% ELSIF error == &quot;group_exists&quot; %]
</span><span class="cx">     [% title = &quot;The group already exists&quot; %]
</span><span class="cx">     The group [% name FILTER html %] already exists.
</span><span class="lines">@@ -814,13 +897,13 @@
</span><span class="cx">     [% title = &quot;Not allowed&quot; %]
</span><span class="cx">     You tried to change the
</span><span class="cx">     &lt;strong&gt;[% field_descs.$field FILTER html %]&lt;/strong&gt; field 
</span><del>-    [% IF oldvalue.defined %]
</del><ins>+    [% IF oldvalue.defined AND oldvalue != &quot;&quot; %]
</ins><span class="cx">       from &lt;em&gt;[% oldvalue.join(', ') FILTER html %]&lt;/em&gt;
</span><span class="cx">     [% END %]
</span><del>-    [% IF newvalue.defined %]
</del><ins>+    [% IF newvalue.defined AND newvalue != &quot;&quot; %]
</ins><span class="cx">       to &lt;em&gt;[% newvalue.join(', ') FILTER html %]&lt;/em&gt;
</span><del>-    [% END %]
-    , but only
</del><ins>+    [% END %],
+    but only
</ins><span class="cx">     [% IF privs &lt; constants.PRIVILEGES_REQUIRED_EMPOWERED %]
</span><span class="cx">       the assignee
</span><span class="cx">       [% IF privs &lt; constants.PRIVILEGES_REQUIRED_ASSIGNEE %] or reporter [% END %]
</span><span class="lines">@@ -837,9 +920,9 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;illegal_date&quot; %]
</span><span class="cx">     [% title = &quot;Illegal Date&quot; %]
</span><del>-    '&lt;tt&gt;[% date FILTER html %]&lt;/tt&gt;' is not a legal date.
</del><ins>+    '&lt;kbd&gt;[% date FILTER html %]&lt;/kbd&gt;' is not a legal date.
</ins><span class="cx">     [% IF format %]
</span><del>-      Please use the format '&lt;tt&gt;[% format FILTER html %]&lt;/tt&gt;'.
</del><ins>+      Please use the format '&lt;code&gt;[% format FILTER html %]&lt;/code&gt;'.
</ins><span class="cx">     [% END %]
</span><span class="cx">     
</span><span class="cx">   [% ELSIF error == &quot;illegal_email_address&quot; %]
</span><span class="lines">@@ -861,10 +944,17 @@
</span><span class="cx">     
</span><span class="cx">   [% ELSIF error == &quot;illegal_group_control_combination&quot; %]
</span><span class="cx">     [% title = &quot;Your Group Control Combination Is Illegal&quot; %]
</span><del>-    [% admindocslinks = {'groups.html' =&gt; 'Assigning Group Controls to Products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#assigning-group-controls-to-products' =&gt; 'Assigning Group Controls to Products'} %]
</ins><span class="cx">     Your group control combination for group &amp;quot;
</span><span class="cx">     [% groupname FILTER html %]&amp;quot; is illegal.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;illegal_pronoun&quot; %]
+    [% title = &quot;Illegal Pronoun&quot; %]
+    The pronoun you used ([% pronoun FILTER html %]) is illegal. You must use
+    one of the approved pronouns. Please see
+    &lt;a href=&quot;[% docs_urlbase FILTER html %]query.html#pronouns&quot;&gt;Pronoun Substitution&lt;/a&gt;
+    for a complete list.
+
</ins><span class="cx">   [% ELSIF error == &quot;illegal_query_name&quot; %]
</span><span class="cx">     [% title = &quot;Illegal Search Name&quot; %]
</span><span class="cx">     The name of your search cannot contain any of the following characters: 
</span><span class="lines">@@ -871,21 +961,21 @@
</span><span class="cx">     &amp;lt;, &amp;gt;, &amp;amp;.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;illegal_series_creation&quot; %]
</span><del>-    [% admindocslinks = {'groups.html' =&gt; 'Group security'} %]
-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#assigning-group-controls-to-products' =&gt; 'Group security'} %]
+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You are not authorized to create series.
</span><span class="cx">         
</span><span class="cx">   [% ELSIF error == &quot;illegal_series_edit&quot; %]
</span><del>-    [% admindocslinks = {'groups.html' =&gt; 'Group security'} %]
-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#assigning-group-controls-to-products' =&gt; 'Group security'} %]
+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You are not authorized to edit this series. To do this, you must either
</span><span class="cx">     be its creator, or an administrator.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;illegal_time&quot; %]
</span><span class="cx">     [% title = &quot;Illegal Time&quot; %]
</span><del>-    '&lt;tt&gt;[% time FILTER html %]&lt;/tt&gt;' is not a legal time.
</del><ins>+    '&lt;kbd&gt;[% time FILTER html %]&lt;/kbd&gt;' is not a legal time.
</ins><span class="cx">     [% IF format %]
</span><del>-      Please use the format '&lt;tt&gt;[% format FILTER html %]&lt;/tt&gt;'.
</del><ins>+      Please use the format '&lt;code&gt;[% format FILTER html %]&lt;/code&gt;'.
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;illegal_regexp&quot; %]
</span><span class="lines">@@ -894,7 +984,7 @@
</span><span class="cx">     The error was: [% dberror FILTER html %].
</span><span class="cx">         
</span><span class="cx">   [% ELSIF error == &quot;insufficient_data_points&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     We don't have enough data points to make a graph (yet).
</span><span class="cx">         
</span><span class="cx">   [% ELSIF error == &quot;invalid_attach_id&quot; %]
</span><span class="lines">@@ -911,9 +1001,7 @@
</span><span class="cx">     [% END %]
</span><span class="cx">     [% IF bug_id %]
</span><span class="cx">       '[% bug_id FILTER html %]' is not a valid [% terms.bug %] number
</span><del>-      [% IF Param(&quot;usebugaliases&quot;) %]
-        nor an alias to [% terms.abug %]
-      [% END %].
</del><ins>+      nor an alias to [% terms.abug %].
</ins><span class="cx">     [% ELSE %]
</span><span class="cx">       [% IF field %]
</span><span class="cx">         The '[% field_descs.$field FILTER html %]' field
</span><span class="lines">@@ -934,16 +1022,15 @@
</span><span class="cx">     is one of &lt;em&gt;[% constants.LEGAL_CONTENT_TYPES.join(', ') FILTER html %]&lt;/em&gt;
</span><span class="cx">     and &lt;em&gt;bar&lt;/em&gt; must not contain any special characters (such as &quot;=&quot;, &quot;?&quot;, ...).
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_context&quot; %]
-    [% title = &quot;Invalid Context&quot; %]
-    The context [% context FILTER html %] is invalid (must be a number,
-    &quot;file&quot; or &quot;patch&quot;).
-
</del><span class="cx">   [% ELSIF error == &quot;invalid_datasets&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Datasets&quot; %]
</span><span class="cx">     Invalid datasets &lt;em&gt;[% datasets.join(&quot;:&quot;) FILTER html %]&lt;/em&gt;. Only digits,
</span><span class="cx">     letters and colons are allowed.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;invalid_dimensions&quot; %]
+    [% title = &quot;Invalid Dimensions&quot; %]
+    The width or height specified is not a positive integer.
+
</ins><span class="cx">   [% ELSIF error == &quot;invalid_format&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Format&quot; %]
</span><span class="cx">     The format &quot;[% format FILTER html %]&quot; is invalid (must be one of
</span><span class="lines">@@ -960,6 +1047,9 @@
</span><span class="cx">     [% title = &quot;Invalid group name&quot; %]
</span><span class="cx">     The group you specified, [% name FILTER html %], is not valid here.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;invalid_keyword_id&quot; %]
+    The keyword ID &lt;em&gt;[% id FILTER html %]&lt;/em&gt; couldn't be found.
+
</ins><span class="cx">   [% ELSIF error == &quot;invalid_maxrows&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Max Rows&quot; %]
</span><span class="cx">     The maximum number of rows, '[% maxrows FILTER html %]', must be
</span><span class="lines">@@ -969,14 +1059,21 @@
</span><span class="cx">     [% title = &quot;Invalid Parameter&quot; %]
</span><span class="cx">     The new value for [% name FILTER html %] is invalid: [% err FILTER html %].
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_product_name&quot; %]
-    [% title = &quot;Invalid Product Name&quot; %]
-    The product name '[% product FILTER html %]' is invalid or does not exist.
-
</del><span class="cx">   [% ELSIF error == &quot;invalid_regexp&quot; %]
</span><span class="cx">     [% title = &quot;Invalid regular expression&quot; %]
</span><span class="cx">     The regular expression you entered is invalid.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;invalid_user&quot; %]
+    [% title = &quot;Invalid User&quot; %]
+    There is no user account
+    [% IF user_id %]
+      with ID &lt;em&gt;[% user_id FILTER html %]&lt;/em&gt;.
+    [% ELSIF user_login %]
+      with login name &lt;em&gt;[% user_login FILTER html %]&lt;/em&gt;.
+    [% ELSE %]
+      given.
+    [% END %]
+
</ins><span class="cx">   [% ELSIF error == &quot;invalid_user_group&quot; %]
</span><span class="cx">     [% title = &quot;Invalid User Group&quot; %]
</span><span class="cx">     [% IF users.size &gt; 1 %] Users [% ELSE %] User [% END %]
</span><span class="lines">@@ -997,13 +1094,13 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;invalid_username&quot; %]
</span><span class="cx">     [% title = &quot;Invalid Username&quot; %]
</span><del>-    The name &lt;tt&gt;[% name FILTER html %]&lt;/tt&gt; is not a valid username.  
</del><ins>+    The name &lt;kbd&gt;[% name FILTER html %]&lt;/kbd&gt; is not a valid username.
</ins><span class="cx">     Either you misspelled it, or the person has not
</span><span class="cx">     registered for a [% terms.Bugzilla %] account.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;invalid_username_or_password&quot; %]
-    [% title = &quot;Invalid Username Or Password&quot; %]
-    The username or password you entered is not valid.
</del><ins>+  [% ELSIF error == &quot;invalid_login_or_password&quot; %]
+    [% title = &quot;Invalid Login Or Password&quot; %]
+    The login or password you entered is not valid.
</ins><span class="cx">     [%# People get two login attempts before being warned about
</span><span class="cx">       # being locked out.
</span><span class="cx">       #%]
</span><span class="lines">@@ -1012,8 +1109,15 @@
</span><span class="cx">       [%+ remaining FILTER html %] more attempt(s), you will be
</span><span class="cx">       locked out of this account for 
</span><span class="cx">       [%+ constants.LOGIN_LOCKOUT_INTERVAL FILTER html %] minutes.
</span><ins>+      To avoid being locked out, you can reset your password using
+      the &quot;Forgot Password&quot; link.
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;invalid_cookies_or_token&quot; %]
+    [% title = &quot;Invalid Cookies or Token&quot; %]
+    The cookies or token provide were not valid or have expired.
+    You may login again to get new cookies or a new token.
+
</ins><span class="cx">   [% ELSIF error == &quot;json_rpc_get_method_required&quot; %]
</span><span class="cx">     When using JSON-RPC over GET, you must specify a 'method'
</span><span class="cx">     parameter. See the documentation at
</span><span class="lines">@@ -1038,6 +1142,13 @@
</span><span class="cx">     For security reasons, you must use HTTP POST to call the
</span><span class="cx">     '[% method FILTER html %]' method.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;rest_invalid_resource&quot; %]
+    A REST API resource was not found for '[% method FILTER html +%] [%+ path FILTER html %]'.
+
+  [% ELSIF error == &quot;get_products_invalid_type&quot; %]
+    The product type '[% type FILTER html %]' is invalid. Valid choices
+    are 'accessible', 'selectable', and 'enterable'.
+
</ins><span class="cx">   [% ELSIF error == &quot;keyword_already_exists&quot; %]
</span><span class="cx">     [% title = &quot;Keyword Already Exists&quot; %]
</span><span class="cx">     A keyword with the name [% name FILTER html %] already exists.
</span><span class="lines">@@ -1073,13 +1184,13 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;migrate_from_invalid&quot; %]
</span><span class="cx">     '[% from FILTER html %]' is not a valid type of [% terms.bug %]-tracker
</span><del>-    to migrate from. See the contents of the &lt;kbd&gt;B[% %]ugzilla/Migrate/&lt;/kbd&gt;
</del><ins>+    to migrate from. See the contents of the &lt;kbd&gt;Bugzilla/Migrate/&lt;/kbd&gt;
</ins><span class="cx">     directory for a list of valid [% terms.bug %]-trackers.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;milestone_already_exists&quot; %]
</span><span class="cx">     [% title = &quot;Milestone Already Exists&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products',
-                         'milestones.html' =&gt; 'About Milestones'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products'   =&gt; 'Administering products',
+                         'categorization.html#milestones' =&gt; 'About Milestones'} %]
</ins><span class="cx">     The milestone '[% name FILTER html %]' already exists for product '
</span><span class="cx">     [%- product FILTER html %]'.
</span><span class="cx"> 
</span><span class="lines">@@ -1089,8 +1200,8 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;milestone_is_default&quot; %]
</span><span class="cx">     [% title = &quot;Default milestone not deletable&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products',
-                         'milestones.html' =&gt; 'About Milestones'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products'   =&gt; 'Administering products',
+                         'categorization.html#milestones' =&gt; 'About Milestones'} %]
</ins><span class="cx">     Sorry, but [% milestone.name FILTER html %] is the default milestone
</span><span class="cx">     for the '[% milestone.product.name FILTER html %]' product, and so
</span><span class="cx">     it cannot be deleted.
</span><span class="lines">@@ -1117,11 +1228,20 @@
</span><span class="cx">     [% title = &quot;Misarranged Dates&quot; %]
</span><span class="cx">     Your start date ([% datefrom FILTER html %]) is after 
</span><span class="cx">     your end date ([% dateto FILTER html %]).
</span><del>-    
</del><ins>+
+  [% ELSIF error == &quot;mismatched_bug_ids_on_obsolete&quot; %]
+    Attachment [% attach_id FILTER html %] is attached to another [% terms.bug %],
+    but you tried to flag it as obsolete while creating a new attachment to
+    [%+ terms.bug %] [%+ my_bug_id FILTER html %].
+
</ins><span class="cx">   [% ELSIF error == &quot;missing_attachment_description&quot; %]
</span><span class="cx">     [% title = &quot;Missing Attachment Description&quot; %]
</span><span class="cx">     You must enter a description for the attachment.
</span><del>-    
</del><ins>+
+  [% ELSIF error == &quot;missing_bug_id&quot; %]
+    [% title = &quot;Missing $terms.Bug ID&quot; %]
+    No [% terms.bug %] ID was given.
+
</ins><span class="cx">   [% ELSIF error == &quot;missing_category&quot; %]
</span><span class="cx">     [% title = &quot;Missing Category&quot; %]
</span><span class="cx">     You did not specify a category for this series.
</span><span class="lines">@@ -1128,8 +1248,8 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;missing_component&quot; %]
</span><span class="cx">     [% title = &quot;Missing Component&quot; %]
</span><del>-    [% admindocslinks = {'products.html'   =&gt; 'Administering products',
-                         'components.html' =&gt; 'Creating a component'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products'   =&gt; 'Administering products',
+                         'categorization.html#milestones' =&gt; 'Creating a component'} %]
</ins><span class="cx">     Sorry, the product &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt;
</span><span class="cx">     has to have at least one active component in order for you to
</span><span class="cx">     enter [% terms.abug %] into it.&lt;br&gt;
</span><span class="lines">@@ -1146,38 +1266,32 @@
</span><span class="cx">      You asked [% terms.Bugzilla %] to auto-detect the content type, but
</span><span class="cx">      your browser did not specify a content type when uploading the file, 
</span><span class="cx">      so you must enter a content type manually.
</span><del>-                
-  [% ELSIF error == &quot;missing_content_type_method&quot; %]
-    [% title = &quot;Missing Content-Type Determination Method&quot; %]
-    You must choose a method for determining the content type,
-    either &lt;em&gt;auto-detect&lt;/em&gt;, &lt;em&gt;select from list&lt;/em&gt;, or &lt;em&gt;enter 
-    manually&lt;/em&gt;.
-        
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;missing_cookie&quot; %]
</span><span class="cx">     [% title = &quot;Missing Cookie&quot; %]
</span><span class="cx">     Sorry, I seem to have lost the cookie that recorded
</span><span class="cx">     the results of your last search. I'm afraid you will have to start
</span><span class="cx">     again from the &lt;a href=&quot;query.cgi&quot;&gt;search page&lt;/a&gt;.
</span><del>-          
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;missing_datasets&quot; %]
</span><span class="cx">     [% title = &quot;No Datasets Selected&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You must specify one or more datasets to plot.
</span><del>-    
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;missing_frequency&quot; %]
</span><span class="cx">     [% title = &quot;Missing Frequency&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You did not specify a valid frequency for this series.
</span><del>-                
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;missing_name&quot; %]
</span><span class="cx">     [% title = &quot;Missing Name&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You did not specify a name for this series.
</span><del>-                
</del><ins>+
</ins><span class="cx">   [% ELSIF error == &quot;missing_query&quot; %]
</span><span class="cx">     [% title = &quot;Missing Search&quot; %]
</span><del>-    [% docslinks = {'query.html' =&gt; &quot;Searching for $terms.bugs&quot;,
-                    'query.html#list' =&gt; &quot;$terms.Bug lists&quot;} %]
</del><ins>+    [% docslinks = {'using/finding.html' =&gt; &quot;Searching for $terms.bugs&quot;,
+                    'using/finding.html#bug-lists' =&gt; &quot;$terms.Bug lists&quot;} %]
</ins><span class="cx">     The search named &lt;em&gt;[% name FILTER html %]&lt;/em&gt;
</span><span class="cx">     [% IF sharer_id &amp;&amp; sharer_id != user.id %]
</span><span class="cx">       has not been made visible to you.
</span><span class="lines">@@ -1185,6 +1299,10 @@
</span><span class="cx">       does not exist.
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;need_quipid&quot; %]
+    [% title = &quot;Missing Quip ID&quot; %]
+    A valid quip ID is needed.
+
</ins><span class="cx">   [% ELSIF error == &quot;missing_resolution&quot; %]
</span><span class="cx">     [% title = &quot;Resolution Required&quot; %]
</span><span class="cx">     A valid resolution is required to mark [% terms.bugs %] as
</span><span class="lines">@@ -1196,7 +1314,7 @@
</span><span class="cx">                 
</span><span class="cx">   [% ELSIF error == &quot;missing_version&quot; %]
</span><span class="cx">     [% title = &quot;Missing Version&quot; %]
</span><del>-    [% admindocslinks = {'versions.html' =&gt; 'Defining versions'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#versions' =&gt; 'Defining versions'} %]
</ins><span class="cx">     Sorry, the product &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt;
</span><span class="cx">     has to have at least one active version in order for you to
</span><span class="cx">     enter [% terms.abug %] into it.&lt;br&gt;
</span><span class="lines">@@ -1214,7 +1332,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;need_quip&quot; %]
</span><span class="cx">     [% title = &quot;Quip Required&quot; %]
</span><del>-    [% docslinks = {'quips.html' =&gt; 'About quips'} %]
</del><ins>+    [% docslinks = {'administering/quips.html' =&gt; 'About quips'} %]
</ins><span class="cx">     Please enter a quip in the text field.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;new_password_missing&quot; %]
</span><span class="lines">@@ -1223,7 +1341,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;no_axes_defined&quot; %]
</span><span class="cx">     [% title = &quot;No Axes Defined&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">     You didn't define any axes to plot.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;no_bugs_chosen&quot; %]
</span><span class="lines">@@ -1233,6 +1351,8 @@
</span><span class="cx">       to modify.
</span><span class="cx">     [% ELSIF action == &quot;view&quot; %]
</span><span class="cx">       to view.
</span><ins>+    [% ELSIF action == 'summarize' %]
+      for viewing time summaries.
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;no_tag_to_edit&quot; %]
</span><span class="lines">@@ -1243,6 +1363,11 @@
</span><span class="cx">     [% title = &quot;No Initial $terms.Bug Status&quot; %]
</span><span class="cx">     No [% terms.bug %] status is available on [% terms.bug %] creation.
</span><span class="cx">     Please report the problem to [% Param(&quot;maintainer&quot;) %].
</span><ins>+    
+  [% ELSIF error == &quot;no_keywords&quot; %]
+    [% title = &quot;No Keywords&quot; %]
+    [% admindocslinks = {'keywords.html' =&gt; 'Setting up a keyword'} %]
+    No keywords have been defined for this installation.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;no_new_quips&quot; %]
</span><span class="cx">     [% title = &quot;No New Quips&quot; %]
</span><span class="lines">@@ -1255,12 +1380,20 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;no_products&quot; %]
</span><span class="cx">     [% title = &quot;No Products&quot; %]
</span><del>-    [% admindocslinks = {'products.html'   =&gt; 'Setting up a product',
-                         'components.html' =&gt; 'Adding components to products',
-                         'groups.html'     =&gt; 'Groups security'} %]
</del><ins>+    [% admindocslinks = {
+      'categorization.html#creating-new-products'  =&gt; 'Setting up a product',
+      'categorization.html#components'             =&gt; 'Adding components to products',
+      'categorization.html#product-group-controls' =&gt; 'Groups security'
+    } %]
</ins><span class="cx">     Either no products have been defined to enter [% terms.bugs %] against or you have not
</span><span class="cx">     been given access to any.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;number_not_integer&quot; %]
+    [% title = &quot;Integer Value Required&quot; %]
+    The value '[% num FILTER html %]' in the
+    &lt;em&gt;[% field_descs.$field FILTER html %]&lt;/em&gt; field
+    is not an integer value (i.e. a whole number).
+
</ins><span class="cx">   [% ELSIF error == &quot;number_not_numeric&quot; %]
</span><span class="cx">     [% title = &quot;Numeric Value Required&quot; %]
</span><span class="cx">     The value '[% num FILTER html %]' in the 
</span><span class="lines">@@ -1301,13 +1434,12 @@
</span><span class="cx">       Either you mis-typed the name or that user has not yet registered
</span><span class="cx">       for a [% terms.Bugzilla %] account.
</span><span class="cx">     [% ELSIF class == &quot;Bugzilla::Keyword&quot; %]
</span><del>-      The legal keyword names are &lt;a href=&quot;describekeywords.cgi&quot;&gt;listed
-      here&lt;/a&gt;.
</del><ins>+      See the list of available &lt;a href=&quot;describekeywords.cgi&quot;&gt;keywords&lt;/a&gt;.
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;old_password_incorrect&quot; %]
</span><del>-    [% title = &quot;Incorrect Old Password&quot; %]
-    You did not enter your old password correctly.
</del><ins>+    [% title = &quot;Incorrect Password&quot; %]
+    You did not enter your current password correctly.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;old_password_required&quot; %]
</span><span class="cx">     [% title = &quot;Old Password Required&quot; %]
</span><span class="lines">@@ -1321,18 +1453,14 @@
</span><span class="cx">     [% title = &quot;Passwords Don't Match&quot; %]
</span><span class="cx">     The two passwords you entered did not match.
</span><span class="cx"> 
</span><del>-  [% ELSIF error == &quot;password_current_too_short&quot; %]
-    [% title = &quot;New Password Required&quot; %]
-    Your password is currently less than
-    [%+ constants.USER_PASSWORD_MIN_LENGTH FILTER html %] characters long,
-    which is the new minimum length required for passwords.
-    You must &lt;a href=&quot;token.cgi?a=reqpw&amp;amp;loginname=[% locked_user.email FILTER uri %]&quot;&gt;
-    request a new password&lt;/a&gt; in order to log in again.
-
</del><span class="cx">   [% ELSIF error == &quot;password_too_short&quot; %]
</span><span class="cx">     [% title = &quot;Password Too Short&quot; %]
</span><span class="cx">     The password must be at least
</span><span class="cx">     [%+ constants.USER_PASSWORD_MIN_LENGTH FILTER html %] characters long.
</span><ins>+    [% IF locked_user %]
+      You must &lt;a href=&quot;token.cgi?a=reqpw&amp;amp;loginname=[% locked_user.email FILTER uri %]&amp;amp;token=[% issue_hash_token(['reqpw']) FILTER uri %]&quot;&gt;
+      request a new password&lt;/a&gt; in order to log in again.
+    [% END %]
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;password_not_complex&quot; %]
</span><span class="cx">     [% title = &quot;Password Fails Requirements&quot; %]
</span><span class="lines">@@ -1350,6 +1478,10 @@
</span><span class="cx">         &lt;li&gt;digit&lt;/li&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/ul&gt;
</span><ins>+    [% IF locked_user %]
+      You must &lt;a href=&quot;token.cgi?a=reqpw&amp;amp;loginname=[% locked_user.email FILTER uri %]&amp;amp;token=[% issue_hash_token(['reqpw']) FILTER uri %]&quot;&gt;
+      request a new password&lt;/a&gt; in order to log in again.
+    [% END %]
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_access_denied&quot; %]
</span><span class="cx">     [% title = &quot;Product Access Denied&quot; %]
</span><span class="lines">@@ -1368,12 +1500,12 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_name_already_in_use&quot; %]
</span><span class="cx">     [% title = &quot;Product name already exists&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     The product name '[% product FILTER html %]' already exists.
</span><span class="cx">   
</span><span class="cx">   [% ELSIF error == &quot;product_name_diff_in_case&quot; %]
</span><span class="cx">     [% title = &quot;Product name differs only in case&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     The product name '[% product FILTER html %]' differs from existing 
</span><span class="cx">     product '[% existing_product FILTER html %]' only in case.
</span><span class="cx"> 
</span><span class="lines">@@ -1384,8 +1516,8 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_must_define_defaultmilestone&quot; %]
</span><span class="cx">     [% title = &quot;Must define new default milestone&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products',
-                         'milestones.html' =&gt; 'About Milestones'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products'   =&gt; 'Administering products',
+                         'categorization.html#milestones' =&gt; 'About Milestones'} %]
</ins><span class="cx">     You must &lt;a href=&quot;editmilestones.cgi?action=add&amp;amp;product=[% product FILTER uri %]&quot;&gt;
</span><span class="cx">     create the milestone '[% milestone FILTER html %]'&lt;/a&gt; before
</span><span class="cx">     it can be made the default milestone for product '[% product FILTER html %]'.
</span><span class="lines">@@ -1396,25 +1528,25 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_blank_name&quot; %]
</span><span class="cx">     [% title = &quot;Blank Product Name Not Allowed&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     You must enter a name for the product.
</span><span class="cx">   
</span><span class="cx">   [% ELSIF error == &quot;product_disabled&quot; %]
</span><span class="cx">     [% title = BLOCK %]Product closed for [% terms.Bug %] Entry[% END %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     Sorry, entering [% terms.abug %] into the
</span><span class="cx">     product &lt;em&gt;[% product.name FILTER html %]&lt;/em&gt; has been disabled.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_edit_denied&quot; %]
</span><span class="cx">     [% title = &quot;Product Edit Access Denied&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products',
-                         'groups.html'   =&gt; 'Group security'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products',
+                         'categorization.html#assigning-group-controls-to-products' =&gt; 'Group security'} %]
</ins><span class="cx">     You are not permitted to edit [% terms.bugs %] in product 
</span><span class="cx">     [%+ product FILTER html %].
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_has_bugs&quot; %]
</span><span class="cx">     [% title = BLOCK %]Product has [% terms.Bugs %][% END %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     There are [% nb FILTER html %] [%+ terms.bugs %] entered for this product!
</span><span class="cx">     You must move those [% terms.bugs %] to another product before you
</span><span class="cx">     can delete this one.
</span><span class="lines">@@ -1421,13 +1553,13 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_must_have_description&quot; %]
</span><span class="cx">     [% title = &quot;Product needs Description&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products'} %]
</ins><span class="cx">     You must enter a description for this product.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_must_have_version&quot; %]
</span><span class="cx">     [% title = &quot;Product needs Version&quot; %]
</span><del>-    [% admindocslinks = {'products.html' =&gt; 'Administering products',
-                         'versions.html' =&gt; 'Administering versions'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#products' =&gt; 'Administering products',
+                         'categorization.html#versions' =&gt; 'Administering versions'} %]
</ins><span class="cx">     You must enter a valid version to create a new product.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;product_unknown_component&quot; %]
</span><span class="lines">@@ -1441,7 +1573,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;query_name_missing&quot; %]
</span><span class="cx">     [% title = &quot;No Search Name Specified&quot; %]
</span><del>-    [% docslinks = {'query.html#list' =&gt; &quot;$terms.Bug lists&quot;} %]
</del><ins>+    [% docslinks = {'using/finding.html#bug-lists' =&gt; &quot;$terms.Bug lists&quot;} %]
</ins><span class="cx">     You must enter a name for your search.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;query_name_too_long&quot; %]
</span><span class="lines">@@ -1463,7 +1595,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;quicksearch_unbalanced_quotes&quot; %]
</span><span class="cx">     [% title = &quot;Badly Formatted Query&quot; %]
</span><del>-    [% terms.Bugzilla %] is unable to parse your query correctly:
</del><ins>+    Bugzilla is unable to parse your query correctly:
</ins><span class="cx">     &lt;em&gt;[% string FILTER html %]&lt;/em&gt;.&lt;br&gt;
</span><span class="cx">     If you use quotes to enclose strings, make sure both quotes are present.
</span><span class="cx">     If you really want to look for a quote in a string, type \&quot; instead of &quot;.
</span><span class="lines">@@ -1486,11 +1618,33 @@
</span><span class="cx">         &lt;a href=&quot;page.cgi?id=quicksearch.html#fields&quot;&gt;listed here&lt;/a&gt;.&lt;/p&gt;
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;quip_too_long&quot; %]
+    [% title = &quot;Quip Too Long&quot; %]
+    You entered a quip with a length of [% length FILTER none %] characters, 
+    but the maximum allowed length is [% constants.MAX_QUIP_LENGTH FILTER none %] 
+    characters.
+
</ins><span class="cx">   [% ELSIF error == &quot;reassign_to_empty&quot; %]
</span><span class="cx">     [% title = &quot;Illegal Reassignment&quot; %]
</span><span class="cx">     To reassign [% terms.abug %], you must provide an address for
</span><span class="cx">     the new assignee.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;report_axis_invalid&quot; %]
+    [% title = &quot;Invalid Axis&quot; %]
+    &lt;em&gt;[% val FILTER html %]&lt;/em&gt; is not a valid value for
+    [%+ IF    fld == &quot;x&quot; %]the horizontal axis
+    [%+ ELSIF fld == &quot;y&quot; %]the vertical axis
+    [%+ ELSIF fld == &quot;z&quot; %]the multiple tables/images
+    [%+ ELSE %]a report axis[% END %] field.
+
+  [% ELSIF error == &quot;report_name_missing&quot; %]
+    [% title = &quot;No Report Name Specified&quot; %]
+    You must enter a name for your report.
+
+  [% ELSIF error == &quot;report_access_denied&quot; %]
+    [% title = &quot;Report Access Denied&quot; %]
+    You cannot access this report.
+
</ins><span class="cx">   [% ELSIF error == &quot;require_component&quot; %]
</span><span class="cx">     [% title = &quot;Component Needed&quot; %]
</span><span class="cx">     To file this [% terms.bug %], you must first choose a component.
</span><span class="lines">@@ -1528,7 +1682,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;saved_search_used_by_whines&quot; %]
</span><span class="cx">     [% title = &quot;Saved Search In Use&quot; %]
</span><del>-    [% docslinks = {'whining.html' =&gt; 'About Whining'} %]
</del><ins>+    [% docslinks = {'administering/whining.html' =&gt; 'About Whining'} %]
</ins><span class="cx">     The saved search &lt;em&gt;[% search_name FILTER html %]&lt;/em&gt; is being used 
</span><span class="cx">     by &lt;a href=&quot;editwhines.cgi&quot;&gt;Whining events&lt;/a&gt; with the following subjects:
</span><span class="cx">     [%+ subjects FILTER html %]
</span><span class="lines">@@ -1539,8 +1693,19 @@
</span><span class="cx">     and the &quot;matches&quot; search can only be used with the &quot;content&quot;
</span><span class="cx">     field.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;search_grouped_field_invalid&quot; %]
+    Bugzilla does not support using the
+    &quot;[%+ field_descs.$field FILTER html %]&quot; ([% field FILTER html %])
+    field with grouped search conditions.
+
+  [% ELSIF error == &quot;search_grouped_invalid_nesting&quot; %]
+    You cannot nest clauses within grouped search conditions.
+
+  [% ELSIF error == &quot;search_grouped_field_mismatch&quot; %]
+    All conditions under a groups search must use the same field.
+
</ins><span class="cx">   [% ELSIF error == &quot;search_field_operator_invalid&quot; %]
</span><del>-    [% terms.Bugzilla %] does not support using the 
</del><ins>+    Bugzilla does not support using the
</ins><span class="cx">     &quot;[%+ field_descs.$field FILTER html %]&quot; ([% field FILTER html %])
</span><span class="cx">     field with the &quot;[% search_descs.$operator FILTER html %]&quot; 
</span><span class="cx">     ([% operator FILTER html %]) search type.
</span><span class="lines">@@ -1551,7 +1716,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;series_already_exists&quot; %]
</span><span class="cx">     [% title = &quot;Series Already Exists&quot; %]
</span><del>-    [% docslinks = {'reporting.html' =&gt; 'Reporting'} %]
</del><ins>+    [% docslinks = {'using/reports-and-charts.html' =&gt; 'Reporting'} %]
</ins><span class="cx">       A series named &lt;em&gt;[% series.category FILTER html %] /
</span><span class="cx">       [%+ series.subcategory FILTER html %] / 
</span><span class="cx">       [%+ series.name FILTER html %]&lt;/em&gt;
</span><span class="lines">@@ -1559,7 +1724,11 @@
</span><span class="cx">     
</span><span class="cx">   [% ELSIF error == &quot;still_unresolved_bugs&quot; %]
</span><span class="cx">     [% title = &quot;Unresolved Dependencies&quot; %]
</span><del>-    [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
</del><ins>+    [% IF bug_id %]
+      [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
+    [% ELSE %]
+       This [% terms.bug %]
+    [% END %]
</ins><span class="cx">     has [% dep_count FILTER none %] unresolved
</span><span class="cx">     [% IF dep_count == 1 %]
</span><span class="cx">       dependency
</span><span class="lines">@@ -1611,7 +1780,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;tag_name_too_long&quot; %]
</span><span class="cx">     [% title = &quot;Tag Name Too Long&quot; %]
</span><del>-    The tag name must be less than [% constants.MAX_LEN_QUERY_NAME FILTER html %]
</del><ins>+    The tag must be less than [% constants.MAX_LEN_QUERY_NAME FILTER html %]
</ins><span class="cx">     characters long.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;token_does_not_exist&quot; %]
</span><span class="lines">@@ -1627,18 +1796,21 @@
</span><span class="cx">     [% ELSIF type == &quot;account&quot; %]
</span><span class="cx">       an account
</span><span class="cx">     [% END %]
</span><del>-    token too recently to request another. Please wait a while and try again.
</del><ins>+    token too recently to request another. 
+    Please wait [% constants.ACCOUNT_CHANGE_INTERVAL FILTER html %] minutes
+    then try again.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;unknown_action&quot; %]
</span><ins>+    [% title = &quot;Unknown Action&quot; %]
</ins><span class="cx">     [% IF action %]
</span><del>-       Unknown action [% action FILTER html %]!
</del><ins>+      Unknown action &quot;[% action.truncate(20, &quot;...&quot;) FILTER html %]&quot;!
</ins><span class="cx">     [% ELSE %]
</span><del>-       I could not figure out what you wanted to do.
</del><ins>+      I could not figure out what you wanted to do.
</ins><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;unknown_tab&quot; %]
</span><span class="cx">     [% title = &quot;Unknown Tab&quot; %]
</span><del>-    &lt;code&gt;[% current_tab_name FILTER html %]&lt;/code&gt; is not a legal tab name.
</del><ins>+    There is no tab named &lt;code&gt;[% current_tab_name FILTER html %]&lt;/code&gt;.
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;value_inactive&quot; %]
</span><span class="cx">     [% title = &quot;Value is Not Active&quot; %]
</span><span class="lines">@@ -1647,7 +1819,7 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;version_already_exists&quot; %]
</span><span class="cx">     [% title = &quot;Version Already Exists&quot; %]
</span><del>-    [% admindocslinks = {'versions.html' =&gt; 'Administering versions'} %]
</del><ins>+    [% admindocslinks = {'categorization.html#versions' =&gt; 'Administering versions'} %]
</ins><span class="cx">     The version '[% name FILTER html %]' already exists for product '
</span><span class="cx">     [%- product FILTER html %]'.
</span><span class="cx"> 
</span><span class="lines">@@ -1661,14 +1833,19 @@
</span><span class="cx">     version! You must reassign those [% terms.bugs %] to another version
</span><span class="cx">     before you can delete this one.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;version_is_last&quot; %]
+    [% title = BLOCK %]Last Version in this Product[% END %]
+    '[% version.name FILTER html %]' is the last version of the
+    '[% version.product.name FILTER html %]' product. You cannot delete it.
+
</ins><span class="cx">   [% ELSIF error == &quot;users_deletion_disabled&quot; %]
</span><span class="cx">     [% title = &quot;Deletion not activated&quot; %]
</span><del>-    [% admindocslinks = {'useradmin.html' =&gt; 'User administration'} %]
</del><ins>+    [% admindocslinks = {'users.html#deleting-users' =&gt; 'User administration'} %]
</ins><span class="cx">     Sorry, the deletion of user accounts is not allowed.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;user_has_responsibility&quot; %]
</span><span class="cx">     [% title = &quot;Can't Delete User Account&quot; %]
</span><del>-    [% admindocslinks = {'useradmin.html' =&gt; 'User administration'} %]
</del><ins>+    [% admindocslinks = {'users.html#deleting-users' =&gt; 'User administration'} %]
</ins><span class="cx">     The user you want to delete is set up as the default [% terms.bug %]
</span><span class="cx">     assignee
</span><span class="cx">     [% IF Param('useqacontact') %]
</span><span class="lines">@@ -1689,17 +1866,17 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;user_login_required&quot; %]
</span><span class="cx">     [% title = &quot;Login Name Required&quot; %]
</span><del>-    [% admindocslinks = {'useradmin.html' =&gt; 'User administration'} %]
</del><ins>+    [% admindocslinks = {'users.html' =&gt; 'User administration'} %]
</ins><span class="cx">     You must enter a login name for the new user.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;user_match_failed&quot; %]
</span><span class="cx">     [% title = &quot;Match Failed&quot; %]
</span><del>-    &lt;tt&gt;[% name FILTER html %]&lt;/tt&gt; does not exist or you are not allowed 
</del><ins>+    &lt;kbd&gt;[% name FILTER html %]&lt;/kbd&gt; does not exist or you are not allowed
</ins><span class="cx">     to see that user.
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;user_match_too_many&quot; %]
</span><span class="cx">     [% title = &quot;No Conclusive Match&quot; %]
</span><del>-    [% terms.Bugzilla %] cannot make a conclusive match for one or more
</del><ins>+    Bugzilla cannot make a conclusive match for one or more
</ins><span class="cx">     of the names and/or email addresses you entered for
</span><span class="cx">     the [% fields.join(', ') FILTER html %] field(s).
</span><span class="cx"> 
</span><span class="lines">@@ -1708,6 +1885,16 @@
</span><span class="cx">     Sorry, but you are not allowed to (un)mark comments or attachments
</span><span class="cx">     as private.
</span><span class="cx"> 
</span><ins>+  [% ELSIF error == &quot;user_not_involved&quot; %]
+    [% title = &quot;User Not Involved with $terms.Bug&quot; %]
+    Sorry, but you are not involved with [% terms.Bug %] [%+
+        bug_id FILTER bug_link(bug_id) FILTER none %].
+
+  [% ELSIF error == &quot;webdot_too_large&quot; %]
+    [% title = &quot;Dependency Graph Too Large&quot; %]
+    The dependency graph contains too many [% terms.bugs %] to display (more
+    than [% constants.MAX_WEBDOT_BUGS FILTER html %] [%+ terms.bugs %]).
+
</ins><span class="cx">   [% ELSIF error == &quot;wrong_token_for_cancelling_email_change&quot; %]
</span><span class="cx">     [% title = &quot;Wrong Token&quot; %]
</span><span class="cx">     That token cannot be used to cancel an email address change.
</span><span class="lines">@@ -1731,8 +1918,8 @@
</span><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;xmlrpc_illegal_content_type&quot; %]
</span><span class="cx">     When using XML-RPC, you cannot send data as
</span><del>-    [%+ content_type FILTER html %]. Only text/xml 
-    and application/xml are allowed.
</del><ins>+    [%+ content_type FILTER html %]. Allowed content types 
+    are [% constants.XMLRPC_CONTENT_TYPE_WHITELIST.join(', ') FILTER html %].
</ins><span class="cx"> 
</span><span class="cx">   [% ELSIF error == &quot;zero_length_file&quot; %]
</span><span class="cx">     [% title = &quot;File Is Empty&quot; %]
</span><span class="lines">@@ -1787,15 +1974,11 @@
</span><span class="cx">    admindocslinks = admindocslinks
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;table cellpadding=&quot;20&quot;&gt;
-  &lt;tr&gt;
-    &lt;td id=&quot;error_msg&quot; class=&quot;throw_error&quot;&gt;
-      [% error_message FILTER none %]
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+&lt;div id=&quot;error_msg&quot; class=&quot;throw_error&quot;&gt;
+  [% error_message FILTER none %]
+&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;
</del><ins>+&lt;p id=&quot;post_err_msg&quot;&gt;
</ins><span class="cx">   Please press &lt;b&gt;Back&lt;/b&gt; and try again.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaluserhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/user.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/user.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/user.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Daniel Brooks.
-  # Portions created by the Initial Developer are Copyright (C) 2007
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Daniel Brooks &lt;db48x@db48x.net&gt;
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobaluserselecthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/userselect.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/userselect.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/userselect.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Byron Jones &lt;bugzilla@glob.com.au&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  #                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -30,6 +20,7 @@
</span><span class="cx">   # multiple: optional, do multiselect box, value is size (height) of box
</span><span class="cx">   # custom_userlist: optional, specify a limited list of users to use
</span><span class="cx">   # field_title: optional, extra information to display as a tooltip
</span><ins>+  # mandatory: optional; if true, the field cannot be empty.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% IF Param(&quot;usemenuforusers&quot;) %]
</span><span class="lines">@@ -41,6 +32,7 @@
</span><span class="cx">   [% IF accesskey %] accesskey=&quot;[% accesskey FILTER html %]&quot; [% END %]
</span><span class="cx">   [% IF multiple %] multiple=&quot;multiple&quot; size=&quot;[% multiple FILTER html %]&quot; [% END %]
</span><span class="cx">   [% IF field_title %] title=&quot;[% field_title FILTER html %]&quot; [% END %]
</span><ins>+  [% IF mandatory %] required [% END %]
</ins><span class="cx"> &gt;
</span><span class="cx">   [% IF emptyok %]
</span><span class="cx">     &lt;option value=&quot;&quot;&gt;&lt;/option&gt;
</span><span class="lines">@@ -93,6 +85,7 @@
</span><span class="cx">     [% IF field_title %] title=&quot;[% field_title FILTER html %]&quot; [% END %]
</span><span class="cx">     [% IF size %] size=&quot;[% size FILTER html %]&quot; [% END %]
</span><span class="cx">     [% IF id %] id=&quot;[% id FILTER html %]&quot; [% END %]
</span><ins>+    [% IF mandatory %] required [% END %]
</ins><span class="cx">   &gt;
</span><span class="cx">   [% IF feature_enabled('jsonrpc') &amp;&amp; Param('ajax_user_autocompletion') &amp;&amp; id %]
</span><span class="cx">     &lt;div id=&quot;[% id FILTER html %]_autocomplete_container&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalvaluedescsjstmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.js.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.js.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.js.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2010
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;global/value-descs.none.tmpl&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalvaluedescsnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/value-descs.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is BugzillaSource, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2011 
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# You can use this hash to localize (translate) the values displayed
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultglobalvariablesnonetmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/global/variables.none.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/global/variables.none.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/global/variables.none.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# This is a list of terms that may be changed to &quot;brand&quot; the Bugzilla 
</span><span class="lines">@@ -36,9 +24,12 @@
</span><span class="cx">   &quot;ABug&quot; =&gt; &quot;A Bug&quot;,
</span><span class="cx">   &quot;bugs&quot; =&gt; &quot;bugs&quot;,
</span><span class="cx">   &quot;Bugs&quot; =&gt; &quot;Bugs&quot;,
</span><ins>+  &quot;comment&quot; =&gt; &quot;comment&quot;,
+  &quot;comments&quot; =&gt; &quot;comments&quot;,
</ins><span class="cx">   &quot;zeroSearchResults&quot; =&gt; &quot;Zarro Boogs found&quot;,
</span><span class="cx">   &quot;Bugzilla&quot; =&gt; &quot;Bugzilla&quot;
</span><span class="cx">   }
</span><span class="cx"> %]
</span><span class="cx"> 
</span><ins>+[% USE Hook %]
</ins><span class="cx"> [% Hook.process(&quot;end&quot;) %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultindexhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/index.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/index.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/index.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,9 @@
</span><del>-[%# -*- mode: html -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Jacob Steenhagen &lt;jake@bugzilla.org&gt;
-  #                 Vitaly Harisov  &lt;vitaly@rathedg.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,64 +10,22 @@
</span><span class="cx">   # release: a hash containing data about new releases, if any.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = &quot;$terms.Bugzilla Main Page&quot;
</span><span class="cx">    header = &quot;Main Page&quot; 
</span><span class="cx">    header_addl_info = &quot;version $constants.BUGZILLA_VERSION&quot;
</span><del>-   style_urls = [ 'skins/standard/index.css' ]
</del><span class="cx"> %]
</span><span class="cx"> 
</span><del>-
-&lt;script type=&quot;text/javascript&quot;&gt;
-&lt;!--
-function onLoadActions() {
-  quicksearchHelpText('quicksearch_main', 'show');
-  if( window.external.AddSearchProvider ){
-    YAHOO.util.Dom.removeClass('quicksearch_plugin', 'bz_default_hidden');
-  }
-  document.getElementById('quicksearch_top').focus();
-}
-var quicksearch_message = &quot;Enter [% terms.abug %] # or some search terms&quot;;
-
-function checkQuicksearch( form ) {
-  if (form.quicksearch.value == '' || form.quicksearch.value == quicksearch_message ) { 
-    alert('Please enter one or more search terms first.');
-    return false; 
-  }
-  return true;         
-}
-
-function quicksearchHelpText(el_id, action){
-  var el = document.getElementById(el_id);
-  if ( action == &quot;show&quot;) {
-    if( el.value == &quot;&quot; ) {
-      el.value = quicksearch_message
-      YAHOO.util.Dom.addClass(el, &quot;quicksearch_help_text&quot;);
-    }
-  } else {
-    if( el.value == quicksearch_message ) {
-      el.value = &quot;&quot;;
-      YAHOO.util.Dom.removeClass(el, &quot;quicksearch_help_text&quot;);
-    }
-  }
-}
-YAHOO.util.Event.onDOMReady(onLoadActions);
-//--&gt;
-&lt;/script&gt;
-
</del><span class="cx"> [% IF release %]
</span><span class="cx">   &lt;div id=&quot;new_release&quot;&gt;
</span><span class="cx">     [% IF release.data %]
</span><span class="cx">       [% IF release.deprecated %]
</span><del>-        &lt;p&gt;[% terms.Bugzilla %] [%+ release.deprecated FILTER html %] is no longer
</del><ins>+        &lt;p&gt;Bugzilla [%+ release.deprecated FILTER html %] is no longer
</ins><span class="cx">         supported. You are highly encouraged to upgrade in order to keep your
</span><span class="cx">         system secure.&lt;/p&gt;
</span><span class="cx">       [% END %]
</span><span class="cx"> 
</span><del>-      &lt;p&gt;A new [% terms.Bugzilla %] version ([% release.data.latest_ver FILTER html %])
</del><ins>+      &lt;p&gt;A new Bugzilla version ([% release.data.latest_ver FILTER html %])
</ins><span class="cx">       is available at
</span><span class="cx">       &lt;a href=&quot;[% release.data.url FILTER html %]&quot;&gt;[% release.data.url FILTER html %]&lt;/a&gt;.&lt;br&gt;
</span><span class="cx">       Release date: [% release.data.date FILTER html %]&lt;/p&gt;
</span><span class="lines">@@ -120,73 +62,102 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;page-index&quot;&gt;
</span><del>-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;td&gt;
-        &lt;h1 id=&quot;welcome&quot;&gt; Welcome to [% terms.Bugzilla %]&lt;/h1&gt;
-        &lt;div class=&quot;intro&quot;&gt;[% Hook.process('intro') %]&lt;/div&gt;
</del><ins>+  &lt;h1 id=&quot;welcome&quot;&gt; Welcome to [% terms.Bugzilla %]&lt;/h1&gt;
+  &lt;div class=&quot;intro&quot;&gt;[% Hook.process('intro') %]&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-        &lt;div class=&quot;bz_common_actions&quot;&gt;
-          &lt;ul&gt;
-            &lt;li&gt;
-              &lt;a id=&quot;enter_bug&quot; href=&quot;enter_bug.cgi&quot;&gt;&lt;span&gt;File
-              [%= terms.aBug %]&lt;/span&gt;&lt;/a&gt;
-            &lt;/li&gt;
-            &lt;li&gt;
-              &lt;a id=&quot;query&quot; href=&quot;query.cgi&quot;&gt;&lt;span&gt;Search&lt;/span&gt;&lt;/a&gt;
-            &lt;/li&gt;
-            &lt;li&gt;
-              &lt;a id=&quot;account&quot;
-                 [% IF user.id %]
-                   href=&quot;userprefs.cgi&quot;&gt;&lt;span&gt;User Preferences&lt;/span&gt;&lt;/a&gt;
-                 [% ELSIF Param('createemailregexp')
-                          &amp;&amp; user.authorizer.user_can_create_account 
-                 %]
-                   href=&quot;createaccount.cgi&quot;&gt;&lt;span&gt;Open a New Account&lt;/span&gt;&lt;/a&gt;
-                 [% ELSE %]
-                   href=&quot;?GoAheadAndLogIn=1&quot;&gt;&lt;span&gt;Log In&lt;/span&gt;&lt;/a&gt;
-                 [% END %]
-            &lt;/li&gt;
-          &lt;/ul&gt;
-        &lt;/div&gt;
</del><ins>+  &lt;div class=&quot;bz_common_actions&quot;&gt;
+    &lt;ul&gt;
+      &lt;li&gt;
+        &lt;a id=&quot;enter_bug&quot; href=&quot;enter_bug.cgi&quot;&gt;&lt;span&gt;File [% terms.aBug %]&lt;/span&gt;&lt;/a&gt;
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;a id=&quot;query&quot; href=&quot;query.cgi&quot;&gt;&lt;span&gt;Search&lt;/span&gt;&lt;/a&gt;
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;a id=&quot;account&quot;
+          [% IF user.id %]
+            href=&quot;userprefs.cgi&quot;&gt;&lt;span&gt;User Preferences&lt;/span&gt;&lt;/a&gt;
+          [% ELSIF Param('createemailregexp') &amp;&amp; user.authorizer.user_can_create_account %]
+            href=&quot;createaccount.cgi&quot;&gt;&lt;span&gt;Open a New Account&lt;/span&gt;&lt;/a&gt;
+          [% ELSE %]
+            href=&quot;?GoAheadAndLogIn=1&quot;&gt;&lt;span&gt;Log In&lt;/span&gt;&lt;/a&gt;
+          [% END %]
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;a id=&quot;help&quot; href=&quot;[% docs_urlbase FILTER html %]using/index.html&quot;&gt;&lt;span&gt;Documentation&lt;/span&gt;&lt;/a&gt;
+      &lt;/li&gt;
+    &lt;/ul&gt;
+  &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-        &lt;form id=&quot;quicksearchForm&quot; name=&quot;quicksearchForm&quot; action=&quot;buglist.cgi&quot;
-              onsubmit=&quot;return checkQuicksearch(this);&quot;&gt;
-          &lt;div&gt;
-            &lt;input id=&quot;quicksearch_main&quot; type=&quot;text&quot; name=&quot;quicksearch&quot;
-              title=&quot;Quick Search&quot; 
-              onfocus=&quot;quicksearchHelpText(this.id, 'hide');&quot;
-              onblur=&quot;quicksearchHelpText(this.id, 'show');&quot;
-            &gt;
-            &lt;input id=&quot;find&quot; type=&quot;submit&quot; value=&quot;Quick Search&quot;&gt;
-            &lt;ul class=&quot;additional_links&quot; id=&quot;quicksearch_links&quot;&gt;
-              &lt;li&gt;
-                &lt;a href=&quot;page.cgi?id=quicksearch.html&quot;&gt;Quick Search help&lt;/a&gt;
-              &lt;/li&gt;
-              &lt;li class=&quot;bz_default_hidden&quot; id=&quot;quicksearch_plugin&quot;&gt;
-                |
-                &lt;a href=&quot;javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')&quot;&gt;
-                 Install the Quick Search plugin
-                &lt;/a&gt;
-              &lt;/li&gt;
-            &lt;/ul&gt;
-            &lt;ul class=&quot;additional_links&quot;&gt;
-              &lt;li&gt;
-                &lt;a href=&quot;[% docs_urlbase FILTER html %]using.html&quot;&gt;
-                  [%- terms.Bugzilla %] User's Guide&lt;/a&gt;
-              &lt;/li&gt;
-              &lt;li&gt;
-                |
-                &lt;a href=&quot;page.cgi?id=release-notes.html&quot;&gt;Release Notes&lt;/a&gt;
-              &lt;/li&gt;
-              [% Hook.process('additional_links') %]
-            &lt;/ul&gt;
-          &lt;/div&gt;
-        &lt;/form&gt;
-        &lt;div class=&quot;outro&quot;&gt;[% Hook.process('outro') %]&lt;/div&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;/table&gt;
</del><ins>+  &lt;div&gt;
+    &lt;form id=&quot;quicksearchForm&quot; name=&quot;quicksearchForm&quot; action=&quot;buglist.cgi&quot;&gt;
+      &lt;input id=&quot;quicksearch_main&quot; name=&quot;quicksearch&quot; title=&quot;Quick Search&quot;
+             placeholder=&quot;Enter [% terms.abug %] # or some search terms&quot;
+             autofocus required&gt;
+      &lt;input id=&quot;find&quot; type=&quot;submit&quot; value=&quot;Quick Search&quot;&gt;
+      &lt;a href=&quot;page.cgi?id=quicksearch.html&quot; title=&quot;Quick Search help&quot;&gt;[?]&lt;/a&gt;
+    &lt;/form&gt;
+
+    &lt;ul class=&quot;additional_links&quot;&gt;
+      [% Hook.process('additional_links') %]
+    &lt;/ul&gt;
+  &lt;/div&gt;
+
+  &lt;div id=&quot;common_queries&quot;&gt;
+    &lt;h4&gt;Common Queries:&lt;/h4&gt;
+    &lt;ul&gt;
+      [% IF user.id %]
+        &lt;li&gt;
+          [% title = BLOCK %]Open [% terms.bugs %] assigned to me[% END %]
+          &lt;a href=&quot;buglist.cgi?f1=assigned_to&amp;amp;o1=equals&amp;amp;v1=%25user%25&amp;amp;resolution=---&quot;&gt;
+            [% title FILTER html %]&lt;/a&gt; ([% assignee_count FILTER html %])
+          &lt;a href=&quot;buglist.cgi?f1=assigned_to&amp;amp;o1=equals&amp;amp;v1=%25user%25&amp;amp;resolution=---&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+             class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+        &lt;/li&gt;
+        &lt;li&gt;
+          [% title = BLOCK %]Open [% terms.bugs %] reported by me[% END %]
+          &lt;a href=&quot;buglist.cgi?f1=reporter&amp;amp;o1=equals&amp;amp;v1=%25user%25&amp;amp;resolution=---&quot;&gt;
+            [% title FILTER html %]&lt;/a&gt; ([% reporter_count FILTER html %])
+          &lt;a href=&quot;buglist.cgi?f1=reporter&amp;amp;o1=equals&amp;amp;v1=%25user%25&amp;amp;resolution=---&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+             class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+        &lt;/li&gt;
+        [% IF Bugzilla.has_flags %]
+          &lt;li&gt;
+            [% title = BLOCK %]Requests addressed to me[% END %]
+            &lt;a href=&quot;request.cgi?action=queue&amp;amp;requestee=[% user.login FILTER uri %]&amp;amp;group=type&amp;amp;do_union=0&quot;&gt;
+              [% title FILTER html %]&lt;/a&gt; ([% requestee_count FILTER html %])
+            &lt;a href=&quot;buglist.cgi?f1=requestees.login_name&amp;amp;o1=equals&amp;amp;v1=%25user%25&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+               class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+          &lt;/li&gt;
+        [% END %]
+      [% END %]
+
+      &lt;li&gt;
+        [% terms.Bugs %] reported in the
+        &lt;a href=&quot;buglist.cgi?chfield=%5BBug%20creation%5D&amp;amp;chfieldfrom=24h&quot;&gt;last 24 hours&lt;/a&gt;
+        [% title = BLOCK %][% terms.Bugs %] reported in the last 24 hours[% END %]
+        &lt;a href=&quot;buglist.cgi?chfield=%5BBug%20creation%5D&amp;amp;chfieldfrom=24h&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+           class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+        | &lt;a href=&quot;buglist.cgi?chfield=%5BBug%20creation%5D&amp;amp;chfieldfrom=7d&quot;&gt;last 7 days&lt;/a&gt;
+        [% title = BLOCK %][% terms.Bugs %] reported in the last 7 days[% END %]
+        &lt;a href=&quot;buglist.cgi?chfield=%5BBug%20creation%5D&amp;amp;chfieldfrom=7d&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+           class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+      &lt;/li&gt;
+      &lt;li&gt;
+        [% terms.Bugs %] changed in the
+        &lt;a href=&quot;buglist.cgi?chfieldfrom=24h&quot;&gt;last 24 hours&lt;/a&gt;
+        [% title = BLOCK %][% terms.Bugs %] changed in the last 24 hours[% END %]
+        &lt;a href=&quot;buglist.cgi?chfieldfrom=24h&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+           class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+        | &lt;a href=&quot;buglist.cgi?chfieldfrom=7d&quot;&gt;last 7 days&lt;/a&gt;
+        [% title = BLOCK %][% terms.Bugs %] changed in the last 7 days[% END %]
+        &lt;a href=&quot;buglist.cgi?chfieldfrom=7d&amp;amp;ctype=atom&amp;amp;title=[% title FILTER uri %]&quot;
+           class=&quot;rss&quot;&gt;&amp;nbsp;&lt;/a&gt;
+      &lt;/li&gt;
+    &lt;/ul&gt;
+  &lt;/div&gt;
+
+  &lt;div class=&quot;outro&quot;&gt;[% Hook.process('outro') %]&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistchangecolumnshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/change-columns.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/change-columns.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/change-columns.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,14 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Dave Lawrence &lt;dkl@redhat.com&gt;
-  #                 Pascal Held &lt;paheld@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Change Columns&quot;
</span><del>-  javascript_urls = &quot;js/change-columns.js&quot;
</del><ins>+  javascript_urls = [ &quot;js/change-columns.js&quot; ]
</ins><span class="cx">   onload = &quot;initChangeColumns()&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -32,7 +17,6 @@
</span><span class="cx">   this feature requires cookies to work.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% field_descs.short_short_desc     = &quot;Summary (first 60 characters)&quot; %]
</span><span class="cx"> [% field_descs.short_desc           = &quot;Summary (Full)&quot; %]
</span><span class="cx"> [% field_descs.assigned_to_realname = &quot;$field_descs.assigned_to Real Name&quot; %]
</span><span class="lines">@@ -145,4 +129,3 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlisteditmultiplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/edit-multiple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/edit-multiple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/edit-multiple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,33 +1,20 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  #                 Reed Loden &lt;reed@reedloden.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% dontchange = &quot;--do_not_change--&quot; %]
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;dontchange&quot; value=&quot;[% dontchange FILTER html %]&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx"> 
</span><ins>+&lt;input type=&quot;button&quot; id=&quot;uncheck_all&quot; value=&quot;Uncheck All&quot;
+       class=&quot;bz_default_hidden&quot; onclick=&quot;SetCheckboxes(false);&quot;&gt;
+&lt;input type=&quot;button&quot; id=&quot;check_all&quot; value=&quot;Check All&quot;
+       class=&quot;bz_default_hidden&quot; onclick=&quot;SetCheckboxes(true);&quot;&gt;
+
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx">   function SetCheckboxes(value) {
</span><span class="cx">       var elements = document.forms.changeform.getElementsByTagName('input'),
</span><span class="lines">@@ -40,30 +27,38 @@
</span><span class="cx">           }
</span><span class="cx">       }
</span><span class="cx">   }
</span><del>-  document.write(' &lt;input type=&quot;button&quot; name=&quot;uncheck_all&quot; value=&quot;Uncheck All&quot; onclick=&quot;SetCheckboxes(false);&quot;&gt;');
-  document.write(' &lt;input type=&quot;button&quot; name=&quot;check_all&quot; value=&quot;Check All&quot; onclick=&quot;SetCheckboxes(true);&quot;&gt;');
</del><ins>+  YAHOO.util.Dom.removeClass(&quot;check_all&quot;, &quot;bz_default_hidden&quot;);
+  YAHOO.util.Dom.removeClass(&quot;uncheck_all&quot;, &quot;bz_default_hidden&quot;);
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;hr&gt;
</span><span class="cx"> 
</span><del>-&lt;p style=&quot;font-size:smaller&quot;&gt;
- To change multiple [% terms.bugs %]:&lt;/p&gt;
-&lt;ol style=&quot;font-size:smaller&quot;&gt;
-  &lt;li&gt;Check the [% terms.bugs %] you want to change above.&lt;/li&gt;
-  &lt;li&gt;Make your changes in the form fields below.  If the change
-   you are making requires an explanation, include it in
-   the comments box.&lt;/li&gt;
-  &lt;li&gt;Click the &lt;em&gt;Commit&lt;/em&gt; button.&lt;/li&gt;
-&lt;/ol&gt;
</del><ins>+&lt;div class=&quot;bz_info&quot;&gt;
+  To change multiple [% terms.bugs %]:
+  &lt;ol&gt;
+    &lt;li&gt;Check the [% terms.bugs %] you want to change above.&lt;/li&gt;
+    &lt;li&gt;Make your changes in the form fields below.  If the change
+        you are making requires an explanation, include it in
+        the comments box.&lt;/li&gt;
+    &lt;li&gt;Click the &lt;em&gt;Commit&lt;/em&gt; button.&lt;/li&gt;
+  &lt;/ol&gt;
+&lt;/div&gt;
</ins><span class="cx"> 
</span><ins>+[% IF excluded_values %]
+  &lt;p class=&quot;extra_info&quot;&gt;Only values that are available for all products of the above
+  [%+ terms.bugs %] are shown.&lt;/p&gt;
+[% END %]
+
</ins><span class="cx"> &lt;table id=&quot;form&quot;&gt;
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;th&gt;&lt;label for=&quot;product&quot;&gt;Product:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><del>-      [% PROCESS selectmenu menuname = &quot;product&quot;
-                            menuitems = products
-                            property = &quot;name&quot; %]
</del><ins>+      [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+         id         =&gt; &quot;product&quot;
+         name       =&gt; &quot;product&quot;
+         dontchange =&gt; dontchange
+       %]
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;th&gt;&lt;label for=&quot;version&quot;&gt;Version:&lt;/label&gt;&lt;/th&gt;
</span><span class="lines">@@ -97,7 +92,8 @@
</span><span class="cx"> 
</span><span class="cx">     &lt;th&gt;
</span><span class="cx">       &lt;label for=&quot;rep_platform&quot;&gt;
</span><del>-        &lt;a href=&quot;page.cgi?id=fields.html#rep_platform&quot;&gt;Platform&lt;/a&gt;:
</del><ins>+        &lt;a href=&quot;page.cgi?id=fields.html#rep_platform&quot;&gt;
+          [% field_descs.rep_platform FILTER html %]&lt;/a&gt;:
</ins><span class="cx">       &lt;/label&gt;
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="lines">@@ -107,7 +103,8 @@
</span><span class="cx"> 
</span><span class="cx">     &lt;th&gt;
</span><span class="cx">       &lt;label for=&quot;bug_severity&quot;&gt;
</span><del>-        &lt;a href=&quot;page.cgi?id=fields.html#bug_severity&quot;&gt;Severity&lt;/a&gt;:
</del><ins>+        &lt;a href=&quot;page.cgi?id=fields.html#bug_severity&quot;&gt;
+          [% field_descs.bug_severity FILTER html %]&lt;/a&gt;:
</ins><span class="cx">       &lt;/label&gt;
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="lines">@@ -120,7 +117,7 @@
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th&gt;
</span><span class="cx">       &lt;label for=&quot;op_sys&quot;&gt;
</span><del>-        &lt;a href=&quot;page.cgi?id=fields.html#op_sys&quot;&gt;OS&lt;/a&gt;:
</del><ins>+        &lt;a href=&quot;page.cgi?id=fields.html#op_sys&quot;&gt;[% field_descs.op_sys FILTER html %]&lt;/a&gt;:
</ins><span class="cx">       &lt;/label&gt;
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">     &lt;td [% &quot; colspan=\&quot;3\&quot;&quot; IF !Param(&quot;usetargetmilestone&quot;) %]&gt;
</span><span class="lines">@@ -132,7 +129,7 @@
</span><span class="cx">       &lt;th&gt;&lt;label for=&quot;target_milestone&quot;&gt;Target Milestone:&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         [% PROCESS selectmenu menuname = &quot;target_milestone&quot;
</span><del>-                              menuitems = targetmilestones %]
</del><ins>+                              menuitems = milestones %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/tr&gt;
</span><span class="lines">@@ -143,7 +140,9 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   [% IF user.is_timetracker %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th&gt;&lt;label for=&quot;estimated_time&quot;&gt;Estimated Hours:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.estimated_time, editable = 1
+      %]
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input id=&quot;estimated_time&quot;
</span><span class="cx">                name=&quot;estimated_time&quot;
</span><span class="lines">@@ -155,7 +154,9 @@
</span><span class="cx">           editable = 1, allow_dont_change = 1 %]
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th&gt;&lt;label for=&quot;remaining_time&quot;&gt;Remaining Hours:&lt;/label&gt;&lt;/th&gt;
</del><ins>+      [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
+         field = bug_fields.remaining_time, editable = 1
+      %]
</ins><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input id=&quot;remaining_time&quot;
</span><span class="cx">                name=&quot;remaining_time&quot;
</span><span class="lines">@@ -226,6 +227,7 @@
</span><span class="cx">       &lt;td colspan=&quot;3&quot;&gt;
</span><span class="cx">         [% INCLUDE bug/field.html.tmpl
</span><span class="cx">            field = bug_fields.keywords, editable = 1, value = keywords
</span><ins>+           possible_values = all_keywords
</ins><span class="cx">            no_tds = 1
</span><span class="cx">         %]
</span><span class="cx">         &lt;select name=&quot;keywordaction&quot;&gt;
</span><span class="lines">@@ -270,11 +272,11 @@
</span><span class="cx"> 
</span><span class="cx">   [% IF Param('usestatuswhiteboard') %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td align=&quot;right&quot;&gt;
-        &lt;b&gt;Status Whiteboard:&lt;/b&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;th&gt;
+        &lt;label for=&quot;status_whiteboard&quot;&gt;Status Whiteboard:&lt;/label&gt;
+      &lt;/th&gt;
</ins><span class="cx">       &lt;td colspan=&quot;7&quot;&gt;
</span><del>-        &lt;input name=&quot;status_whiteboard&quot; 
</del><ins>+        &lt;input name=&quot;status_whiteboard&quot; id=&quot;status_whiteboard&quot;
</ins><span class="cx">                value=&quot;[% dontchange FILTER html %]&quot; size=&quot;60&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -299,7 +301,7 @@
</span><span class="cx"> [% IF user.is_insider %]
</span><span class="cx">   &lt;input type=&quot;checkbox&quot; name=&quot;comment_is_private&quot; value=&quot;1&quot;
</span><span class="cx">          id=&quot;newcommentprivacy&quot;
</span><del>-         onClick=&quot;updateCommentTagControl(this, form)&quot;/&gt;
</del><ins>+         onClick=&quot;updateCommentTagControl(this, 'comment')&quot;&gt;
</ins><span class="cx">    &lt;label for=&quot;newcommentprivacy&quot;&gt;
</span><span class="cx">      Make comment private (visible only to members of the
</span><span class="cx">      &lt;strong&gt;[% Param('insidergroup') FILTER html %]&lt;/strong&gt; group)
</span><span class="lines">@@ -313,7 +315,19 @@
</span><span class="cx">   maxrows = 25
</span><span class="cx">   cols    = constants.COMMENT_COLS
</span><span class="cx"> %]&lt;br&gt;
</span><ins>+[% IF user.is_insider %]
+  &lt;script&gt;
+     updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
+  &lt;/script&gt;
+[% END %]
</ins><span class="cx"> 
</span><ins>+[% IF flag_types %]
+&lt;b&gt;&lt;label for=&quot;flags&quot;&gt;Flags:&lt;/label&gt;&lt;/b&gt;&lt;br&gt;
+[% PROCESS &quot;flag/list.html.tmpl&quot;
+           edit_multiple_bugs = 1
+           flag_no_header = 1 %]
+[% END %]
+
</ins><span class="cx"> [% Hook.process('before_groups') %]
</span><span class="cx"> 
</span><span class="cx"> [% IF groups.size &gt; 0 %]
</span><span class="lines">@@ -328,16 +342,16 @@
</span><span class="cx">   &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;b&gt;Groups:&lt;/b&gt;&lt;br&gt;
</span><del>-  &lt;table border=&quot;1&quot;&gt;
</del><ins>+  &lt;table id=&quot;groups_edit_multiple&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th&gt;Remove&lt;br&gt;[% terms.bugs %]&lt;br&gt;from this&lt;br&gt;group&lt;/th&gt;
-      &lt;th&gt;Add&lt;br&gt;[% terms.bugs %]&lt;br&gt;to this&lt;br&gt;group&lt;/th&gt;
-      &lt;th&gt;Group Name:&lt;/th&gt;
</del><ins>+      &lt;th class=&quot;narrow_column&quot;&gt;Remove [% terms.bugs %] from this group&lt;/th&gt;
+      &lt;th class=&quot;narrow_column&quot;&gt;Add [% terms.bugs %] to this group&lt;/th&gt;
+      &lt;th&gt;Group Name&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     [% FOREACH group = groups %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td align=&quot;center&quot;&gt;
</del><ins>+      &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">         &lt;input type=&quot;checkbox&quot; name=&quot;defined_groups&quot; 
</span><span class="cx">                id=&quot;defined_group_[% group.id %]&quot;
</span><span class="cx">                value=&quot;[% group.name FILTER html %]&quot;
</span><span class="lines">@@ -344,7 +358,7 @@
</span><span class="cx">                onchange=&quot;turn_off(this, 'group_[% group.id %]')&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       [% IF group.is_active %]
</span><del>-        &lt;td align=&quot;center&quot;&gt;
</del><ins>+        &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">           &lt;input type=&quot;checkbox&quot; name=&quot;groups&quot; 
</span><span class="cx">                  id=&quot;group_[% group.id FILTER html %]&quot;
</span><span class="cx">                  value=&quot;[% group.name FILTER html %]&quot;
</span><span class="lines">@@ -366,7 +380,7 @@
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx">   [% IF foundinactive %]
</span><del>-    &lt;p style=&quot;font-size:smaller&quot;&gt;(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive
</del><ins>+    &lt;p class=&quot;bz_info&quot;&gt;(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive
</ins><span class="cx">     groups[% END %], only removed.)&lt;/p&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlistsimplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list-simple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list-simple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list-simple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -22,20 +10,10 @@
</span><span class="cx">   # title: string. The title for this page. (optional)
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[%############################################################################%]
-[%# Initialization                                                           #%]
-[%############################################################################%]
-
</del><span class="cx"> [% DEFAULT title = &quot;$terms.Bug List&quot; %]
</span><span class="cx"> 
</span><del>-[%############################################################################%]
-[%# Bug Table                                                                #%]
-[%############################################################################%]
-
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><del>-
</del><span class="cx">   &lt;head&gt;
</span><span class="cx">     &lt;title&gt;[% title FILTER html %]&lt;/title&gt;
</span><span class="cx">     &lt;base href=&quot;[% urlbase FILTER html %]&quot;&gt;
</span><span class="lines">@@ -50,5 +28,4 @@
</span><span class="cx">       [% PROCESS list/table.html.tmpl %]
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/body&gt;
</span><del>-
</del><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlistatomtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list.atom.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list.atom.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list.atom.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Walter Hoehn &lt;wassa@columbia.edu&gt;
-  #                 John Belmonte &lt;john@neggie.net&gt;
-  #                 Jason Remillard &lt;jremillardshop@letterboxes.org&gt;
-  #                 Phil Ringnalda &lt;bugzilla@philringnalda.com&gt;
-  #
-  # This is a template for generating an Atom representation of a buglist. 
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% DEFAULT title = &quot;$terms.Bugzilla $terms.Bugs&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;?xml version=&quot;1.0&quot;[% IF Param('utf8') %] encoding=&quot;UTF-8&quot;[% END %]?&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlistcsvtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list.csv.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list.csv.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list.csv.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 miketosh
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% colsepchar = user.settings.csv_colsepchar.value %]
</span><span class="cx"> 
</span><span class="cx"> [% IF human %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlisthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -30,14 +18,41 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><del>-[% title = &quot;$terms.Bug List&quot; %]
</del><ins>+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
+
+[% unfiltered_title = &quot;$terms.Bug List&quot; %]
</ins><span class="cx"> [% IF searchname || defaultsavename %]
</span><del>-  [% title = title _ &quot;: &quot; _ (searchname OR defaultsavename) FILTER html %]
</del><ins>+  [% unfiltered_title = unfiltered_title _ &quot;: &quot; _ (searchname OR defaultsavename) %]
</ins><span class="cx"> [% END %]
</span><ins>+[% title = unfiltered_title FILTER html %]
</ins><span class="cx"> 
</span><span class="cx"> [% qorder = order FILTER uri IF order %]
</span><span class="cx"> 
</span><ins>+[% javascript =  BLOCK %]
+  [% IF quicksearch %]
+    [% new_param = BLOCK ~%]
+      quicksearch=[% quicksearch FILTER uri %]
+      [%~ IF cgi.param('list_id') ~%]
+        &amp;list_id=[% cgi.param('list_id') FILTER uri %]
+      [%~ END %]
+    [% END %]
+  [% ELSIF cgi.param('token') != '' %]
+    [% new_param = cgi.canonicalise_query('token', 'cmdtype', 'remtype') %]
+  [% ELSE %]
+    [% new_param = cgi.canonicalise_query %]
+  [% END %]
</ins><span class="cx"> 
</span><ins>+  [% IF new_param.length + 12 &lt; constants.CGI_URI_LIMIT %]
+    if (history &amp;&amp; history.replaceState) {
+      history.replaceState(null, &quot;[% unfiltered_title FILTER js %]&quot;,
+                           &quot;buglist.cgi?[% new_param FILTER js %]&quot;);
+      document.title = &quot;[% unfiltered_title FILTER js %]&quot;;
+    }
+  [% END %]
+  [% javascript FILTER none %]
+[% END %]
+
</ins><span class="cx"> [%############################################################################%]
</span><span class="cx"> [%# Page Header                                                              #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -45,12 +60,12 @@
</span><span class="cx"> [%# if WEBKIT_CHANGES #%]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><del>-  style = style
-  rsslink = &quot;buglist.cgi?$urlquerypart&amp;title=$title&amp;ctype=rss&quot; 
</del><ins>+  generate_api_token = dotweak
+  rsslink = &quot;buglist.cgi?$urlquerypart&amp;title=$title&amp;ctype=rss&quot;
</ins><span class="cx">   yui = [ 'autocomplete', 'calendar' ]
</span><del>-  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/field.js&quot; ]
</del><ins>+  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/field.js&quot;, &quot;js/TUI.js&quot; ]
</ins><span class="cx">   style_urls = [ &quot;skins/standard/buglist.css&quot; ]
</span><del>-  doc_section = &quot;query.html#list&quot;
</del><ins>+  doc_section = &quot;using/finding.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> [%# endif // WEBKIT_CHANGES #%]
</span><span class="cx"> 
</span><span class="lines">@@ -60,14 +75,20 @@
</span><span class="cx">   &lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">   [% IF debug %]
</span><del>-    &lt;p class=&quot;bz_query&quot;&gt;[% query FILTER html %]&lt;/p&gt;
-    [% IF query_explain.defined %]
-      &lt;pre class=&quot;bz_query_explain&quot;&gt;[% query_explain FILTER html %]&lt;/pre&gt;
-    [% END %]
</del><ins>+    &lt;div class=&quot;bz_query_debug&quot;&gt;
+      &lt;p&gt;Total execution time: [% query_time FILTER html %] seconds&lt;/p&gt;
+      [% FOREACH query = queries %]
+        &lt;pre&gt;[% query.sql FILTER html %]&lt;/pre&gt;
+        &lt;p&gt;Execution time: [% query.time FILTER html %] seconds&lt;/p&gt;
+        [% IF query.explain %]
+          &lt;pre&gt;[% query.explain FILTER html %]&lt;/pre&gt;
+        [% END %]
+      [% END %]
+    &lt;/div&gt;
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF user.settings.display_quips.value == 'on' %]
</span><del>-    [% DEFAULT quip = &quot;$terms.Bugzilla would like to put a random quip here, but no one has entered any.&quot; %]
</del><ins>+    [% DEFAULT quip = &quot;Bugzilla would like to put a random quip here, but no one has entered any.&quot; %]
</ins><span class="cx">     &lt;span class=&quot;bz_quip&quot;&gt;
</span><span class="cx">       &lt;a href=&quot;quips.cgi&quot;&gt;&lt;em&gt;[% quip FILTER html %]&lt;/em&gt;&lt;/a&gt;
</span><span class="cx">     &lt;/span&gt;
</span><span class="lines">@@ -77,7 +98,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% IF toolong %]
</span><span class="cx">   &lt;h2 class=&quot;bz_smallminded&quot;&gt;
</span><del>-    This list is too long for [% terms.Bugzilla %]'s little mind; the
</del><ins>+    This list is too long for Bugzilla's little mind; the
</ins><span class="cx">     Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %].
</span><span class="cx">   &lt;/h2&gt;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -86,8 +107,17 @@
</span><span class="cx">   'notequals', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', 
</span><span class="cx">   'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', 
</span><span class="cx">   'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords',
</span><del>-  'nowordssubstr', 'notmatches',
</del><ins>+  'nowordssubstr', 'notmatches', 'isempty', 'isnotempty'
</ins><span class="cx"> ] %]
</span><ins>+&lt;a id=&quot;search_description_controller&quot; class=&quot;bz_default_hidden&quot;
+   href=&quot;javascript:TUI_toggle_class('search_description')&quot;&gt;Hide Search Description&lt;/a&gt;
+[%# Show the link if the browser supports JS %]
+&lt;script type=&quot;text/javascript&quot;&gt;
+  TUI_alternates['search_description'] = 'Show Search Description';
+  YAHOO.util.Dom.removeClass('search_description_controller', 
+                             'bz_default_hidden');
+&lt;/script&gt;
+
</ins><span class="cx"> &lt;ul class=&quot;search_description&quot;&gt;
</span><span class="cx"> [% FOREACH desc_item = search_description %]
</span><span class="cx">   &lt;li&gt;
</span><span class="lines">@@ -127,7 +157,6 @@
</span><span class="cx"> [%# Bug Table                                                                #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> 
</span><del>-[% FLUSH %]
</del><span class="cx"> [% PROCESS list/table.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -148,8 +177,6 @@
</span><span class="cx">   &lt;/ul&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-&lt;br&gt;
-
</del><span class="cx"> [%############################################################################%]
</span><span class="cx"> [%# Rest of Change Form                                                      #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -164,25 +191,15 @@
</span><span class="cx"> [%# Navigation Bar                                                           #%]
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> 
</span><del>-&lt;table&gt;
-  &lt;tr&gt;
</del><ins>+  &lt;div class=&quot;buglist_menu&quot;&gt;
</ins><span class="cx">     [% IF bugs.size &gt; 0 %]
</span><del>-      &lt;td valign=&quot;middle&quot; class=&quot;bz_query_buttons&quot;&gt;
</del><ins>+      &lt;div class=&quot;bz_query_buttons&quot;&gt;
</ins><span class="cx">         &lt;form method=&quot;post&quot; action=&quot;show_bug.cgi&quot;&gt;
</span><del>-          [% FOREACH id = buglist %]
-            &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% id FILTER html %]&quot;&gt;
-          [% END %]
</del><ins>+          [% buglist_joined = buglist.join(&quot;,&quot;) %]
+          &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% buglist_joined FILTER html %]&quot;&gt;
</ins><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;format&quot; value=&quot;multiple&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;submit&quot; id=&quot;long_format&quot; value=&quot;Long Format&quot;&gt;
</span><span class="cx">         &lt;/form&gt;
</span><del>-        &lt;form method=&quot;post&quot; action=&quot;show_bug.cgi&quot;&gt;
-            &lt;input type=&quot;hidden&quot; name=&quot;ctype&quot; value=&quot;xml&quot;&gt;
-          [% FOREACH id = buglist %]
-            &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% id FILTER html %]&quot;&gt;
-          [% END %]
-            &lt;input type=&quot;hidden&quot; name=&quot;excludefield&quot; value=&quot;attachmentdata&quot;&gt;
-            &lt;input type=&quot;submit&quot; value=&quot;XML&quot; id=&quot;xml&quot;&gt;
-        &lt;/form&gt;
</del><span class="cx"> 
</span><span class="cx">         [% IF user.is_timetracker %]
</span><span class="cx">           &lt;form method=&quot;post&quot; action=&quot;summarize_time.cgi&quot;&gt;
</span><span class="lines">@@ -190,79 +207,91 @@
</span><span class="cx">             &lt;input type=&quot;submit&quot; id=&quot;timesummary&quot; value=&quot;Time Summary&quot;&gt;
</span><span class="cx">           &lt;/form&gt;
</span><span class="cx">           [% IF time_summary_limited %]
</span><del>-            &lt;small&gt;
-              Time Summary will only include the [% terms.bugs %] shown above. In order to
-              to see a time summary for all [% terms.bugs %] found by the search, you can
</del><ins>+            &lt;span class=&quot;bz_info&quot;&gt;
+              Time Summary will only include the [% terms.bugs %] shown above.
+              In order to see a time summary for all [% terms.bugs %] found
+              by the search, you can
</ins><span class="cx">               &lt;a href=&quot;buglist.cgi?[% urlquerypart FILTER html %]
</span><span class="cx">                        [%- &quot;&amp;order=$qorder&quot; FILTER html IF order %]&amp;limit=0&quot;&gt;
</span><del>-                Show all search results&lt;/a&gt;.&lt;/small&gt;
</del><ins>+                show all search results&lt;/a&gt;.
+            &lt;/span&gt;
</ins><span class="cx">           [% END %]
</span><span class="cx">         [% END %]
</span><del>-      &lt;/td&gt;
-      
-      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
-      
-      &lt;td valign=&quot;middle&quot; class=&quot;bz_query_links&quot;&gt;
-        &lt;a href=&quot;buglist.cgi?
-        [% urlquerypart FILTER html %]&amp;amp;ctype=csv&amp;amp;human=1&quot;&gt;CSV&lt;/a&gt; |
-        &lt;a href=&quot;buglist.cgi?
-        [% urlquerypart FILTER html %]&amp;amp;title=
</del><ins>+
+        &lt;form method=&quot;post&quot; action=&quot;show_bug.cgi&quot;&gt;
+          &lt;input type=&quot;hidden&quot; name=&quot;ctype&quot; value=&quot;xml&quot;&gt;
+          [% FOREACH id = buglist %]
+            &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;[% id FILTER html %]&quot;&gt;
+          [% END %]
+          &lt;input type=&quot;hidden&quot; name=&quot;excludefield&quot; value=&quot;attachmentdata&quot;&gt;
+          &lt;button type=&quot;submit&quot; id=&quot;xml&quot;&gt;
+            &lt;img src=&quot;images/xml.png&quot; width=&quot;24&quot; height=&quot;24&quot; alt=&quot;XML&quot; title=&quot;XML Format&quot;&gt;
+          &lt;/button&gt;
+        &lt;/form&gt;
+      &lt;/div&gt;
+      &lt;div class=&quot;bz_query_links&quot;&gt;
+        &lt;a href=&quot;buglist.cgi?[% urlquerypart FILTER html %]&amp;amp;ctype=csv&amp;amp;human=1&quot;
+        &gt;&lt;img title=&quot;CSV Format&quot; alt=&quot;CSV&quot; src=&quot;images/csv.png&quot; height=&quot;24&quot; width=&quot;24&quot;&gt;&lt;/a&gt;
+        &lt;a href=&quot;buglist.cgi?[% urlquerypart FILTER html %]&amp;amp;title=
</ins><span class="cx"> [%# if WEBKIT_CHANGES %]
</span><del>-        [%- title FILTER html %]&amp;amp;ctype=rss&quot;&gt;RSS&lt;/a&gt; |
</del><ins>+           [%- title FILTER uri %]&amp;amp;ctype=rss&quot;
</ins><span class="cx"> [%# endif // WEBKIT_CHANGES %]
</span><del>-        &lt;a href=&quot;buglist.cgi?
-        [% urlquerypart FILTER html %]&amp;amp;ctype=ics&quot;&gt;iCalendar&lt;/a&gt; |
-        &lt;a href=&quot;colchange.cgi?
-        [% urlquerypart FILTER html %]&amp;amp;query_based_on=
-          [% defaultsavename OR searchname FILTER uri %]&quot;&gt;Change&amp;nbsp;Columns&lt;/a&gt; |
</del><ins>+        &gt;&lt;img title=&quot;Feed Format&quot; alt=&quot;Feed&quot; src=&quot;images/rss.png&quot; height=&quot;24&quot; width=&quot;24&quot;&gt;&lt;/a&gt;
+        &lt;a href=&quot;buglist.cgi?[% urlquerypart FILTER html %]&amp;amp;ctype=ics&quot;
+        &gt;&lt;img title=&quot;iCal Format&quot; alt=&quot;iCal&quot; src=&quot;images/ical.png&quot; height=&quot;24&quot; width=&quot;24&quot;&gt;&lt;/a&gt;
+        &lt;button type=&quot;button&quot; id=&quot;change_columns&quot;
+                onclick=&quot;document.location='colchange.cgi?[% urlquerypart FILTER html %]&amp;amp;query_based_on=
+                         [%~ defaultsavename OR searchname FILTER uri FILTER js %]'&quot;&gt;
+            Change Columns&lt;/button&gt;
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx">         [% IF bugs.size &gt; 1 &amp;&amp; caneditbugs &amp;&amp; !dotweak %]
</span><del>-          &lt;a href=&quot;buglist.cgi?[% urlquerypart FILTER html %]
-            [%- &quot;&amp;order=$qorder&quot; FILTER html IF order %]&amp;amp;tweak=1&quot;
-            &gt;Change&amp;nbsp;Several&amp;nbsp;[% terms.Bugs %]&amp;nbsp;at&amp;nbsp;Once&lt;/a&gt;
-          |
</del><ins>+          &lt;button type=&quot;button&quot; id=&quot;mass_change&quot;
+                  onclick=&quot;document.location='buglist.cgi?[% urlquerypart FILTER html %]
+                           [%- &quot;&amp;order=$qorder&quot; FILTER html IF order %]&amp;amp;tweak=1'&quot;&gt;
+            Change Several [% terms.Bugs %] at Once&lt;/button&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx"> 
</span><span class="cx">         [% IF bugowners &amp;&amp; user.id %]
</span><del>-          &lt;a href=&quot;mailto:
-            [% bugowners FILTER html %]&quot;&gt;Send&amp;nbsp;Mail&amp;nbsp;to&amp;nbsp;[% terms.Bug %]&amp;nbsp;Assignees&lt;/a&gt; |
</del><ins>+          &lt;button type=&quot;button&quot; id=&quot;email_assignees&quot;
+                  onclick=&quot;document.location='mailto:[% bugowners FILTER html %]'&quot;&gt;
+            Send Mail to [% terms.Bug %] Assignees&lt;/button&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx"> 
</span><span class="cx">         [%# Links to more things users can do with this bug list. %]
</span><span class="cx">         [% Hook.process(&quot;links&quot;) %]
</span><del>-      &lt;/td&gt;
</del><ins>+      &lt;/div&gt;
+      &lt;br&gt;
</ins><span class="cx">     [% END %]
</span><del>-    
-    &lt;td valign=&quot;middle&quot; class=&quot;bz_query_edit&quot;&gt;
-      &lt;a href=&quot;[% PROCESS edit_search_url %]&quot;&gt;Edit&amp;nbsp;Search&lt;/a&gt;
-    &lt;/td&gt;
-      
</del><ins>+    &lt;div class=&quot;bz_query_edit&quot;&gt;
+      &lt;button type=&quot;button&quot; id=&quot;edit_search&quot;
+              onclick=&quot;document.location='[% PROCESS edit_search_url FILTER js %]'&quot;&gt;
+          Edit Search&lt;/button&gt;
+    &lt;/div&gt;
+
</ins><span class="cx">     [% IF searchtype == &quot;saved&quot; %]
</span><del>-      &lt;td valign=&quot;middle&quot; nowrap=&quot;nowrap&quot; class=&quot;bz_query_forget&quot;&gt;
-        |
-        &lt;a href=&quot;buglist.cgi?cmdtype=dorem&amp;amp;remaction=forget&amp;amp;namedcmd=
-                [% searchname FILTER uri %]&amp;amp;token=
-                [% issue_hash_token([search_id, searchname]) FILTER uri %]&quot;&gt;
-          Forget&amp;nbsp;Search&amp;nbsp;'[% searchname FILTER html %]'&lt;/a&gt;
-      &lt;/td&gt;
</del><ins>+      &lt;div class=&quot;bz_query_forget&quot;&gt;
+        &lt;button type=&quot;button&quot; id=&quot;forget_search&quot;
+                onclick=&quot;document.location='buglist.cgi?cmdtype=dorem&amp;amp;remaction=forget&amp;amp;namedcmd=
+                         [%- searchname FILTER uri FILTER js %]&amp;amp;token=
+                         [%- issue_hash_token([search_id, searchname]) FILTER uri %]'&quot;&gt;
+          Forget Search '[% searchname FILTER html %]'&lt;/button&gt;
+      &lt;/div&gt;
</ins><span class="cx">     [% ELSE %]
</span><del>-      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
-      
-      &lt;td valign=&quot;middle&quot; class=&quot;bz_query_remember&quot;&gt;
</del><ins>+      &lt;div class=&quot;bz_query_remember&quot;&gt;
</ins><span class="cx">         &lt;form method=&quot;get&quot; action=&quot;buglist.cgi&quot;&gt;
</span><del>-          &lt;input type=&quot;submit&quot; id=&quot;remember&quot; value=&quot;Remember search&quot;&gt; as 
-          &lt;input type=&quot;hidden&quot; name=&quot;newquery&quot; 
</del><ins>+          &lt;input type=&quot;submit&quot; id=&quot;remember&quot; value=&quot;Remember search&quot;&gt; as
+          &lt;input type=&quot;hidden&quot; name=&quot;newquery&quot;
</ins><span class="cx">                  value=&quot;[% urlquerypart FILTER html %][% &quot;&amp;order=$qorder&quot; FILTER html IF order %]&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;cmdtype&quot; value=&quot;doit&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;remtype&quot; value=&quot;asnamed&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['savedsearch']) FILTER html %]&quot;&gt;
</span><span class="cx">           &lt;input type=&quot;text&quot; id=&quot;save_newqueryname&quot; name=&quot;newqueryname&quot; size=&quot;20&quot;
</span><del>-                 title=&quot;New query name&quot; value=&quot;[% defaultsavename FILTER html %]&quot;&gt; 
-        &lt;/form&gt; 
-      &lt;/td&gt;
-    [% END %]  
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+                 title=&quot;New query name&quot; value=&quot;[% defaultsavename FILTER html %]&quot;&gt;
+        &lt;/form&gt;
+      &lt;/div&gt;
+    [% END %]
+  &lt;/div&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% IF one_product.defined &amp;&amp; bugs.size %]
</span><span class="cx">   &lt;p class=&quot;bz_query_single_product&quot;&gt;
</span><span class="lines">@@ -291,10 +320,16 @@
</span><span class="cx"> [% BLOCK enter_bug_link %]
</span><span class="cx">   &lt;a href=&quot;enter_bug.cgi
</span><span class="cx">            [%- IF one_product.defined %]?product=
</span><del>-             [%- one_product.name FILTER uri %][% END %]&quot;&gt;File
</del><ins>+             [%- one_product.name FILTER uri %]
+             [%- IF one_component.defined %]&amp;amp;component=
+               [%- one_component FILTER uri %][% END %][% END %]&quot;&gt;File
</ins><span class="cx">     a new [% terms.bug %]
</span><span class="cx">    [% IF one_product.defined %]
</span><del>-     in the &quot;[% one_product.name FILTER html %]&quot; product
</del><ins>+     in the
+     [% IF one_component.defined %]
+       &quot;[% one_component FILTER html %]&quot; component of the
+     [% END %]
+     &quot;[% one_product.name FILTER html %]&quot; product
</ins><span class="cx">    [% END %]&lt;/a&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlisticstmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list.ics.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list.ics.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list.ics.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): William Jon McCann &lt;mccann@jhu.edu&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> BEGIN:VCALENDAR
</span><span class="cx"> CALSCALE:GREGORIAN
</span><span class="cx"> [%+ PROCESS ics_prodid +%]
</span><span class="lines">@@ -34,6 +21,9 @@
</span><span class="cx"> [% IF bug.changeddate %]
</span><span class="cx"> [%+ bug.changedtime FILTER time(&quot;%Y%m%dT%H%M%SZ&quot;, &quot;UTC&quot;) FILTER ics('LAST-MODIFIED') +%]
</span><span class="cx"> [% END %]
</span><ins>+[% IF bug.deadline %]
+[%+ bug.deadline FILTER time(&quot;%Y%m%dT%H%M%SZ&quot;, &quot;UTC&quot;) FILTER ics('DUE') +%]
+[% END %]
</ins><span class="cx"> [% IF bug.percentage_complete %]
</span><span class="cx"> [%+ bug.percentage_complete FILTER format('%d') FILTER ics('PERCENT-COMPLETE') +%]
</span><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistlistrdftmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/list.rdf.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/list.rdf.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/list.rdf.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> &lt;?xml version=&quot;1.0&quot;[% IF Param('utf8') %] encoding=&quot;UTF-8&quot;[% END %]?&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistquipshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/quips.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/quips.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/quips.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -26,39 +14,14 @@
</span><span class="cx">   #                List of all quips.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><del>-           title = &quot;$terms.Bugzilla Quip System&quot;
</del><ins>+           title = &quot;Bugzilla Quip System&quot;
</ins><span class="cx">            header = &quot;Add your own clever headline&quot;
</span><ins>+           style_urls = ['skins/standard/buglist.css']
</ins><span class="cx">  %]
</span><span class="cx"> 
</span><del>-[% IF added_quip %]
-  &lt;p&gt;
-    &lt;font color=&quot;red&quot;&gt;
-      Your quip '&lt;tt&gt;[% added_quip FILTER html %]&lt;/tt&gt;' has been added.
-      [% IF Param(&quot;quip_list_entry_control&quot;) == &quot;moderated&quot; AND !user.in_group('bz_quip_moderators') %]
-        It will be used as soon as it gets approved.
-      [% END %]
-    &lt;/font&gt;
-  &lt;/p&gt;
-[% END %]
-
-[% IF deleted_quip %]
-  &lt;p&gt;
-    &lt;font color=&quot;red&quot;&gt;
-      The quip '&lt;tt&gt;[% deleted_quip FILTER html %]&lt;/tt&gt;' has been deleted.
-    &lt;/font&gt;
-  &lt;/p&gt;
-[% END %]
-
-[% IF approved or unapproved %]
-  &lt;p&gt;[% approved.size %] quips approved and [% unapproved.size %] quips unapproved&lt;/p&gt;
-[% END %]
-
-
</del><span class="cx"> &lt;p&gt;
</span><del>-  [% terms.Bugzilla %] will pick a random quip for the headline on each 
</del><ins>+  Bugzilla will pick a random quip for the headline on each
</ins><span class="cx">   [% terms.bug %] list.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -75,7 +38,7 @@
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;add&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;hidden&quot; name=&quot;token&quot;
</span><span class="cx">            value=&quot;[% issue_hash_token(['create-quips']) FILTER html %]&quot;&gt;
</span><del>-    &lt;input size=&quot;80&quot; name=&quot;quip&quot;&gt;
</del><ins>+    &lt;input size=&quot;80&quot; name=&quot;quip&quot; maxlength=&quot;512&quot; required&gt;
</ins><span class="cx">     &lt;p&gt;
</span><span class="cx">       &lt;input type=&quot;submit&quot; id=&quot;add&quot; value=&quot;Add This Quip&quot;&gt;
</span><span class="cx">     &lt;/p&gt;
</span><span class="lines">@@ -107,13 +70,17 @@
</span><span class="cx">       &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;approve&quot;&gt;
</span><span class="cx">       &lt;input type=&quot;hidden&quot; name=&quot;token&quot;
</span><span class="cx">              value=&quot;[% issue_hash_token(['approve-quips']) FILTER html %]&quot;&gt;
</span><del>-      &lt;table border=&quot;1&quot;&gt;
-        &lt;thead&gt;&lt;tr&gt;
</del><ins>+      &lt;table id=&quot;quips&quot;&gt;
+        &lt;thead&gt;
+        &lt;tr class=&quot;column_header&quot;&gt;
</ins><span class="cx">           &lt;th&gt;Quip&lt;/th&gt;
</span><span class="cx">           &lt;th&gt;Author&lt;/th&gt;
</span><span class="cx">           &lt;th&gt;Action&lt;/th&gt;
</span><span class="cx">           &lt;th&gt;Approved&lt;/th&gt;
</span><del>-        &lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
</del><ins>+        &lt;/tr&gt;
+        &lt;/thead&gt;
+
+        &lt;tbody&gt;
</ins><span class="cx">         [% FOREACH quipid = quipids %]
</span><span class="cx">           &lt;tr&gt;
</span><span class="cx">             &lt;td&gt;[% quips.$quipid.quip FILTER html %]&lt;/td&gt;
</span><span class="lines">@@ -128,7 +95,7 @@
</span><span class="cx">                 Delete
</span><span class="cx">               &lt;/a&gt;
</span><span class="cx">             &lt;/td&gt;
</span><del>-            &lt;td&gt;
</del><ins>+            &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">               &lt;input type=&quot;hidden&quot; name=&quot;defined_quipid_[% quipid FILTER html %]&quot;
</span><span class="cx">                      id=&quot;defined_quipid_[% quipid FILTER html %]&quot;
</span><span class="cx">                      value=&quot;1&quot;&gt;
</span><span class="lines">@@ -140,7 +107,15 @@
</span><span class="cx">         [% END %]
</span><span class="cx">         &lt;/tbody&gt;
</span><span class="cx">       &lt;/table&gt;
</span><del>-      &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
</del><ins>+
+      &lt;input type=&quot;button&quot; id=&quot;uncheck_all&quot; value=&quot;Uncheck All&quot;
+             class=&quot;bz_default_hidden&quot; onclick=&quot;SetCheckboxes(false);&quot;&gt;
+      &lt;input type=&quot;button&quot; id=&quot;check_all&quot; value=&quot;Check All&quot;
+             class=&quot;bz_default_hidden&quot; onclick=&quot;SetCheckboxes(true);&quot;&gt;
+      &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Save Changes&quot;&gt;
+
+      &lt;script type=&quot;text/javascript&quot;&gt;
+        &lt;!--
</ins><span class="cx">         var numelements = document.forms.editform.elements.length;
</span><span class="cx">         function SetCheckboxes(value) {
</span><span class="cx">           var item;
</span><span class="lines">@@ -149,13 +124,10 @@
</span><span class="cx">             item.checked = value;
</span><span class="cx">           }
</span><span class="cx">         }
</span><del>-        document.write(' &lt;input type=&quot;button&quot; name=&quot;uncheck_all&quot; '
-                      +'value=&quot;Uncheck All&quot; onclick=&quot;SetCheckboxes(false);&quot;&gt;');
-        document.write(' &lt;input type=&quot;button&quot; name=&quot;check_all&quot; '
-                      +'value=&quot;Check All&quot; onclick=&quot;SetCheckboxes(true);&quot;&gt;');
-        //--&gt;&lt;/script&gt;
-
-      &lt;input type=&quot;submit&quot; id=&quot;update&quot; value=&quot;Save Changes&quot;&gt;
</del><ins>+        YAHOO.util.Dom.removeClass(&quot;check_all&quot;, &quot;bz_default_hidden&quot;);
+        YAHOO.util.Dom.removeClass(&quot;uncheck_all&quot;, &quot;bz_default_hidden&quot;);
+        //--&gt;
+      &lt;/script&gt;
</ins><span class="cx">     &lt;/form&gt;
</span><span class="cx">     &lt;br&gt;
</span><span class="cx">   [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlistserverpushhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/server-push.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/server-push.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/server-push.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,15 +11,20 @@
</span><span class="cx">   # query: string. The SQL query which makes the buglist.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx">   &lt;head&gt;
</span><span class="cx">     &lt;title&gt;[% terms.Bugzilla %] is pondering your search&lt;/title&gt;
</span><ins>+    &lt;link href=&quot;[% 'skins/standard/global.css' FILTER mtime %]&quot;
+          rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
</ins><span class="cx">   &lt;/head&gt;
</span><span class="cx">   &lt;body&gt;
</span><del>-    &lt;h1 style=&quot;margin-top: 20%; text-align: center;&quot;&gt;Please stand by ...&lt;/h1&gt;
</del><ins>+    &lt;h1 id=&quot;serverpush_msg&quot;&gt;Please stand by ...&lt;/h1&gt;
</ins><span class="cx"> 
</span><ins>+    &lt;p class=&quot;center&quot;&gt;
+      &lt;progress&gt;Data is being retrieved...&lt;/progress&gt;
+    &lt;/p&gt;
+
</ins><span class="cx">     [% IF debug %]
</span><span class="cx">       &lt;p&gt;[% query FILTER html %]&lt;/p&gt;
</span><span class="cx">       [% IF query_explain.defined %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultlisttablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/list/table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/list/table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/list/table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-  #                 Jesse Clark &lt;jjclark1982@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%############################################################################%]
</span><span class="lines">@@ -36,17 +23,17 @@
</span><span class="cx">   # by the browser.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% field_descs.short_short_desc     = field_descs.short_desc  %]
</span><span class="cx"> [% field_descs.assigned_to_realname = field_descs.assigned_to %]
</span><span class="cx"> [% field_descs.reporter_realname    = field_descs.reporter    %]
</span><span class="cx"> [% field_descs.qa_contact_realname  = field_descs.qa_contact  %]
</span><span class="cx"> 
</span><ins>+[%# Setting maxlength =&gt; 0 means no limit. We set it for performance reasons. %]
</ins><span class="cx"> [% abbrev = 
</span><span class="cx">   {
</span><span class="cx">     &quot;bug_severity&quot;         =&gt; { maxlength =&gt; 3 , title =&gt; &quot;Sev&quot; } , 
</span><span class="cx">     &quot;priority&quot;             =&gt; { maxlength =&gt; 7 , title =&gt; &quot;Pri&quot; } , 
</span><del>-    &quot;rep_platform&quot;         =&gt; { maxlength =&gt; 3 , title =&gt; &quot;Plt&quot; } , 
</del><ins>+    &quot;rep_platform&quot;         =&gt; { maxlength =&gt; 3 , title =&gt; &quot;HW&quot; } , 
</ins><span class="cx">     &quot;bug_status&quot;           =&gt; { maxlength =&gt; 4 } , 
</span><span class="cx">     &quot;assigned_to&quot;          =&gt; { maxlength =&gt; 30 , ellipsis =&gt; &quot;...&quot; } , 
</span><span class="cx">     &quot;assigned_to_realname&quot; =&gt; { maxlength =&gt; 20 , ellipsis =&gt; &quot;...&quot; } , 
</span><span class="lines">@@ -55,19 +42,22 @@
</span><span class="cx">     &quot;qa_contact&quot;           =&gt; { maxlength =&gt; 30 , ellipsis =&gt; &quot;...&quot; , title =&gt; &quot;QAContact&quot; } , 
</span><span class="cx">     &quot;qa_contact_realname&quot;  =&gt; { maxlength =&gt; 20 , ellipsis =&gt; &quot;...&quot; , title =&gt; &quot;QAContact&quot; } , 
</span><span class="cx">     &quot;resolution&quot;        =&gt; { maxlength =&gt; 4 } , 
</span><del>-    &quot;short_desc&quot;        =&gt; { wrap =&gt; 1 } ,
</del><ins>+    &quot;short_desc&quot;        =&gt; { maxlength =&gt; 0, wrap =&gt; 1 } ,
</ins><span class="cx">     &quot;short_short_desc&quot;  =&gt; { maxlength =&gt; 60 , ellipsis =&gt; &quot;...&quot; , wrap =&gt; 1 } ,
</span><del>-    &quot;status_whiteboard&quot; =&gt; { title =&gt; &quot;Whiteboard&quot; , wrap =&gt; 1 } , 
-    &quot;keywords&quot;          =&gt; { wrap =&gt; 1 } ,
-    &quot;flagtypes.name&quot;    =&gt; { wrap =&gt; 1 } ,
</del><ins>+    &quot;status_whiteboard&quot; =&gt; { maxlength =&gt; 0, title =&gt; &quot;Whiteboard&quot; , wrap =&gt; 1 } , 
+    &quot;keywords&quot;          =&gt; { maxlength =&gt; 0, wrap =&gt; 1 } ,
+    &quot;tags&quot;              =&gt; { maxlength =&gt; 0, title =&gt; &quot;Tags&quot;, wrap =&gt; 1},
+    &quot;dependson&quot;         =&gt; { maxlength =&gt; 0, wrap =&gt; 1 } ,
+    &quot;blocked&quot;           =&gt; { maxlength =&gt; 0, wrap =&gt; 1 } ,
+    &quot;flagtypes.name&quot;    =&gt; { maxlength =&gt; 0, wrap =&gt; 1 } ,
</ins><span class="cx">     &quot;component&quot;         =&gt; { maxlength =&gt; 8 , title =&gt; &quot;Comp&quot; } , 
</span><span class="cx">     &quot;product&quot;           =&gt; { maxlength =&gt; 8 } , 
</span><span class="cx">     &quot;version&quot;           =&gt; { maxlength =&gt; 5 , title =&gt; &quot;Vers&quot; } , 
</span><del>-    &quot;op_sys&quot;            =&gt; { maxlength =&gt; 4 } , 
</del><ins>+    &quot;op_sys&quot;            =&gt; { maxlength =&gt; 12 } ,
</ins><span class="cx">     &quot;bug_file_loc&quot;      =&gt; { maxlength =&gt; 30 } , 
</span><del>-    &quot;target_milestone&quot;  =&gt; { title =&gt; &quot;TargetM&quot; } , 
-    &quot;longdescs.count&quot;   =&gt; { title =&gt; &quot;# Comments&quot; },
-    &quot;percentage_complete&quot; =&gt; { format_value =&gt; &quot;%d %%&quot; } , 
</del><ins>+    &quot;target_milestone&quot;  =&gt; { maxlength =&gt; 0, title =&gt; &quot;TargetM&quot; } , 
+    &quot;longdescs.count&quot;   =&gt; { maxlength =&gt; 0, title =&gt; &quot;# Comments&quot; },
+    &quot;percentage_complete&quot; =&gt; { maxlength =&gt; 0, format_value =&gt; &quot;%d %%&quot; } , 
</ins><span class="cx">   }
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="lines">@@ -80,7 +70,7 @@
</span><span class="cx"> [%############################################################################%]
</span><span class="cx"> 
</span><span class="cx"> [% tableheader = BLOCK %]
</span><del>-  &lt;table class=&quot;bz_buglist&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; width=&quot;100%&quot;&gt;
</del><ins>+  &lt;table class=&quot;bz_buglist&quot;&gt;
</ins><span class="cx">     &lt;tr class=&quot;bz_buglist_header bz_first_buglist_header&quot;&gt;
</span><span class="cx">       [% IF dotweak %]
</span><span class="cx">       &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</span><span class="lines">@@ -151,13 +141,13 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK order_arrow %]
</span><del>-  [% IF order.match(&quot;^$id DESC&quot;) %]
</del><ins>+  [% IF order.search(&quot;^$id DESC&quot;) %]
</ins><span class="cx">     &lt;span class=&quot;bz_sort_order_primary&quot;&gt;&amp;#x25BC;&lt;/span&gt;
</span><del>-  [% ELSIF order.match(&quot;^$id(,\\s*|\$)&quot;) %]
</del><ins>+  [% ELSIF order.search(&quot;^$id(,\\s*|\$)&quot;) %]
</ins><span class="cx">     &lt;span class=&quot;bz_sort_order_primary&quot;&gt;&amp;#x25B2;&lt;/span&gt;
</span><del>-  [% ELSIF order.match(&quot;\\b$id DESC&quot;) %]
</del><ins>+  [% ELSIF order.search(&quot;\\b$id DESC&quot;) %]
</ins><span class="cx">     &lt;span class=&quot;bz_sort_order_secondary&quot;&gt;&amp;#x25BC;&lt;/span&gt;
</span><del>-  [% ELSIF order.match(&quot;\\b$id(,\\s*|\$)&quot;) %]
</del><ins>+  [% ELSIF order.search(&quot;\\b$id(,\\s*|\$)&quot;) %]
</ins><span class="cx">     &lt;span class=&quot;bz_sort_order_secondary&quot;&gt;&amp;#x25B2;&lt;/span&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -188,34 +178,48 @@
</span><span class="cx">     [% END %]
</span><span class="cx">     &lt;td class=&quot;first-child bz_id_column&quot;&gt;
</span><span class="cx">       &lt;a href=&quot;show_bug.cgi?id=[% bug.bug_id %]&quot;&gt;[% bug.bug_id %]&lt;/a&gt;
</span><del>-      &lt;span style=&quot;display: none&quot;&gt;[%+ '[SEC]' IF bug.secure_mode %]&lt;/span&gt;
</del><ins>+      &lt;span class=&quot;bz_default_hidden&quot;&gt;[%+ '[SEC]' IF bug.secure_mode %]&lt;/span&gt;
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">     [% FOREACH column = displaycolumns %]
</span><del>-    &lt;td [% 'style=&quot;white-space: nowrap&quot;' IF NOT abbrev.$column.wrap %]
-        class=&quot;bz_[% column FILTER css_class_quote %]_column&quot;&gt;
-      [% IF abbrev.$column.maxlength %]
</del><ins>+    [% col_abbrev = abbrev.$column %]
+    &lt;td class=&quot;bz_[% column FILTER css_class_quote %]_column
+      [%~ ' nowrap' UNLESS col_abbrev.wrap
+        OR bug_fields.$column.type == constants.FIELD_TYPE_FREETEXT
+        OR  bug_fields.$column.type == constants.FIELD_TYPE_TEXTAREA %]&quot;&gt;
+      [% IF col_abbrev.maxlength %]
</ins><span class="cx">         &lt;span title=&quot;[%- display_value(column, bug.$column) FILTER html %]&quot;&gt;
</span><span class="cx">       [% END %]
</span><del>-      [% IF abbrev.$column.format_value %] 
-        [%- bug.$column FILTER format(abbrev.$column.format_value) FILTER html -%] 
</del><ins>+      [% IF col_abbrev.format_value %]
+        [%- bug.$column FILTER format(col_abbrev.format_value) FILTER html -%]
</ins><span class="cx">       [% ELSIF column == 'actual_time' ||
</span><span class="cx">                column == 'remaining_time' ||
</span><span class="cx">                column == 'estimated_time' %]
</span><span class="cx">         [% PROCESS formattimeunit time_unit=bug.$column %] 
</span><span class="cx">       [%# Display the login name of the user if their real name is empty. %]
</span><del>-      [% ELSIF column.match('_realname$') &amp;&amp; bug.$column == '' %]
</del><ins>+      [% ELSIF column.search('_realname$') &amp;&amp; bug.$column == '' %]
</ins><span class="cx">         [% SET login_column = column.remove('_realname$') %]
</span><del>-        [% bug.${login_column}.truncate(abbrev.$column.maxlength, 
-                                        abbrev.$column.ellipsis) FILTER html %]
</del><ins>+        [% bug.${login_column}.truncate(col_abbrev.maxlength,
+                                        col_abbrev.ellipsis) FILTER html %]
</ins><span class="cx">       [% ELSIF column == 'short_desc' || column == &quot;short_short_desc&quot; %]
</span><span class="cx">         &lt;a href=&quot;show_bug.cgi?id=[% bug.bug_id FILTER html %]&quot;&gt;
</span><del>-          [%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
</del><ins>+          [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
</ins><span class="cx">         &lt;/a&gt;
</span><ins>+      [% ELSIF bug_fields.$column.type == constants.FIELD_TYPE_BUG_ID %]
+        &lt;a href=&quot;show_bug.cgi?id=[% bug.$column FILTER html %]&quot;&gt;
+          [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
+        &lt;/a&gt;
+      [% ELSIF bug_fields.$column.type == constants.FIELD_TYPE_TEXTAREA %]
+        [%- bug.$column.truncate(256, '...') FILTER html -%]
+      [% ELSIF column == 'bug_file_loc' &amp;&amp; is_safe_url(bug.bug_file_loc) %]
+        &lt;a href=&quot;[% bug.bug_file_loc FILTER html %]&quot; target=&quot;_blank&quot;
+           rel=&quot;noreferrer&quot; title=&quot;[% bug.bug_file_loc FILTER html %]&quot;&gt;
+          [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
+        &lt;/a&gt;
</ins><span class="cx">       [% ELSE %]
</span><del>-        [%- display_value(column, bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
</del><ins>+        [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
</ins><span class="cx">       [% END %]
</span><del>-      [% IF abbrev.$column.maxlength %]
</del><ins>+      [% IF col_abbrev.maxlength %]
</ins><span class="cx">         &lt;/span&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="lines">@@ -222,11 +226,10 @@
</span><span class="cx">     [% END %]
</span><span class="cx"> 
</span><span class="cx">   &lt;/tr&gt;
</span><ins>+[% END %]
</ins><span class="cx"> 
</span><del>-  [% IF loop.last() &amp;&amp; time_info.time_present == 1 %]
-    [% PROCESS time_summary_line %]
-  [% END %]
-
</del><ins>+[% IF time_info.time_present %]
+  [% PROCESS time_summary_line %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> &lt;/table&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesbugwritinghtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/bug-writing.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/bug-writing.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/bug-writing.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Eli Goldberg &lt;eli@prometheus-music.com&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Vera Horiuchi
-  #                 Claudius Gayle
-  #                 Peter Mock
-  #                 Chris Pratt
-  #                 Tom Schutter
-  #                 Chris Yeh
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% INCLUDE global/header.html.tmpl title = &quot;$terms.Bug Writing Guidelines&quot; %]
</span><span class="cx"> 
</span><span class="cx">   &lt;p&gt;Effective [% terms.bug %] reports are the most likely to be fixed. 
</span><span class="lines">@@ -74,12 +53,13 @@
</span><span class="cx">     Click the word &quot;Component&quot; to see a description of each 
</span><span class="cx">     component. If none seems appropriate, look for a &quot;General&quot; component.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-    &lt;p&gt;&lt;b&gt;OS:&lt;/b&gt; On which operating system (OS) did you find 
</del><ins>+    &lt;p&gt;&lt;b&gt;[% field_descs.op_sys FILTER html %]:&lt;/b&gt; On which operating system (OS) did you find 
</ins><span class="cx">           it?
</span><span class="cx">     (e.g. Linux, Windows XP, Mac OS X.)&lt;br&gt;
</span><span class="cx">     If you know the [% terms.bug %] happens on more than one type of 
</span><span class="cx">     operating system, choose &lt;em&gt;[% display_value(&quot;op_sys&quot;, &quot;All&quot;) FILTER html %]&lt;/em&gt;. 
</span><del>-    If your OS isn't listed, choose &lt;em&gt;[% display_value(&quot;op_sys&quot;, &quot;Other&quot;) FILTER html %]&lt;/em&gt;.&lt;/p&gt;
</del><ins>+    If your [% field_descs.op_sys FILTER html %] isn't listed, choose 
+    &lt;em&gt;[% display_value(&quot;op_sys&quot;, &quot;Other&quot;) FILTER html %]&lt;/em&gt;.&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx">     &lt;p&gt;&lt;b&gt;Summary:&lt;/b&gt; How would you describe the [% terms.bug %], in 
</span><span class="cx">     approximately 60 or fewer characters?&lt;br&gt;
</span><span class="lines">@@ -86,10 +66,10 @@
</span><span class="cx">      A good summary should &lt;b&gt;quickly and uniquely identify [% terms.abug %]
</span><span class="cx">     report&lt;/b&gt;. It should explain the problem, not your suggested solution.&lt;br&gt;
</span><span class="cx">     &lt;ul&gt;
</span><del>-     &lt;li&gt;Good: &quot;&lt;tt&gt;Cancelling a File Copy dialog crashes 
-     File Manager&lt;/tt&gt;&quot;&lt;/li&gt;
-     &lt;li&gt;Bad: &quot;&lt;tt&gt;Software crashes&lt;/tt&gt;&quot;&lt;/li&gt;
-     &lt;li&gt;Bad: &quot;&lt;tt&gt;Browser should work with my web site&lt;/tt&gt;&quot;&lt;/li&gt;
</del><ins>+     &lt;li&gt;Good: &quot;&lt;kbd&gt;Cancelling a File Copy dialog crashes
+     File Manager&lt;/kbd&gt;&quot;&lt;/li&gt;
+     &lt;li&gt;Bad: &quot;&lt;kbd&gt;Software crashes&lt;/kbd&gt;&quot;&lt;/li&gt;
+     &lt;li&gt;Bad: &quot;&lt;kbd&gt;Browser should work with my web site&lt;/kbd&gt;&quot;&lt;/li&gt;
</ins><span class="cx">     &lt;/ul&gt;
</span><span class="cx">     
</span><span class="cx">     &lt;b&gt;Description:&lt;/b&gt;
</span><span class="lines">@@ -139,7 +119,8 @@
</span><span class="cx"> &lt;/pre&gt;
</span><span class="cx">       &lt;/blockquote&gt;
</span><span class="cx"> 
</span><del>-      &lt;p&gt;&lt;b&gt;Build Date &amp;amp; Platform:&lt;/b&gt; Date and platform of the build
</del><ins>+      &lt;p&gt;&lt;b&gt;Build Date &amp;amp; [% field_descs.rep_platform FILTER html %]:&lt;/b&gt;
+      Date and [% field_descs.rep_platform FILTER lower FILTER html %] of the build
</ins><span class="cx">       in which you first encountered the [% terms.bug %].&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx">       &lt;blockquote&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesbugzilladtdtmplfromrev211528trunkWebsitesbugswebkitorgbugzilladtd"></a>
<div class="copfile"><h4>Copied: trunk/Websites/bugs.webkit.org/template/en/default/pages/bugzilla.dtd.tmpl (from rev 211528, trunk/Websites/bugs.webkit.org/bugzilla.dtd) (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/bugzilla.dtd.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/bugzilla.dtd.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,162 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+[% USE Bugzilla %]
+&lt;!ELEMENT bugzilla (bug+)&gt;
+&lt;!ATTLIST bugzilla
+          version CDATA #REQUIRED
+          urlbase CDATA #REQUIRED
+          maintainer CDATA #REQUIRED
+          exporter CDATA #IMPLIED
+&gt;
+&lt;!ELEMENT [% &quot;bug&quot; %] (bug_id, 
+               (alias*,
+                creation_ts, 
+                short_desc, 
+                delta_ts, 
+                reporter_accessible, 
+                cclist_accessible, 
+                classification_id, 
+                classification, 
+                product, 
+                component, 
+                version, 
+                rep_platform, 
+                op_sys, 
+                bug_status, 
+                resolution?, 
+                dup_id?, 
+                see_also*, 
+                bug_file_loc?, 
+                status_whiteboard?, 
+                keywords*, 
+                priority, 
+                bug_severity, 
+                target_milestone?, 
+                dependson*, 
+                blocked*, 
+                everconfirmed, 
+                reporter, 
+                assigned_to, 
+                cc*, 
+                (estimated_time, 
+                 remaining_time, 
+                 actual_time, 
+                 deadline?)?, 
+                qa_contact?,
+[% FOREACH field = Bugzilla.active_custom_fields %]
+                [%+ field.name FILTER xml -%]
+                [%- IF field.type == constants.FIELD_TYPE_MULTI_SELECT %]*[% ELSE %]?[% END %], 
+[% END %]
+                votes?, 
+                token?, 
+                group*, 
+                flag*, 
+                comment_sort_order*,
+                long_desc*, 
+                attachment*)?)&gt;
+&lt;!ATTLIST [% &quot;bug&quot; %]
+          error (NotFound | NotPermitted | InvalidBugId) #IMPLIED
+&gt;
+&lt;!ELEMENT bug_id (#PCDATA)&gt;
+&lt;!ELEMENT alias (#PCDATA)&gt;
+&lt;!ELEMENT reporter_accessible (#PCDATA)&gt;
+&lt;!ELEMENT cclist_accessible (#PCDATA)&gt;
+&lt;!ELEMENT exporter (#PCDATA)&gt;
+&lt;!ELEMENT urlbase (#PCDATA)&gt;
+&lt;!ELEMENT bug_status (#PCDATA)&gt;
+&lt;!ELEMENT classification_id (#PCDATA)&gt;
+&lt;!ELEMENT classification (#PCDATA)&gt;
+&lt;!ELEMENT product (#PCDATA)&gt;
+&lt;!ELEMENT priority (#PCDATA)&gt;
+&lt;!ELEMENT version (#PCDATA)&gt;
+&lt;!ELEMENT rep_platform (#PCDATA)&gt;
+&lt;!ELEMENT assigned_to (#PCDATA)&gt;
+&lt;!ATTLIST assigned_to 
+          name CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT delta_ts (#PCDATA)&gt;
+&lt;!ELEMENT component (#PCDATA)&gt;
+&lt;!ELEMENT reporter (#PCDATA)&gt;
+&lt;!ATTLIST reporter
+          name CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT target_milestone (#PCDATA)&gt;
+&lt;!ELEMENT bug_severity (#PCDATA)&gt;
+&lt;!ELEMENT creation_ts (#PCDATA)&gt;
+&lt;!ELEMENT qa_contact (#PCDATA)&gt;
+&lt;!ATTLIST qa_contact
+          name CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT status_whiteboard (#PCDATA)&gt;
+&lt;!ELEMENT op_sys (#PCDATA)&gt;
+&lt;!ELEMENT resolution (#PCDATA)&gt;
+&lt;!ELEMENT dup_id (#PCDATA)&gt;
+&lt;!ELEMENT bug_file_loc (#PCDATA)&gt;
+&lt;!ELEMENT short_desc (#PCDATA)&gt;
+&lt;!ELEMENT keywords (#PCDATA)&gt;
+&lt;!ELEMENT dependson (#PCDATA)&gt;
+&lt;!ELEMENT blocked (#PCDATA)&gt;
+&lt;!ELEMENT everconfirmed (#PCDATA)&gt;
+&lt;!ELEMENT cc (#PCDATA)&gt;
+&lt;!ELEMENT see_also (#PCDATA)&gt;
+&lt;!ELEMENT votes (#PCDATA)&gt;
+&lt;!ELEMENT token (#PCDATA)&gt;
+&lt;!ELEMENT group (#PCDATA)&gt;
+&lt;!ATTLIST group
+          id CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT estimated_time (#PCDATA)&gt;
+&lt;!ELEMENT remaining_time (#PCDATA)&gt;
+&lt;!ELEMENT actual_time (#PCDATA)&gt;
+&lt;!ELEMENT deadline (#PCDATA)&gt;
+[% FOREACH field = Bugzilla.active_custom_fields %]
+&lt;!ELEMENT [% field.name FILTER xml %] (#PCDATA)&gt;
+[% END %]
+&lt;!ELEMENT comment_sort_order (#PCDATA)&gt;
+&lt;!ELEMENT long_desc (commentid, comment_count, attachid?, who, bug_when, work_time?, thetext)&gt;
+&lt;!ATTLIST long_desc
+          isprivate (0|1) #REQUIRED
+&gt;
+&lt;!ELEMENT commentid (#PCDATA)&gt;
+&lt;!ELEMENT comment_count (#PCDATA)&gt;
+&lt;!ELEMENT who (#PCDATA)&gt;
+&lt;!ATTLIST who
+          name CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT bug_when (#PCDATA)&gt;
+&lt;!ELEMENT work_time (#PCDATA)&gt;
+&lt;!ELEMENT thetext (#PCDATA)&gt;
+&lt;!ELEMENT attachment (attachid, date, delta_ts, desc, filename, type, size, attacher, token?, data?, flag*)&gt;
+&lt;!ATTLIST attachment
+          isobsolete (0|1) #REQUIRED
+          ispatch (0|1) #REQUIRED
+          isprivate (0|1) #REQUIRED
+&gt;
+&lt;!ELEMENT attacher (#PCDATA)&gt;
+&lt;!ATTLIST attacher
+          name CDATA #REQUIRED
+&gt;
+&lt;!ELEMENT attachid (#PCDATA)&gt;
+&lt;!ELEMENT date (#PCDATA)&gt;
+&lt;!ELEMENT desc (#PCDATA)&gt;
+&lt;!ELEMENT filename (#PCDATA)&gt;
+&lt;!ELEMENT type (#PCDATA)&gt;
+&lt;!ELEMENT size (#PCDATA)&gt;
+&lt;!ELEMENT data (#PCDATA)&gt;
+&lt;!ATTLIST data
+          encoding (base64) #IMPLIED
+&gt;
+&lt;!ELEMENT flag EMPTY&gt;
+&lt;!ATTLIST flag
+          name CDATA #REQUIRED
+          id CDATA #REQUIRED
+          type_id CDATA #REQUIRED 
+          status CDATA #REQUIRED
+          setter CDATA #REQUIRED
+          requestee CDATA #IMPLIED
+&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesfieldshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/fields.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/fields.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/fields.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-[% PROCESS global/header.html.tmpl 
-  title = &quot;$terms.Bug Fields&quot; 
-  style_urls = ['skins/standard/page.css']
</del><ins>+[% PROCESS global/header.html.tmpl
+  title = &quot;$terms.Bug Fields&quot;
+  bodyclasses = ['narrow_page']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;This page describes the various fields that you see 
</span><span class="lines">@@ -195,6 +181,11 @@
</span><span class="cx">                                     field =&gt; field } %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><ins>+[%# This field is not a real one, but its label is visible in bugs. %]
+
+[% field_help_map.Importance = { help  =&gt; help_html.importance,
+                                 field =&gt; &quot;importance&quot; } %]
+
</ins><span class="cx"> [%# These are fields that don't need to be documented, either because
</span><span class="cx">   # they have docs somewhere else in the UI, or they don't show up on bugs. 
</span><span class="cx">   # %]
</span><span class="lines">@@ -220,7 +211,6 @@
</span><span class="cx"> 
</span><span class="cx">   [% NEXT IF field == 'status_whiteboard' AND !Param('usestatuswhiteboard') %]
</span><span class="cx">   [% NEXT IF field == 'target_milestone' AND !Param('usetargetmilestone') %]
</span><del>-  [% NEXT IF field == 'alias' AND !Param('usebugaliases') %]
</del><span class="cx"> 
</span><span class="cx">   [%# For now we don't have help for attachment fields and so on. %]
</span><span class="cx">   [% NEXT IF field.match('\.') %]
</span><span class="lines">@@ -229,8 +219,7 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;dt id=&quot;[% field FILTER html %]&quot;&gt;[% field_desc FILTER html %]&lt;/dt&gt;
</span><span class="cx">     &lt;dd&gt;
</span><del>-      [% SET help_text = field_help_map.${field_desc}.help %]
-      [% help_text FILTER none %]
</del><ins>+      [% field_help_map.${field_desc}.help FILTER html_light %]
</ins><span class="cx">     &lt;/dd&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> &lt;/dl&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpageslinkedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/linked.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/linked.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/linked.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Stefan Seifert &lt;nine@detonation.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% INCLUDE global/header.html.tmpl title = &quot;Your Linkified Text&quot; %]
</span><span class="lines">@@ -38,7 +25,7 @@
</span><span class="cx"> &lt;hr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  If you place it in &lt;tt&gt;&amp;lt;pre&amp;gt;&lt;/tt&gt; tags, 
</del><ins>+  If you place it in &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; tags,
</ins><span class="cx">   the text will end up looking like this:
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpageslinkifyhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/linkify.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/linkify.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/linkify.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,16 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Stefan Seifert &lt;nine@detonation.org&gt;
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% INCLUDE global/header.html.tmpl title = &quot;Linkify Text&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   If you enter some text, this form will return it marked up like a
</span><del>-  standard [% terms.Bugzilla %] comment. That is, valid [% terms.bug %] numbers,
</del><ins>+  standard Bugzilla comment. That is, valid [% terms.bug %] numbers,
</ins><span class="cx">   URLs, email addresses and so on will be replaced with appropriate HTML links.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesquicksearchhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/quicksearch.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/quicksearch.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/quicksearch.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,40 +1,23 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved, Inc.
-  # Portions created by the Initial Developer are Copyright (C) 2009
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% INCLUDE global/header.html.tmpl
</span><del>-   title  = &quot;$terms.Bugzilla QuickSearch&quot;,
-   style_urls = ['skins/standard/page.css']         
-   onload = 'document.forms[\'f\'].quicksearch.focus()'
</del><ins>+  title = &quot;$terms.Bugzilla QuickSearch&quot;
+  bodyclasses = ['narrow_page']
</ins><span class="cx">  %]
</span><span class="cx"> 
</span><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> 
</span><del>-&lt;p&gt;Type in one or more words (or pieces of words) to search for:&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;label for=&quot;quicksearch&quot;&gt;Type in one or more words (or pieces of words)
+  to search for:&lt;/label&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;form name=&quot;f&quot; action=&quot;buglist.cgi&quot; method=&quot;get&quot;
-      onsubmit=&quot;if (this.quicksearch.value == '')
-                { alert('Please enter one or more search terms first.');
-                  return false; } return true;&quot;&gt;
-  &lt;input type=&quot;text&quot; size=&quot;40&quot; name=&quot;quicksearch&quot;&gt;
</del><ins>+&lt;form name=&quot;f&quot; action=&quot;buglist.cgi&quot; method=&quot;get&quot;&gt;
+  &lt;input size=&quot;40&quot; name=&quot;quicksearch&quot; id=&quot;quicksearch&quot; autofocus required&gt;
</ins><span class="cx">   &lt;input type=&quot;submit&quot; value=&quot;Search&quot; id=&quot;find&quot;&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -51,25 +34,22 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;ul class=&quot;qs_help&quot;&gt;
</span><span class="cx">   &lt;li&gt;If you just put a word or series of words in the search box, 
</span><del>-    [%+ terms.Bugzilla %] will search the 
</del><ins>+    Bugzilla will search the
</ins><span class="cx">     [%+ field_descs.product FILTER html %],
</span><span class="cx">     [%+ field_descs.component FILTER html %], 
</span><span class="cx">     [%+ IF use_keywords %][%+ field_descs.keywords FILTER html %],[% END %]
</span><del>-    [%+ IF Param('usebugaliases') %][% field_descs.alias FILTER html %],[% END %]
</del><ins>+    [%+ field_descs.alias FILTER html %],
</ins><span class="cx">     [%+ field_descs.short_desc FILTER html %], 
</span><span class="cx">     [%+ IF Param('usestatuswhiteboard') %][% field_descs.status_whiteboard FILTER html %],[% END %]
</span><span class="cx">     and [% field_descs.longdesc FILTER html %] fields for your word or words.&lt;/li&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;li&gt;Typing just a &lt;strong&gt;number&lt;/strong&gt; in the search box will take
</span><del>-    you directly to the [% terms.bug %] with that ID. 
-    [% IF Param('usebugaliases') %]
-      Also, just typing the &lt;strong&gt;alias&lt;/strong&gt; of [% terms.abug %]
-      will take you to that [% terms.bug %].
-    [% END %]
</del><ins>+    you directly to the [% terms.bug %] with that ID. Also, just typing the
+    &lt;strong&gt;alias&lt;/strong&gt; of [% terms.abug %] will take you to that [% terms.bug %].
</ins><span class="cx">   &lt;/li&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;li&gt;Adding more terms &lt;strong&gt;narrows down&lt;/strong&gt; the search, it does not
</span><del>-     expand it. (In other words, [% terms.Bugzilla %] searches for 
</del><ins>+     expand it. (In other words, Bugzilla searches for
</ins><span class="cx">      [%+ terms.bugs %] that match &lt;em&gt;all&lt;/em&gt; your criteria, not
</span><span class="cx">      [%+ terms.bugs %] that match &lt;em&gt;any&lt;/em&gt; of your criteria.)&lt;/li&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -76,7 +56,7 @@
</span><span class="cx">   &lt;li&gt;Searching is &lt;strong&gt;case-insensitive&lt;/strong&gt;. So &lt;kbd&gt;table&lt;/kbd&gt;,
</span><span class="cx">     &lt;kbd&gt;Table&lt;/kbd&gt;, and &lt;kbd&gt;TABLE&lt;/kbd&gt; are all the same.&lt;/li&gt;
</span><span class="cx"> 
</span><del>-  &lt;li&gt;[% terms.Bugzilla %] does not just search for the exact word you put in,
</del><ins>+  &lt;li&gt;Bugzilla does not just search for the exact word you put in,
</ins><span class="cx">     but also for any word that &lt;strong&gt;contains&lt;/strong&gt; that word.
</span><span class="cx">     So, for example, searching for &quot;cat&quot; would also find [% terms.bugs %]
</span><span class="cx">     that contain it as part of other words&amp;mdash;for example, [% terms.abug %]
</span><span class="lines">@@ -144,7 +124,7 @@
</span><span class="cx">     referred to as 
</span><span class="cx">     &lt;kbd&gt;[% first_field.name.replace('^cf_') FILTER html %]&lt;/kbd&gt;,
</span><span class="cx">     also. However, if this causes a conflict between the standard
</span><del>-    [%+ terms.Bugzilla %] field names and the custom field names, the
</del><ins>+    Bugzilla field names and the custom field names, the
</ins><span class="cx">     standard field names always take precedence.&lt;/p&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="lines">@@ -155,7 +135,7 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; class=&quot;qs_fields&quot;&gt;
</del><ins>+&lt;table class=&quot;qs_fields&quot;&gt;
</ins><span class="cx">   &lt;thead&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th class=&quot;field_name&quot;&gt;Field&lt;/th&gt;
</span><span class="lines">@@ -229,6 +209,52 @@
</span><span class="cx">       (&lt;kbd&gt;url&lt;/kbd&gt; OR &lt;kbd&gt;location&lt;/kbd&gt;) AND (&lt;kbd&gt;bar&lt;/kbd&gt; OR 
</span><span class="cx">       &lt;kbd&gt;field&lt;/kbd&gt;) AND (NOT &lt;kbd&gt;focus&lt;/kbd&gt;)&lt;/p&gt;
</span><span class="cx">   &lt;/li&gt;
</span><ins>+
+  &lt;li&gt;
+    The default operator, colon (:), performs a &lt;strong&gt;substring&lt;/strong&gt;
+    match of the value. The following operators are supported:
+    &lt;ul&gt;
+      &lt;li&gt;
+        &lt;strong&gt;:&lt;/strong&gt; (substring):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;summary:foo&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where the &lt;kbd&gt;summary&lt;/kbd&gt; contains &lt;kbd&gt;foo&lt;/kbd&gt;.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;=&lt;/strong&gt; (equals):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;summary=foo&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where the &lt;kbd&gt;summary&lt;/kbd&gt; is exactly &lt;kbd&gt;foo&lt;/kbd&gt;.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;!=&lt;/strong&gt; (notequals):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;summary!=foo&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where the &lt;kbd&gt;summary&lt;/kbd&gt; is not &lt;kbd&gt;foo&lt;/kbd&gt;.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;&amp;gt;&lt;/strong&gt; (greaterthan):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;creation_ts&amp;gt;-2w&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where that were created between two weeks ago and now, excluding [%
+        terms.bugs %] exactly two weeks old.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;&amp;gt;=&lt;/strong&gt; (greaterthaneq):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;creation_ts&amp;gt;=-2w&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where that were created between two weeks ago and now, including [%
+        terms.bugs %] exactly two weeks old.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;&amp;lt;&lt;/strong&gt; (lessthan):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;creation_ts&amp;lt;-2w&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where that were created more than two weeks ago, excluding [%
+        terms.bugs %] exactly two weeks old.
+      &lt;/li&gt;
+      &lt;li&gt;
+        &lt;strong&gt;&amp;lt;=&lt;/strong&gt; (lessthaneq):&lt;br&gt;
+        &lt;kbd&gt;&lt;em&gt;creation_ts&amp;lt;=-2w&lt;/em&gt;&lt;/kbd&gt; will search for [% terms.bugs %]
+        where that were created more than two weeks ago, including [%
+        terms.bugs %] exactly two weeks old.
+      &lt;/li&gt;
+    &lt;/ul&gt;
+  &lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2 id=&quot;shortcuts&quot;&gt;Advanced Shortcuts&lt;/h2&gt;
</span><span class="lines">@@ -237,7 +263,7 @@
</span><span class="cx">   specific fields, there are certain characters or words that you can
</span><span class="cx">   use as a &quot;shortcut&quot; for searching certain fields:&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; class=&quot;qs_fields&quot;&gt;
</del><ins>+&lt;table class=&quot;qs_fields&quot;&gt;
</ins><span class="cx">   &lt;thead&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th class=&quot;field_name&quot;&gt;Field&lt;/th&gt;
</span><span class="lines">@@ -320,7 +346,7 @@
</span><span class="cx">   &lt;a href=&quot;query.cgi?format=advanced&quot;&gt;Advanced Search&lt;/a&gt; form.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul class=&quot;qs_help&quot;&gt;
</span><del>-  &lt;li&gt;All [% terms.bugs %] reported by userA@company.com or assigned to him
</del><ins>+  &lt;li&gt;All [% terms.bugs %] reported by userA@company.com or assigned to them
</ins><span class="cx">     (the initial @ is a shortcut for the assignee, see the
</span><span class="cx">     &lt;a href=&quot;#shortcuts&quot;&gt;Advanced Shortcuts&lt;/a&gt; section above):&lt;br&gt;
</span><span class="cx">     &lt;kbd&gt;ALL @userA@company.com OR reporter:userA@company.com&lt;/kbd&gt;&lt;/li&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesreleasenoteshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,424 +1,198 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved.
-  # Portions created by Everything Solved are Copyright (C) 2006
-  # Everything Solved. All Rights Reserved.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-[% SET title = &quot;$terms.Bugzilla 4.2 Release Notes&quot; %]
-[% INCLUDE global/header.html.tmpl 
</del><ins>+[% SET title = &quot;Bugzilla 5.0 Release Notes&quot; %]
+[% INCLUDE global/header.html.tmpl
</ins><span class="cx">   title = title
</span><del>-  style_urls = ['skins/standard/page.css'] 
</del><ins>+  bodyclasses = ['narrow_page']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;h1&gt;[% title FILTER html %]&lt;/h1&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul class=&quot;bz_toc&quot;&gt;
</span><del>-  &lt;li&gt;&lt;a href=&quot;#v42_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_point&quot;&gt;Updates in this 4.2.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_code_changes&quot;&gt;Code Changes Which May Affect
</del><ins>+  &lt;li&gt;&lt;a href=&quot;#introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#point&quot;&gt;Updates in this 5.0.x Release&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#code_changes&quot;&gt;Code Changes Which May Affect
</ins><span class="cx">     Customizations and Extensions&lt;/a&gt;&lt;/li&gt;
</span><del>-  &lt;li&gt;&lt;a href=&quot;#v42_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;a href=&quot;https://bugzilla.readthedocs.org/en/latest/installing/upgrading.html&quot;&gt;
+    Notes On Upgrading From a Previous Version&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;http://www.bugzilla.org/releases/&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h2 id=&quot;v42_introduction&quot;&gt;Introduction&lt;/h2&gt;
</del><ins>+&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Welcome to [% terms.Bugzilla %] 4.2! It has been almost a year since we
-  released [% terms.Bugzilla %] 4.0 on February 2011, and this new major
-  release comes with several new features and improvements. This release
-  contains major improvements to search, support for SQLite, improved
-  WebServices, and lots of other enhancements.&lt;/p&gt;
</del><ins>+&lt;p&gt;Welcome to Bugzilla 5.0! It has been slightly over two years since we released
+  Bugzilla 4.4 in May of 2013. This new major release comes with many new features
+  and improvements to WebServices and performance.&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;If you are upgrading from a release before 4.0, make sure to read the
-  release notes for all the &lt;a href=&quot;#v42_previous&quot;&gt;previous versions&lt;/a&gt;
-  in between your version and this one, &lt;strong&gt;particularly the Upgrading
-  section of each version's release notes&lt;/strong&gt;.&lt;/p&gt;
</del><ins>+&lt;p&gt;If you're upgrading, make sure to read
+  &lt;a href=&quot;https://bugzilla.readthedocs.org/en/latest/installing/upgrading.html&quot;&gt;
+  Notes On Upgrading From a Previous Version&lt;/a&gt;. If you are upgrading from a
+  release before 4.4, make sure to read the release notes for all the
+  &lt;a href=&quot;http://www.bugzilla.org/releases/&quot;&gt;previous versions&lt;/a&gt; in between
+  your version and this one, &lt;strong&gt;particularly the Upgrading section of each
+  version's release notes&lt;/strong&gt;.&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;h2 id=&quot;v42_point&quot;&gt;Updates in this 4.2.x Release&lt;/h2&gt;
</del><ins>+&lt;h2 id=&quot;point&quot;&gt;Updates in this 5.0.x Release&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3&gt;4.2.11&lt;/h3&gt;
</del><ins>+&lt;h3&gt;5.0.3&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;This release fixes several security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/4.0.14/&quot;&gt;Security Advisory&lt;/a&gt;
-    for details.&lt;/p&gt;
-
-&lt;h3&gt;4.2.10&lt;/h3&gt;
-
</del><span class="cx"> &lt;p&gt;This release fixes one security issue. See the
</span><del>-  &lt;a href=&quot;http://www.bugzilla.org/security/4.0.13/&quot;&gt;Security Advisory&lt;/a&gt;
-    for details.&lt;/p&gt;
-
-&lt;h3&gt;4.2.9&lt;/h3&gt;
-
-&lt;p&gt;This release fixes one regression introduced in [% terms.Bugzilla %] 4.2.8 by
-  &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=968576&quot;&gt;security [% terms.bug %] 968576&lt;/a&gt;:
-  URLs in [% terms.bug %] comments are displayed correctly again.
-  (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=998323&quot;&gt;[% terms.Bug %] 998323&lt;/a&gt;)&lt;/p&gt;
-
-&lt;h3&gt;4.2.8&lt;/h3&gt;
-
-&lt;p&gt;This release fixes one minor security issue. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/4.0.11/&quot;&gt;Security Advisory&lt;/a&gt;
</del><ins>+  &lt;a href=&quot;https://www.bugzilla.org/security/4.4.11/&quot;&gt;Security Advisory&lt;/a&gt;
</ins><span class="cx">   for details.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;In addition, the following [% terms.bugs %] have been fixed in this release:&lt;/p&gt;
</del><ins>+&lt;p&gt;This release also contains the following [% terms.bug %] fixes:&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; was incorrectly reporting DBI 1.630 (1.63) as
-    being older than 1.614, preventing the upgrade to complete.
-    If you still use Perl 5.10.0 or older, make sure you have the
-    &lt;a href=&quot;http://search.cpan.org/~jpeacock/version/lib/version.pod&quot;&gt;version&lt;/a&gt;
-    module installed before running &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;.
-    If you use Perl 5.10.1 or newer, this module is already available and
-    no special action is required.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=938300&quot;&gt;[% terms.Bug %] 938300&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; no longer fails with &quot;Invalid version format (non-numeric data)&quot;
-    when a Perl module contains an invalid version number.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=781672&quot;&gt;[% terms.Bug %] 781672&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The PROJECT environment variable is now correctly taken into account
-    when mod_perl is enabled (this variable allows several installations to
-    share the same codebase).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=843457&quot;&gt;[% terms.Bug %] 843457&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] no longer crashes when the &lt;kbd&gt;shutdownhtml&lt;/kbd&gt;
-    parameter is set and using a non-cookie based authentication method.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=748095&quot;&gt;[% terms.Bug %] 748095&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The default date and time format used for SQLite has been fixed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=938161&quot;&gt;[% terms.Bug %] 938161&lt;/a&gt;)&lt;/li&gt;
</del><ins>+  &lt;li&gt;A regression in Bugzilla 5.0.2 caused &lt;kbd&gt;whine.pl&lt;/kbd&gt; to be unable
+    to send emails due to a missing subroutine.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1235395&quot;&gt;[% terms.Bug %] 1235395&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;The &lt;kbd&gt;Encode&lt;/kbd&gt; module changed the way it encodes strings, causing
+    email addresses in emails sent by [%terms.Bugzilla %] to be encoded,
+    preventing emails from being correctly delivered to recipients.
+    We now encode email headers correctly.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1246228&quot;&gt;[% terms.Bug %] 1246228&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Fix additional taint issues with Strawberry Perl.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=987742&quot;&gt;[% terms.Bug %] 987742&lt;/a&gt; and
+    &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1089448&quot;&gt;[% terms.bug %] 1089448&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;When exporting a buglist as a CSV file, fields starting with either
+    &quot;=&quot;, &quot;+&quot;, &quot;-&quot; or &quot;@&quot; are preceded by a space to not trigger formula
+    execution in Excel.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1259881&quot;&gt;[% terms.Bug %] 1259881&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;An extension which allows user-controlled data to be used as a link in
+    tabs could trigger XSS if the data is not correctly sanitized.
+    [%+ terms. Bugzilla %] no longer relies on the extension to do the sanity
+    check. A vanilla installation is not affected as no tab is user-controlled.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1250114&quot;&gt;[% terms.Bug %] 1250114&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Extensions can now easily override the favicon used for the
+    [%+ terms.Bugzilla %] website.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1250264&quot;&gt;[% terms.Bug %] 1250264&lt;/a&gt;)&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h3&gt;4.2.7&lt;/h3&gt;
</del><ins>+&lt;h3&gt;5.0.2&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;This release fixes several security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/4.0.10/&quot;&gt;Security Advisory&lt;/a&gt;
</del><ins>+&lt;p&gt;This release fixes two security issues. See the
+  &lt;a href=&quot;https://www.bugzilla.org/security/4.2.15/&quot;&gt;Security Advisory&lt;/a&gt;
</ins><span class="cx">   for details.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;In addition, the following [% terms.bugs %] have been fixed in this release:&lt;/p&gt;
</del><ins>+&lt;p&gt;This release also contains the following [% terms.bug %] fixes:&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;Internet Explorer 11 and KHTML-based browsers such as Konqueror can now
-    display buglists correctly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=902515&quot;&gt;[% terms.Bug %] 902515&lt;/a&gt; and
-    &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=914262&quot;&gt;[% terms.bug %] 914262&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;When the &lt;kbd&gt;password_complexity&lt;/kbd&gt; parameter was set to
-    'letters_numbers_specialchars', passwords containing numbers and special
-    characters only were accepted. Now it makes sure that a letter is also present.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=897264&quot;&gt;[% terms.Bug %] 897264&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;With DB servers doing case-insensitive comparisons, such as MySQL, tokens
-    and login cookies were not correctly validated as the case was ignored.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=906745&quot;&gt;[% terms.Bug %] 906745&lt;/a&gt; and
-    &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=907438&quot;&gt;[% terms.bug %] 907438&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;All security headers (such as X-Frame-Options) are now returned when using XML-RPC.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=787328&quot;&gt;[% terms.Bug %] 787328&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Oracle crashed when reporting a new [% terms.bug %] if a custom free-text field
-    was non-mandatory and left empty.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=919475&quot;&gt;[% terms.Bug %] 919475&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;It was not possible to import [% terms.bugs %] using &lt;kbd&gt;importxml.pl&lt;/kbd&gt; with Oracle.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=848063&quot;&gt;[% terms.Bug %] 848063&lt;/a&gt;)&lt;/li&gt;
</del><ins>+  &lt;li&gt;mod_perl now works correctly with mod_access_compat turned off on
+    Apache 2.4. To regenerate the &lt;kbd&gt;.htaccess&lt;/kbd&gt; files, you must first
+    delete all existing ones in subdirectories:
+    &lt;pre&gt;find . -mindepth 2 -name .htaccess -exec rm -f {} \;&lt;/pre&gt;
+    You must then run &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; again to recreate them with
+    the correct syntax.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1223790&quot;&gt;[% terms.Bug %] 1223790&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Emails sent by [% terms.Bugzilla %] are now correctly encoded as UTF-8.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=714724&quot;&gt;[% terms.Bug %] 714724&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Strawberry Perl is now fully supported on Windows.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1089448&quot;&gt;[% terms.Bug %] 1089448&lt;/a&gt;
+    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=987742&quot;&gt;[% terms.bug %] 987742&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;The XML-RPC API now works with IIS on Windows.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=708252&quot;&gt;[% terms.Bug %] 708252&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Some queries should now be faster on PostgreSQL.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1184431&quot;&gt;[% terms.Bug %] 1184431&lt;/a&gt;)&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h3&gt;4.2.6&lt;/h3&gt;
</del><ins>+&lt;h3&gt;5.0.1&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;The following important fixes/changes have been made in this release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;MySQL 5.6 is now supported.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=852560&quot;&gt;[% terms.Bug %] 852560&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A regression introduced in [% terms.Bugzilla %] 4.2.4 made Oracle crash
-    when installing [% terms.Bugzilla %] for the first time.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=858911&quot;&gt;[% terms.Bug %] 858911&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If a custom field depends on a product, component or classification,
-    the &quot;mandatory&quot; bit was ignored on [% terms.bug %] creation.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=782210&quot;&gt;[% terms.Bug %] 782210&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Queries involving flags were broken in several ways. These queries
-    have been fixed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=828344&quot;&gt;[% terms.Bug %] 828344&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Tabular reports involving the empty resolution did not link [% terms.bug %]
-    counts correctly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=212471&quot;&gt;[% terms.Bug %] 212471&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[%%]ug.search&lt;/kbd&gt; WebService method was returning all visible
-    [%+ terms.bugs %] when called with no arguments, ignoring the
-    &lt;kbd&gt;max_search_results&lt;/kbd&gt; and &lt;kbd&gt;search_allow_no_criteria&lt;/kbd&gt; parameters.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=859118&quot;&gt;[% terms.Bug %] 859118&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;4.2.5&lt;/h3&gt;
-
</del><span class="cx"> &lt;p&gt;This release fixes one security issue. See the
</span><del>-  &lt;a href=&quot;http://www.bugzilla.org/security/3.6.12/&quot;&gt;Security Advisory&lt;/a&gt;
</del><ins>+  &lt;a href=&quot;https://www.bugzilla.org/security/4.2.14/&quot;&gt;Security Advisory&lt;/a&gt;
</ins><span class="cx">   for details.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
</del><ins>+&lt;p&gt;This release also contains the following [% terms.bug %] fixes:&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;Queries involving commenters were slow to return results. These queries
-    have been optimized for better performance.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=818007&quot;&gt;[% terms.Bug %] 818007&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;It is no longer possible to create a new [% terms.bug %] using a disabled
-    component, target milestone or version. These inactive values are also no
-    longer accessible when moving [% terms.abug %] into another product.
-    ([% terms.Bugs %] &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=752946&quot;&gt;752946&lt;/a&gt;
-    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=840824&quot;&gt;840824&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;It was possible to create a new [% terms.bug %] with no description
-    despite the status workflow required one for new [% terms.bugs %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=818890&quot;&gt;[% terms.Bug %] 818890&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Custom multi-select fields are now available in the &quot;Search By Change
-    History&quot; section of the &quot;Advanced Search&quot; page.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=839950&quot;&gt;[% terms.Bug %] 839950&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A custom select field could have its list of values truncated if one
-    or more of its values were disabled and the visibility of the values were
-    controlled by another field.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=806809&quot;&gt;[% terms.Bug %] 806809&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Warnings thrown by Return::Value 1.666002 about this deprecated module
-    and which are polluting the web server error log are now disabled.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=826678&quot;&gt;[% terms.Bug %] 826678&lt;/a&gt;)&lt;/li&gt;
</del><ins>+  &lt;li&gt;Users whose login name is not an email address could not log in on
+    installations which use LDAP to authenticate users.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1179160&quot;&gt;[% terms.Bug %] 1179160&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;If a mandatory custom field was hidden, it was not possible to create
+    a new [% terms.bug %] or to edit existing ones.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1183398&quot;&gt;[% terms.Bug %] 1183398&lt;/a&gt;
+    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1196969&quot;&gt;[% terms.bug %] 1196969&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;A user editing his login name to point to a non-existent email address
+    could cause Bugzilla to stop working, causing a denial of service.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1194987&quot;&gt;[% terms.Bug %] 1194987&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Emails generated during a transaction made PostgreSQL stop working.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1186700&quot;&gt;[% terms.Bug %] 1186700&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;[% terms.Bugs %] containing a comment with a reference to a [% terms.bug %]
+    ID larger than 2^31 could not be displayed anymore using PostgreSQL.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1191937&quot;&gt;[% terms.Bug %] 1191937&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;The date picker in the &quot;Time Summary&quot; page was broken.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1181649&quot;&gt;[% terms.Bug %] 1181649&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;If &lt;kbd&gt;Test::Taint&lt;/kbd&gt; or any other Perl module required to use the
+    JSON-RPC API was not installed or was too old, the UI to tag comments was
+    displayed anyway, you could tag comments, but tags were not persistent
+    (they were lost on page reload). Now the UI to tag comments is not displayed
+    at all until the missing Perl modules are installed and up-to-date.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1183227&quot;&gt;[% terms.Bug %] 1183227&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;Custom fields of type &lt;kbd&gt;INTEGER&lt;/kbd&gt; now accept negative integers.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1198659&quot;&gt;[% terms.Bug %] 1198659&lt;/a&gt;)&lt;/li&gt;
+  &lt;li&gt;On Windows, the &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; installation script no longer
+    asks for a SMTP server. It can be set after the installation is complete.
+    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1191255&quot;&gt;[% terms.Bug %] 1191255&lt;/a&gt;)&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h3&gt;4.2.4&lt;/h3&gt;
</del><ins>+&lt;h2 id=&quot;req&quot;&gt;Minimum Requirements&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;This release fixes several security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.6.11/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Queries involving group substitution were crashing when the &quot;usevisibilitygroups&quot;
-    parameter was enabled. Also, CVE-2011-2979 was not fully fixed in
-    [%+ terms.Bugzilla %] 4.1.3.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=788098&quot;&gt;[% terms.Bug %] 788098&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Flag names were not properly escaped when displayed on the &quot;confirm user
-    match&quot; page. An admin could unintentionally break the display of this page
-    if a flag name contains a &amp;lt; or &amp;gt; character, because these characters
-    were not filtered.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=790215&quot;&gt;[% terms.Bug %] 790215&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;We now prevent private WebServices methods from being called by external
-    applications.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=793826&quot;&gt;[% terms.Bug %] 793826&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;PostgreSQL 9.2 requires DBD::Pg 2.19.3.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=799721&quot;&gt;[% terms.Bug %] 799721&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Oracle was crashing when listing keywords or flags in buglists.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=780053&quot;&gt;[% terms.Bug %] 780053&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Oracle was crashing when typing several bare words in the QuickSearch field.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=804505&quot;&gt;[% terms.Bug %] 804505&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugs %] with the resolution MOVED couldn't be edited anymore.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=757935&quot;&gt;[% terms.Bug %] 757935&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Editing dependencies from the &quot;Change Several [% terms.Bugs %] at Once&quot;
-    page didn't work as expected. [% terms.Bug %] IDs were incorrectly parsed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=790909&quot;&gt;[% terms.Bug %] 790909&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The &quot;Actual Hours&quot; axis now works correctly in tabular and graphical reports.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=794389&quot;&gt;[% terms.Bug %] 794389&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; was failing to run if the Voting extension was
-    enabled on a fresh installation and some mandatory modules were missing.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=652047&quot;&gt;[% terms.Bug %] 652047&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] no longer crashes when viewing [% terms.abug %] while
-    a custom field is being added.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=531243&quot;&gt;[% terms.Bug %] 531243&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;For improved security, we now send the &quot;X-Content-Type-Options:&amp;nbsp;nosniff&quot;
-    and &quot;X-XSS-Protection:&amp;nbsp;block&quot; headers with every response.
-    ([% terms.Bugs %] &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=671612&quot;&gt;671612&lt;/a&gt;
-    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=680771&quot;&gt;680771&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;4.2.3&lt;/h3&gt;
-
-&lt;p&gt;This release fixes two security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.6.10/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Attaching a file to [% terms.abug %] was broken due to a change in
-    Perl 5.16.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=771100&quot;&gt;[% terms.Bug %] 771100&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A regression in [% terms.Bugzilla %] 4.2.2 made Oracle crash when
-    displaying a buglist.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=780028&quot;&gt;[% terms.Bug %] 780028&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;It was possible to search on history for comments and attachments you
-    cannot see (though these private comments and attachments are never disclosed).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=779709&quot;&gt;[% terms.Bug %] 779709&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;PostgreSQL databases could be created with the wrong encoding despite
-    the utf8 parameter being enabled.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=783786&quot;&gt;[% terms.Bug %] 783786&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Scheduled whines could be sent at the wrong time on Oracle.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=559539&quot;&gt;[% terms.Bug %] 559539&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Tokens are no longer included in saved queries.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=772953&quot;&gt;[% terms.Bug %] 772953&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;An admin could unintentionally break the display of buglists if a custom
-    field description contains a &amp;lt; or &amp;gt; character, because these characters
-    were not filtered.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=785917&quot;&gt;[% terms.Bug %] 785917&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Adding or removing a DB column in Oracle didn't handle SERIAL columns
-    correctly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=731156&quot;&gt;[% terms.Bug %] 731156&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A minor CSRF vulnerability in token.cgi allowed possible unauthorized
-    password reset e-mail requests.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=706271&quot;&gt;[% terms.Bug %] 706271&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;4.2.2&lt;/h3&gt;
-
-&lt;p&gt;This release fixes two security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.6.9/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;A regression introduced in [% terms.Bugzilla %] 4.0 caused some login
-    names to be ignored when entered in the CC list of [% terms.bugs %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=756314&quot;&gt;[% terms.Bug %] 756314&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Some queries could trigger an invalid SQL query if strings entered by
-    the user contained leading or trailing whitespaces.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=760075&quot;&gt;[% terms.Bug %] 760075&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The auto-completion form for keywords no longer automatically selects
-    the first keyword in the list when the field is empty.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=764517&quot;&gt;[% terms.Bug %] 764517&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A regression in [% terms.Bugzilla %] 4.2 prevented classifications
-    from being used in graphical and tabular reports in the &quot;Multiple Tables&quot;
-    field.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=753688&quot;&gt;[% terms.Bug %] 753688&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Attachments created by the &lt;kbd&gt;email_in.pl&lt;/kbd&gt; script were associated
-    to the wrong comment.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=762785&quot;&gt;[% terms.Bug %] 762785&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Very long dependency lists can now be viewed correctly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=762783&quot;&gt;[% terms.Bug %] 762783&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Keywords are now correctly escaped in the auto-completion form to prevent
-    any XSS abuse.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=754561&quot;&gt;[% terms.Bug %] 754561&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A regression introduced in [% terms.Bugzilla %] 4.0rc2 when fixing
-    CVE-2011-0046 caused the &quot;Un-forget the search&quot; link to not work correctly
-    anymore when restoring a deleted saved search, because this link was
-    lacking a valid token.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=768870&quot;&gt;[% terms.Bug %] 768870&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Two minor CSRF vulnerabilities have been fixed which could let an attacker
-    alter your default search criteria in the Advanced Search page.
-    ([% terms.Bugs %] &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=754672&quot;&gt;754672&lt;/a&gt;
-    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=754673&quot;&gt;754673&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;4.2.1&lt;/h3&gt;
-
-&lt;p&gt;This release fixes two security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.6.8/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Due to a regression introduced when fixing CVE-2012-0453, if an XML-RPC
-    client sets the charset as part of its Content-Type header, we were
-    incorrectly rejecting the request. The header is now correctly parsed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=731219&quot;&gt;[% terms.Bug %] 731219&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Email notifications about status changes in blockers were incorrectly
-    formatted. Several pieces of text were missing in the emails.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=731586&quot;&gt;[% terms.Bug %] 731586&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Many [% terms.bugs %] related to the searching system have been fixed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/buglist.cgi?bug_id=58179,715270,730984,731163,737436,745320&quot;&gt;
-    [% terms.Bugs %] 58179, 715270, 730984, 731163, 737436 and 745320&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;When using the QuickSearch box, complex queries are now parsed correctly.
-    It also behaves correctly with non-ASCII characters (such as é, ä, ü, etc.).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/buglist.cgi?bug_id=554819,663377,730207&quot;&gt;
-    [% terms.Bugs %] 554819, 663377 and 730207&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The 'take' link besides the assignee field now works correctly when
-    the &lt;kbd&gt;usemenuforusers&lt;/kbd&gt; parameter is turned on.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=734997&quot;&gt;[% terms.Bug %] 734997&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;URLs in the 'Total' row at the bottom of tabular reports were broken
-    when JavaScript was enabled and a user field was used for the vertical
-    axis.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=731323&quot;&gt;[% terms.Bug %] 731323&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Some performance problems have been fixed for installations with many
-    products, components or versions.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/buglist.cgi?bug_id=695514,731055&quot;&gt;
-    [% terms.Bugs %] 695514 and 731055&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A new hook named &lt;kbd&gt;buglist_column_joins&lt;/kbd&gt; has been added to let
-    extensions alter the &lt;kbd&gt;Bugzilla::Search::COLUMN_JOINS&lt;/kbd&gt; hash.
-    Now more fields can be displayed as columns in buglists, in combination
-    with the already existing &lt;kbd&gt;buglist_columns&lt;/kbd&gt; hook.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=743991&quot;&gt;[% terms.Bug %] 743991&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A new hook named &lt;kbd&gt;error_catch&lt;/kbd&gt; has been added to let extensions
-    alter the way errors are thrown.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=745197&quot;&gt;[% terms.Bug %] 745197&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;A new hook named &lt;kbd&gt;admin_editusers_action&lt;/kbd&gt; has been added to let
-    extensions alter the behavior of &lt;kbd&gt;editusers.cgi&lt;/kbd&gt;. This lets you add
-    new features to this script very easily.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=730794&quot;&gt;[% terms.Bug %] 730794&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v42_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 4.0.2 will look like
</del><ins>+&lt;p&gt;Any requirements that are new since 4.4 will look like
</ins><span class="cx">   &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;a href=&quot;#v42_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_sqlite&quot;&gt;For SQLite Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_req_apache&quot;&gt;Optional Apache Modules&lt;/a&gt;&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;a href=&quot;#req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_sqlite&quot;&gt;For SQLite Users&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_optional_mod&quot;&gt;Optional Perl Modules&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#req_apache&quot;&gt;Optional Apache Modules&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_req_perl&quot;&gt;Perl&lt;/h3&gt;
</del><ins>+&lt;h3 id=&quot;req_perl&quot;&gt;Perl&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Perl v5.8.1&lt;/p&gt;
</del><ins>+&lt;p&gt;Perl &lt;span class=&quot;req_new&quot;&gt;v5.10.1&lt;/span&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-[% INCLUDE db_req db='mysql' db_new =&gt; 1 dbd_new =&gt; 1 %]
</del><ins>+[% INCLUDE db_req db='mysql' %]
</ins><span class="cx"> 
</span><del>-[% INCLUDE db_req db='pg' db_new =&gt; 1 %]
</del><ins>+[% INCLUDE db_req db='pg' %]
</ins><span class="cx"> 
</span><span class="cx"> [% INCLUDE db_req db='oracle' %]
</span><span class="cx"> 
</span><span class="cx"> [% INCLUDE db_req db='sqlite' %]
</span><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
</del><ins>+&lt;h3 id=&quot;req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% INCLUDE req_table reqs = REQUIRED_MODULES
</span><del>-                     new = ['Math-Random-ISAAC']
-                     updated = ['URI'] %]
</del><ins>+                     new = ['File-Slurp','JSON-XS', 'Email-Sender']
+                     updated = ['DateTime', 'DateTime-TimeZone',
+                                'Template-Toolkit', 'URI'] %]
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt;
</del><ins>+&lt;h3 id=&quot;req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;p&gt;The following perl modules, if installed, enable various
</span><del>-  features of [% terms.Bugzilla %]:&lt;/p&gt;
</del><ins>+  features of Bugzilla:&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> [% INCLUDE req_table reqs = OPTIONAL_MODULES
</span><del>-                     new  = ['Encode', 'Encode-Detect']
-                     updated = ['PatchReader', 'Apache-SizeLimit']
</del><ins>+                     new  = ['Cache-Memcached','File-Copy-Recursive']
+                     updated = ['Chart', 'Test-Taint']
</ins><span class="cx">                      include_feature = 1 %]
</span><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_req_apache&quot;&gt;Optional Apache Modules&lt;/h3&gt;
</del><ins>+&lt;h3 id=&quot;req_apache&quot;&gt;Optional Apache Modules&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;If you are using Apache as your webserver, [% terms.Bugzilla %] can
</del><ins>+&lt;p&gt;If you are using Apache as your webserver, Bugzilla can
</ins><span class="cx">   take advantage of some Apache features if you have the below Apache
</span><del>-  modules installed and enabled. Currently,
-  &lt;a href=&quot;#v40_feat_js_css_update&quot;&gt;certain [% terms.Bugzilla %] features&lt;/a&gt;
-  are enabled only if you have all of the following modules installed
-  and enabled:&lt;/p&gt;
</del><ins>+  modules installed and enabled.&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><span class="cx">   &lt;li&gt;mod_headers&lt;/li&gt;
</span><span class="lines">@@ -431,1215 +205,247 @@
</span><span class="cx">   you.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-&lt;h2 id=&quot;v42_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
</del><ins>+&lt;h2 id=&quot;feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;a href=&quot;#v42_feat_sqlite&quot;&gt;Experimental SQLite Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_attach&quot;&gt;Creating an Attachment by Pasting Text Into
-    a Text Field&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_email&quot;&gt;HTML [% terms.Bug %]mail&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_search&quot;&gt;Improved Searching System&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_product&quot;&gt;Disabling Old Components, Versions and Milestones&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_custom&quot;&gt;Displaying a Custom Field Value Based on Multiple
-    Values of Another Field&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_audit&quot;&gt;Auditing of All Changes Within [% terms.Bugzilla %]&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_wai&quot;&gt;Accessibility Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v42_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;a href=&quot;#feat_webservices&quot;&gt;Improved WebServices&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat_caching_performance&quot;&gt;Improved Caching using Memcached&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat_comment_tags&quot;&gt;Abililty to Tag [% terms.Bug %] Comments&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat_bug_groups&quot;&gt;Improved [% terms.Bug %] Group Membership Checking&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat_documentation&quot;&gt;Improved Documentation for Users and Administrators&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href=&quot;#feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_sqlite&quot;&gt;Experimental SQLite Support&lt;/h3&gt;
</del><ins>+&lt;h3 id=&quot;feat_webservices&quot;&gt;Improved WebServices&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;SQLite is now supported by [% terms.Bugzilla %] and becomes the 4th supported
-  database besides MySQL, PostgreSQL and Oracle. SQLite support must be considered
-  as experimental, at least till the next major release.&lt;/p&gt;
</del><ins>+&lt;p&gt;
+  This release has major improvements in the WebServices interface. One big
+  addition is a new REST-like endpoint alongside the existing XML-RPC and JSON-RPC
+  endpoints. This will allow clients to access Bugzilla data using standard HTTP
+  calls for easy development. &lt;strong&gt;Note:&lt;/strong&gt; XML-RPC and JSON-RPC are
+  deprecated in favor of REST and will likely be removed in the Bugzilla 7.0 release.
+&lt;/p&gt;
+&lt;p&gt;
+  Also API key support has been added so that API calls will no longer need to use
+  cookies or a user's login and password. Users can create a different API key for
+  each application and revoke API keys that have been compromised or are no longer
+  needed. The API key will simply be passed to each call as credentials.
+&lt;/p&gt;
+&lt;p&gt;
+  Several methods have been added and existing ones improved to allow returning
+  data that was not available before such as &lt;kbd&gt;Group.get&lt;/kbd&gt;. &lt;kbd&gt;B[%%]ug.search&lt;/kbd&gt;
+  is now as full featured as the Advanced Query UI allowing for the same searches
+  to be executed. Attachment data such as flags and other metadata can now be
+  updated through the API. Other WebService changes are detailed
+  &lt;a href=&quot;#feat_webservices_other&quot;&gt;below&lt;/a&gt;.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Note that use of SQLite is only recommended for small installations. Larger
-  installations should use MySQL, PostgreSQL, or Oracle.&lt;/p&gt;
</del><ins>+&lt;h3 id=&quot;feat_caching_performance&quot;&gt;Improved Caching using Memcached&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_attach&quot;&gt;Creating an Attachment by Pasting Text Into a Text Field&lt;/h3&gt;
</del><ins>+&lt;p&gt;
+  Bugzilla now has the ability to connect to a Memcached server running either
+  locally or on the network to allow fast access to different types of data.
+  This cuts down on the amount of database hits and can improve performance. Other
+  areas have been improved as well to take advantage of caching in memory for
+  objects that are retrieved multiple times during a request such as user data, etc.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;You can now create a new attachment simply by pasting some text into a text
-  field, in addition to the normal upload process for attachments.&lt;/p&gt;
</del><ins>+&lt;h3 id=&quot;feat_comment_tags&quot;&gt;Ability to Tag [% terms.Bug %] Comments&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_email&quot;&gt;HTML [% terms.Bug %]mail&lt;/h3&gt;
</del><ins>+&lt;p&gt;
+  Users can add tags, visible to other users, to [% terms.bug %] comments. This
+  gives the users the ability to thread conversations, mark comments as spam,
+  identify important comments, etc. Users can hide comments that contain specific
+  tags if desired. The tag input field also supports autocompletion so commonly
+  used tags can be selected. Administrators can make specifically tagged comments
+  be automatically hidden from view.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;By default, [% terms.bug %]mails (email notifications about changes to
-  [%+ terms.bugs %]) are now sent in an HTML format that is more readable than
-  the old text format. Those who prefer the old text format can still choose it
-  in their Preferences, however.&lt;/p&gt;
</del><ins>+&lt;h3 id=&quot;feat_bug_groups&quot;&gt;Improved [% terms.Bug %] Group Membership Checking&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_search&quot;&gt;Improved Searching System&lt;/h3&gt;
</del><ins>+&lt;p&gt;
+  In the past, Bugzilla restricted who can view [% terms.abug %] to everyone
+  who was a member of ALL the groups the [% terms.bug %] was in. That is, the
+  groups were ANDed together. This made some access control scenarios rather
+  difficult to achieve. So now, Bugzilla defaults to (and can be switched to,
+  in existing installations) a mode where the [% terms.bug %] can be viewed by
+  everyone who is a member of ANY group the [% terms.bug %] is in. That is, the
+  groups are ORed together. This give more flexibility in the way [% terms.bugs %]
+  are made private to specific groups of users.
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;strong&gt;Note:&lt;/strong&gt; Group memberships for [% terms.bugs %] and users are
+  not changed at all when this setting is switched. When switching from AND to
+  OR, this means that [% terms.bugs %] may be more widely viewable than previously.
+  It is the responsibility of the administrator to make sure that no [% terms.bugs %]
+  are accidentally revealed to the wrong people when changing this setting.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;The Custom Search section in the Advanced Search page has been redesigned
-  to work in a more sensible way. Complex queries are easier to build and have
-  more sensible results, as they are built using a more intuitive logic.
-  Some very complicated queries are still impossible to generate, though.
-  Things should improve in future releases.&lt;/p&gt;
</del><ins>+&lt;h3 id=&quot;feat_documentation&quot;&gt;Improved Documentation for Users and Administrators&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_product&quot;&gt;Disabling Old Components, Versions and Milestones&lt;/h3&gt;
</del><ins>+&lt;p&gt;
+  The standard documentation that is shipped along with the Bugzilla code has been
+  rewritten and improved using the reStructuredText format. This allows the
+  documentation to be easily hosted at sites such as ReadTheDocs.org and can
+  also be more easily converted into different formats such as HTML and PDF.
+  A new section dedicated to the new REST WebService API has also been added,
+  significantly improving on the old WebService documentation.
+&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;p&gt;Older components, versions and milestones can now be disabled. [% terms.Bugs %]
-  already using them are not affected, but these values will no longer be
-  available for new [% terms.bugs %].&lt;/p&gt;
</del><ins>+&lt;h3 id=&quot;feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;h3 id=&quot;v42_feat_custom&quot;&gt;Displaying a Custom Field Value Based on Multiple Values
-  of Another Field&lt;/h3&gt;
-
-&lt;p&gt;A custom field can now be displayed based on multiple values of another field.
-  (For example, one custom field could now appear in multiple products.)
-  Previously, you could only display a custom field based on a single value of
-  another field.&lt;/p&gt;
-
-&lt;h3 id=&quot;v42_feat_audit&quot;&gt;Auditing of All Changes Within [% terms.Bugzilla %]&lt;/h3&gt;
-
-&lt;p&gt;Most changes made through the admin interface are now logged to the database,
-  in the &lt;kbd&gt;audit_log&lt;/kbd&gt; table. There is no UI to access this table yet,
-  but developers are free to create their own tools to track changes made into
-  their installation. This is only a first step, and improvements are expected
-  in future releases.&lt;/p&gt;
-
-&lt;h3 id=&quot;v42_feat_wai&quot;&gt;Accessibility Improvements&lt;/h3&gt;
-
-&lt;p&gt;A project has started thanks to Francisco Donalisio from IBM to make
-  [%+ terms.Bugzilla %] compliant with the W3C Web Accessibility Initiative
-  standards. A lot more work still needs to be done, but we expect a much
-  better compatibility for the next major release.&lt;/p&gt;
-
-&lt;h3 id=&quot;v42_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
</del><span class="cx"> &lt;h4&gt;Enhancements for Users&lt;/h4&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Users without editbugs privileges can
-    no longer remove other users from the CC list of [% terms.bugs %].&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Local [% terms.bug %] IDs are now valid
-    in the See Also field. Adding such an ID will also add a reciprocal link in
-    the other [% terms.bug %].&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; After editing [% terms.abug %] or an
-    attachment, the URL is automatically changed to &lt;kbd&gt;show_bug.cgi&lt;/kbd&gt;
-    instead of &lt;kbd&gt;post_bug.cgi&lt;/kbd&gt;, &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt; or
-    &lt;kbd&gt;attachment.cgi&lt;/kbd&gt; so that reloading the page (for instance when
-    restarting the web browser) displays the right page. This feature is supported
-    by Firefox, Chrome and Safari, but not by Internet Explorer 9.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Inactive accounts are no longer
-    displayed in user fields when user-autocompletion is enabled.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; User-autocompletion is now much faster
-    on installations with many user accounts.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; The See Also field now accepts URLs
-    pointing to MantisBT, Trac, JIRA and the sourceforge.net b[%%]ug trackers.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Displaying [% terms.abug %] with many
-    dependencies is now much faster.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Attachments:&lt;/strong&gt; The encoding of text files can be automatically
-    detected when uploading them as attachments.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Attachments:&lt;/strong&gt; Clickjacking could possibly occur in an attachment 
-    Details page if a user attached a specially formatted HTML file. To fix this 
-    potential problem, the Details page always displays the HTML source instead and 
-    users can see rendered page by clicking on View.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags:&lt;/strong&gt; Changing the requestee of a flag no longer changes
-    the requester.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Reports:&lt;/strong&gt; If JavaScript is enabled in your web browser,
-    tabular reports are now sortable based on any displayed column.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Dependency graphs:&lt;/strong&gt; The &lt;em&gt;Show every [% terms.bug %] in
-    the system with dependencies&lt;/em&gt; option has been removed.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; The columns displayed by default in
-    [%+ terms.bug %]lists have changed. These columns are now displayed by default
-    unless otherwise specified:&lt;br&gt;
-    &lt;kbd&gt;product | component | assignee | [% terms.bug %] status | resolution |
-    [%+ terms.bug %] summary | last change date&lt;/kbd&gt;&lt;br&gt;
-    This means that the priority, severity and operating system columns are no
-    longer displayed by default.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; [% terms.Bug %]lists will now only display the
-    first 500 [% terms.bugs %] by default. It is still possible to display the
-    whole list, though.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When using relative dates and times, &lt;kbd&gt;-1w&lt;/kbd&gt;
-    is now a synonym for &lt;kbd&gt;-7d&lt;/kbd&gt; and means exactly 7 days. Previously,
-    &lt;kbd&gt;-1w&lt;/kbd&gt; meant the beginning of the week, which was confusing some users.
-    The same confusion existed for &lt;kbd&gt;-1d&lt;/kbd&gt; which was different from
-    &lt;kbd&gt;-24h&lt;/kbd&gt;, and for &lt;kbd&gt;-1m&lt;/kbd&gt; which was different from &lt;kbd&gt;-30d&lt;/kbd&gt;.
-    Now if you really want the beginning of the day, week or month, you must use
-    &lt;kbd&gt;-1ds&lt;/kbd&gt;, &lt;kbd&gt;-1ws&lt;/kbd&gt;, and &lt;kbd&gt;-1ms&lt;/kbd&gt; respectively, where
-    &quot;s&quot; means &quot;start of&quot;. This change will affect existing saved searches using
-    relative dates.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; A new &lt;em&gt;Include fulltext when performing quick
-    searches&lt;/em&gt; user preference has been added which permits users to include
-    or exclude comments when using quicksearches.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; It is now possible to query for [% terms.bugs %]
-    based on personal tags in the Custom Search section in the Advanced Search
-    page.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Email notifications: &lt;/strong&gt; The date and time of comments are no
-    longer displayed in the comment header in [% terms.bug%]mails. This information
-    is already available in the email header itself.&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; The deadline field is now visible to users
+    not in the the &lt;kbd&gt;timetracking&lt;/kbd&gt; group.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; There is now a &quot;Preview&quot; mode when
+    creating a new comment that allows you to see how the comment will look
+    before committing to the database.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; The reporter is now allowed to enter
+    keywords at time of [% terms.bug %] creation.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; &quot;See Also&quot; now allows spaces as well as
+    commas to delimit multiple values.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Auto linkification in comments of [% terms.bug %]
+    IDs and comment IDs has been improved.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; [% terms.Bugs %] can now have multiple
+    aliases assigned to them. Before each [% terms.bug %] could only have a single
+    value. Also, aliases are now visible in the browser's title bar.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Users can now change the flags of multiple
+    [%+ terms.bugs %] at once using the mass-edit form.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Charts and Reports:&lt;/strong&gt; UTF-8 characters are now correctly
+    displayed in &quot;New Charts&quot; and graphical reports.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Charts and Reports:&lt;/strong&gt; Custom multi-select fields are now
+    available as report axis options. This makes them usable for categorizing
+    [%+ terms.bugs %] in reports.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; You can now choose to not receive any mail at all
+    about a particular [% terms.bug %], even if you continue to have a role on
+    that [% terms.bug %] (e.g. reporter).&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; When adding or removing [% terms.abug %] as a
+    dependency, the summary of the [% terms.bug %] is included in the email
+    notification.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Requests:&lt;/strong&gt; &lt;kbd&gt;request.cgi&lt;/kbd&gt; can now output results in
+    CSV format.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Requests:&lt;/strong&gt;&lt;kbd&gt; X-Bugzilla-*&lt;/kbd&gt; headers are now included
+    in flag notification emails.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; Some useful searches have been added to the
+    Bugzilla home page.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; Quicksearch now allows for use of comparison
+    operators such as !=, &gt;=, &gt;, &amp;lt;, etc., in addition to substring searches.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; The &quot;Blocks&quot; and &quot;Depends On&quot; values can now be
+    displayed as columns in [% terms.abug %] list.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; The &quot;is empty&quot; and &quot;is not empty&quot; search operators
+    have been added to the Advanced Search UI. This allows searching for null
+    and not null values for certain fields.&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h4&gt;Enhancements for Administrators and Developers&lt;/h4&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; is now much quieter
-    when creating a new database.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Security:&lt;/strong&gt; [% terms.Bugzilla %] 4.0 is using
-    &lt;kbd&gt;Math::Random::Secure&lt;/kbd&gt; to generate cryptographically secure
-    pseudorandom numbers, but it appeared that installing this Perl module from
-    CPAN caused a lot of trouble for some people due to its numerous dependencies.
-    So the RNG code has been rewritten to only depend on &lt;kbd&gt;Math::Random::ISAAC&lt;/kbd&gt;,
-    which was already in use in previous versions of [% terms.Bugzilla %].&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Security:&lt;/strong&gt; &lt;kbd&gt;X-Frame-Options = SAMEORIGIN&lt;/kbd&gt; is now
-    passed to all page headers (except when viewing attachments, as they can be
-    on a different host) to protect users from framing and subsequent possible
-    clickjacking problems.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; A new parameter &lt;em&gt;password_complexity&lt;/em&gt;
-    has been added (default: no_constraints) which allows admins to force users
-    to use passwords with a higher complexity, such as a combination of uppercase
-    and lowercase letters, numbers and special characters, or a subset of them.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; A new parameter &lt;em&gt;search_allow_no_criteria&lt;/em&gt;
-    has been added (default: on) which allows admins to forbid queries with no
-    criteria. This is particularly useful for large installations with several
-    tens of thousands [% terms.bugs %] where returning all [% terms.bugs %]
-    doesn't make sense and would have a performance impact on the database.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; A new parameter &lt;em&gt;default_search_limit&lt;/em&gt;
-    has been added (default: 500) which limits the number of [% terms.bugs %]
-    displayed by default in a [% terms.bug%]list. The user can ask to see a larger
-    list, though.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; A new parameter &lt;em&gt;max_search_results&lt;/em&gt;
-    has been added (default: 10000) which limits the number of [% terms.bugs %]
-    a user can request at once in a [% terms.bug%]list. This is a hard limit and
-    a user cannot bypass this value.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; A new parameter &lt;em&gt;ajax_user_autocompletion&lt;/em&gt;
-    has been added (default: on) to allow administrators to disable auto-completion
-    when typing characters in user fields. This parameter should only be disabled
-    if your installation is unable to support the load generated by this feature.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Configuration:&lt;/strong&gt; The &lt;em&gt;config_modify_panels&lt;/em&gt; hook now
-    lets you add additional parameters to existing parameters panels.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags:&lt;/strong&gt; Users with local editcomponents privileges can now
-    edit flag types for products they can administer.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Quips:&lt;/strong&gt; A new system group &lt;em&gt;bz_quip_moderators&lt;/em&gt; has
-    been created to moderate quips. Till now, you had to be in the &lt;em&gt;admin&lt;/em&gt;
-    group to do that.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;importxml.pl&lt;/kbd&gt; now inserts each comment separately into the imported
-    [%+ terms.bug %] instead of concatenating them all into a single comment.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;email_in.pl&lt;/kbd&gt; now ignores auto-submitted incoming emails (for
-    instance, all these &quot;out of office&quot; emails).&lt;/li&gt;
-  &lt;li&gt;New code hooks: email_in_before_parse, email_in_after_parse,
-    install_filesystem, install_update_db_fielddefs, job_map, object_end_of_create,
-    quicksearch_map, user_preferences.&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;strong&gt;Administration:&lt;/strong&gt; There are now &lt;kbd&gt;INTEGER&lt;/kbd&gt; and
+    &lt;kbd&gt;DATE&lt;/kbd&gt; custom field types.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Administration:&lt;/strong&gt; Filenames used to store product data for
+    &quot;Old Charts&quot; are now based on product IDs to avoid data loss when changing
+    product names.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Administration:&lt;/strong&gt; JavaScript and CSS files are now minified
+    and concatenated to improve page load performance. When changes are made,
+    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; should be run to regenerate the combined files.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; Bugzilla now keeps track of the last
+    time each user visited (that is, loaded the show_bug page in a web browser)
+    each [% terms.bug %]. This could be useful for dashboards or API clients.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Database:&lt;/strong&gt; Text that contained unicode
+    supplementary characters (outside BMP) was cut off when using MySQL as backend.
+    This has been fixed to prevent data loss.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Database:&lt;/strong&gt; SSL connections are now possible when using
+    MySQL as backend.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Database:&lt;/strong&gt; For version 8.x of PostgreSQL, &lt;kbd&gt;plpgsql&lt;/kbd&gt;
+    was not always installed by default and &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; would
+    generate an error. This has been fixed.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Development:&lt;/strong&gt; Bugzilla is now HTML5 compliant. As a
+    consequence, Internet Explorer 6 and 7 are no longer supported.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; Email generation originally was done before the
+    jobqueue job was inserted. This is now delayed and done by
+    &lt;kbd&gt;jobqueue.pl&lt;/kbd&gt; right before sending the email which can improve
+    responsiveness when processing [% terms.bug %] changes.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; When a site administrator creates a new user, an
+    email is sent to the user.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; For dependency email notifications, the header
+    &lt;kbd&gt;X-B[%%]ugzilla-Type: dep_changed&lt;/kbd&gt; is set.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;kbd&gt;whine.pl&lt;/kbd&gt; emails now use
+    &lt;kbd&gt;DEFAULT_COLUMN_LIST&lt;/kbd&gt; (the same default columns seen in the buglist
+    page) instead of hard coded column list.&lt;/li&gt;
+  &lt;li&gt;&lt;strong&gt;Security:&lt;/strong&gt; Support for increased values for
+    &lt;kbd&gt;PASSWORD_SALT_LENGTH&lt;/kbd&gt; without breaking compatibility with old
+    hashes.&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-&lt;h4&gt;WebService Changes&lt;/h4&gt;
</del><ins>+&lt;h4 id=&quot;feat_webservices_other&quot;&gt;WebService Changes&lt;/h4&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;Two new methods have been added: &lt;kbd&gt;Product.create&lt;/kbd&gt; and
-    &lt;kbd&gt;Group.create&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;B[%%]ug.update&lt;/kbd&gt; no longer throws an error when passing an empty
-    string to &lt;kbd&gt;see_also&lt;/kbd&gt;. It now simply ignores this empty value.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Product.get&lt;/kbd&gt; now also returns data about the classification it
-    belongs to as well as its components, milestones and versions. It also
-    returns the &lt;kbd&gt;default_milestone&lt;/kbd&gt; and &lt;kbd&gt;has_unconfirmed&lt;/kbd&gt;
-    attributes.&lt;/li&gt;
-  &lt;li&gt;In &lt;kbd&gt;B[%%]ug.fields&lt;/kbd&gt;, the &lt;kbd&gt;sortkey&lt;/kbd&gt; attribute used in
-    &lt;kbd&gt;values&lt;/kbd&gt; has been renamed to &lt;kbd&gt;sort_key&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;In &lt;kbd&gt;B[%%]ug.attachments&lt;/kbd&gt; and &lt;kbd&gt;B[%%]ug.add_attachment&lt;/kbd&gt;,
-    the &lt;kbd&gt;is_url&lt;/kbd&gt; attribute no longer exists.&lt;/li&gt;
</del><ins>+  &lt;li&gt;&lt;kbd&gt;B[%%]ug.search&lt;/kbd&gt; now allows for full search functionality
+    similar to what is possible using the Advanced Query UI.&lt;/li&gt;
+  &lt;li&gt;Basic support for eTag headers has been added to all WebServices
+    to allow for better network performance.&lt;/li&gt;
+  &lt;li&gt;Administrators can now change a parameter that filters all email
+    addresses returned in WebService calls similar to filtering that
+    happens in the web UI.&lt;/li&gt;
+  &lt;li&gt;WebService calls now support use of API keys for authentication.
+    Usernames and passwords remain supported.&lt;/li&gt;
+  &lt;li&gt;Invalid or expired authentication cookies and tokens now throw
+    errors instead of being silently ignored. &lt;kbd&gt;User.valid_login&lt;/kbd&gt;
+    can be used to determine if they are still valid or not.&lt;/li&gt;
+  &lt;li&gt;WebService calls that are used to create and update [% terms.bugs %]
+    and attachments now support setting and updating of flags.&lt;/li&gt;
+  &lt;li&gt;&lt;kbd&gt;B[%%]ug.update_attachment&lt;/kbd&gt; can update an attachment's
+    metadata as well as its flags.&lt;/li&gt;
+  &lt;li&gt;The &lt;kbd&gt;product&lt;/kbd&gt; parameter for &lt;kbd&gt;B[%%]ug.possible_duplicates&lt;/kbd&gt;
+    has been renamed to &lt;kbd&gt;products&lt;/kbd&gt;.&lt;/li&gt;
+  &lt;li&gt;Some compatibility fields included in returned data that were marked
+    to be removed in this release are now gone.&lt;/li&gt;
+  &lt;li&gt;&lt;kbd&gt;Group.get&lt;/kbd&gt; has been added to get information about a group and
+    its members.&lt;/li&gt;
+  &lt;li&gt;&lt;kbd&gt;FlagType.get&lt;/kbd&gt; has been added to get information about valid
+    flag types for a given product and component.&lt;/li&gt;
+  &lt;li&gt;The deprecated &lt;kbd&gt;B[%%]ug.get_bugs&lt;/kbd&gt;, &lt;kbd&gt;B[%%]ug.get_history&lt;/kbd&gt;
+    and &lt;kbd&gt;Product.get_products&lt;/kbd&gt; methods are no longer supported.
+    They have been renamed to &lt;kbd&gt;B[%%]ug.get&lt;/kbd&gt;, &lt;kbd&gt;B[%%]ug.history&lt;/kbd&gt;
+    and &lt;kbd&gt;Product.get&lt;/kbd&gt; respectively.&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><ins>+&lt;h2 id=&quot;code_changes&quot;&gt;Code Changes Which May Affect Customizations and Extensions&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-&lt;h2 id=&quot;v42_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
</del><span class="cx"> &lt;ul&gt;
</span><del>-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to
-    particular Categories of New Charts is not complete. You should treat the
-    &lt;em&gt;chartgroup&lt;/em&gt; parameter as the only access mechanism available.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=584742&quot;&gt;
-    [%- terms.Bug %] 584742&lt;/a&gt;: When viewing [% terms.abug %], WebKit-based
-    browsers can automatically reset a field's selected value when the field
-    has disabled values.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=780053&quot;&gt;
-    [%- terms.Bug %] 780053&lt;/a&gt;: Oracle crashes when listing keywords, tags
-    or flags in buglists.&lt;/li&gt;
</del><ins>+  &lt;li&gt;Support for CVS, Bonsai and LXR has been removed entirely when viewing
+    attachments. This means that the &lt;kbd&gt;cvsroot&lt;/kbd&gt;, &lt;kbd&gt;cvsroot_get&lt;/kbd&gt;,
+    &lt;kbd&gt;bonsai_url&lt;/kbd&gt;, &lt;kbd&gt;lxr_url&lt;/kbd&gt; and &lt;kbd&gt;lxr_root&lt;/kbd&gt; parameters
+    are all gone, as well as &lt;kbd&gt;cvsbin&lt;/kbd&gt; from the &lt;kbd&gt;localconfig&lt;/kbd&gt;
+    file.&lt;/li&gt;
+  &lt;li&gt;The &lt;kbd&gt;docs_urlbase&lt;/kbd&gt; parameter has been removed. If documentation
+    has not been compiled locally, the &quot;Help&quot; links and other documentation links
+    will redirect to &lt;a href=&quot;https://bugzilla.readthedocs.org&quot;&gt;bugzilla.readthedocs.org&lt;/a&gt;
+    automatically.&lt;/li&gt;
+  &lt;li&gt;The &lt;kbd&gt;mostfreqthreshold&lt;/kbd&gt; parameter has also been removed.&lt;/li&gt;
+  &lt;li&gt;All extensions which define new public WebService methods must list them
+    in a &lt;kbd&gt;PUBLIC_METHODS&lt;/kbd&gt; constant. Methods which are not listed there
+    will not be accessible remotely.&lt;/li&gt;
+  &lt;li&gt;&lt;kbd&gt;JSON::XS&lt;/kbd&gt; is now used instead of &lt;kbd&gt;Data::Dumper&lt;/kbd&gt; for
+    storage on configuration values in &lt;kbd&gt;data/params&lt;/kbd&gt;. This should
+    improve performance when loading the file.&lt;/li&gt;
+  &lt;li&gt;A new test has been added to check for reserved words in SQL schema.&lt;/li&gt;
+  &lt;li&gt;&lt;kbd&gt;Pod::Coverage&lt;/kbd&gt; is now used to ensure subroutines are documented.&lt;/li&gt;
+  &lt;li&gt;Bugzilla code now uses &lt;kbd&gt;use parent&lt;/kbd&gt; instead of &lt;kbd&gt;use base&lt;/kbd&gt;
+    in all places applicable.&lt;/li&gt;
+  &lt;li&gt;A new hook called &lt;kbd&gt;cgi_headers&lt;/kbd&gt; has been added to allow
+    customization of the HTTP headers returned.&lt;/li&gt;
+  &lt;li&gt;A new hook called &lt;kbd&gt;user_check_account_creation&lt;/kbd&gt; has been added
+    to add extra checks before accepting the creation of a new user account.&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span><del>-
-&lt;h2 id=&quot;v42_code_changes&quot;&gt;Code Changes Which May Affect Customizations and Extensions&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;The &lt;kbd&gt;email/newchangedmail.txt.tmpl&lt;/kbd&gt; template is now fully templatized,
-    meaning that the diff table displaying changes in [% terms.bug %] fields is
-    now generated in the template itself. This means [% terms.bug %]mails are now
-    fully localizable.&lt;/li&gt;
-  &lt;li&gt;The bugmail_recipients hook has been modified to pass &lt;kbd&gt;diffs&lt;/kbd&gt; with
-    changes made to the [% terms.bug %] as well as &lt;kbd&gt;users&lt;/kbd&gt; including
-    recipients of the email notification.&lt;/li&gt;
-  &lt;li&gt;YUI has been upgraded to 2.9.0.&lt;/li&gt;
-  &lt;li&gt;Due to the major code refactor of &lt;kbd&gt;B[%%]ugzilla/Search.pm&lt;/kbd&gt;, any
-    customization made against this file will probably need to be rewritten.&lt;/li&gt;
-  &lt;li&gt;The [% terms.Bugzilla %]-specific &lt;kbd&gt;url_quote&lt;/kbd&gt; filter used in templates
-    has been removed and replaced by the &lt;kbd&gt;uri&lt;/kbd&gt; filter from Template::Toolkit
-    as they are now similar.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;long_list.cgi&lt;/kbd&gt;, &lt;kbd&gt;showattachment.cgi&lt;/kbd&gt; and &lt;kbd&gt;xml.cgi&lt;/kbd&gt;
-    have been removed from the codebase. As &lt;a href=&quot;#v40_code_changes&quot;&gt;announced&lt;/a&gt;
-    in the release notes of [% terms.Bugzilla %] 4.0, these scripts were deprecated
-    since [% terms.Bugzilla %] 2.19.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;sidebar.cgi&lt;/kbd&gt; has been removed, because Gecko-based browsers no
-    longer support remote XUL, and its popularity is very low.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;contrib/yp_nomail.sh&lt;/kbd&gt; has been removed. This script is no longer
-    useful since [% terms.Bugzilla %] 3.0.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;contrib/bugzilla_ldapsync.rb&lt;/kbd&gt; has been removed. This script didn't
-    work for a long time.&lt;/li&gt;
-&lt;/ul&gt;
-
-
-&lt;h1 id=&quot;v42_previous&quot;&gt;[% terms.Bugzilla %] 4.0 Release Notes&lt;/h1&gt;
-
-&lt;ul class=&quot;bz_toc&quot;&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_point&quot;&gt;Updates in this 4.0.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_code_changes&quot;&gt;Code Changes Which May Affect 
-    Customizations and Extensions&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v40_introduction&quot;&gt;Introduction&lt;/h2&gt;
-
-&lt;p&gt;This is [% terms.Bugzilla %] 4.0! Since 3.6 (our previous major
-  release) we've come a long way, and we've come even further compared to
-  3.0 in 2007! Since [% terms.Bugzilla %] 3.0, almost every major user
-  interface in [% terms.Bugzilla %] has been redesigned, the WebServices have
-  evolved enormously, there's a great new Extensions system, and there
-  are hundreds of other new features. With the major redesigns that come
-  particularly in this release compared to 3.6, we felt that it was time to
-  call this release 4.0.&lt;/p&gt;
-
-&lt;p&gt;It's not just major WebService and UI enhancements that are new in
-  [%+ terms.Bugzilla %] 4.0&amp;mdash;there are many other exciting new features,
-  including automatic duplicate detection, enhanced custom field
-  functionality, autocomplete for users, search improvements, and much
-  more. Overall, 4.0 is far and away the best version of [% terms.Bugzilla %]
-  we've ever released.&lt;/p&gt;
-
-&lt;p&gt;If you're upgrading, make sure to read &lt;a href=&quot;#v40_upgrading&quot;&gt;Notes
-  On Upgrading From a Previous Version&lt;/a&gt;. If you are upgrading from a release
-  before 3.6, make sure to read the release notes for all the 
-  &lt;a href=&quot;#v40_previous&quot;&gt;previous versions&lt;/a&gt; in between your version
-  and this one, &lt;strong&gt;particularly the Upgrading section of each
-  version's release notes&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;p&gt;We would like to thank
-  &lt;a href=&quot;http://www.itasoftware.com/&quot;&gt;ITA Software&lt;/a&gt;,
-  the &lt;a href=&quot;http://www.ibm.com/linux/ltc/&quot;&gt;IBM Linux Technology Center&lt;/a&gt;,
-  and &lt;a href=&quot;http://www.redhat.com/&quot;&gt;Red Hat&lt;/a&gt; for funding the development
-  of certain features and improvements in this release of
-  [%+ terms.Bugzilla %].&lt;/p&gt;
-
-&lt;h2 id=&quot;v40_point&quot;&gt;Updates in this 4.0.x Release&lt;/h2&gt;
-
-&lt;h3&gt;4.0.2&lt;/h3&gt;
-
-&lt;p&gt;This release fixes several security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.4.11/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in this
-  release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.create&lt;/kbd&gt; WebService method now throws an error if you
-    pass a group name which doesn't exist. In [% terms.Bugzilla %] 4.0 and 4.0.1,
-    this group name was silently ignored, leaving your [% terms.bug %] unsecure
-    if no other group applied.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=653341&quot;&gt;[% terms.Bug %] 653341&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Moving several [% terms.bugs %] at once into another product displayed the
-    same confirmation page again and again, and changes were never committed
-    (regressed in 4.0).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=663208&quot;&gt;[% terms.Bug %] 663208&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Marking [% terms.abug %] as a duplicate now works in Internet Explorer 9.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=656769&quot;&gt;[% terms.Bug %] 656769&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;importxml.pl&lt;/kbd&gt; no longer crashes when importing keywords (regressed
-    in 4.0).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=657707&quot;&gt;[% terms.Bug %] 657707&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Data entered while reporting a new [% terms.bug %] could be lost if you had
-    to click the &quot;Back&quot; button of your web browser.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=652427&quot;&gt;[% terms.Bug %] 652427&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;WebServices methods will return undefined [% terms.bug %] fields as undefined
-    instead of as an empty string. This change is consistent with how
-    [%+ terms.Bugzilla %] 4.2 behaves.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=657561&quot;&gt;[% terms.Bug %] 657561&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The XML-RPC interface now works with SOAP::Lite 0.711 and 0.712 under mod_perl.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=600810&quot;&gt;[% terms.Bug %] 600810&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;LWP 6.00 and newer require Perl 5.8.8 and above. When installing this module
-    using &lt;kbd&gt;install-module.pl&lt;/kbd&gt; on a Perl installation older than 5.8.8,
-    LWP 5.837 will be installed instead.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=655912&quot;&gt;[% terms.Bug %] 655912&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Viewing [% terms.abug %] report should be significantly faster when your
-    installation has many custom fields.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=634812&quot;&gt;[% terms.Bug %] 634812&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;4.0.1&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;During installation, the CPAN module Math::Random::Secure would
-    sometimes fail to install properly and give an error about
-    &lt;kbd&gt;Math::Random::Secure::irand&lt;/kbd&gt;. Now, when using
-    &lt;kbd&gt;install-module.pl&lt;/kbd&gt; to install Math::Random::Secure, this
-    will no longer happen. If you are currently experiencing this b[% %]ug
-    and it prevented you from installing 4.0, remove Math::Random::Secure
-    from your &lt;kbd&gt;lib/&lt;/kbd&gt; directory, like:
-    &lt;p&gt;&lt;kbd&gt;rm -rf lib/Math/Random/Secure*&lt;/kbd&gt;&lt;/p&gt;
-    &lt;p&gt;(&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=646578&quot;&gt;[% terms.Bug %] 646578&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;
-  &lt;li&gt;The &quot;Remember values as bookmarkable template&quot; button on the
-    [%+ terms.bug %] entry page will now work even when some required fields
-    are empty. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=640719&quot;&gt;[% terms.Bug %] 640719&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Email notifications about dependencies and flags had the wrong
-    timestamp.
-    ([% terms.Bugs %] &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=643910&quot;&gt;643910&lt;/a&gt;
-    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=652165&quot;&gt;652165&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;You can now select &quot;UTC&quot; as a valid timezone in General Preferences.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=646209&quot;&gt;[% terms.Bug %] 646209&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Automatic duplicate detection now works on PostgreSQL (although
-    it is not as high-quality as on other DB platforms). 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=634144&quot;&gt;[% terms.Bug %] 634144&lt;/a&gt;)&lt;/li&gt;
-   &lt;li&gt;Autcomplete for users now works even if you are using the
-     &quot;emailsuffix&quot; option.
-     (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=641519&quot;&gt;[% terms.Bug %] 641519&lt;/a&gt;)&lt;/li&gt;
-   &lt;li&gt;Javascript errors during series creation in New Charts have been
-     fixed.
-     (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=644285&quot;&gt;[% terms.Bug %] 644285&lt;/a&gt;)&lt;/li&gt;
-    &lt;li&gt;The &quot;Show Votes&quot; page now works, for installations using the Voting
-      extension.
-      (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=652381&quot;&gt;[% terms.Bug %] 652381&lt;/a&gt;)&lt;/li&gt; 
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v40_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 3.6.3 will look like
-  &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_req_apache&quot;&gt;Optional Apache Modules&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v40_req_perl&quot;&gt;Perl&lt;/h3&gt;
-
-&lt;p&gt;Perl v5.8.1&lt;/p&gt;
-&lt;h3 id=&quot;v40_req_mysql&quot;&gt;For MySQL Users&lt;/h3&gt;
-
-  &lt;ul&gt;
-    &lt;li&gt;MySQL v4.1.2&lt;/li&gt;
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::mysql v4.00&lt;/li&gt;
-  &lt;/ul&gt;
-
-&lt;h3 id=&quot;v40_req_pg&quot;&gt;For PostgreSQL Users&lt;/h3&gt;
-
-  &lt;ul&gt;
-    &lt;li&gt;PostgreSQL v8.00.0000&lt;/li&gt;
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Pg v1.45&lt;/li&gt;
-  &lt;/ul&gt;
-
-&lt;h3 id=&quot;v40_req_oracle&quot;&gt;For Oracle Users&lt;/h3&gt;
-
-  &lt;ul&gt;
-    &lt;li&gt;Oracle v10.02.0&lt;/li&gt;
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Oracle v1.19&lt;/li&gt;
-  &lt;/ul&gt;
-
-&lt;h3 id=&quot;v40_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
-
-  &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; class=&quot;req_table&quot;&gt;
-    &lt;tbody&gt;
-      &lt;tr&gt;
-        &lt;th&gt;Module&lt;/th&gt;&lt;th&gt;Version&lt;/th&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;CGI&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;3.51&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Digest::SHA&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Date::Format&lt;/td&gt;
-        &lt;td&gt;2.21&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;DateTime&lt;/td&gt;
-        &lt;td&gt;0.28&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;DateTime::TimeZone&lt;/td&gt;
-        &lt;td&gt;0.71&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;DBI&lt;/td&gt;
-        &lt;td&gt;1.41&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Template&lt;/td&gt;
-        &lt;td&gt;2.22&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Email::Send&lt;/td&gt;
-        &lt;td&gt;2.00&lt;/td&gt;
-      &lt;/tr&gt;
-
-      &lt;tr&gt;
-        &lt;td&gt;Email::MIME&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;1.904&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;URI&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td class=&quot;req_new&quot;&gt;List::MoreUtils&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;0.22&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/tbody&gt;
-  &lt;/table&gt;
-
-&lt;h3 id=&quot;v40_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt;
-
-&lt;p&gt;The following perl modules, if installed, enable various
-  features of [% terms.Bugzilla %]:&lt;/p&gt;
-
-  &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; class=&quot;req_table&quot;&gt;
-    &lt;tbody&gt;
-      &lt;tr&gt;
-        &lt;th&gt;Module&lt;/th&gt;&lt;th&gt;Version&lt;/th&gt;&lt;th&gt;Enables Feature&lt;/th&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;GD&lt;/td&gt;
-        &lt;td&gt;1.20&lt;/td&gt;
-        &lt;td&gt;Graphical Reports, New Charts, Old Charts&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Chart::Lines&lt;/td&gt;
-        &lt;td&gt;2.1&lt;/td&gt;
-        &lt;td&gt;New Charts, Old Charts&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Template::Plugin::GD::Image&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Graphical Reports&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;GD::Text&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Graphical Reports&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;GD::Graph&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Graphical Reports&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;MIME::Parser&lt;/td&gt;
-        &lt;td&gt;5.406&lt;/td&gt;
-        &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;LWP::UserAgent&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Automatic Update Notifications&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;XML::Twig&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Move [% terms.Bugs %] Between Installations, Automatic Update
-          Notifications&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;PatchReader&lt;/td&gt;
-        &lt;td&gt;0.9.4&lt;/td&gt;
-        &lt;td&gt;Patch Viewer&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Net::LDAP&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;LDAP Authentication&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Authen::SASL&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;SMTP Authentication&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Authen::Radius&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;RADIUS Authentication&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;SOAP::Lite&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;0.712&lt;/td&gt;
-        &lt;td&gt;XML-RPC Interface&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;JSON::RPC&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;JSON-RPC Interface&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td class=&quot;req_new&quot;&gt;JSON::XS&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;2.0&lt;/td&gt;
-        &lt;td&gt;Make JSON-RPC Faster&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Test::Taint&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;JSON-RPC Interface, XML-RPC Interface&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;HTML::Parser&lt;/td&gt;
-        &lt;td&gt;3.40&lt;/td&gt;
-        &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;HTML::Scrubber&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Email::MIME::Attachment::Stripper&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Inbound Email&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Email::Reply&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Inbound Email&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;TheSchwartz&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Mail Queueing&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Daemon::Generic&lt;/td&gt;
-        &lt;td&gt;(Any)&lt;/td&gt;
-        &lt;td&gt;Mail Queueing&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;mod_perl2&lt;/td&gt;
-        &lt;td&gt;1.999022&lt;/td&gt;
-        &lt;td&gt;mod_perl&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;Apache2::SizeLimit&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;0.93&lt;/td&gt;
-        &lt;td&gt;mod_perl&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td class=&quot;req_new&quot;&gt;Math::Random::Secure&lt;/td&gt;
-        &lt;td class=&quot;req_new&quot;&gt;0.05&lt;/td&gt;
-        &lt;td&gt;Improve cookie and token security&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/tbody&gt;
-  &lt;/table&gt;
-
-&lt;h3 id=&quot;v40_req_apache&quot;&gt;Optional Apache Modules&lt;/h3&gt;
-
-&lt;p&gt;If you are using Apache as your webserver, [% terms.Bugzilla %] can
-  now take advantage of some Apache features if you have the below Apache
-  modules installed and enabled. Currently,
-  &lt;a href=&quot;#v40_feat_js_css_update&quot;&gt;certain [% terms.Bugzilla %] features&lt;/a&gt;
-  are enabled only if you have all of the following modules installed
-  and enabled:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;mod_headers&lt;/li&gt;
-  &lt;li&gt;mod_expires&lt;/li&gt;
-  &lt;li&gt;mod_env&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;On most systems (but not on Windows), &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; is able to
-  tell whether or not you have these modules installed, and it will tell
-  you.&lt;/p&gt;
-
-&lt;h2 id=&quot;v40_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_dup&quot;&gt;Automatic Duplicate Detection When Filing
-    [%+ terms.Bugs %]&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_search_ui&quot;&gt;New Advanced Search UI&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_attach_ui&quot;&gt;New Attachment Details UI&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_autocomplete&quot;&gt;Autocomplete for Users and
-    Keywords&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_ui&quot;&gt;General Usability Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_workflow&quot;&gt;New Default Status Workflow&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_lists&quot;&gt;&quot;Last Search&quot; Now Remembers Multiple
-    Searches&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_jsonp&quot;&gt;Cross-Domain WebServices with JSONP&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_ws&quot;&gt;Major WebService Enhancements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_mandatory&quot;&gt;Mandatory Custom Fields&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_vot_ext&quot;&gt;Voting Is Now An Extension&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_js_css_update&quot;&gt;Users Get New CSS and Javascript
-    Automatically&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_hooks&quot;&gt;Many New Hooks&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_apache_config&quot;&gt;New Apache Configuration&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v40_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v40_feat_dup&quot;&gt;Automatic Duplicate Detection When Filing
-  [%+ terms.Bugs %]&lt;/h3&gt;
-
-&lt;p&gt;When filing [% terms.abug %], as soon as you start typing in the summary
-  field, [% terms.Bugzilla %] will suggest possible duplicates of the
-  [%+ terms.bug %] you are filing.&lt;/p&gt;
-
-&lt;p&gt;In order for this feature to work, all pre-requisites for JSON-RPC
-  support must be installed on your [% terms.Bugzilla %]. It will be
-  much faster on installations that run under mod_perl than it will
-  be on other installations.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_search_ui&quot;&gt;New Advanced Search UI&lt;/h3&gt;
-
-&lt;p&gt;Thanks to the UI work of &lt;a href=&quot;http://guy-pyrzak.blogspot.com/&quot;&gt;Guy
-  Pyrzak&lt;/a&gt;, the Advanced Search UI has been completely redesigned.
-  It is now much simpler, and far more approachable for new users, while
-  still retaining all of the features that power users are used to.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_attach_ui&quot;&gt;New Attachment Details UI&lt;/h3&gt;
-
-&lt;p&gt;The UI used for editing attachment details has been completely
-  redesigned, allowing for a normally-size comment box to be used
-  when commenting on attachments, and allowing nearly the entire screen
-  width to be used when doing code reviews or editing an attachment as
-  a comment.&lt;/p&gt;
-
-&lt;p&gt;Thanks to &lt;a href=&quot;http://guy-pyrzak.blogspot.com/&quot;&gt;Guy Pyrzak&lt;/a&gt; for
-  his excellent work on this UI redesign.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_autocomplete&quot;&gt;Autocomplete for Users and Keywords&lt;/h3&gt;
-
-&lt;p&gt;Once you type at least three characters in any field that can contain a user
-  (including the [% field_descs.cc FILTER html %],
-  [%+ field_descs.qa_contact FILTER html %], or
-  [%+ field_descs.assigned_to FILTER html %] fields), a list will appear
-  containing all of the users whose real names or usernames match what you are
-  typing. Your [% terms.Bugzilla %] must have all of the optional Perl
-  modules required for JSON-RPC support installed, though, in order for
-  this feature to work. Also, this feature will be &lt;strong&gt;much&lt;/strong&gt;
-  faster on installations that run under mod_perl than it will be on
-  other installations.&lt;/p&gt;
-
-&lt;p&gt;There is also a similar autocomplete for the Keywords field. The
-  Keywords autocomplete does not require JSON-RPC.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_ui&quot;&gt;General Usability Improvements&lt;/h3&gt;
-
-&lt;p&gt;In addition to the enhancements listed above, there have been
-  &lt;strong&gt;many&lt;/strong&gt; improvements made across the [% terms.Bugzilla %]
-  user interface. For a list of specific enhancements that were significant,
-  see the &lt;a href=&quot;#v40_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;
-  section.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_workflow&quot;&gt;New Default Status Workflow&lt;/h3&gt;
-
-&lt;p&gt;For new installations of [% terms.Bugzilla %], the default set of
-  statuses will now be:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;UNCONFIRMED&lt;/li&gt;
-  &lt;li&gt;CONFIRMED&lt;/li&gt;
-  &lt;li&gt;IN_PROGRESS&lt;/li&gt;
-  &lt;li&gt;RESOLVED&lt;/li&gt;
-  &lt;li&gt;VERIFIED&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;And the UNCONFIRMED status will be enabled by default in all products.&lt;/p&gt;
-
-&lt;p&gt;On upgrade, existing installations will not be affected--you will retain
-  your existing status workflow. However, we strongly recommend that you
-  update your existing workflow to the new one, using a special tool
-  we've included, &lt;kbd&gt;contrib/convert-workflow.pl&lt;/kbd&gt;, which you
-  can run after you use &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; to upgrade. The
-  &lt;kbd&gt;whineatnews.pl&lt;/kbd&gt; and &lt;kbd&gt;bugzilla-submit&lt;/kbd&gt; scripts
-  will probably not work properly if you continue to use the old workflow
-  (though most other parts of [% terms.Bugzilla %] will still function
-  normally).&lt;/p&gt;
-
-&lt;p&gt;For more information about the workflow and our rationale for changing
-  it, see the
-  &lt;a href=&quot;http://bugzillaupdate.wordpress.com/2010/07/06/bugzilla-4-0-has-a-new-default-status-workflow/&quot;&gt;blog
-  post about it&lt;/a&gt; and the
-  &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=486292&quot;&gt;[% terms.bug %]
-  where the change was made&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_lists&quot;&gt;&quot;Last Search&quot; Now Remembers Multiple Searches&lt;/h3&gt;
-
-&lt;p&gt;At the top of every [% terms.bug %] in [% terms.Bugzilla %], there are
-  links that look like: &quot;First&quot;, &quot;Last&quot;, &quot;Prev&quot;, &quot;Next&quot;, and
-  &quot;Show last search results&quot;. In earlier versions of [% terms.Bugzilla %],
-  if you did two separate searches in separate windows, these links would
-  only work for the &lt;em&gt;last&lt;/em&gt; search you did. Now, [% terms.Bugzilla %]
-  will &quot;remember&quot; which search result you came from and give you the right
-  &quot;last search results&quot; or &quot;next [% terms.bug %]&quot; from &lt;em&gt;that&lt;/em&gt; list,
-  instead of always using your most recent search.&lt;/p&gt;
-
-&lt;p&gt;There are still some situations where [% terms.Bugzilla %] will have to
-  &quot;guess&quot; which search you are trying to navigate through, but it does its
-  best to get it right.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_jsonp&quot;&gt;Cross-Domain WebServices with JSONP&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now supports making WebService calls from
-  another domain, inside of a web browser, thanks to support for
-  &lt;a href=&quot;http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/&quot;&gt;JSONP&lt;/a&gt;.
-  This will allow for web &quot;mash-ups&quot; to use [% terms.Bugzilla %] data.
-  When using JSONP, you may only call functions that &lt;em&gt;get&lt;/em&gt; data, 
-  you may not call functions that &lt;em&gt;change&lt;/em&gt; data.&lt;/p&gt;
-
-&lt;p&gt;For more details, see the
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Server/JSONRPC.html#JSONP&quot;&gt;JSONP
-  section&lt;/a&gt; of the JSON-RPC WebService documentation.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_ws&quot;&gt;Major WebService Enhancements&lt;/h3&gt;
-
-&lt;p&gt;The WebService has been expanded considerably. The WebService should now be
-  able to do everything with [% terms.bugs %] that you can do via the
-  web interface, including updating [% terms.bugs %], adding attachments,
-  and getting attachment data. For specifics, see the
-  &lt;a href=&quot;#v40_feat_ws_changes&quot;&gt;WebService Changes&lt;/a&gt; section of these
-  release notes.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_mandatory&quot;&gt;Mandatory Custom Fields&lt;/h3&gt;
-
-&lt;p&gt;You can now specify that certain custom fields are &quot;mandatory&quot;,
-  meaning that they must have a value when [% terms.abug %] is filed,
-  and they can never be empty after that.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_vot_ext&quot;&gt;Voting Is Now An Extension&lt;/h3&gt;
-
-&lt;p&gt;All of the code for voting in [% terms.Bugzilla %] has been moved
-  into an extension, called &quot;Voting&quot;, in the &lt;kbd&gt;extensions/Voting/&lt;/kbd&gt;
-  directory. To enable it, you must remove the &lt;kbd&gt;disabled&lt;/kbd&gt; file
-  from that directory, and run &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;.&lt;/p&gt;
-
-&lt;p&gt;In a future version of [% terms.Bugzilla %], the Voting extension will
-  be moved outside of the [% terms.Bugzilla %] core code, so we are looking
-  for somebody who has an interest in the Voting system and would like to
-  maintain it as a separate extension. There are many enhancement requests
-  that have been made against the Voting system, and the best way for those
-  to get addressed is for somebody to step up and offer to maintain the
-  system outside of [% terms.Bugzilla %]'s core code.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_js_css_update&quot;&gt;Users Get New CSS and Javascript
-  Automatically&lt;/h3&gt;
-  
-&lt;p&gt;In past versions of [% terms.Bugzilla %], if you changed
-  [%+ terms.Bugzilla %]'s CSS or Javascript files, then every user of
-  [%+ terms.Bugzilla %] would have to clear their cache in order to get
-  the updated files. Now, if you are using Apache as your webserver and
-  you have the &lt;a href=&quot;#v40_req_apache&quot;&gt;optional Apache modules&lt;/a&gt;
-  installed and enabled, users will automatically get every new version of
-  [%+ terms.Bugzilla %]'s Javascript and CSS without having to clear
-  their caches.&lt;/p&gt;
-
-&lt;p&gt;This feature also gives a slight performance speedup to
-  [%+ terms.Bugzilla %] in some cases, and so we recommend that all
-  administrators install and enable the optional Apache modules if possible.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_hooks&quot;&gt;Many New Hooks&lt;/h3&gt;
-
-&lt;p&gt;Many new code hooks have been added for use by Extensions,
-  in [% terms.Bugzilla %] 4.0. Now Extensions can access and modify
-  nearly every part of [% terms.Bugzilla %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_apache_config&quot;&gt;New Apache Configuration&lt;/h3&gt;
-
-&lt;p&gt;If you run [% terms.Bugzilla %] under Apache (as most people do),
-  you most likely require a &lt;strong&gt;new Apache configuration&lt;/strong&gt; 
-  for this version of [% terms.Bugzilla %]. See the 
-  &lt;a href=&quot;#v40_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/a&gt;
-  section for details.&lt;/p&gt;
-
-&lt;h3 id=&quot;v40_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
-&lt;h4&gt;Enhancements for Users&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Now, everywhere in [% terms.Bugzilla %] where you can enter a date,
-    there is a Calendar widget where you can select the date on a
-    calendar.&lt;/li&gt;
-  &lt;li&gt;The big icons on the front page have been replaced with much nicer
-    icons, thanks to Jon Pink of &lt;a href=&quot;http://www.jpink.co.uk/&quot;&gt;J.&amp;nbsp;Pink&amp;nbsp;Design&lt;/a&gt;!&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; When filing [% terms.bugs %],
-    you will now be warned if you forgot to fill in any mandatory fields,
-    &lt;em&gt;before&lt;/em&gt; the page is submitted.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; When filing [% terms.abug %],
-    you can hover your mouse over any of the field labels on the page
-    to get a brief description of what that field is and what its purpose
-    is.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; When adding Hours Worked to [% terms.abug %],
-    you are no longer required to comment.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; There is now a user preference
-    for whether the comment box appears above or below the existing
-    comments.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; [% terms.Bugzilla %] will now
-    send an email for every comment that you mark or un-mark as being
-    private. (Previous versions of [% terms.Bugzilla %] did not send emails
-    to users about this change.) The state of comments being made private
-    is also now stored in [% terms.abug %]'s history.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]:&lt;/strong&gt; The box to &quot;Add [% terms.Bug %] URLs&quot;
-    in the See Also field is now hidden behind an &quot;(add)&quot; link that you
-    have to click to see the box.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; You can now properly search for field values
-    that have commas in their name, when using the Advanced Search form.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; The &quot;URL&quot; field can now be shown as a column
-    in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When viewing a search result, you can now
-    click on the Summary of the [% terms.bug %] in order to go to the
-    [%+ terms.bug %]-view page, in addition to being able to click on the
-    [%+ terms.bug %] ID.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When doing a search using the &quot;quicksearch&quot;
-    box in the header or footer, the box will still contain what you searched
-    for when viewing the search results page.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; Multi-select custom fields can now be
-    shown as columns in the search results.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When using the Boolean Charts (now called
-    &quot;Custom Search&quot;), if you specify both a criterion for an attachment
-    and a criteron for a flag, then only [% terms.bugs %] that have
-    attachments with that flag will be found.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; If you hover your mouse over the field labels
-    on the Advanced Search page, you will get a description of what that
-    field is.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When searching via a saved search, if you
-    accidentally click on &quot;Forget Search&quot;, there is a link to undo it.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Searches:&lt;/strong&gt; When using the Boolean Charts (now called
-    &quot;Custom Search&quot;), you can search for values &quot;greater than or equal to&quot;
-    or &quot;less than or equal to&quot; some value.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;strong&gt;Flags:&lt;/strong&gt; If you hover your mouse over the name of
-    a flag setter when viewing [% terms.abug %], you can see that
-    flag setter's full name and complete username.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags:&lt;/strong&gt; When setting a flag on [% terms.abug %],
-    the box for entering a requestee does not appear until you set the flag
-    to &quot;?&quot;, now.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags:&lt;/strong&gt; On the &quot;My Requests&quot; page, [% terms.bugs %]
-    that are restricted to certain groups now properly have the &quot;padlock&quot;
-    icon shown next to them to indicate that they may contain confidential
-    information.&lt;/li&gt;
-  
-  &lt;li&gt;When using the Reports interface, you can now choose many more fields
-    as the X, Y, or Z axis of a report, including custom fields.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] now prevents
-    Internet Explorer 8 and later from attempting to render
-    &lt;kbd&gt;text/plain&lt;/kbd&gt; attachments as HTML.&lt;/li&gt;
-  &lt;li&gt;If you receive a Whine mail that is empty, there will now be a brief
-    message explaining that your search found no results.&lt;/li&gt;
-  &lt;li&gt;The &lt;a href=&quot;page.cgi?id=fields.html&quot;&gt;Field Help Page&lt;/a&gt; now
-    contains a description of every single field that can be on
-    [%+ terms.abug %] in [% terms.Bugzilla %].&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;Enhancements for Administrators and Developers&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;The system for moving [% terms.bugs %] between installations has been
-    moved into an extension called &lt;kbd&gt;OldBugMove&lt;/kbd&gt;. This system was used
-    by very few [% terms.Bugzilla %] installations--if you aren't certain
-    whether or not you are using it, you're not using it. To enable the system,
-    you have to remove the file &lt;kbd&gt;extensions/OldBugMove/disabled&lt;/kbd&gt;
-    and then run &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;. In a future version of [% terms.Bugzilla %],
-    this extension may be moved outside of the core [% terms.Bugzilla %] code,
-    so if you are interested in maintaining it, please let us know.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Custom Fields: &lt;/strong&gt; &quot;[% terms.Bug %] ID&quot; custom fields can
-    now represent relationships between [% terms.bugs %], similarly to how the
-    [%+ field_descs.blocked FILTER html %] and
-    [%+ field_descs.dependson FILTER html %] fields work now.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Custom Fields:&lt;/strong&gt; You can now restrict the visibility
-    of custom fields and their values to a specific Component or
-    Classification.&lt;/li&gt;
-  &lt;li&gt;The &quot;keyword cache&quot; has been removed. When you edit keywords, you no
-    longer will have to &quot;rebuild the keyword cache&quot; after you are done.&lt;/li&gt;
-  &lt;li&gt;Running &lt;kbd&gt;./collectstats.pl --regenerate&lt;/kbd&gt; will now take
-    minutes or hours, instead of days.&lt;/li&gt;
-  &lt;li&gt;When using &lt;kbd&gt;email_in.pl&lt;/kbd&gt;, there are two new switches,
-    &lt;kbd&gt;--default&lt;/kbd&gt; and &lt;kbd&gt;--override&lt;/kbd&gt;, which allow you to
-    specify certain default values or override specified values for
-    &lt;kbd&gt;@field&lt;/kbd&gt; values sent in emails. (This also allows you to specify
-    defaults for everything so that people do not have to specify any field
-    values when filing [% terms.abug %] via email.)&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; If you are using a localized version of
-    [%+ terms.Bugzilla %] and your terminal does not understand Unicode,
-    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will now attempt to output its messages in your
-    terminal's character set.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; [% terms.Bugzilla %] no longer needs empty
-    &quot;placeholder&quot; CSS in the &lt;kbd&gt;skins/custom&lt;/kbd&gt; directory and other
-    directories. When you update, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will remove these.
-    This also significantly reduces the number of HTTP requests required to
-    load a page for the first time in [% terms.Bugzilla %].&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; For Windows users, [% terms.Bugzilla %]
-    now supports Strawberry Perl fully.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; Now, whenever &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
-    throws an error, it will be printed in the color red, to make it
-    obvious that something is wrong.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; Some actions of &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; were
-    silent, in the past. Now, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will print a message for
-    almost anything it does.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Installation:&lt;/strong&gt; The process of adding foreign keys
-    to a table is now much faster. This will particularly improve the speed
-    of upgrading from [% terms.Bugzilla %] 3.4 or earlier.&lt;/li&gt;
-  &lt;li&gt;If you are using &lt;kbd&gt;jobqueue.pl&lt;/kbd&gt; and email gets heavily delayed
-    for some reason, those emails will now have a Date header reflecting the
-    time they were &lt;em&gt;supposed&lt;/em&gt; to be sent, instead of when they actually
-    &lt;em&gt;were&lt;/em&gt; sent.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;./jobqueue.pl install&lt;/kbd&gt; now works on SuSE Linux.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] now runs much better in Apache's suexec mode
-    than it used to. As part of this, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; sets
-    much stricter permissions on all the files in [% terms.Bugzilla %]
-    than it used to. In particular, any files that [% terms.Bugzilla %]
-    does not know about will not be readable by the webserver.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;sendmailnow&lt;/kbd&gt; parameter has been removed, as it was
-    not necessary for any modern version of Sendmail or other Mail Transfer
-    Agent.&lt;/li&gt;
-  &lt;li&gt;When editing a user via the Users administration panel, you can now
-    see if they are a Default CC on any component.&lt;/li&gt;
-  &lt;li&gt;For new installations of [% terms.Bugzilla %], all users will be
-    able to see and use the Whining system by default.&lt;/li&gt;
-  &lt;li&gt;When you are using SSL with [% terms.Bugzilla %], you can now
-    turn on the &lt;kbd&gt;strict_transport_security&lt;/kbd&gt; parameter to
-    send the
-    &lt;a href=&quot;https://developer.mozilla.org/en/Security/HTTP_Strict_Transport_Security&quot;&gt;Strict-Transport-Security&lt;/a&gt;
-    header with every HTTPS connection, for additional security.&lt;/li&gt;
-  &lt;li&gt;New code hooks (see their documentation in
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Hook.html&quot;&gt;Bugzilla::Hook&lt;/a&gt;):
-    bug_check_can_change_field, search_operator_field_override,
-    bugmail_relationships, object_columns, object_update_columns,
-    and object_validators. The colchange_columns hook has been removed,
-    as it is no longer necessary (buglist_columns will be used for data
-    about which columns can be on the [% terms.bug %] list).&lt;/li&gt;
-  &lt;li&gt;When [% terms.Bugzilla %] throws certain types of errors, it will
-    now include a &quot;traceback&quot; of where exactly the error occurred in the
-    code, to help administrators and developers debug problems.&lt;/li&gt;
-  &lt;li&gt;There is now a test, &lt;kbd&gt;xt/search.t&lt;/kbd&gt;, that assures that all
-    of the functionality of &lt;kbd&gt;Bugzilla::Search&lt;/kbd&gt; is working properly.
-    If you customize the search functionality of [% terms.Bugzilla %],
-    you may wish to run this test to assure that your changes are correct.
-    You can see more information about running this test by doing
-    &lt;kbd&gt;perldoc xt/search.t&lt;/kbd&gt; at the command line.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] now sends the
-    &lt;a href=&quot;https://developer.mozilla.org/en/the_x-frame-options_response_header&quot;&gt;&lt;code&gt;X-Frame-Options: SAMEORIGIN&lt;/code&gt;&lt;/a&gt; header
-    with every page request in order to prevent &quot;clickjacking&quot; attacks. Note
-    that this prevents other domains from displaying [% terms.Bugzilla %]
-    in an HTML frame.&lt;/li&gt; 
-&lt;/ul&gt;
-
-&lt;h4 id=&quot;v40_feat_ws_changes&quot;&gt;WebService Changes&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;You can now call some JSON-RPC methods using HTTP GET, in addition to
-    using HTTP POST. See the 
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Server/JSONRPC.html#Connecting_via_GET&quot;&gt;JSON-RPC
-    documentation&lt;/a&gt; for details.&lt;/li&gt;
-  &lt;li&gt;You can now update existing [% terms.bugs %] using the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#update&quot;&gt;B[% %]ug.update&lt;/a&gt;
-    function.&lt;/li&gt;
-  &lt;li&gt;You can now add attachments to [% terms.bugs %] using the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#add_attachment&quot;&gt;B[% %]ug.add_attachment&lt;/a&gt;
-    function.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.get&lt;/kbd&gt; function now returns all of [% terms.abug %]'s
-    information other than comments and attachments.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;B[% %]ug.get&lt;/kbd&gt; no longer returns the &lt;kbd&gt;internals&lt;/kbd&gt; hash.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.attachments&lt;/kbd&gt; function now also returns attachment
-    data.&lt;/li&gt;
-  &lt;li&gt;The following functions now support the &lt;kbd&gt;include_fields&lt;/kbd&gt;
-    and &lt;kbd&gt;exclude_fields&lt;/kbd&gt; arguments: &lt;kbd&gt;B[% %]ug.get&lt;/kbd&gt;,
-    &lt;kbd&gt;B[% %]ug.search&lt;/kbd&gt;, and &lt;kbd&gt;B[% %]ug.attachments&lt;/kbd&gt;. Also,
-    server-side performance of the WebService is actually increased when
-    using these arguments, now, as [% terms.Bugzilla %] will no longer
-    get data from the database for fields you haven't asked for.&lt;/li&gt;
-  &lt;li&gt;You can now mark the initial description of [% terms.abug %] as
-    private when filing [% terms.abug %] via the &lt;kbd&gt;B[% %]ug.create&lt;/kbd&gt;
-    function.&lt;/li&gt;
-  &lt;li&gt;You can now specify groups to put [% terms.abug %] in, in the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#create&quot;&gt;B[% %]ug.create&lt;/a&gt;
-    function. (This also means that you can specify groups when filing
-    [%+ terms.abug %] via email_in.pl.)&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;User.get&lt;/kbd&gt; function now accepts &lt;kbd&gt;groups&lt;/kbd&gt;
-    and &lt;kbd&gt;group_ids&lt;/kbd&gt; arguments, to limit the returned values to
-    only users in the specified groups.&lt;/li&gt;
-  &lt;li&gt;There is a new, undocumented B[% %]ug.possible_duplicates
-    function that helps implement the automatic duplicate detection
-    system. Because this function is not documented, its API may change
-    between releases of [% terms.Bugzilla %].&lt;/li&gt;
-  &lt;li&gt;You can no longer search using the &lt;kbd&gt;votes&lt;/kbd&gt; argument in
-    &lt;kbd&gt;B[% %]ug.search&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;B[% %]ug.attachments&lt;/kbd&gt; now returns the attachment's description
-    using the name &quot;summary&quot; instead of the name &quot;description&quot;, to be
-    consistent with the fact that [% terms.bug %] summaries are called
-    &quot;summary&quot;. The value is still &lt;em&gt;also&lt;/em&gt; returned as &quot;description&quot;,
-    for backwards compatibility, but this backwards compatibility will go
-    away in [% terms.Bugzilla %] 5.0.&lt;/li&gt;
-  &lt;li&gt;In the return values of various &lt;kbd&gt;B[% %]ug&lt;/kbd&gt; functions, the author
-    of comments, [% terms.bugs %], and attachments is now called &quot;creator&quot;,
-    instead of sometimes being called &quot;reporter&quot;, &quot;author&quot;, or &quot;attacher&quot;.
-    The old names are retained for backwards-compatibility, and will stay
-    around until [% terms.Bugzilla %] 5.0.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v40_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=423439&quot;&gt;
-    [%- terms.Bug %] 423439&lt;/a&gt;: Tabs in comments will be converted
-    to four spaces, due to a b&lt;!-- --&gt;ug in Perl as of Perl 5.8.8.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at 
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to 
-    particular Categories of New Charts is not complete. You should treat 
-    the 'chartgroup' Param as the only access mechanism available.&lt;br&gt;
-    However, charts migrated from Old Charts will be restricted to 
-    the groups that are marked MANDATORY for the corresponding Product.
-    There is currently no way to change this restriction, and the 
-    groupings will not be updated if the group configuration
-    for the Product changes.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v40_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/h2&gt;
-
-&lt;h3&gt;IMPORTANT: Apache Configuration Change&lt;/h3&gt;
-
-&lt;h4&gt;mod_cgi&lt;/h4&gt;
-
-&lt;p&gt;If you run [% terms.Bugzilla %] under mod_cgi (this is the most common
-  configuration, involving a &amp;lt;Directory&amp;gt; block in your Apache config
-  file), you will need to update the configuration of Apache for 
-  [%+ terms.Bugzilla %]. In particular, this line in the [% terms.Bugzilla %]
-  &lt;kbd&gt;&amp;lt;Directory&amp;gt;&lt;/kbd&gt; block:&lt;/p&gt;
-
-&lt;blockquote&gt;&lt;code&gt;AllowOverride Limit&lt;/code&gt;&lt;/blockquote&gt;
-
-&lt;p&gt;needs to become:&lt;/p&gt;
-
-&lt;blockquote&gt;&lt;code&gt;AllowOverride Limit FileInfo Indexes&lt;/code&gt;&lt;/blockquote&gt;

-&lt;p&gt;For full details on how to configure Apache for [% terms.Bugzilla %],
-  see the
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]configuration.html#http-apache&quot;&gt;Configuration&lt;/a&gt;
-  section of the [% terms.Bugzilla %] Guide.&lt;/p&gt;
-
-&lt;h4&gt;mod_perl&lt;/h4&gt;
-
-&lt;p&gt;If your [% terms.Bugzilla %] runs under mod_perl, the required Apache
-  configuration is now simpler. The line that used to look like:&lt;/p&gt;
-
-&lt;blockquote&gt;&lt;code&gt;PerlSwitches -w -T -I/var/www/html/bugzilla 
-    -I/var/www/html/bugzilla/lib&lt;/code&gt;&lt;/blockquote&gt;
-
-&lt;p&gt;Now should be only:&lt;/p&gt;
-
-&lt;blockquote&gt;&lt;code&gt;PerlSwitches -w -T&lt;/code&gt;&lt;/blockquote&gt;
-
-&lt;p&gt;The &lt;code&gt;PerlConfigRequire&lt;/code&gt; line should stay the same, however.&lt;/p&gt;
-
-&lt;h3&gt;New .htaccess file&lt;/h3&gt;
-
-&lt;p&gt;In previous versions of [% terms.Bugzilla %], there was a file
-  in [% terms.Bugzilla %]'s root directory called &quot;.htaccess&quot; that was
-  generated by &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;. This file is now shipped with
-  [%+ terms.Bugzilla %] instead of being generated during installation.&lt;/p&gt;
-
-&lt;p&gt;If you update via CVS or bzr, you will get a message that your existing
-  .htaccess file conflicts with the new one. You must
-  &lt;strong&gt;remove your existing .htaccess file&lt;/strong&gt; and use the new one
-  instead. Continuing to use your old .htaccess file will cause certain new
-  features of [% terms.Bugzilla %] to not work properly, and may also lead
-  to security issues for your system in the future.&lt;/p&gt;
-
-&lt;h2 id=&quot;v40_code_changes&quot;&gt;Code Changes Which May Affect Customizations and
-  Extensions&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;In Extensions, if you want to serve files to the user via the web,
-    they must now be in a &lt;kbd&gt;web/&lt;/kbd&gt; subdirectory of your Extension.
-    (For example, &lt;kbd&gt;extensions/Foo/web/&lt;/kbd&gt;). &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
-    sets permissions on extensions much more strictly now, and files in
-    other locations (such as your base &lt;kbd&gt;extensions/Foo/&lt;/kbd&gt; directory)
-    will no longer be available to [% terms.Bugzilla %] users via the web
-    under certain configurations.&lt;/li&gt;
-  &lt;li&gt;Previous versions of [% terms.Bugzilla %] used to allow putting a
-    single file into the &quot;skins&quot; directory and having that be an entire
-    skin. That is no longer allowed, and on upgrade, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
-    will convert any such skins into a directory with a single
-    &lt;kbd&gt;global.css&lt;/kbd&gt; file in them.&lt;/li&gt;
-  &lt;li&gt;When updating [% terms.bugs %], you should now use
-    &lt;code&gt;$bug-&amp;gt;set_all&lt;/code&gt; instead of using the individual
-    &lt;kbd&gt;set_&lt;/kbd&gt; methods. In particular, &lt;kbd&gt;set_all&lt;/kbd&gt; is now the
-    &lt;em&gt;only&lt;/em&gt; way to set the product of [% terms.abug %]. See
-    &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt; for an example of how &lt;kbd&gt;set_all&lt;/kbd&gt;
-    should be used.&lt;/li&gt;
-  &lt;li&gt;You should not insert &amp;lt;script&amp;gt; tags and &amp;lt;link&amp;gt; CSS tags
-    into HTML anymore, in Extensions or in your customizations. Instead,
-    you should push new values into the &lt;kbd&gt;style_urls&lt;/kbd&gt; or
-    &lt;kbd&gt;javascript_urls&lt;/kbd&gt; parameters. If you have to insert manual
-    tags for some reason, be sure to call &quot;FILTER mtime&quot; on the URL. (Search
-    for other uses of &quot;FILTER mtime&quot; in the templates to see how it is
-    used.)&lt;/li&gt;
-  &lt;li&gt;When calling &lt;kbd&gt;Bugzilla::BugMail::Send&lt;/kbd&gt;, the &quot;changer&quot;
-    argument must now be a &lt;kbd&gt;Bugzilla::User&lt;/kbd&gt; object, not just
-    a login name. The &quot;owner&quot; and &quot;qacontact&quot; arguments are still
-    just login names.&lt;/li&gt;
-  &lt;li&gt;When creating a new subclass of Bugzilla::Object, you should no
-    longer use &lt;kbd&gt;UPDATE_VALIDATORS&lt;/kbd&gt;. Also, in most cases you will
-    no longer need to override &lt;kbd&gt;run_create_validators&lt;/kbd&gt;. Instead,
-    there is a new constant called
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Object.html#VALIDATOR_DEPENDENCIES&quot;&gt;VALIDATOR_DEPENDENCIES&lt;/a&gt;,
-    that specifies that certain fields have to be validated before other fields.
-    Then, all validators receive each already-validated value in a hash
-    as their fourth argument, so each validator can know the other values
-    that were passed in, while an object is being created. For an example of
-    how to use &lt;kbd&gt;VALIDATOR_DEPENDENCIES&lt;/kbd&gt;, see
-    &lt;kbd&gt;Bugzilla/Field.pm&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;In previous versions of [% terms.Bugzilla %], you had to call
-    &lt;code&gt;Bugzilla-&amp;gt;template_inner(&quot;&quot;)&lt;/code&gt; after any time
-    that you called &lt;kbd&gt;template_inner&lt;/kbd&gt; for a specific language.
-    It is no longer necessary to do this second &lt;kbd&gt;template_inner&lt;/kbd&gt;
-    call.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;post_bug.cgi&lt;/kbd&gt; and &lt;kbd&gt;Bugzilla::Bug-&amp;gt;create&lt;/kbd&gt; now take
-    the &lt;em&gt;names&lt;/em&gt; of groups instead of group ids.&lt;/li&gt;
-  &lt;li&gt;Bugzilla::Bugmail now uses Bugzilla::Bug objects internally instead of
-    a lot of direct SQL.&lt;/li&gt;
-  &lt;li&gt;For sending changes about [% terms.bugs %], there is now a method
-    called &lt;kbd&gt;send_changes&lt;/kbd&gt; that you can call on Bugzilla::Bug
-    objects. For an example of its use, see &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;Bugzilla::Search&lt;/kbd&gt; class has been refactored, and should
-    now be easier to customize.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;Bugzilla::Util::lsearch&lt;/kbd&gt; function is gone. Use
-    &lt;kbd&gt;firstidx&lt;/kbd&gt; from &lt;kbd&gt;List::MoreUtils&lt;/kbd&gt;, instead.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] now includes YUI 2.8.2.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;long_list.cgi&lt;/kbd&gt;, &lt;kbd&gt;showattachment.cgi&lt;/kbd&gt; and
-    &lt;kbd&gt;xml.cgi&lt;/kbd&gt; are deprecated scripts which are no longer actively
-    used since [% terms.Bugzilla %] 2.19. These scripts will be removed in
-    [%+ terms.Bugzilla %] 4.2.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v40_previous&quot;&gt;Release Notes For Previous Versions&lt;/h2&gt;
-
-&lt;p&gt;&lt;a href=&quot;page.cgi?id=release-notes3.html&quot;&gt;Release Notes for
-  [%+ terms.Bugzilla %] 3.x and Earlier&lt;/a&gt;&lt;/p&gt;
-
</del><span class="cx"> [% INCLUDE global/footer.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK db_req %]
</span><span class="cx">   [% SET m = DB_MODULE.$db %]
</span><del>-  &lt;h3 id=&quot;v42_req_[% db FILTER html %]&quot;&gt;For [% m.name FILTER html %] Users&lt;/h3&gt;
</del><ins>+  &lt;h3 id=&quot;req_[% db FILTER html %]&quot;&gt;For [% m.name FILTER html %] Users&lt;/h3&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;ul&gt;
</span><span class="cx">     &lt;li&gt;[% m.name FILTER html %]
</span><span class="lines">@@ -1647,8 +453,8 @@
</span><span class="cx">        [% '&lt;/span&gt;' IF db_new %]
</span><span class="cx">        &lt;/li&gt;
</span><span class="cx">     &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt;
</span><del>-      [%+ m.dbd.module FILTER html %] 
-      [% '&lt;span class=&quot;req_new&quot;&gt;' IF dbd_new %]v[% m.dbd.version FILTER html %]
</del><ins>+      [%+ m.dbd.module FILTER html %]
+      [%+ '&lt;span class=&quot;req_new&quot;&gt;' IF dbd_new %]v[% m.dbd.version FILTER html %]
</ins><span class="cx">       [% '&lt;/span&gt;' IF dbd_new %]&lt;/li&gt;
</span><span class="cx">   &lt;/ul&gt;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -1655,7 +461,7 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK req_table %]
</span><del>-  &lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
</del><ins>+  &lt;table class=&quot;req_table&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt;
</span><span class="cx">       [% IF include_feature %]
</span><span class="lines">@@ -1665,8 +471,8 @@
</span><span class="cx">     [% FOREACH req = reqs %]
</span><span class="cx">       &lt;tr&gt;
</span><span class="cx">         &lt;td [% ' class=&quot;req_new&quot;' IF new.contains(req.package) %]&gt;
</span><del>-          [%- req.module FILTER html %]&lt;/td&gt; 
-        &lt;td [% ' class=&quot;req_new&quot;' IF updated.contains(req.package) 
</del><ins>+          [%- req.module FILTER html %]&lt;/td&gt;
+        &lt;td [% ' class=&quot;req_new&quot;' IF updated.contains(req.package)
</ins><span class="cx">                                      OR new.contains(req.package) %]&gt;
</span><span class="cx">           [%- IF req.version == 0 %]
</span><span class="cx">             (Any)
</span><span class="lines">@@ -1674,7 +480,7 @@
</span><span class="cx">             [%- req.version FILTER html %]
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/td&gt;
</span><del>-        [% IF include_feature %] 
</del><ins>+        [% IF include_feature %]
</ins><span class="cx">           &lt;td&gt;[% req.feature.join(', ') FILTER html %]&lt;/td&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">       &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagesreleasenotes3htmltmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes3.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes3.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/release-notes3.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3483 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Everything Solved.
-  # Portions created by Everything Solved are Copyright (C) 2006
-  # Everything Solved. All Rights Reserved.
-  #
-  # Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
-  #%]
-
-[% PROCESS global/variables.none.tmpl %]
-[% SET title = &quot;$terms.Bugzilla 3.6 Release Notes&quot; %]
-[% INCLUDE global/header.html.tmpl 
-  title = title
-  style_urls = ['skins/standard/page.css'] 
-%]
-
-&lt;h3&gt;Release Notes For Newer Versions&lt;/h3&gt;
-
-&lt;p&gt;Release notes for versions of [% terms.Bugzilla %] of the 4.x series are
-  available &lt;a href=&quot;page.cgi?id=release-notes.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h1&gt;[% title FILTER html %]&lt;/h1&gt;
-
-&lt;ul class=&quot;bz_toc&quot;&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_point&quot;&gt;Updates in this 3.6.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_code_changes&quot;&gt;Code Changes Which May Affect 
-    Customizations&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v36_introduction&quot;&gt;Introduction&lt;/h2&gt;
-
-&lt;p&gt;Welcome to [% terms.Bugzilla %] 3.6! The focus of the 3.6 release is
-  on improving usability and &quot;polishing up&quot; all our features (by adding
-  some pieces that were &quot;missing&quot; or always wanted), although we
-  also have a few great new features for you, as well!&lt;/p&gt;
-
-&lt;p&gt;If you're upgrading, make sure to read &lt;a href=&quot;#v36_upgrading&quot;&gt;Notes
-  On Upgrading From a Previous Version&lt;/a&gt;. If you are upgrading from a release
-  before 3.4, make sure to read the release notes for all the 
-  &lt;a href=&quot;#v36_previous&quot;&gt;previous versions&lt;/a&gt; in between your version
-  and this one, &lt;strong&gt;particularly the Upgrading section of each
-  version's release notes&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;p&gt;We would like to thank &lt;a href=&quot;http://www.canonical.com/&quot;&gt;Canonical
-  Ltd.&lt;/a&gt;, &lt;a href=&quot;http://www.itasoftware.com/&quot;&gt;ITA Software&lt;/a&gt;,
-  the &lt;a href=&quot;http://www.ibm.com/linux/ltc/&quot;&gt;IBM Linux Technology Center&lt;/a&gt;,
-  &lt;a href=&quot;http://www.redhat.com/&quot;&gt;Red Hat&lt;/a&gt;, and 
-  &lt;a href=&quot;http://www.novell.com/&quot;&gt;Novell&lt;/a&gt; for funding the development
-  of various features and improvements in this release of
-  [%+ terms.Bugzilla %].&lt;/p&gt;
-
-&lt;h2 id=&quot;v36_point&quot;&gt;Updates in this 3.6.x Release&lt;/h2&gt;
-
-&lt;h3&gt;3.6.2&lt;/h3&gt;
-
-&lt;p&gt;This release fixes various security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.2.7/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in
-  this release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] installations running on older versions of IIS
-    will no longer experience the &quot;Undef to trick_taint&quot; errors that would
-    sometimes occur.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=521416&quot;&gt;[% terms.Bug %] 521416&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Email notifications were missing the dates that comments were made.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=578003&quot;&gt;[% terms.Bug %] 578003&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Putting a phrase in quotes in the Quicksearch box now works properly,
-    again.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=578494&quot;&gt;[% terms.Bug %] 578494&lt;/a&gt;
-    and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=553884&quot;&gt;[% terms.Bug %] 553884&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Quicksearch was usually (incorrectly) being limited to 200 results.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=581622&quot;&gt;[% terms.Bug %] 581622&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;On Windows, &lt;kbd&gt;install-module.pl&lt;/kbd&gt; can now properly install
-    DateTime and certain other Perl modules that didn't install properly
-    before.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=576105&quot;&gt;[% terms.Bug %] 576105&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Searching &quot;keywords&quot; for &quot;contains none of the words&quot; or &quot;does not
-    match regular expression&quot; now works properly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=562014&quot;&gt;[% terms.Bug %] 562014&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Doing &lt;kbd&gt;collectstats.pl --regenerate&lt;/kbd&gt; now works on installations
-    using PostgreSQL.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=577058&quot;&gt;[% terms.Bug %] 577058&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;The &quot;Field Values&quot; administrative control panel was sometimes denying
-    admins the ability to delete field values when there was no reason
-    to deny the deletion.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=577054&quot;&gt;[% terms.Bug %] 577054&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Eliminate the &quot;uninitialized value&quot; warnings that would happen when
-    editing a product's components.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=576911&quot;&gt;[% terms.Bug %] 576911&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;The updating of bugs_fulltext that happens during 
-    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; for upgrades to 3.6 should now be MUCH faster.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=577754&quot;&gt;[% terms.Bug %] 577754&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;email_in.pl&lt;/kbd&gt; was not allowing the setting of time-tracking
-    fields via inbound emails.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=583622&quot;&gt;[% terms.Bug %] 583622&lt;/a&gt;)
-  &lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.6.1&lt;/h3&gt;
-
-&lt;p&gt;This release fixes two security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.2.6/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in
-  this release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Using the &quot;Change Columns&quot; page would sometimes result in a
-    plain-text page instead of HTML.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=376044&quot;&gt;[% terms.Bug %] 376044&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Extensions that have only templates and no code are now working.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=562551&quot;&gt;[% terms.Bug %] 562551&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;install-module.pl&lt;/kbd&gt; has been fixed so that it installs
-    modules properly on both new and old versions of Perl.
-     (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=560318&quot;&gt;[% terms.Bug %] 560318&lt;/a&gt;
-     and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=560330&quot;&gt;[% terms.Bug %] 560330&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;It is now possible to upgrade from 3.4 to 3.6 when using Oracle.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=561379&quot;&gt;[% terms.Bug %] 561379&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Editing a field value's name (using the Field Values admin control
-    panel) wasn't working if the value was set as the default for that
-    field.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=561296&quot;&gt;[% terms.Bug %] 561296&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;If you had the &lt;kbd&gt;noresolveonopenblockers&lt;/kbd&gt; parameter set,
-    [%+ terms.bugs %] couldn't be edited at all if they were marked FIXED
-    and had any open blockers. (The parameter is only supposed to prevent
-    &lt;em&gt;changing&lt;/em&gt; [% terms.bugs %] to FIXED, not modifying already-FIXED
-    [%+ terms.bugs %].)
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=565314&quot;&gt;[% terms.Bug %] 565314&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Some minor issues with Perl 5.12 were fixed (mostly warnings that Perl
-    5.12 was throwing). [% terms.Bugzilla %] now supports Perl 5.12.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v36_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 3.4.5 will look like
-  &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v36_req_perl&quot;&gt;Perl&lt;/h3&gt; 

-&lt;p&gt;Perl v5.8.1&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_req_mysql&quot;&gt;For MySQL Users&lt;/h3&gt; 

-  &lt;ul&gt; 
-    &lt;li&gt;MySQL
-       v4.1.2
-       &lt;/li&gt; 
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; 
-      DBD::mysql v4.00&lt;/li&gt; 
-  &lt;/ul&gt;
-  
-&lt;h3 id=&quot;v36_req_pg&quot;&gt;For PostgreSQL Users&lt;/h3&gt; 

-  &lt;ul&gt; 
-    &lt;li&gt;PostgreSQL
-       v8.00.0000
-       &lt;/li&gt; 
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; 
-      DBD::Pg v1.45&lt;/li&gt; 
-  &lt;/ul&gt; 
-&lt;h3 id=&quot;v36_req_oracle&quot;&gt;For Oracle Users&lt;/h3&gt; 

-  &lt;ul&gt; 
-    &lt;li&gt;Oracle
-       v10.02.0
-       &lt;/li&gt; 
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; 
-      DBD::Oracle v1.19&lt;/li&gt; 
-  &lt;/ul&gt; 

-&lt;h3 id=&quot;v36_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; 
-    &lt;tr&gt; 
-      &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt; 
-    &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;CGI&lt;/td&gt; 
-        &lt;td &gt;3.21
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Digest::SHA&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Date::Format&lt;/td&gt; 
-        &lt;td &gt;2.21
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;DateTime&lt;/td&gt; 
-        &lt;td &gt;0.28
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;DateTime::TimeZone&lt;/td&gt; 
-        &lt;td &gt;0.71
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;DBI&lt;/td&gt; 
-        &lt;td &gt;1.41
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Template&lt;/td&gt; 
-        &lt;td &gt;2.22
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::Send&lt;/td&gt; 
-        &lt;td &gt;2.00
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::MIME&lt;/td&gt; 
-        &lt;td &gt;1.861
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::MIME::Encodings&lt;/td&gt; 
-        &lt;td &gt;1.313
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::MIME::Modifier&lt;/td&gt; 
-        &lt;td &gt;1.442
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;URI&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-      &lt;/tr&gt; 
-&lt;/table&gt; 

-&lt;h3 id=&quot;v36_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt; 

-&lt;p&gt;The following perl modules, if installed, enable various
-  features of [% terms.Bugzilla %]:&lt;/p&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; 
-    &lt;tr&gt; 
-      &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt; 
-        &lt;th&gt;Enables Feature&lt;/th&gt; 
-    &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;GD&lt;/td&gt; 
-        &lt;td &gt;1.20
-        &lt;/td&gt; 
-          &lt;td&gt;Graphical Reports, New Charts, Old Charts&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Chart::Lines&lt;/td&gt; 
-        &lt;td  class=&quot;req_new&quot;&gt;2.1
-        &lt;/td&gt; 
-          &lt;td&gt;New Charts, Old Charts&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Template::Plugin::GD::Image&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Graphical Reports&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;GD::Text&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Graphical Reports&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;GD::Graph&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Graphical Reports&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;XML::Twig&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Move [% terms.Bugs %] Between Installations,
-          Automatic Update Notifications&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;MIME::Parser&lt;/td&gt; 
-        &lt;td &gt;5.406
-        &lt;/td&gt; 
-          &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;LWP::UserAgent&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Automatic Update Notifications&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;PatchReader&lt;/td&gt; 
-        &lt;td &gt;0.9.4
-        &lt;/td&gt; 
-          &lt;td&gt;Patch Viewer&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Net::LDAP&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;LDAP Authentication&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Authen::SASL&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;SMTP Authentication&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Authen::Radius&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;RADIUS Authentication&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;SOAP::Lite&lt;/td&gt; 
-        &lt;td &gt;0.710.06
-        &lt;/td&gt; 
-          &lt;td&gt;XML-RPC Interface&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td  class=&quot;req_new&quot;&gt;JSON::RPC&lt;/td&gt; 
-        &lt;td  class=&quot;req_new&quot;&gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;JSON-RPC Interface&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td  class=&quot;req_new&quot;&gt;Test::Taint&lt;/td&gt; 
-        &lt;td  class=&quot;req_new&quot;&gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;JSON-RPC Interface, XML-RPC Interface&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;HTML::Parser&lt;/td&gt; 
-        &lt;td &gt;3.40
-        &lt;/td&gt; 
-          &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;HTML::Scrubber&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::MIME::Attachment::Stripper&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Inbound Email&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Email::Reply&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Inbound Email&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;TheSchwartz&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Mail Queueing&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;Daemon::Generic&lt;/td&gt; 
-        &lt;td &gt; 
-            (Any)
-        &lt;/td&gt; 
-          &lt;td&gt;Mail Queueing&lt;/td&gt; 
-      &lt;/tr&gt; 
-      &lt;tr&gt; 
-        &lt;td &gt;mod_perl2&lt;/td&gt; 
-        &lt;td &gt;1.999022
-        &lt;/td&gt; 
-          &lt;td&gt;mod_perl&lt;/td&gt; 
-      &lt;/tr&gt; 
-&lt;/table&gt; 
-
-&lt;h2 id=&quot;v36_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_usability&quot;&gt;General Usability Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_extensions&quot;&gt;New Extensions System&lt;/a&gt;&lt;/li&gt;  
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_qs&quot;&gt;Improved Quicksearch&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_browse&quot;&gt;Simple &quot;Browse&quot; Interface&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_suexec&quot;&gt;SUExec Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_mpwindows&quot;&gt;Experimental mod_perl Support on Windows&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_email_attachments&quot;&gt;Send Attachments by Email&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_jsonrpc&quot;&gt;JSON-RPC Interface&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_migrate&quot;&gt;Migration From Other [% terms.Bug %]-Trackers&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v36_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v36_feat_usability&quot;&gt;General Usability Improvements&lt;/h3&gt;
-
-&lt;p&gt;A &lt;a href=&quot;https://wiki.mozilla.org/Bugzilla:CMU_HCI_Research_2008&quot;&gt;scientific
-  usability study&lt;/a&gt; was done on [% terms.Bugzilla %] by researchers
-  from Carnegie-Mellon University. As a result of this study,
-  &lt;a href=&quot;https://bugzilla.mozilla.org/showdependencytree.cgi?id=490786&amp;amp;hide_resolved=0&quot;&gt;several
-  usability issues&lt;/a&gt; were prioritized to be fixed, based on specific data
-  from the study.&lt;/p&gt;
-
-&lt;p&gt;As a result, you will see many small improvements in [% terms.Bugzilla %]'s
-  usability, such as using Javascript to validate certain forms before
-  they are submitted, standardizing the words that we use in the user interface,
-  being clearer about what [% terms.Bugzilla %] needs from the user,
-  and other changes, all of which are also listed individually in this New
-  Features section.&lt;/p&gt;
-
-&lt;p&gt;Work continues on improving usability for the next release of
-  [%+ terms.Bugzilla %], but the results of the research have already
-  had an impact on this 3.6 release.&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_extensions&quot;&gt;New Extensions System&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] has a brand-new Extensions system. The system is
-  consistent, fast, and
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Extension.html&quot;&gt;fully
-  documented&lt;/a&gt;. It makes it possible to easily extend [% terms.Bugzilla %]'s
-  code and user interface to add new features or change existing features.
-  There's even
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/extensions/create.html&quot;&gt;a
-  script&lt;/a&gt; that will create the basic layout of an extension for you, to
-  help you get started. For more information about the new system, see the
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Extension.html&quot;&gt;Extensions
-  documentation&lt;/a&gt;.&lt;/p&gt;
-
-&lt;p&gt;If you had written any extensions using [% terms.Bugzilla %]'s previous
-  extensions system, there is
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/contrib/extension-convert.html&quot;&gt;a
-  script to help convert old extensions into the new format&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_qs&quot;&gt;Improved Quicksearch&lt;/h3&gt;
-
-&lt;p&gt;The &quot;quicksearch&quot; box that appears on the front page of
-  [%+ terms.Bugzilla %] and in the header/footer of every page
-  is now simplified and made more powerful. There is a
-  &lt;kbd&gt;[?]&lt;/kbd&gt; link next to the box that will take you to
-  the simplified &lt;a href=&quot;page.cgi?id=quicksearch.html&quot;&gt;Quicksearch Help&lt;/a&gt;,
-  which describes every single feature of the system in a simple layout,
-  including new features such as the ability to use partial field names
-  when searching.&lt;/p&gt;
-
-&lt;p&gt;Quicksearch should also be much faster than it was before, particularly
-  on large installations.&lt;/p&gt;
-
-&lt;p&gt;Note that in order to implement the new quicksearch, certain old
-  and rarely-used features had to be removed:
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;b&gt;+&lt;/b&gt; as a prefix to mean &quot;search additional resolutions&quot;, and
-    &lt;b&gt;+&lt;/b&gt; as a prefix to mean &quot;search just the summary&quot;. You can
-    instead use &lt;kbd&gt;summary:&lt;/kbd&gt; to explicitly search summaries.&lt;/li&gt;
-  &lt;li&gt;Searching the Severity field if you type something that matches
-    the first few characters of a severity. You can explicitly search
-    the Severity field if you want to find [% terms.bugs %] by severity.&lt;/li&gt;
-  &lt;li&gt;Searching the Priority field if you typed something that exactly
-    matched the name of a priority. You can explicitly search the
-    Priority field if you want to find [% terms.bugs %] by priority.&lt;/li&gt;
-  &lt;li&gt;Searching the Platform and OS fields if you typed in one of a
-    certain hard-coded list of strings (like &quot;pc&quot;, &quot;windows&quot;, etc.).
-    You can explicitly search these fields, instead, if you want to
-    find [% terms.bugs %] with a specific Platform or OS set.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v36_feat_browse&quot;&gt;Simple &quot;Browse&quot; Interface&lt;/h3&gt;
-
-&lt;p&gt;There is now a &quot;Browse&quot; link in the header of each [% terms.Bugzilla %]
-  page that presents a very basic interface that allows users to simply
-  browse through all open [% terms.bugs %] in particular components.&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_suexec&quot;&gt;SUExec Support&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] can now be run in Apache's &quot;SUExec&quot; mode,
-  which is what control panel software like cPanel and Plesk use
-  (so [% terms.Bugzilla %] should now be much easier to install
-  on shared hosting). SUExec support shows up as an option
-  in the &lt;kbd&gt;localconfig&lt;/kbd&gt; file during installation.&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_mpwindows&quot;&gt;Experimental mod_perl Support on Windows&lt;/h3&gt;
-
-&lt;p&gt;There is now experimental support for running [% terms.Bugzilla %]
-  under mod_perl on Windows, for a significant performance enhancement
-  (in exchange for using more memory).&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_email_attachments&quot;&gt;Send Attachments by Email&lt;/h3&gt;
-
-&lt;p&gt;The &lt;a href=&quot;[% docs_urlbase FILTER html %]api/email_in.html&quot;&gt;email_in&lt;/a&gt;
-  script now supports attaching multiple attachments to [% terms.abug %]
-  by email, both when filing and when updating [% terms.abug %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_jsonrpc&quot;&gt;JSON-RPC Interface&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now has support for the
-  &lt;a href=&quot;http://json-rpc.org/&quot;&gt;JSON-RPC&lt;/a&gt; WebServices protocol via
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Server/JSONRPC.html&quot;&gt;jsonrpc.cgi&lt;/a&gt;.
-  The JSON-RPC interface is experimental in this release--if you want any
-  fundamental changes in how it works,
-  &lt;a href=&quot;http://www.bugzilla.org/developers/reporting_bugs.html&quot;&gt;let us
-  know&lt;/a&gt;, for the next release of [% terms.Bugzilla %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_migrate&quot;&gt;Migration From Other [% terms.Bug %]-Trackers&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.6 comes with a new script,
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/migrate.html&quot;&gt;migrate.pl&lt;/a&gt;,
-  which allows migration from other [% terms.bug %]-tracking systems.
-  Among the various features of the migration system are:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;It is non-destructive--you can migrate into an existing
-    [%+ terms.Bugzilla %] installation without destroying any data
-    in the installation.&lt;/li&gt;
-  &lt;li&gt;It has a &quot;dry-run&quot; mode so you can test your migration
-    before actually running it.&lt;/li&gt;
-  &lt;li&gt;It is relatively easy to write new migrators for new systems,
-    if you know Perl. The basic migration framework does most of the work
-    for you, you just have to provide it with the data from your
-    [%+ terms.bug %]-tracker. See the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Migrate.html&quot;&gt;Bugzilla::Migrate&lt;/a&gt;
-    documentation and see our current migrator,
-    &lt;kbd&gt;Bugzilla/Migrate/GNATS.pm&lt;/kbd&gt; for information on how to make your
-    own migrator.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;The first migrator that has been implemented is for the GNATS
-  [%+ terms.bug %]-tracking system. We'd love to see migrators for
-  other systems! If you want to contribute a new migrator, see our
-  &lt;a href=&quot;http://wiki.mozilla.org/Bugzilla:Developers&quot;&gt;development
-  process&lt;/a&gt; for details on how to get code into [% terms.Bugzilla %].&lt;/p&gt;
-
-&lt;p&gt;Thanks to &lt;a href=&quot;http://lambdares.com/&quot;&gt;Lambda Research&lt;/a&gt; for
-  funding the initial development of this feature.&lt;/p&gt;
-
-&lt;h3 id=&quot;v36_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
-&lt;h4&gt;Enhancements for Users&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Filing:&lt;/b&gt; When filing [% terms.abug %],
-    [%+ terms.Bugzilla %] now visually indicates which fields are
-    mandatory.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Filing:&lt;/b&gt; &quot;Bookmarkable templates&quot; now
-    support the &quot;alias&quot; and &quot;estimated hours&quot; fields.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Editing:&lt;/b&gt; In previous versions of
-    [%+ terms.Bugzilla %], if you added a private comment to [% terms.abug %],
-    then &lt;em&gt;none&lt;/em&gt; of the changes that you made at that time were
-    sent to users who couldn't see the private comment. Now, for users
-    who can't see private comments, public changes are sent, but the private
-    comment is excluded from their email notification.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Editing:&lt;/b&gt; The controls for groups now
-    appear to the right of the attachment and time-tracking tables,
-    when editing [% terms.abug %].&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Editing:&lt;/b&gt; The &quot;Collapse All Comments&quot;
-    and &quot;Expand All Comments&quot; links now appear to the right of the
-    comment list instead of above it.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Editing:&lt;/b&gt; The See Also field now supports
-    URLs for Google Code Issues and the Debian B[% %]ug-Tracking System.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;[% terms.Bug %] Editing:&lt;/b&gt; There have been significant performance
-    improvements in &lt;kbd&gt;show_bug.cgi&lt;/kbd&gt; (the script that displays the
-    [% terms.bug %]-editing form), particularly for [% terms.bugs %] that
-    have lots of comments or attachments.&lt;/li&gt;
-
-  &lt;li&gt;&lt;b&gt;Attachments:&lt;/b&gt; The &quot;Details&quot; page of an attachment
-    now displays itself as uneditable if you can't edit the fields
-    there.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Attachments:&lt;/b&gt; We now make sure that there is
-    a Description specified for an attachment, using JavaScript, before
-    the form is submitted.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Attachments:&lt;/b&gt; There is now a link back to the [% terms.bug %]
-    at the bottom of the &quot;Details&quot; page for an attachment.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Attachments:&lt;/b&gt; When you click on an &quot;attachment 12345&quot; link
-    in a comment, if the attachment is a patch, you will now see the
-    formatted &quot;Diff&quot; view instead of the raw patch.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Attachments&lt;/b&gt;: For text attachments, we now let the browser 
-    auto-detect the character encoding, instead of forcing the browser to
-    always assume the attachment is in UTF-8.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; You can now display [% terms.bug %] flags as a column
-    in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; When viewing search results, you can see which columns are
-    being sorted on, and which direction the sort is on, as indicated
-    by arrows next to the column headers.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; You can now search the Deadline field using relative
-    dates (like &quot;1d&quot;, &quot;2w&quot;, etc.).&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; The iCalendar format of search results now includes
-    a PRIORITY field.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; It is no longer an error to enter an invalid search
-    order in a search URL--[% terms.Bugzilla %] will simply warn you that
-    some of your order options are invalid.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; When there are no search results, some helpful
-    links are displayed, offering actions you might want to take.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Search:&lt;/b&gt; For those who like to make their own
-    &lt;kbd&gt;buglist.cgi&lt;/kbd&gt; URLs (and for people working on customizations),
-    &lt;kbd&gt;buglist.cgi&lt;/kbd&gt; now accepts nearly every valid field in
-    [%+ terms.Bugzilla %] as a direct URL parameter, like
-    &lt;kbd&gt;&amp;amp;field=value&lt;/kbd&gt;.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;b&gt;Requests:&lt;/b&gt; When viewing the &quot;My Requests&quot; page, you can now
-    see the lists as a normal search result by clicking a link at the
-    bottom of each table.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Requests:&lt;/b&gt; When viewing the &quot;My Requests&quot; page, if you are
-    using Classifications, the Product drop-down will be grouped by
-    Classification.&lt;/li&gt;
-
-  &lt;li&gt;&lt;b&gt;Inbound Email:&lt;/b&gt; When filing [% terms.abug %] by email, if the
-    product that you are filing the [% terms.bug %] into has some groups
-    set as Default for you, the [% terms.bug %] will now be placed into those
-    groups automatically.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Inbound Email:&lt;/b&gt; The field names that can be used when creating
-    [%+ terms.bugs %] by email now exactly matches the set of valid parameters
-    to the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#create&quot;&gt;B[% %]ug.create
-    WebService function&lt;/a&gt;. You can still use most of the old field names
-    that 3.4 and earlier used for inbound emails, though, for
-    backwards-compatibility.&lt;/li&gt;
-
-  &lt;li&gt;If there are multiple languages available for your
-    [%+ terms.Bugzilla %], you can now select what language you want
-    [%+ terms.Bugzilla %] displayed in using links at the top of every
-    page.&lt;/li&gt;
-  &lt;li&gt;When creating a new account, you will be automatically logged in
-    after setting your password.&lt;/li&gt;
-  &lt;li&gt;There is no longer a maximum password length for accounts.&lt;/li&gt;
-  &lt;li&gt;In the Dusk skin, it's now easier to see links.&lt;/li&gt;
-  &lt;li&gt;In the Whining system, you can now choose to receive emails even
-    if there are no [% terms.bugs %] that match your searches.&lt;/li&gt;
-  &lt;li&gt;The arrows in dependency graphs now point the other way, so that
-    [%+ terms.bugs %] point at their dependencies.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;b&gt;New Charts:&lt;/b&gt; You can now convert an existing Saved Search
-    into a data series for New Charts.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;New Charts:&lt;/b&gt; There is now an interface that allows you to
-    delete data series.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;New Charts:&lt;/b&gt; When deleting a product, you now have the option
-    to delete the data series that are associated with that product.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;Enhancements for Administrators and Developers&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Depending on how your workflow is set up, it is now possible to
-    have both UNCONFIRMED and REOPENED show up as status choices for
-    a closed [% terms.bug %]. If you only want one or the other to
-    show up, you should edit your status workflow appropriately
-    (possibly by removing or disabling the REOPENED status).&lt;/li&gt;
-  &lt;li&gt;You can now &quot;disable&quot; field values so that they don't show
-    up as choices on [% terms.abug %] unless they are already set as
-    the value for that [% terms.bug %]. This doesn't work for the
-    per-product field values (component, target_milestone, and version)
-    yet, though.&lt;/li&gt;
-  &lt;li&gt;Users are now locked out of their accounts for 30 minutes after
-    trying five bad passwords in a row during login. Every time a
-    user is locked out like this, the user in the &quot;maintainer&quot; parameter
-    will get an email.&lt;/li&gt;
-  &lt;li&gt;The minimum length allowed for a password is now 6 characters.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;UNCONFIRMED&lt;/kbd&gt; status being enabled in a product
-    is now unrelated to the voting parameters. Instead, there is a checkbox
-    to enable the &lt;kbd&gt;UNCONFIRMED&lt;/kbd&gt; status in a product.&lt;/li&gt;
-  &lt;li&gt;Information about duplicates is now stored in the database instead
-    of being stored in the &lt;kbd&gt;data/&lt;/kbd&gt; directory. On large installations
-    this could save several hundred megabytes of disk space.&lt;/li&gt;
-
-  &lt;li&gt;&lt;b&gt;Installation:&lt;/b&gt; When installing [% terms.Bugzilla %], the
-    &quot;maintainer&quot; parameter will be automatically set to the administrator
-    that was created by &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Installation:&lt;/b&gt; &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; now prints out
-    certain errors in a special color so that you know that something
-    needs to be done.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Installation:&lt;/b&gt; &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; is now &lt;em&gt;much&lt;/em&gt;
-    faster at upgrading installations, particularly older installations.
-    Also, it's been made faster to run for the case where it's not
-    doing an upgrade.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Installation:&lt;/b&gt; If you install [% terms.Bugzilla %] using the
-    tarball, the &lt;kbd&gt;CGI.pm&lt;/kbd&gt; module from CPAN is now included in
-    the &lt;kbd&gt;lib/&lt;/kbd&gt; dir. If you would rather use the CGI.pm from your
-    global Perl installation, you can delete &lt;kbd&gt;CGI.pm&lt;/kbd&gt; and the
-    &lt;kbd&gt;CGI&lt;/kbd&gt; directory from the &lt;kbd&gt;lib/&lt;/kbd&gt; directory.&lt;/li&gt;
-  
-  &lt;li&gt;When editing a group, you can now specify that members of a group
-    are allowed to grant others membership in that group itself.&lt;/li&gt;
-  &lt;li&gt;The ability to compress BMP attachments to PNGs is now an Extension.
-    To enable the feature, remove the file
-    &lt;kbd&gt;extensions/BmpConvert/disabled&lt;/kbd&gt; and then run &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;The default list of values for the Priority field are now clear English
-    words instead of P1, P2, etc.&lt;/li&gt;
-  &lt;li&gt;There is now a system in place so that all field values can be
-    localized. See the &lt;kbd&gt;value_descs&lt;/kbd&gt; variable in
-    &lt;kbd&gt;template/en/default/global/field-descs.none.tmpl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;config.cgi&lt;/kbd&gt; now returns an ETag header and understands
-    the If-None-Match header in HTTP requests.&lt;/li&gt;
-  &lt;li&gt;The XML format of &lt;kbd&gt;show_bug.cgi&lt;/kbd&gt; now returns more information:
-    the numeric id of each comment, whether an attachment is a URL,
-    the modification time of an attachment, the numeric id of a flag,
-    and the numeric id of a flag's type.&lt;/li&gt;
-  
-  &lt;li&gt;&lt;b&gt;Parameters:&lt;/b&gt; Parameters that aren't actually required are no longer
-    in the &quot;Required&quot; section of the Parameters page. Instead, some are in the
-    new &quot;General&quot; section, and some are in the new &quot;Advanced&quot; section.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Parameters:&lt;/b&gt; The old &lt;kbd&gt;ssl&lt;/kbd&gt; parameter has been
-    changed to &lt;kbd&gt;ssl_redirect&lt;/kbd&gt;, and can only be turned &quot;on&quot; or &quot;off&quot;.
-    If &quot;on&quot;, then all users will be forcibly redirected to SSL whenever
-    they access [% terms.Bugzilla %]. When the parameter is off,
-    no SSL-related redirects will occur (even if the user directly
-    accesses [% terms.Bugzilla %] via SSL, they will &lt;em&gt;not&lt;/em&gt; be
-    redirected to a non-SSL page).&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Parameters:&lt;/b&gt; In the Advanced parameters, there is a new parameter,
-    &lt;kbd&gt;inbound_proxies&lt;/kbd&gt;. If your [% terms.Bugzilla %] is behind a
-    proxy, you should set this parameter to the IP address of that proxy.
-    Then, [% terms.Bugzilla %] will &quot;believe&quot; any &quot;X-Forwarded-For&quot;
-    header sent from that proxy, and correctly use the X-Forwarded-For
-    as the end user's IP, instead of believing that all traffic is coming
-    from the proxy.&lt;/li&gt;
-    
-  &lt;li&gt;&lt;b&gt;Removed Parameter:&lt;/b&gt; The &lt;kbd&gt;loginnetmask&lt;/kbd&gt; parameter has
-    been removed. Since [% terms.Bugzilla %] sends secure cookies, it's no
-    longer necessary to always restrict logins to a specific IP or block
-    of addresses.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Removed Parameter:&lt;/b&gt; The &lt;kbd&gt;quicksearch_comment_cutoff&lt;/kbd&gt;
-    parameter is gone. Quicksearch now always searches comments; however, it
-    uses a much faster algorithm to do it.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Removed Parameter:&lt;/b&gt; The &lt;kbd&gt;usermatchmode&lt;/kbd&gt; parameter has
-    been removed. User-matching is now &lt;em&gt;always&lt;/em&gt; done.&lt;/li&gt;
-  &lt;li&gt;&lt;b&gt;Removed Parameter:&lt;/b&gt; The &lt;kbd&gt;useentrygroupdefault&lt;/kbd&gt; parameter
-    has been removed. [% terms.Bugzilla %] now always behaves as though
-    that parameter were off.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;t/001compile.t&lt;/kbd&gt; test should now always pass, no matter
-    what configuration of optional modules you do or don't have installed.&lt;/li&gt;
-  &lt;li&gt;New script: &lt;kbd&gt;contrib/console.pl&lt;/kbd&gt;, which allows you to have
-    a &quot;command line&quot; into [% terms.Bugzilla %] by inputting Perl code
-    or using a few custom commands.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;WebService Changes&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;The WebService now returns all dates and times in the UTC timezone.
-    &lt;kbd&gt;B[% %]ugzilla.time&lt;/kbd&gt; now acts as though the [% terms.Bugzilla %]
-    server were in the UTC timezone, always. If you want to write clients
-    that are compatible across all [% terms.Bugzilla %] versions,
-    check the timezone from &lt;kbd&gt;B[% %]ugzilla.timezone&lt;/kbd&gt; or
-    &lt;kbd&gt;B[% %]ugzilla.time&lt;/kbd&gt;, and always input times in that timezone
-    and expect times to be returned in that format.&lt;/li&gt;
-  &lt;li&gt;You can now log in by passing &lt;kbd&gt;Bugzilla_login&lt;/kbd&gt; and
-    &lt;kbd&gt;Bugzilla_password&lt;/kbd&gt; as arguments to any WebService function.
-    See the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService.html#LOGGING_IN&quot;&gt;Bugzilla::WebService&lt;/a&gt;
-    documentation for details.&lt;/li&gt;
-  &lt;li&gt;New Method:
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#attachments&quot;&gt;B[% %]ug.attachments&lt;/a&gt;
-    which allows getting information about attachments.&lt;/li&gt;
-  &lt;li&gt;New Method:
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#fields&quot;&gt;B[% %]ug.fields&lt;/a&gt;,
-    which gets information about all the fields that [% terms.abug %] can have
-    in [% terms.Bugzilla %], include custom fields and legal values for
-    all fields. The &lt;kbd&gt;B[% %]ug.legal_values&lt;/kbd&gt; method is now deprecated.&lt;/li&gt;
-  &lt;li&gt;In the &lt;kbd&gt;B[% %]ug.add_comment&lt;/kbd&gt; method, the &quot;private&quot; parameter
-    has been renamed to &quot;is_private&quot; (for consistency with other methods).
-    You can still use &quot;private&quot;, though, for backwards-compatibility.&lt;/li&gt;
-  &lt;li&gt;The WebService now has Perl's &quot;taint mode&quot; turned on. This means that
-    it validates all data passed in before sending it to the database.
-    Also, all parameter names are validated, and if you pass in a parameter
-    whose name contains anything other than letters, numbers, or underscores,
-    that parameter will be ignored. Mostly this just affects
-    customizers--[% terms.Bugzilla %]'s WebService is not functionally
-    affected by these changes.&lt;/li&gt;
-  &lt;li&gt;In previous versions of [% terms.Bugzilla %], error messages were
-    sent word-wrapped to the client, from the WebService. Error messages
-    are now sent as one unbroken line.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v36_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=423439&quot;&gt;
-    [%- terms.Bug %] 423439&lt;/a&gt;: Tabs in comments will be converted
-    to four spaces, due to a b&lt;!-- --&gt;ug in Perl as of Perl 5.8.8.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=69621&quot;&gt;
-    [%- terms.Bug %] 69621&lt;/a&gt;: If you rename or remove a keyword that is
-    in use on [% terms.bugs %], you will need to rebuild the &quot;keyword cache&quot;
-    by running &lt;a href=&quot;sanitycheck.cgi&quot;&gt;sanitycheck.cgi&lt;/a&gt; and choosing 
-    the option to rebuild the cache when it asks. Otherwise keywords may 
-    not show up properly in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at 
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to 
-    particular Categories of New Charts is not complete. You should treat 
-    the 'chartgroup' Param as the only access mechanism available.&lt;br&gt;
-    However, charts migrated from Old Charts will be restricted to 
-    the groups that are marked MANDATORY for the corresponding Product.
-    There is currently no way to change this restriction, and the 
-    groupings will not be updated if the group configuration
-    for the Product changes.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v36_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/h2&gt;
-
-&lt;p&gt;When upgrading to 3.6, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will create foreign keys
-  for many columns in the database. Before doing this, it will check the
-  database for consistency. If there are an unresolvable consistency
-  problems, it will tell you what table and column in the database contain
-  the bad values, and which values are bad. If you don't know what else to do,
-  you can always delete the database records which contain the bad values by
-  logging in to your database and running the following command:&lt;/p&gt;
-
-&lt;p&gt;&lt;code&gt;DELETE FROM &lt;var&gt;table&lt;/var&gt; WHERE &lt;var&gt;column&lt;/var&gt; IN 
-  (&lt;var&gt;1, 2, 3, 4&lt;/var&gt;)&lt;/code&gt;&lt;/p&gt;
-
-&lt;p&gt;Just replace &quot;table&quot; and &quot;column&quot; with the name of the table 
-  and column that &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; mentions, and &quot;1, 2, 3, 4&quot;
-  with the invalid values that &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; prints out.&lt;/p&gt;
-
-&lt;p&gt;Remember that you should always back up your database before doing
-  an upgrade.&lt;/p&gt;
-
-&lt;h2 id=&quot;v36_code_changes&quot;&gt;Code Changes Which May Affect Customizations&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;There is no longer a SendBugMail method in the templates, and bugmail
-    is no longer sent by processing a template. Instead, it is sent
-    by using &lt;kbd&gt;Bugzilla::BugMail::Send&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;Comments are now represented as a
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Comment.html&quot;&gt;Bugzilla::Comment&lt;/a&gt;
-    object instead of just being hashes.&lt;/li&gt;
-  &lt;li&gt;In previous versions of [% terms.Bugzilla %], the template for displaying
-    [%+ terms.abug %] required a lot of extra variables that are now global
-    template variables instead.&lt;/li&gt;
-  &lt;li&gt;You can now check if optional modules are installed by using
-    &lt;kbd&gt;Bugzilla-&amp;gt;feature&lt;/kbd&gt; in Perl code or
-    &lt;kbd&gt;feature_enabled&lt;/kbd&gt; in template code.&lt;/li&gt;
-  &lt;li&gt;All of the various template header information required to display
-    the [% terms.bug %] form is now in one template,
-    &lt;kbd&gt;template/en/default/bug/show-header.html.tmpl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;You should now use &lt;kbd&gt;display_value&lt;/kbd&gt; instead of
-    &lt;kbd&gt;get_status&lt;/kbd&gt; or &lt;kbd&gt;get_resolution&lt;/kbd&gt; in templates.
-    &lt;kbd&gt;display_value&lt;/kbd&gt; should be used anywhere that a
-    &amp;lt;select&amp;gt;-type field has its values displayed.&lt;/li&gt;
-&lt;/ul&gt;
-
-
-&lt;h1 id=&quot;v36_previous&quot;&gt;[% terms.Bugzilla %] 3.4 Release Notes&lt;/h1&gt;
-
-&lt;ul class=&quot;bz_toc&quot;&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_point&quot;&gt;Updates in this 3.4.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_code_changes&quot;&gt;Code Changes Which May Affect 
-    Customizations&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v34_introduction&quot;&gt;Introduction&lt;/h2&gt;
-
-&lt;p&gt;This is [% terms.Bugzilla %] 3.4! [% terms.Bugzilla %] 3.4 brings a lot
-  of great enhancements for [% terms.Bugzilla %] over previous versions,
-  with various improvements to the user interface, lots of interesting new
-  features, and many long-standing requests finally being addressed.&lt;/p&gt;
-
-&lt;p&gt;If you're upgrading, make sure to read &lt;a href=&quot;#v34_upgrading&quot;&gt;Notes
-  On Upgrading From a Previous Version&lt;/a&gt;. If you are upgrading from a release
-  before 3.2, make sure to read the release notes for all the 
-  &lt;a href=&quot;#v34_previous&quot;&gt;previous versions&lt;/a&gt; in between your version
-  and this one, &lt;strong&gt;particularly the Upgrading section of each
-  version's release notes&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;p&gt;We would like to thank &lt;a href=&quot;http://www.canonical.com/&quot;&gt;Canonical
-  Ltd.&lt;/a&gt; for funding development of one new feature, and NASA for funding
-  development of several new features through the
-  &lt;a href=&quot;http://www.sjsufoundation.org/&quot;&gt;San Jose State University
-  Foundation&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h2 id=&quot;v34_point&quot;&gt;Updates In This 3.4.x Release&lt;/h2&gt;
-
-&lt;h3&gt;3.4.6&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;When doing a search that involves &quot;not equals&quot; or &quot;does not contain the
-    string&quot; or similar &quot;negative&quot; search types, the search description that
-    appears at the top of the resulting [% terms.bug %] list will indicate
-    that the search was of that type.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=474738&quot;&gt;[% terms.Bug %] 474738&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;In Internet Explorer, users couldn't easily mark a RESOLVED DUPLICATE
-    [%+ terms.bug %] as REOPENED, due to a JavaScript error.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=546719&quot;&gt;[% terms.Bug %] 546719&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;If you use a &quot;bookmarkable template&quot; to pre-fill forms on
-    the [% terms.bug %]-filing page, and you have custom fields
-    that are only supposed to appear (or only supposed to have certain
-    values) based on the values of other fields, those custom fields will
-    now work properly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=538211&quot;&gt;[% terms.Bug %] 538211&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;If you have a custom field that's only supposed to appear when
-    a [% terms.bug %]'s resolution is FIXED, it will now behave properly
-    on the [% terms.bug %]-editing form when a user sets the [% terms.bug %]'s
-    status to RESOLVED.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=520993&quot;&gt;[% terms.Bug %] 520993&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;If you are logged-out and using &lt;kbd&gt;request.cgi&lt;/kbd&gt;, the Requester
-    and Requestee fields no longer respect the &lt;kbd&gt;usermatching&lt;/kbd&gt;
-    parameter--they always require full usernames.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=533018&quot;&gt;[% terms.Bug %] 533018&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;If you tried to do a search with too many terms (resulting in a URL
-    that was longer than about 7000 characters), Apache would return a 
-    500 error instead of your search results.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=513989&quot;&gt;[% terms.Bug %] 513989&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] would sometimes lose fields from your sort order
-    when you added new fields to your sort order.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=470214&quot;&gt;[% terms.Bug %] 470214&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;The Atom format of search results would sometimes be missing the
-    Reporter or Assignee field for some [% terms.bugs %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=537834&quot;&gt;[% terms.Bug %] 537834&lt;/a&gt;)
-  &lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.4.5&lt;/h3&gt;
-
-&lt;p&gt;This release contains fixes for multiple security issues. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.0.10/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in
-  this release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Whining was failing if jobqueue.pl was enabled.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=530270&quot;&gt;[% terms.Bug %] 530270&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;The Assignee field was empty in Whine mails.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=511216&quot;&gt;[% terms.Bug %] 511216&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Administrators can now successfully create user accounts using 
-    editusers.cgi when using the &quot;Env&quot; authentication method.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=483987&quot;&gt;[% terms.Bug %] 483987&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;[% terms.Bug %]mail now uses the timezone of the recipient of the email,
-    when displaying the time a comment was made, instead of the timezone of the
-    person who made the change.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=534587&quot;&gt;[% terms.Bug %] 534587&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;&quot;[% terms.bug %] 1234&quot; in comments sometimes would not become a link if
-    word-wrapping happened between &quot;[% terms.bug %]&quot; and the number.
-   (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=514703&quot;&gt;[% terms.Bug %] 514703&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Running &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; on Windows will no longer pop up an error box
-    about OCI.dll.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=480968&quot;&gt;[% terms.Bug %] 480968&lt;/a&gt;)
-  &lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.4.4&lt;/h3&gt;
-
-&lt;p&gt;This release contains a fix for a security issue. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.4.3/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;Additionally, this release fixes a few minor [% terms.bugs %].&lt;/p&gt;
-
-&lt;h3&gt;3.4.3&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] installations running under mod_perl were leaking
-    about 512K of RAM per page load.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=517793&quot;&gt;[% terms.Bug %] 517793&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Attachments with Unicode characters in their names were being downloaded
-    with mangled names. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=328628&quot;&gt;[% terms.Bug %] 328628&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Creating custom fields with Unicode in their database column name
-    is now no longer allowed, as it would break [% terms.Bugzilla %]. If you
-    created such a custom field, you should delete it by first marking it 
-    obsolete and then clicking &quot;Delete&quot; in the custom field list, using
-    &lt;a href=&quot;editfields.cgi&quot;&gt;editfields.cgi&lt;/a&gt;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=525025&quot;&gt;[% terms.Bug %] 525025&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Clicking &quot;submit only my comment&quot; on the &quot;mid-air collisions&quot; page
-    was leading to a &quot;Suspicious Action&quot; warning.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=514378&quot;&gt;[% terms.Bug %] 514378&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;The XML format of [% terms.abug %] accidentally contained the
-    word-wrapped content of comments instead of the unwrapped content.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=509152&quot;&gt;[% terms.Bug %] 509152&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;You can now do &lt;kbd&gt;./install-module.pl --shell&lt;/kbd&gt; to get a CPAN
-    shell using the configuration of 
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/install-module.html&quot;&gt;install-module.pl&lt;/a&gt;,
-    which allows you to do more advanced Perl module installation tasks.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=445875&quot;&gt;[% terms.Bug %] 445875&lt;/a&gt;)
-  &lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.4.2&lt;/h3&gt;
-
-&lt;p&gt;This release contains fixes for multiple security issues, one of which
-  is highly critical. See the 
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.0.8/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;p&gt;In addition, the following important fixes/changes have been made in
-  this release:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Upgrades from older releases were sometimes failing during UTF-8 
-    conversion with a foreign key error. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=508181&quot;&gt;[% terms.Bug %] 508181&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Sorting [% terms.bug %] lists on certain fields would result in an error.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=510944&quot;&gt;[% terms.Bug %] 510944&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;[% terms.Bug %] update emails had two or three blank lines at the top
-    and between the various sections of the email. There is now only one
-    blank line in each of those places, making these emails more compact.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=73330&quot;&gt;[% terms.Bug %] 73330&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;[% terms.Bug %] email notifications for new [% terms.bugs %] incorrectly
-    had a line saying that the description was &quot;Comment 0&quot;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=510798&quot;&gt;[% terms.Bug %] 510798&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Running &lt;kbd&gt;./collectstats.pl --regenerate&lt;/kbd&gt; is now much faster,
-    on the order of 20x or 100x faster.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=286625&quot;&gt;[% terms.Bug %] 286625&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;For users of RHEL, CentOS, Fedora, etc. jobqueue.pl can now automatically
-    be installed as a daemon by running &lt;kbd&gt;./jobqueue.pl install&lt;/kbd&gt;
-    as root. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=475403&quot;&gt;[% terms.Bug %] 475403&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;XML-RPC interface responses had an incorrect Content-Length header
-    and would sometimes be truncated, if they contained certain UTF-8
-    characters.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=486306&quot;&gt;[% terms.Bug %] 486306&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;Users who didn't have access to the time-tracking fields would get an
-    empty [% terms.bug %] update email when the time-tracking fields were
-    changed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=509035&quot;&gt;[% terms.Bug %] 509035&lt;/a&gt;)
-  &lt;/li&gt;
-  &lt;li&gt;In the New Charts, non-public series now no longer show up as selectable
-    if you cannot access them.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=389396&quot;&gt;[% terms.Bug %] 389396&lt;/a&gt;)
-  &lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.4.1&lt;/h3&gt;
-
-&lt;p&gt;This release contains an important security fix. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.4/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;h2 id=&quot;v34_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 3.2.3 will look like
-  &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v34_req_perl&quot;&gt;Perl&lt;/h3&gt;
-
-&lt;p&gt;Perl v5.8.1&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_req_mysql&quot;&gt;For MySQL Users&lt;/h3&gt; 

-&lt;ul&gt; 
-  &lt;li&gt;MySQL v4.1.2&lt;/li&gt; 
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::mysql v4.00&lt;/li&gt; 
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v34_req_pg&quot;&gt;For PostgreSQL Users&lt;/h3&gt; 

-&lt;ul&gt; 
-  &lt;li&gt;PostgreSQL v8.00.0000&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Pg v1.45&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v34_req_oracle&quot;&gt;For Oracle Users&lt;/h3&gt;

-&lt;ul&gt; 
-  &lt;li&gt;Oracle v10.02.0&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Oracle v1.19&lt;/li&gt;
-&lt;/ul&gt; 

-&lt;h3 id=&quot;v34_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; 
-  &lt;tr&gt; 
-    &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;CGI&lt;/td&gt; 
-    &lt;td&gt;3.21&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;Digest::SHA&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt; (Any)&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Date::Format&lt;/td&gt; 
-    &lt;td&gt;2.21&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;DateTime&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;0.28&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;DateTime::TimeZone&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;0.71&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;DBI&lt;/td&gt; 
-    &lt;td&gt;1.41&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Template&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;2.22&lt;/td&gt; 
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Email::Send&lt;/td&gt; 
-    &lt;td&gt;2.00&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Email::MIME&lt;/td&gt; 
-    &lt;td&gt;1.861&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Email::MIME::Encodings&lt;/td&gt; 
-    &lt;td&gt;1.313&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Email::MIME::Modifier&lt;/td&gt; 
-    &lt;td&gt;1.442&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;URI&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-  &lt;/tr&gt; 
-&lt;/table&gt; 

-&lt;h3 id=&quot;v34_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt; 

-&lt;p&gt;The following perl modules, if installed, enable various
-  features of [% terms.Bugzilla %]:&lt;/p&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; 
-  &lt;tr&gt; 
-    &lt;th&gt;Module&lt;/th&gt;
-    &lt;th&gt;Version&lt;/th&gt; 
-    &lt;th&gt;Enables Feature&lt;/th&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;LWP::UserAgent&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Automatic Update Notifications&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Template::Plugin::GD::Image&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;GD::Text&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;GD::Graph&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;GD&lt;/td&gt; 
-    &lt;td&gt;1.20&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports, New Charts, Old Charts&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Email::MIME::Attachment::Stripper&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Inbound Email&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Email::Reply&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Inbound Email&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Net::LDAP&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;LDAP Authentication&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;TheSchwartz&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Mail Queueing&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;Daemon::Generic&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Mail Queueing&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;HTML::Parser&lt;/td&gt; 
-    &lt;td&gt;3.40&lt;/td&gt; 
-    &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;HTML::Scrubber&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;XML::Twig&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;MIME::Parser&lt;/td&gt; 
-    &lt;td&gt;5.406&lt;/td&gt; 
-    &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Chart::Base&lt;/td&gt; 
-    &lt;td&gt;1.0&lt;/td&gt; 
-    &lt;td&gt;New Charts, Old Charts&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Image::Magick&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Optionally Convert BMP Attachments to PNGs&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;PatchReader&lt;/td&gt; 
-    &lt;td&gt;0.9.4&lt;/td&gt; 
-    &lt;td&gt;Patch Viewer&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Authen::Radius&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;RADIUS Authentication&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;Authen::SASL&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;SMTP Authentication&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;SOAP::Lite&lt;/td&gt; 
-    &lt;td&gt;0.710.06&lt;/td&gt; 
-    &lt;td&gt;XML-RPC Interface&lt;/td&gt; 
-  &lt;/tr&gt; 
-  &lt;tr&gt; 
-    &lt;td&gt;mod_perl2&lt;/td&gt; 
-    &lt;td&gt;1.999022&lt;/td&gt; 
-    &lt;td&gt;mod_perl&lt;/td&gt; 
-  &lt;/tr&gt; 
-&lt;/table&gt; 
-
-&lt;h2 id=&quot;v34_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_enter&quot;&gt;Simple [% terms.Bug %] Filing&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_index&quot;&gt;New Home Page&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_spam&quot;&gt;Email Addresses Hidden From Logged-Out 
-    Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_urls&quot;&gt;Shorter Search URLs&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_async&quot;&gt;Asynchronous Email Sending&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_tz&quot;&gt;Dates and Times Displayed In User's Time
-    Zone&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_vis&quot;&gt;Custom Fields That Only Appear When
-    Another Field Has a Particular Value&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_vals&quot;&gt;Custom Fields Whose List of Values
-    Change Depending on the Value of Another Field&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_bugid&quot;&gt;New Custom Field Type: 
-    [%+ terms.Bug %] ID&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_see&quot;&gt;&quot;See Also&quot; Field&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_cols&quot;&gt;Re-order Columns in Search Results&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_desc&quot;&gt;Search Descriptions&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v34_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v34_feat_enter&quot;&gt;Simple [% terms.Bug %] Filing&lt;/h3&gt;
-
-&lt;p&gt;When entering a new [% terms.bug %], the vast majority of fields are
-  now hidden by default, which enormously simplifies the bug-filing form. 
-  You can click &quot;Show Advanced Fields&quot; to show all the fields, if you want
-  them. [%+ terms.Bugzilla %] remembers whether you last used the &quot;Advanced&quot;
-  or &quot;Simple&quot; version of the [% terms.bug %]-entry form, and will display the
-  same version to you again next time you file [% terms.abug %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_index&quot;&gt;New Home Page&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %]'s front page has been redesigned to be better at
-  guiding new users into the activities that they most commonly want to
-  do. Further enhancements to the home page are coming in future versions
-  of [% terms.Bugzilla %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_spam&quot;&gt;Email Addresses Hidden From Logged-Out Users&lt;/h3&gt;
-
-&lt;p&gt;To help prevent spam to [% terms.Bugzilla %] users, all email addresses
-  stored in [% terms.Bugzilla %] are now displayed only if you are logged in.
-  If you are logged out, only the part before the &quot;@&quot; of the email address is
-  displayed. This includes [% terms.bug %] lists, viewing [% terms.bugs %], the
-  XML format of [% terms.abug %], and any other place in the web interface that
-  an email address could appear.&lt;/p&gt;
-
-&lt;p&gt;Email addresses are not filtered out of [% terms.bug %] comments.
-  The WebService still returns full email addresses, even if you are logged
-  out.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_urls&quot;&gt;Shorter Search URLs&lt;/h3&gt;
-
-&lt;p&gt;When submitting a search, all the unused fields are now stripped from
-  the URL, so search URLs are much more meaningful, and much shorter.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_async&quot;&gt;Asynchronous Email Sending&lt;/h3&gt;
-
-&lt;p&gt;The largest performance problem in former versions of [% terms.Bugzilla %]
-  was that when updating [% terms.bugs %], email would be sent immediately
-  to every user who needed to be notified, and &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt;
-  would wait for the emails to be sent before continuing.&lt;/p&gt;
-
-&lt;p&gt;Now [% terms.Bugzilla %] is capable of queueing emails to be sent
-  while [% terms.abug %] is being updated, and sending them in the
-  background. This requires the administrator to run a daemon
-  that comes with [% terms.Bugzilla %], named
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/jobqueue.html&quot;&gt;jobqueue.pl&lt;/a&gt;,
-  and to enable the &lt;a href=&quot;editparams.cgi?section=mta#use_mailer_queue&quot;&gt;
-  use_mailer_queue&lt;/a&gt; parameter.&lt;/p&gt;
-
-&lt;p&gt;Using the background email-sending daemon instead of sending mail directly
-  should result in a very large speed-up for updating [% terms.bugs %],
-  particularly on larger installations.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_tz&quot;&gt;Dates and Times Displayed In User's Time Zone&lt;/h3&gt;
-
-&lt;p&gt;Users can now select what time zone they are in and [% terms.Bugzilla %]
-  will adjust displayed times to be correct for their time zone. However,
-  times the user inputs are unfortunately still in [% terms.Bugzilla %]'s
-  time zone.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_vis&quot;&gt;Custom Fields That Only Appear When Another Field
-    Has a Particular Value&lt;/h3&gt;
-
-&lt;p&gt;When creating a new custom field (or updating the definition of
-  an existing custom field), you can now say that &quot;this field only
-  appears when field X has value Y&quot;. (In the future, you will be able
-  to select multiple values for &quot;Y&quot;, so a field will appear when any
-  one of those values is selected.)&lt;/p&gt;
-
-&lt;p&gt;This feature only hides fields--it doesn't make their values go away.
-  So [% terms.bugs %] will still show up in searches for that field's
-  value, but the field won't appear in the user interface.&lt;/p&gt;
-
-&lt;p&gt;This is a good way of making Product-specific fields.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_vals&quot;&gt;Custom Fields Whose List of Values Change
-    Depending on the Value of Another Field&lt;/h3&gt;
-
-&lt;p&gt;When creating a drop-down or multiple-selection custom field, you can
-  now specify that another field &quot;controls the values&quot; of this field.
-  Then, when adding values to this field, you can say that a particular
-  value only appears when the other field is set to a particular
-  value.&lt;/p&gt;
-
-&lt;p&gt;Here's an example: Let's say that we create a field called &quot;Colors&quot;,
-  and we make the Product field &quot;control the values&quot; for Colors. Then we
-  add Blue, Red, Black, and Yellow as legal values for the &quot;Colors&quot; field.
-  Now we can say that &quot;Blue&quot; and &quot;Red&quot; only appear as valid choices in 
-  Product A, &quot;Yellow&quot; only appears in Product B, but &quot;Black&quot; &lt;em&gt;always&lt;/em&gt;
-  appears.&lt;/p&gt;
-
-&lt;p&gt;One thing to note is that this feature only controls what values appear in
-  the &lt;em&gt;user interface&lt;/em&gt;. [% terms.Bugzilla %] itself will still accept
-  any combination of values as valid, in the backend.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_bugid&quot;&gt;New Custom Field Type: [% terms.Bug %] ID&lt;/h3&gt;
-
-&lt;p&gt;You can now create a custom field that holds a reference to a single
-  valid [% terms.bug %] ID. In the future this will be enhanced to allow
-  [%+ terms.bugs %] to refer to each other via this field.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_see&quot;&gt;&quot;See Also&quot; Field&lt;/h3&gt;
-
-&lt;p&gt;We have added a new standard field called &quot;See Also&quot; to 
-  [%+ terms.Bugzilla %]. In this field, you can put URLs to multiple 
-  [%+ terms.bugs %] in any [% terms.Bugzilla %] installation, to indicate
-  that those [% terms.bugs %] are related to this one. It also supports
-  adding URLs to [% terms.bugs %] in 
-  &lt;a href=&quot;http://launchpad.net/&quot;&gt;Launchpad&lt;/a&gt;.&lt;/p&gt;
-
-&lt;p&gt;Right now, the field just validates the URLs and then displays them, but
-  in the future, it will grab information from the other installation about
-  the [% terms.bug %] and display it here, and possibly even update the
-  other installation.&lt;/p&gt;
-
-&lt;p&gt;If your installation does not need this field, you can hide it by disabling
-  the &lt;a href=&quot;editparams.cgi?section=bugfields#use_see_also&quot;&gt;use_see_also
-  parameter&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_cols&quot;&gt;Re-order Columns in Search Results&lt;/h3&gt;
-
-&lt;p&gt;There is a new interface for choosing what columns appear in search
-  results, which allows you to change the order in which columns appear
-  from left to right when viewing the [% terms.bug %] list.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_desc&quot;&gt;Search Descriptions&lt;/h3&gt;
-
-&lt;p&gt;When displaying search results, [% terms.Bugzilla %] will now show
-  a brief description of what you searched for, at the top of the
-  [%+ terms.bug %] list.&lt;/p&gt;
-
-&lt;h3 id=&quot;v34_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
-&lt;h4&gt;Enhancements for Users&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;You can now log in from every page, using the login form that appears
-    in the header or footer when you click &quot;Log In&quot;.&lt;/li&gt;
-  &lt;li&gt;When viewing [% terms.abug %], obsolete attachments are now
-    hidden from the attachment list by default. You can show them
-    by clicking &quot;Show Obsolete&quot; at the bottom of the attachment list.&lt;/li&gt;
-  &lt;li&gt;In the Email Preferences, you can now choose to get email when
-    a new [% terms.bug %] report is filed and you have a particular 
-    role on it.&lt;/li&gt;
-  &lt;li&gt;When resolving a mid-air collision, you can now choose to submit
-    only your comment.&lt;/li&gt;
-  &lt;li&gt;You can now set the Blocks and Depends On field on the &quot;Change
-    Several [% terms.Bugs %] At Once&quot; page.&lt;/li&gt;
-  &lt;li&gt;If your installation uses the &quot;insidergroup&quot; feature, you can now add
-    private comments on the &quot;Change Several [% terms.Bugs %] At Once&quot; 
-    page.&lt;/li&gt;
-  &lt;li&gt;When viewing a search result, you can now hover over any abbreviated
-    field to see its full value.&lt;/li&gt;
-  &lt;li&gt;When logging out, users are now redirected to the main page of
-    [%+ terms.Bugzilla %] instead of an empty page.&lt;/li&gt;
-  &lt;li&gt;When editing [% terms.abug %], text fields (except the comment box) now
-    grow longer when you widen your browser window.&lt;/li&gt;
-  &lt;li&gt;When viewing [% terms.abug %], the Depends On and Blocks list will
-    display [% terms.abug %]'s alias if it has one, instead of its id.
-    Also, closed [% terms.bugs %] will be sorted to the end of the list.&lt;/li&gt;
-
-  &lt;li&gt;If you use the time-tracking features of [% terms.Bugzilla %], and
-    you enable the time-tracking related columns in a search result,
-    then you will see a summary of the time-tracking data at the
-    bottom of the search result.&lt;/li&gt;
-  &lt;li&gt;For users of time-tracking, the &lt;kbd&gt;summarize_time.cgi&lt;/kbd&gt; page
-    now contains more data.&lt;/li&gt;
-
-  &lt;li&gt;When viewing an attachment's details page while you are logged-out,
-    flags are no longer shown as editable.&lt;/li&gt;
-  &lt;li&gt;Cloning [% terms.abug %] will now retain the &quot;Blocks&quot; and &quot;Depends On&quot;
-    fields from the [% terms.bug %] being cloned.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bug %]mail for new [% terms.bugs %] will now indicate
-    what security groups the [% terms.bug %] has been restricted to.&lt;/li&gt;
-  &lt;li&gt;You can now use any custom drop-down field as an axis for a tabular
-    or graphical report.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;X-Bugzilla-Type&lt;/kbd&gt; header in emails sent by 
-    [%+ terms.Bugzilla %] is now &quot;new&quot; for [% terms.bug %]mail sent for
-    newly-filed [% terms.bugs %], and &quot;changed&quot; for emails having to do
-    with updated [% terms.bugs %].&lt;/li&gt;
-  &lt;li&gt;Mails sent by the &quot;Whining&quot; system now contain the header
-    &lt;kbd&gt;X-Bugzilla-Type: whine&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;[% terms.bug %]mail now contains a X-Bugzilla-URL header to uniquely
-    identify which [% terms.Bugzilla %] installation the email came from.&lt;/li&gt;
-  &lt;li&gt;If you input an invalid regular expression anywhere in
-    [%+ terms.Bugzilla %], it will now tell you explicitly instead of failing
-    cryptically.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;duplicates.xul&lt;/kbd&gt; page (which wasn't used by very many
-    people) is now gone.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;Enhancements for Administrators and Developers&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] now uses the SHA-256 algorithm (a variant of 
-    SHA-2) to encrypt passwords in the database, instead of using Unix's
-    &quot;crypt&quot; function. This allows passwords longer than eight characters
-    to actually be effective. Each user's password will be converted to
-    SHA-256 the first time they log in after you upgrade to 
-    [%+ terms.Bugzilla %] 3.4 or later.&lt;/li&gt;
-  &lt;li&gt;If you are using database replication with [% terms.Bugzilla %],
-    many more scripts now take advantage of the read-only slave (the 
-    &quot;shadowdb&quot;). It may be safe to open up &lt;kbd&gt;show_bug.cgi&lt;/kbd&gt;
-    to search-engine indexing by editing your &lt;kbd&gt;robots.txt&lt;/kbd&gt; file,
-    now, if your [% terms.Bugzilla %] is on fast-enough hardware.&lt;/li&gt;
-  &lt;li&gt;The database now uses foreign keys to enforce the validity of
-    relationships between tables. Not every single table has all its 
-    foreign keys yet, but most do.&lt;/li&gt;
-  &lt;li&gt;Various parameters have been removed, in an effort to de-clutter
-    the parameter interface and simplify [% terms.Bugzilla %]'s code.
-    The parameters that were removed were: timezone, supportwatchers,
-    maxpatchsize, commentonclearresolution, commentonreassignbycomponent,
-    showallproducts. They have all been replaced with sensible default
-    behaviors. (For example, user watching is now always enabled.)&lt;/li&gt;
-  &lt;li&gt;When adding &lt;code&gt;&amp;amp;debug=1&lt;/code&gt; to the end of a 
-    &lt;kbd&gt;buglist.cgi&lt;/kbd&gt; URL, [% terms.Bugzilla %] will now also do an
-    EXPLAIN on the query, to help debug performance issues.&lt;/li&gt;
-  &lt;li&gt;When editing flag types in the administrative interface, you can now
-    see how many flags of each type have been set.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;WebService Changes&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Various functions have been added to the WebService:
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#history&quot;&gt;B[% %]ug.history&lt;/a&gt;,
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#search&quot;&gt;B[% %]ug.search&lt;/a&gt;,
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#comments&quot;&gt;B[% %]ug.comments&lt;/a&gt;,
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html#update_see_also&quot;&gt;B[% %]ug.update_see_also&lt;/a&gt;,
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/User.html#get&quot;&gt;User.get&lt;/a&gt;,
-    and &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bugzilla.html#time&quot;&gt;B[% %]ugzilla.time&lt;/a&gt;
-    (&lt;kbd&gt;B[% %]ugzilla.timezone&lt;/kbd&gt; is now deprecated).
-  &lt;/li&gt;
-  &lt;li&gt;For network efficiency, you can now limit which fields are returned 
-    from certain WebService functions, like &lt;kbd&gt;User.get&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;There is now a &quot;permissive&quot; argument for the &lt;kbd&gt;B[% %]ug.get&lt;/kbd&gt;
-    WebService function, which causes it not to throw an error when you
-    ask for [% terms.bugs %] you can't see.&lt;/li&gt;
-
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.get&lt;/kbd&gt; method now returns many more fields.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.add_comment&lt;/kbd&gt; method now returns the ID of the comment
-    that was just added.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;B[% %]ug.add_comment&lt;/kbd&gt; method will now throw an error if you
-    try to add a private comment but do not have the correct permissions.
-    (In previous versions, it would just silently ignore the &lt;kbd&gt;private&lt;/kbd&gt;
-    argument if you didn't have the correct permissions.)&lt;/li&gt;
-  &lt;li&gt;Many WebService function parameters now take individual values in
-    addition to arrays.&lt;/li&gt;
-  &lt;li&gt;The WebService now validates input types--it makes sure that dates
-    are in the right format, that ints are actually ints, etc. It will throw
-    an error if you send it invalid data. It also accepts empty ints, doubles,
-    and dateTimes, and translates them to &lt;kbd&gt;undef&lt;/kbd&gt;.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v34_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=423439&quot;&gt;
-    [%- terms.Bug %] 423439&lt;/a&gt;: Tabs in comments will be converted
-    to four spaces, due to a b&lt;!-- --&gt;ug in Perl as of Perl 5.8.8.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=69621&quot;&gt;
-    [%- terms.Bug %] 69621&lt;/a&gt;: If you rename or remove a keyword that is
-    in use on [% terms.bugs %], you will need to rebuild the &quot;keyword cache&quot;
-    by running &lt;a href=&quot;sanitycheck.cgi&quot;&gt;sanitycheck.cgi&lt;/a&gt; and choosing 
-    the option to rebuild the cache when it asks. Otherwise keywords may 
-    not show up properly in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at 
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to 
-    particular Categories of New Charts is not complete. You should treat 
-    the 'chartgroup' Param as the only access mechanism available.&lt;br&gt;
-    However, charts migrated from Old Charts will be restricted to 
-    the groups that are marked MANDATORY for the corresponding Product.
-    There is currently no way to change this restriction, and the 
-    groupings will not be updated if the group configuration
-    for the Product changes.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=370370&quot;&gt;
-    [%- terms.Bug %] 370370&lt;/a&gt;: mod_perl support is currently not
-    working on Windows machines.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v34_upgrading&quot;&gt;Notes On Upgrading From a Previous Version&lt;/h2&gt;
-
-&lt;p&gt;When upgrading to 3.4, &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will create foreign keys
-  for many columns in the database. Before doing this, it will check the
-  database for consistency. If there are an unresolvable consistency
-  problems, it will tell you what table and column in the database contain
-  the bad values, and which values are bad. If you don't know what else to do,
-  you can always delete the database records which contain the bad values by
-  logging in to your database and running the following command:&lt;/p&gt;
-
-&lt;p&gt;&lt;code&gt;DELETE FROM &lt;var&gt;table&lt;/var&gt; WHERE &lt;var&gt;column&lt;/var&gt; IN 
-  (&lt;var&gt;1, 2, 3, 4&lt;/var&gt;)&lt;/code&gt;&lt;/p&gt;
-
-&lt;p&gt;Just replace &quot;table&quot; and &quot;column&quot; with the name of the table 
-  and column that &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; mentions, and &quot;1, 2, 3, 4&quot;
-  with the invalid values that &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; prints out.&lt;/p&gt;
-
-&lt;p&gt;Remember that you should always back up your database before doing
-  an upgrade.&lt;/p&gt;
-
-&lt;h2 id=&quot;v34_code_changes&quot;&gt;Code Changes Which May Affect Customizations&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; now re-writes the &lt;kbd&gt;localconfig&lt;/kbd&gt;
-    file every time it runs, keeping the current values set (if there
-    are any), but moving any unexpected variables into a file called
-    &lt;kbd&gt;localconfig.old&lt;/kbd&gt;. If you want to continue having custom
-    varibles in &lt;kbd&gt;localconfig&lt;/kbd&gt;, you will have to add them to
-    the &lt;code&gt;LOCALCONFIG_VARS&lt;/code&gt; constant in 
-    &lt;kbd&gt;Bugzilla::Install::Localconfig&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Bugzilla::Object-&amp;gt;update()&lt;/kbd&gt; now returns something different
-    in list context than it does in scalar context.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Bugzilla::Object-&amp;gt;check()&lt;/kbd&gt; now can take object
-    ids in addition to names. Just pass in &lt;code&gt;{ id =&amp;gt; $some_value
-    }&lt;/code&gt;.&lt;/li&gt;
-  &lt;li&gt;Instead of being defined in &lt;kbd&gt;buglist.cgi&lt;/kbd&gt;, columns for
-    search results are now defined in a subroutine called &lt;code&gt;COLUMNS&lt;/code&gt;
-    in &lt;kbd&gt;Bugzilla::Search&lt;/kbd&gt;. The data now mostly comes from the
-    &lt;kbd&gt;fielddefs&lt;/kbd&gt; table in the database. Search.pm now takes a list
-    of column names from fielddefs for its &lt;kbd&gt;fields&lt;/kbd&gt; argument instead 
-    of literal SQL columns.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Bugzilla::Field-&amp;gt;legal_values&lt;/kbd&gt; now returns an array of
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Field/Choice.html&quot;&gt;Bugzilla::Field::Choice&lt;/a&gt;
-    objects instead of an array of strings. Bugzilla::Field::Choice will be used
-    in more places, in the future.&lt;/li&gt;
-  &lt;li&gt;We now use &lt;kbd&gt;Bugzilla::Bug-&amp;gt;check()&lt;/kbd&gt; instead of 
-    &lt;kbd&gt;ValidateBugId&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;groups&lt;/kbd&gt; and &lt;kbd&gt;bless_groups&lt;/kbd&gt; methods in 
-    &lt;kbd&gt;Bugzilla::User&lt;/kbd&gt; now return an arrayref of 
-    &lt;kbd&gt;Bugzilla::Group&lt;/kbd&gt; objects instead of a hashref with
-    group ids and group names.&lt;/li&gt;
-  &lt;li&gt;Standard [% terms.Bugzilla %] drop-down fields now have their type
-    set to &lt;kbd&gt;FIELD_TYPE_SINGLE_SELECT&lt;/kbd&gt; in the fielddefs table.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Bugzilla-&amp;gt;usage_mode&lt;/kbd&gt; now defaults to 
-    &lt;kbd&gt;USAGE_MODE_CMDLINE&lt;/kbd&gt; if we are not running inside a web
-    server.&lt;/li&gt;
-  &lt;li&gt;We no longer delete environment variables like &lt;kbd&gt;$ENV{PATH}&lt;/kbd&gt;
-    automatically unless we're actually running in taint mode.&lt;/li&gt;
-  &lt;li&gt;We are now using YUI 2.6.0.&lt;/li&gt;
-  &lt;li&gt;In &lt;a href=&quot;config.cgi?ctype=rdf&quot;&gt;the RDF format of config.cgi&lt;/a&gt;,
-    the &quot;resource&quot; attribute for flags now contains &quot;flag.cgi&quot; instead
-    of &quot;flags.cgi&quot;.&lt;/li&gt;
-&lt;/ul&gt;
-
-
-
-
-
-
-
-&lt;h1 id=&quot;v34_previous&quot;&gt;[% terms.Bugzilla %] 3.2 Release Notes&lt;/h1&gt;
-
-&lt;h2&gt;Table of Contents&lt;/h2&gt;
-
-&lt;ul class=&quot;bz_toc&quot;&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_point&quot;&gt;Updates In This 3.2.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_security&quot;&gt;Security Fixes In This 3.2.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_upgrading&quot;&gt;How to Upgrade From An Older Version&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_code_changes&quot;&gt;Code Changes Which May Affect 
-    Customizations&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v32_introduction&quot;&gt;Introduction&lt;/h2&gt;
-
-&lt;p&gt;Welcome to [% terms.Bugzilla %] 3.2! This is our first major feature
-  release since [% terms.Bugzilla %] 3.0, and it brings a lot of great
-  improvements and polish to the [% terms.Bugzilla %] experience.&lt;/p&gt;
-
-&lt;p&gt;If you're upgrading, make sure to read &lt;a href=&quot;#v32_upgrading&quot;&gt;How to
-  Upgrade From An Older Version&lt;/a&gt;. If you are upgrading from a release
-  before 3.0, make sure to read the release notes for all the 
-  &lt;a href=&quot;#v32_previous&quot;&gt;previous versions&lt;/a&gt; in between your version
-  and this one, &lt;strong&gt;particularly the &quot;Notes For Upgraders&quot; section of each
-  version's release notes&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;h2 id=&quot;v32_point&quot;&gt;Updates in this 3.2.x Release&lt;/h2&gt;
-
-&lt;p&gt;This section describes what's changed in the most recent b&lt;!-- --&gt;ug-fix
-  releases of [% terms.Bugzilla %] after 3.2. We only list the
-  most important fixes in each release. If you want a detailed list of
-  &lt;em&gt;everything&lt;/em&gt; that's changed in each version, you should use our
-  &lt;a href=&quot;http://www.bugzilla.org/status/changes.html&quot;&gt;Change Log 
-  Page&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3&gt;3.2.3&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] is now compatible with MySQL 5.1.x versions 5.1.31
-    and greater.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=480001&quot;&gt;[% terms.Bug %] 480001&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;On Windows, [% terms.Bugzilla %] sometimes would send mangled emails 
-    (that would often fail to send).
-  (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=467920&quot;&gt;[% terms.Bug %] 467920&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;&lt;code&gt;recode.pl&lt;/code&gt; would sometimes crash when trying to convert
-    databases from older versions of [% terms.Bugzilla %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=431201&quot;&gt;[% terms.Bug %] 431201&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Running a saved search with Unicode characters in its name would
-    cause [% terms.Bugzilla %] to crash.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=477513&quot;&gt;[% terms.Bug %] 477513&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] clients like Mylyn can now update [% terms.bugs %]
-    again (the [% terms.bug %] XML format now contains a &quot;token&quot; element that
-    can be used when updating [% terms.abug %]).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=476678&quot;&gt;[% terms.Bug %] 476678&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;For installations using the &lt;code&gt;shadowdb&lt;/code&gt; parameter, 
-    [%+ terms.Bugzilla %] was accidentally writing to the &quot;tokens&quot; table
-    in the shadow database (instead of the master database) when using the
-    &quot;Change Several [% terms.Bugs %] at Once&quot; page.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=476943&quot;&gt;[% terms.Bug  %] 476943&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;This release also contains a security fix. See the
-  &lt;a href=&quot;#v32_security&quot;&gt;Security Fixes Section&lt;/a&gt; for details.&lt;/p&gt;
-
-&lt;h3&gt;3.2.2&lt;/h3&gt;
-
-&lt;p&gt;This release fixes one security issue that is critical for installations
-  running 3.2.1 under mod_perl. See the 
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.0.7/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;h3&gt;3.2.1&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Attachments, charts, and graphs would sometimes be garbled on Windows.
-  (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=464992&quot;&gt;[% terms.Bug %] 464992&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;Saving changes to parameters would sometimes fail silently (particularly
-    on Windows when the web server didn't have the right permissions to
-    update the &lt;code&gt;params&lt;/code&gt; file). [% terms.Bugzilla %] will now
-    throw an error in this case, telling you what is wrong.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=347707&quot;&gt;[% terms.Bug %] 347707&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;If you were using the &lt;code&gt;usemenuforusers&lt;/code&gt; parameter,
-    and [% terms.abug %] was assigned to (or had a QA Contact of) a disabled
-    user, that field would be reset to the first user in the list when
-    updating [% terms.abug %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=465589&quot;&gt;[% terms.Bug %] 465589&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;If you were using the &lt;code&gt;PROJECT&lt;/code&gt; environment variable
-    to have multiple [% terms.Bugzilla %] installations using one codebase,
-    project-specific templates were being ignored. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=467324&quot;&gt;[% terms.Bug %] 467324&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;Some versions of the SOAP::Lite Perl module had a b[% %]ug that caused
-    [%+ terms.Bugzilla %]'s XML-RPC service to break. 
-    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; now checks for these bad versions and 
-    will reject them.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=468009&quot;&gt;[% terms.Bug %] 468009&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;The font sizes in various places were too small, when using the
-    Classic skin.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=469136&quot;&gt;[% terms.Bug %] 469136&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v32_security&quot;&gt;Security Fixes In This 3.2.x Release&lt;/h2&gt;
-
-&lt;h3&gt;3.2.3&lt;/h3&gt;
-
-&lt;p&gt;This release fixes one security issue related to attachments. See the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.2.2/&quot;&gt;Security Advisory&lt;/a&gt;
-  for details.&lt;/p&gt;
-
-&lt;h3&gt;3.2.2&lt;/h3&gt;
-
-&lt;p&gt;This release fixes one security issue that is critical for installations
-  running 3.2.1 under mod_perl. See the 
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.0.7/&quot;&gt;Security Advisory&lt;/a&gt; 
-  for details.&lt;/p&gt;
-
-&lt;h3&gt;3.2.1&lt;/h3&gt;
-
-&lt;p&gt;This release contains several security fixes. One fix may break any
-  automated scripts you have that are loading &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt;
-  directly. We recommend that you read the entire 
-  &lt;a href=&quot;http://www.bugzilla.org/security/2.22.6/&quot;&gt;Security Advisory&lt;/a&gt;
-  for this release.&lt;/p&gt;
-
-&lt;h2 id=&quot;v32_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 3.0.5 will look like
-  &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_oracle&quot;&gt;For Oracle Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_req_optional_mod&quot;&gt;Optional Perl
-    Modules&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_req_perl&quot;&gt;Perl&lt;/h3&gt;
-
-&lt;p&gt;Perl &lt;span class=&quot;req_new&quot;&gt;v&lt;strong&gt;5.8.1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_req_mysql&quot;&gt;For MySQL Users&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;MySQL v4.1.2&lt;/li&gt;
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt;
-      DBD::mysql &lt;span class=&quot;req_new&quot;&gt;v4.00&lt;/span&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_req_pg&quot;&gt;For PostgreSQL Users&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;PostgreSQL v8.00.0000&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Pg v1.45&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_req_oracle&quot;&gt;Email Addresses Hidden From Logged-Out Users
-    For Oracle Users&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Oracle v10.02.0&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Oracle v1.19&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr&gt; &lt;th&gt;Module&lt;/th&gt;       &lt;th&gt;Version&lt;/th&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;CGI&lt;/td&gt;          &lt;td class=&quot;req_new&quot;&gt;3.21 (on Perl 5.8.x) 
-                             or 3.33 (on Perl 5.10.x)&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;Date::Format&lt;/td&gt; &lt;td&gt;2.21&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;File::Spec&lt;/td&gt;   &lt;td&gt;0.84&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;DBI&lt;/td&gt;          &lt;td&gt;1.41&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;Template&lt;/td&gt;     &lt;td class=&quot;req_new&quot;&gt;2.15&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;Email::Send&lt;/td&gt;  &lt;td&gt;2.00&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; &lt;td&gt;Email::MIME&lt;/td&gt;  &lt;td class=&quot;req_new&quot;&gt;1.861&lt;/td&gt; &lt;/tr&gt;
-&lt;tr&gt; 
-  &lt;td class=&quot;req_new&quot;&gt;Email::MIME::Encodings&lt;/td&gt; 
-  &lt;td class=&quot;req_new&quot;&gt;1.313&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Email::MIME::Modifier&lt;/td&gt; 
-  &lt;td class=&quot;req_new&quot;&gt;1.442&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/table&gt;
-
-&lt;h3 id=&quot;v32_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt;
-
-&lt;p&gt;The following perl modules, if installed, enable various
-  features of [% terms.Bugzilla %]:&lt;/p&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
-&lt;tr&gt; 
-  &lt;th&gt;Module&lt;/th&gt;
-  &lt;th&gt;Version&lt;/th&gt;
-  &lt;th&gt;Enables Feature&lt;/th&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;LWP::UserAgent&lt;/td&gt;
-  &lt;td&gt;(Any)&lt;/td&gt;
-  &lt;td&gt;Automatic Update Notifications&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Template::Plugin::GD::Image&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Graphical Reports&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;GD::Text&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Graphical Reports&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;GD::Graph&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Graphical Reports&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;GD&lt;/td&gt; 
-  &lt;td&gt;1.20&lt;/td&gt; 
-  &lt;td&gt;Graphical Reports, New Charts, Old Charts&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Email::MIME::Attachment::Stripper&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Inbound Email&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Email::Reply&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Inbound Email&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Net::LDAP&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;LDAP Authentication&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;HTML::Parser&lt;/td&gt; 
-  &lt;td&gt;3.40&lt;/td&gt; 
-  &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;HTML::Scrubber&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;XML::Twig&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;MIME::Parser&lt;/td&gt; 
-  &lt;td&gt;5.406&lt;/td&gt; 
-  &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Chart::Base&lt;/td&gt; 
-  &lt;td&gt;1.0&lt;/td&gt; 
-  &lt;td&gt;New Charts, Old Charts&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;Image::Magick&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;Optionally Convert BMP Attachments to PNGs&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;PatchReader&lt;/td&gt; 
-  &lt;td&gt;0.9.4&lt;/td&gt; 
-  &lt;td&gt;Patch Viewer&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td class=&quot;req_new&quot;&gt;Authen::Radius&lt;/td&gt; 
-  &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;RADIUS Authentication&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td class=&quot;req_new&quot;&gt;Authen::SASL&lt;/td&gt; 
-  &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;SMTP Authentication&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;SOAP::Lite&lt;/td&gt; 
-  &lt;td&gt;(Any)&lt;/td&gt; 
-  &lt;td&gt;XML-RPC Interface&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-  &lt;td&gt;mod_perl2&lt;/td&gt; 
-  &lt;td&gt;1.999022&lt;/td&gt; 
-  &lt;td&gt;mod_perl&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/table&gt;
-
-&lt;h2 id=&quot;v32_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_ui&quot;&gt;Major UI Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_skin&quot;&gt;New Default Skin: Dusk&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_status&quot;&gt;Custom Status Workflow&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_fields&quot;&gt;New Custom Field Types&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_install&quot;&gt;Easier Installation&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_oracle&quot;&gt;Experimental Oracle Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_utf8&quot;&gt;Improved UTF-8 Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_grcons&quot;&gt;Group Icons&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_feat_ui&quot;&gt;Major UI Improvements&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.2 has had some UI assistance from the NASA
-  Human-Computer Interaction department and the new 
-  &lt;a href=&quot;http://wiki.mozilla.org/Bugzilla:UE&quot;&gt;[% terms.Bugzilla %]
-  User Interface Team&lt;/a&gt;.&lt;/p&gt;
-
-&lt;p&gt;In particular, you will notice a massively redesigned [% terms.bug %]
-  editing form, in addition to our &lt;a href=&quot;#v32_feat_skin&quot;&gt;new skin&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_skin&quot;&gt;New Default Skin: Dusk&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.2 now ships with a skin called &quot;Dusk&quot; that is
-  a bit more colorful than old default &quot;Classic&quot; skin.&lt;/p&gt;
-
-&lt;p&gt;Upgrading installations will still default to the &quot;Classic&quot; 
-  skin--administrators can change the default in the Default Preferences
-  control panel. Users can also choose to use the old skin in their
-  Preferences (or using the View :: Page Style menu in Firefox).&lt;/p&gt;
-
-&lt;p&gt;The changes that [% terms.Bugzilla %] required for Dusk made
-  [%+ terms.Bugzilla %] much easier to skin. See the
-  &lt;a href=&quot;http://wiki.mozilla.org/Bugzilla:Addons#Skins&quot;&gt;Addons page&lt;/a&gt;
-  for additional skins, or try making your own!&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_status&quot;&gt;Custom Status Workflow&lt;/h3&gt;
-
-&lt;p&gt;You can now customize the list of statuses in [% terms.Bugzilla %],
-  and transitions between them.&lt;/p&gt;
-
-&lt;p&gt;You can also specify that a comment must be made on certain transitions.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_fields&quot;&gt;New Custom Field Types&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.2 has support for three new types of
-  custom fields:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Large Text: Adds a multi-line textbox to your [% terms.bugs %].&lt;/li&gt;
-  &lt;li&gt;Multiple Selection Box: Adds a box that allows you to choose
-    multiple items from a list.&lt;/li&gt;
-  &lt;li&gt;Date/Time: Displays a date and time, along with a JavaScript
-    calendar popup to make picking a date easier.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_feat_install&quot;&gt;Easier Installation&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now comes with a script called 
-  &lt;kbd&gt;install-module.pl&lt;/kbd&gt; that can automatically download
-  and install all of the required Perl modules for [% terms.Bugzilla %].
-  It stores them in a directory inside your [% terms.Bugzilla %]
-  installation, so you can use it even if you don't have administrator-level
-  access to your machine, and without modifying your main Perl install.&lt;/p&gt;
-
-&lt;p&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will print out instructions for using
-  &lt;kbd&gt;install-module.pl&lt;/kbd&gt;, or you can read its
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/install-module.html&quot;&gt;documentation&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_oracle&quot;&gt;Experimental Oracle Support&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.2 contains experimental support for using 
-  Oracle as its database. Some features of [% terms.Bugzilla %] are known 
-  to be broken on Oracle, but hopefully will be working by our next major
-  release.&lt;/p&gt;
-
-&lt;p&gt;The [% terms.Bugzilla %] Project, as an open-source project, of course
-  does not recommend the use of proprietary database solutions. However,
-  if your organization requires that you use Oracle, this will allow
-  you to use [% terms.Bugzilla %]!&lt;/p&gt;
-
-&lt;p&gt;The [% terms.Bugzilla %] Project thanks Oracle Corp. for their extensive
-  development contributions to [% terms.Bugzilla %] which allowed this to 
-  happen!&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_utf8&quot;&gt;Improved UTF-8 Support&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.2 now has advanced UTF-8 support in its code,
-  including correct handling for truncating and wrapping multi-byte
-  languages. Major issues with multi-byte or unusual languages
-  are now resolved, and [% terms.Bugzilla %] should now be usable
-  by users in every country with little (or at least much less)
-  customization.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_grcons&quot;&gt;Group Icons&lt;/h3&gt;
-
-&lt;p&gt;Administrators can now specify that users who are in certain groups
-  should have an icon appear next to their name whenever they comment.
-  This is particularly useful for distinguishing developers from 
-  [%+ terms.bug %] reporters.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
-&lt;p&gt;These are either minor enhancements, or enhancements that have
-  very short descriptions. Some of these are very useful, though!&lt;/p&gt;
-
-&lt;h4&gt;Enhancements For Users&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: You can now reassign
-    [%+ terms.abug %] at the same time as you are changing its status.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: When entering [% terms.abug %], 
-    you will now see the description of a component when you select it.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: The [% terms.bug %] view now 
-    contains some &lt;a href=&quot;http://microformats.org/about/&quot;&gt;Microformats&lt;/a&gt;,
-    most notably for users' names and email addresses.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: You can now remove a QA Contact
-    from [% terms.abug %] simply by clearing the QA Contact field.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: There is now a user preference 
-    that will allow you to exclude the quoted text when replying 
-    to comments.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;[% terms.Bugs %]&lt;/strong&gt;: You can now expand or collapse
-    individual comments in the [% terms.bug %] view.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Attachments&lt;/strong&gt;: There is now &quot;mid-air collision&quot; 
-      protection when editing attachments.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Attachments&lt;/strong&gt;: Patches in the Diff Viewer now show 
-    line numbers (&lt;a href=&quot;https://bugzilla.mozilla.org/attachment.cgi?id=327546&quot;&gt;Example&lt;/a&gt;).&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Attachments&lt;/strong&gt;: After creating or updating an attachment,
-    you will be immediately shown the [% terms.bug %] that the attachment
-    is on.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt;: You can now reverse the sort of 
-    [%+ terms.abug %] list by clicking on a column header again.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt;: Atom feeds of [% terms.bug %] lists now
-    contain more fields.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt;: QuickSearch now supports searching flags
-    and groups. It also now includes the OS field in the list of fields
-    it searches by default.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt;: &quot;Help&quot; text can now appear on query.cgi 
-    for Internet Explorer and other non-Firefox browsers. (It always
-    could appear for Firefox.)&lt;/li&gt;
-
-  &lt;li&gt;[% terms.Bugzilla %] now ships with an icon that will show
-    up next to the URL in most browsers. If you want to replace it,
-    it's in &lt;kbd&gt;images/favicon.ico&lt;/kbd&gt;.&lt;/li&gt;
-
-  &lt;li&gt;You can now set the Deadline when using &quot;Change Several 
-    [%+ terms.Bugs %] At Once&quot;&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Saved Searches&lt;/strong&gt; now save their column list, so if 
-    you customize the list of columns and save your search, it will 
-    always contain those columns.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Saved Searches&lt;/strong&gt;: When you share a search, you can
-    now see how many users have subscribed to it, on 
-    &lt;kbd&gt;userprefs.cgi&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Saved Searches&lt;/strong&gt;: You can now see what group a 
-    shared search was shared to, on the list of available shared searches
-    in &lt;kbd&gt;userprefs.cgi&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags&lt;/strong&gt;: If your installation uses drop-down user 
-    lists, the flag requestee box will now contain only users who are 
-    actually allowed to take requests.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags&lt;/strong&gt;: If somebody makes a request to you, and you
-    change the requestee to somebody else, the requester is no longer set
-    to you. In other words, you can &quot;redirect&quot; requests and maintain the
-    original requester.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Flags&lt;/strong&gt;: Emails about flags now will thread properly
-    in email clients to be a part of [% terms.abug %]'s thread.&lt;/li&gt;
-  &lt;li&gt;When using &lt;kbd&gt;email_in.pl&lt;/kbd&gt;, you can now add users to the CC
-    list by just using &lt;kbd&gt;@cc&lt;/kbd&gt; as the field name.&lt;/li&gt;
-  &lt;li&gt;Many pages (particularly administrative pages) now contain links to
-    the relevant section of the [% terms.Bugzilla %] Guide, so you can read 
-    the documentation for that page.&lt;/li&gt;
-  &lt;li&gt;Dependency Graphs should render more quickly, as they now (by default)
-    only include the same [% terms.bugs %] that you'd see in the dependency
-    tree.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;Enhancements For Administrators&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;strong&gt;Admin UI&lt;/strong&gt;: Instead of having the Administration 
-    Control Panel links in the footer, there is now just one link called 
-   &quot;Administration&quot; that takes you to a page that links to all the
-    administrative controls for [% terms.Bugzilla %].&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Admin UI&lt;/strong&gt;: Administrative pages no longer display
-    confirmation pages, instead they redirect you to some useful page 
-    and display a message about what changed.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Admin UI&lt;/strong&gt;: The interface for editing group 
-     inheritance in &lt;kbd&gt;editgroups.cgi&lt;/kbd&gt; is much clearer now.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Admin UI&lt;/strong&gt;: When editing a user, you can now see 
-    all the components where that user is the Default Assignee or Default
-    QA Contact.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt;: For installations that use SMTP to send 
-    mail (as opposed to Sendmail), [%+ terms.Bugzilla %] now supports
-    SMTP Authentication, so that it can log in to your mail server 
-    before sending messages.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt;: Using the &quot;Test&quot; mail delivery method now
-     creates a valid mbox file to make testing easier.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Authentication&lt;/strong&gt;: [% terms.Bugzilla %] now correctly 
-    handles LDAP records which contain multiple email addresses. (The first
-    email address in the list that is a valid [% terms.Bugzilla %] account 
-    will be used, or if this is a new user, the first email address in 
-    the list will be used.)&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Authentication&lt;/strong&gt;: [% terms.Bugzilla %] can now take 
-    a list of LDAP servers to try in order until it gets a successful
-    connection.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Authentication&lt;/strong&gt;: [% terms.Bugzilla %] now supports 
-    RADIUS authentication.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: The login cookie is now created as 
-    &quot;HTTPOnly&quot; so that it can't be read by possibly malicious scripts. 
-    Also, if SSL is enabled on your installation, the login cookie is
-    now only sent over SSL connections.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: The &lt;code&gt;ssl&lt;/code&gt; parameter now protects
-    every page a logged-in user accesses, when set to &quot;authenticated sessions.&quot;
-    Also, SSL is now enforced appropriately in the WebServices interface when
-    the parameter is set.&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;Database&lt;/strong&gt;: [% terms.Bugzilla %] now uses transactions in 
-    the database instead of table locks. This should generally improve
-    performance with many concurrent users. It also means if there is
-    an unexpected error in the middle of a page, all database changes made
-    during that page will be rolled back.&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;Database&lt;/strong&gt;: You no longer have to set 
-    &lt;code&gt;max_packet_size&lt;/code&gt; in MySQL to add large attachments. However,
-    you may need to set it manually if you restore a mysqldump into your
-    database.&lt;/li&gt;
-
-  &lt;li&gt;New WebService functions:
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bug.html&quot;&gt;B&lt;!-- --&gt;ug.add_comment&lt;/a&gt;
-    and &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/WebService/Bugzilla.html&quot;&gt;Bugzilla.extensions&lt;/a&gt;.&lt;/li&gt;
-
-  &lt;li&gt;You can now delete custom fields, but only if they have never been
-    set on any [% terms.bug %].&lt;/li&gt;
-  &lt;li&gt;There is now a &lt;kbd&gt;--reset-password&lt;/kbd&gt; argument to 
-    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; that allows you to reset a user's password
-    from the command line.&lt;/li&gt;
-  &lt;li&gt;There is now a script called &lt;kbd&gt;sanitycheck.pl&lt;/kbd&gt; that you can
-    run from the command line. It works just like &lt;kbd&gt;sanitycheck.cgi&lt;/kbd&gt;.
-    By default, it only outputs anything if there's an error, so it's
-    ideal for administrators who want to run it nightly in a cron job.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;strict_isolation&lt;/kbd&gt; parameter now prevents you from setting
-    users who cannot see [% terms.abug %] as a CC, Assignee, or QA
-    Contact. Previously it only prevented you from adding users who
-    could not &lt;em&gt;edit&lt;/em&gt; the [% terms.bug %].&lt;/li&gt;
-  &lt;li&gt;Extensions can now add their own headers to the HTML &amp;lt;head&amp;gt;
-    for things like custom CSS and so on.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;sanitycheck.cgi&lt;/kbd&gt; has been templatized, meaning that the
-    entire [% terms.Bugzilla %] UI is now contained in templates.&lt;/li&gt;
-  &lt;li&gt;When setting the &lt;kbd&gt;sslbase&lt;/kbd&gt; parameter, you can now specify
-    a port number in the URL.&lt;/li&gt;
-  &lt;li&gt;When importing [% terms.bugs %] using &lt;kbd&gt;importxml.pl&lt;/kbd&gt;,
-    attachments will have their actual creator set as their creator,
-    instead of the person who exported the [% terms.bug %] from the other
-    system.&lt;/li&gt;
-  &lt;li&gt;The voting system is off by default in new installs. This is to
-    prepare for the fact that it will be moved into an extension at
-    some point in the future.&lt;/li&gt;
-  &lt;li&gt;The &lt;code&gt;shutdownhtml&lt;/code&gt; parameter now works even when 
-    [%+ terms.Bugzilla %]'s database server is down.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;Enhancements for Localizers (or Localized Installations)&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;The documentation can now be localized--in other words, you can have
-    documentation installed for multiple languages at once and
-    [%+ terms.Bugzilla %] will link to the correct language in its internal
-    documentation links.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] no longer uses the &lt;kbd&gt;languages&lt;/kbd&gt; parameter.
-    Instead it reads the &lt;kbd&gt;template/&lt;/kbd&gt; directory to see which
-    languages are available.&lt;/li&gt;
-  &lt;li&gt;Some of the messages printed by &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; can now
-    be localized. See &lt;kbd&gt;template/en/default/setup/strings.txt.pl&lt;/kbd&gt;.
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v32_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=423439&quot;&gt;
-    [%- terms.Bug %] 423439&lt;/a&gt;: Tabs in comments will be converted
-    to four spaces, due to a b&lt;!-- --&gt;ug in Perl as of Perl 5.8.8.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=69621&quot;&gt;
-    [%- terms.Bug %] 69621&lt;/a&gt;: If you rename or remove a keyword that is
-    in use on [% terms.bugs %], you will need to rebuild the &quot;keyword cache&quot;
-    by running &lt;a href=&quot;sanitycheck.cgi&quot;&gt;sanitycheck.cgi&lt;/a&gt; and choosing 
-    the option to rebuild the cache when it asks. Otherwise keywords may 
-    not show up properly in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at 
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to 
-    particular Categories of New Charts is not complete. You should treat 
-    the 'chartgroup' Param as the only access mechanism available.&lt;br&gt;
-    However, charts migrated from Old Charts will be restricted to 
-    the groups that are marked MANDATORY for the corresponding Product.
-    There is currently no way to change this restriction, and the 
-    groupings will not be updated if the group configuration
-    for the Product changes.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=370370&quot;&gt;
-    [%- terms.Bug %] 370370&lt;/a&gt;: mod_perl support is currently not
-    working on Windows machines.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v32_upgrading&quot;&gt;How to Upgrade From An Older Version&lt;/h2&gt;
-
-&lt;h3 id=&quot;v32_upgrading_notes&quot;&gt;Notes For Upgraders&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;If you upgrade by CVS, the &lt;kbd&gt;extensions&lt;/kbd&gt; and 
-    &lt;kbd&gt;skins/contrib&lt;/kbd&gt; directories are now in CVS instead of
-    being created by &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; If you do a &lt;kbd&gt;cvs update&lt;/kbd&gt;
-    from 3.0, you will be told that your directories are &quot;in the way&quot; and
-    you should delete (or move) them and then do &lt;kbd&gt;cvs update&lt;/kbd&gt;
-    again. Also, the &lt;kbd&gt;docs&lt;/kbd&gt; directory has been restructured
-    and after you &lt;kbd&gt;cvs update&lt;/kbd&gt; you can delete the &lt;kbd&gt;docs/html&lt;/kbd&gt;,
-    &lt;kbd&gt;docs/pdf&lt;/kbd&gt;, &lt;kbd&gt;docs/txt&lt;/kbd&gt;, and &lt;kbd&gt;docs/xml&lt;/kbd&gt;
-    directories.&lt;/li&gt;
-  &lt;li&gt;If you are using MySQL, you should know that [% terms.Bugzilla %]
-    now uses InnoDB for all tables. &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; will convert
-    your tables automatically, but if you have InnoDB disabled,
-    the upgrade will not be able to complete (and &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
-    will tell you so).&lt;/li&gt;
-
-  &lt;li&gt;&lt;strong&gt;You should also read the 
-    &lt;a href=&quot;#v30_upgrading_notes&quot;&gt;[% terms.Bugzilla %] 3.0 Notes For Upgraders
-    section&lt;/a&gt; of the 
-    &lt;a href=&quot;#v32_previous&quot;&gt;previous release notes&lt;/a&gt; if you are upgrading
-    from a version before 3.0.&lt;/strong&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;Steps For Upgrading&lt;/h3&gt;
-
-&lt;p&gt;Once you have read the notes above, see the
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]upgrade.html&quot;&gt;Upgrading 
-  documentation&lt;/a&gt; for instructions on how to upgrade.&lt;/p&gt;
-
-&lt;h2 id=&quot;v32_code_changes&quot;&gt;Code Changes Which May Affect Customizations&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_code_hooks&quot;&gt;More Hooks!&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_code_search&quot;&gt;Search.pm Rearchitecture&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_code_lib&quot;&gt;lib Directory&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v32_code_other&quot;&gt;Other Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v32_code_hooks&quot;&gt;More Hooks!&lt;/h3&gt;
-
-&lt;p&gt;There are more code hooks in 3.2 than there were in 3.0. See the
-  documentation of &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Hook.html&quot;&gt;Bugzilla::Hook&lt;/a&gt;
-  for more details.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_code_search&quot;&gt;Search.pm Rearchitecture&lt;/h3&gt;
-
-&lt;p&gt;&lt;kbd&gt;Bugzilla/Search.pm&lt;/kbd&gt; has been heavily modified, to be much
-  easier to read and use. It contains mostly the same code as it did in
-  3.0, but it has been moved around and reorganized significantly.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_code_lib&quot;&gt;lib Directory&lt;/h3&gt;
-
-&lt;p&gt;As part of implementing &lt;a href=&quot;#v32_feat_install&quot;&gt;install-module.pl&lt;/a&gt;,
-  [%+ terms.Bugzilla %] was given a local &lt;kbd&gt;lib&lt;/kbd&gt; directory which
-  it searches for modules, in addition to the standard system path.&lt;/p&gt;
-
-&lt;p&gt;This means that all [% terms.Bugzilla %] scripts now start with
-  &lt;code&gt;use lib qw(. lib);&lt;/code&gt; as one of the first lines.&lt;/p&gt;
-
-&lt;h3 id=&quot;v32_code_other&quot;&gt;Other Changes&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;You should now be using &lt;code&gt;get_status('NEW')&lt;/code&gt; instead of
-    &lt;code&gt;status_descs.NEW&lt;/code&gt; in templates.&lt;/li&gt;
-  &lt;li&gt;The &lt;code&gt;[&amp;#37;# version = 1.0 &amp;#37;]&lt;/code&gt; comment at the top of every
-    template file has been removed.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h1 id=&quot;v32_previous&quot;&gt;[% terms.Bugzilla %] 3.0.x Release Notes&lt;/h1&gt;
-
-&lt;h2&gt;Table of Contents&lt;/h2&gt;
-
-&lt;ul class=&quot;bz_toc&quot;&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_point&quot;&gt;Updates In This 3.0.x Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req&quot;&gt;Minimum Requirements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat&quot;&gt;New Features and Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_issues&quot;&gt;Outstanding Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_security&quot;&gt;Security Fixes In This Release&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_upgrading&quot;&gt;How to Upgrade From An Older Version&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_changes&quot;&gt;Code Changes Which May Affect 
-    Customizations&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_previous&quot;&gt;Release Notes for Previous Versions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v30_introduction&quot;&gt;Introduction&lt;/h2&gt;
-
-&lt;p&gt;Welcome to [% terms.Bugzilla %] 3.0! It's been over eight years since
-  we released [% terms.Bugzilla %] 2.0, and everything has changed since
-  then. Even just since our previous release, [% terms.Bugzilla %] 2.22,
-  we've added a &lt;em&gt;lot&lt;/em&gt; of new features. So enjoy the release, we're
-  happy to bring it to you.&lt;/p&gt;
-
-&lt;p&gt;If you're upgrading, make sure to read &lt;a href=&quot;#v30_upgrading&quot;&gt;How to
-  Upgrade From An Older Version&lt;/a&gt;. If you are upgrading from a release
-  before 2.22, make sure to read the release notes for all the 
-  &lt;a href=&quot;#v30_previous&quot;&gt;previous versions&lt;/a&gt; in between your version 
-  and this one.&lt;/p&gt;
-
-&lt;h2 id=&quot;v30_point&quot;&gt;Updates in this 3.0.x Release&lt;/h2&gt;
-
-&lt;p&gt;This section describes what's changed in the most recent b&lt;!-- --&gt;ug-fix
-  releases of [% terms.Bugzilla %] after 3.0. We only list the
-  most important fixes in each release. If you want a detailed list of
-  &lt;em&gt;everything&lt;/em&gt; that's changed in each version, you should use our
-  &lt;a href=&quot;http://www.bugzilla.org/status/changes.html&quot;&gt;Change Log Page&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3&gt;3.0.6&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Before 3.0.6, unexpected fatal WebService errors would result in
-    a &lt;code&gt;faultCode&lt;/code&gt; that was a string instead of a number.
-   (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=446327&quot;&gt;[% terms.Bug %] 446327&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you created a product or component with the same name as one you
-    previously deleted, it would fail with an error about the series table.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=247936&quot;&gt;[% terms.Bug %] 247936&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;See also the &lt;a href=&quot;#v30_security&quot;&gt;Security Advisory&lt;/a&gt; section for
-  information about a security issue fixed in this release.&lt;/p&gt;
-
-&lt;h3&gt;3.0.5&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;If you don't have permission to set a flag, it will now appear
-    unchangeable in the UI.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=433851&quot;&gt;[% terms.Bug %] 433851&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you were running mod_perl, [% terms.Bugzilla %] was not correctly
-    closing its connections to the database since 3.0.3, and so sometimes
-    the DB would run out of connections.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=441592&quot;&gt;[% terms.Bug %] 441592&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The installation script is now clear about exactly which 
-    &lt;code&gt;Email::&lt;/code&gt; modules are required in Perl, thus avoiding the
-    problem where emails show up with a body like 
-    &lt;samp&gt;SCALAR(0xBF126795)&lt;/samp&gt;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=441541&quot;&gt;[% terms.Bug %] 441541&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;[% docs_urlbase FILTER html %]api/email_in.html&quot;&gt;email_in.pl&lt;/a&gt;
-    is no longer case-sensitive for values of &lt;kbd&gt;@product&lt;/kbd&gt;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=365697&quot;&gt;[% terms.Bug %] 365697&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;See also the &lt;a href=&quot;#v30_security&quot;&gt;Security Advisory&lt;/a&gt; section for
-  information about security issues fixed in this release.&lt;/p&gt;
-
-&lt;h3&gt;3.0.4&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] administrators were not being correctly notified
-    about new releases.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=414726&quot;&gt;[% terms.Bug %] 414726&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;There could be extra whitespace in email subject lines.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=411544&quot;&gt;[% terms.Bug %] 411544&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;The priority, severity, OS, and platform fields were always required by
-    the &lt;kbd&gt;B&lt;!-- --&gt;ug.create&lt;/kbd&gt; WebService function, even if they had
-    defaults specified.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=384009&quot;&gt;[% terms.Bug %] 384009&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;Better threading of [% terms.bug %]mail in some email clients.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=376453&quot;&gt;[% terms.Bug %] 376453&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;There were many fixes to the Inbound Email Interface 
-    (&lt;kbd&gt;email_in.pl&lt;/kbd&gt;).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=92274&quot;&gt;[% terms.Bug %] 92274&lt;/a&gt;,
-     &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=377025&quot;&gt;[% terms.Bug %] 377025&lt;/a&gt;,
-     &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=412943&quot;&gt;[% terms.Bug %] 412943&lt;/a&gt;,
-     &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=413672&quot;&gt;[% terms.Bug %] 413672&lt;/a&gt;, and
-     &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=431721&quot;&gt;[% terms.Bug %] 431721&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; now handles UTF-8 conversion more reliably during upgrades.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=374951&quot;&gt;[% terms.Bug %] 374951&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;Comments written in CJK languages are now correctly word-wrapped.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=388723&quot;&gt;[% terms.Bug %] 388723&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;All emails will now be sent in the correct language, when the user
-    has chosen a language for emails.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=405946&quot;&gt;[% terms.Bug %] 405946&lt;/a&gt;)
-
-  &lt;li&gt;On Windows, temporary files created when uploading attachments are now
-    correctly deleted when the upload is complete.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=414002&quot;&gt;[% terms.Bug %] 414002&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; now prints correct installation instructions
-    for Windows users using Perl 5.10.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=414430&quot;&gt;[% terms.Bug %] 414430&lt;/a&gt;)
-&lt;/ul&gt;
-
-&lt;p&gt;See also the &lt;a href=&quot;#v30_security&quot;&gt;Security Advisory&lt;/a&gt; section for
-  information about security issues fixed in this release.&lt;/p&gt;
-
-&lt;h3&gt;3.0.3&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;mod_perl no longer compiles [% terms.Bugzilla %]'s code for each Apache
-    process individually. It now compiles code only once and shares it among
-    each Apache process. This greatly improves performance and highly 
-    decreases the memory footprint.
-   (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=398241&quot;&gt;[% terms.Bug %] 398241&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;You can now search for '---' (without quotes) in versions and milestones.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=362436&quot;&gt;[% terms.Bug %] 362436&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;[% terms.Bugzilla %] should no longer break lines unnecessarily in 
-    email subjects. This was causing trouble with some email clients.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=374424&quot;&gt;[% terms.Bug %] 374424&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;If you had selected &quot;I'm added to or removed from this capacity&quot; option
-    for the &quot;CC&quot; role in your email preferences, you wouldn't get mail when
-    more than one person was added to the CC list at once.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=394796&quot;&gt;[% terms.Bug %] 394796&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;Deleting a user account no longer deletes whines from another user who
-    has the deleted account as addressee. The schedule is simply removed, 
-    but the whine itself is left intact.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=395924&quot;&gt;[% terms.Bug %] 395924&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;&lt;kbd&gt;contrib/merge-users.pl&lt;/kbd&gt; now correctly merges all required
-    fields when merging two user accounts.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=400160&quot;&gt;[% terms.Bug %] 400160&lt;/a&gt;)&lt;/li&gt;
-
-  &lt;li&gt;[% terms.Bugzilla %] no longer requires Apache::DBI to run under 
-    mod_perl. It caused troubles such as lost connections with the DB and
-    didn't give any important performance gain.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=408766&quot;&gt;[% terms.Bug %] 408766&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;3.0.2&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;[% terms.Bugzilla %] should now work on Perl 5.9.5 (and thus the
-    upcoming Perl 5.10.0).
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=390442&quot;&gt;[% terms.Bug %] 390442&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;See also the &lt;a href=&quot;#v30_security&quot;&gt;Security Advisory&lt;/a&gt; section for
-  information about an important security issue fixed in this release.&lt;/p&gt;
-
-&lt;h3&gt;3.0.1&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;For users of Firefox 2, the &lt;code&gt;show_bug.cgi&lt;/code&gt; user interface
-    should no longer &quot;collapse&quot; after you modify [% terms.abug %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=370739&quot;&gt;[% terms.Bug %] 370739&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you can bless a group, and you share a saved search with that
-    group, it will no longer automatically appear in all of that group's
-    footers unless you specifically request that it automatically appear
-    in their footers.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=365890&quot;&gt;[% terms.Bug %] 365890&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;There is now a parameter to allow users to perform searches without
-    any search terms. (In other words, to search for just a Product
-    and Status on the Simple Search page.) The parameter is called
-    &lt;code&gt;specific_search_allow_empty_words&lt;/code&gt;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=385910&quot;&gt;[% terms.Bug %] 385910&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you attach a file that has a MIME-type of &lt;code&gt;text/x-patch&lt;/code&gt;
-    or &lt;code&gt;text/x-diff&lt;/code&gt;, it will automatically be treated as a 
-    patch by [% terms.Bugzilla %].
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=365756&quot;&gt;[% terms.Bug %] 365756&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Dependency Graphs now work correctly on all mod_perl installations.
-    There should now be no remaining signficant problems with running
-    [%+ terms.Bugzilla %] under mod_perl.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=370398&quot;&gt;[% terms.Bug %] 370398&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If moving [% terms.abug %] between products would remove groups
-    from the [% terms.bug %], you are now warned.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=303183&quot;&gt;[% terms.Bug %] 303183&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;On IIS, whenever [% terms.Bugzilla %] threw a warning, it would
-    actually appear on the web page. Now warnings are suppressed,
-    unless you have a file in the &lt;code&gt;data&lt;/code&gt; directory called
-    &lt;code&gt;errorlog&lt;/code&gt;, in which case warnings will be printed there.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=390148&quot;&gt;[% terms.Bug %] 390148&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you used &lt;kbd&gt;email_in.pl&lt;/kbd&gt; to edit [% terms.abug %] that was
-    protected by groups, all of the groups would be cleared.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=385453&quot;&gt;[% terms.Bug %] 385453&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;PostgreSQL users: New Charts were failing to collect data over time.
-    They will now start collecting data correctly.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=257351&quot;&gt;[% terms.Bug %] 257351&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Some flag mails didn't specify who the requestee was. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=379787&quot;&gt;[% terms.Bug %] 379787&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Instead of throwing real errors, &lt;kbd&gt;collectstats.pl&lt;/kbd&gt; would
-    just say that it couldn't find &lt;code&gt;ThrowUserError&lt;/code&gt;.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=380709&quot;&gt;[% terms.Bug %] 380709&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Logging into [% terms.Bugzilla %] from the home page works again
-    with IIS5. 
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=364008&quot;&gt;[% terms.Bug %] 364008&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you were using SMTP for sending email, sometimes emails would
-    be missing the &lt;code&gt;Date&lt;/code&gt; header.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=304999&quot;&gt;[% terms.Bug %] 304999&lt;/a&gt;).&lt;/li&gt;
-  &lt;li&gt;In the XML-RPC WebService, &lt;code&gt;B&lt;!-- --&gt;ug.legal_values&lt;/code&gt; now
-    correctly returns values for custom fields if you request values 
-    for custom fields.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=381737&quot;&gt;[% terms.Bug %] 381737&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The &quot;[% terms.Bug %]-Writing Guidelines&quot; page has been shortened
-    and re-written.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=378590&quot;&gt;[% terms.Bug %] 378590&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If your &lt;code&gt;urlbase&lt;/code&gt; parameter included a port number,
-    like &lt;code&gt;www.domain.com:8080&lt;/code&gt;, SMTP might have failed.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=384501&quot;&gt;[% terms.Bug %] 384501&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;For SMTP users, there is a new parameter, &lt;code&gt;smtp_debug&lt;/code&gt;.
-    Turning on this parameter will log the full information about
-    every SMTP session to your web server's error log, to help with
-    debugging issues with SMTP.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=384497&quot;&gt;[% terms.Bug %] 384497&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;If you are a &quot;global watcher&quot; (you get all mails from every 
-    [%+ terms.bug %]), you can now see that in your Email Preferences.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=365302&quot;&gt;[% terms.Bug %] 365302&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The Status and Resolution of [% terms.bugs %] are now correctly
-    localized in CSV search results.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=389517&quot;&gt;[% terms.Bug %] 389517&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;The &quot;Subject&quot; line of an email was being mangled if it contained
-    non-Latin characters.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=387860&quot;&gt;[% terms.Bug %] 387860&lt;/a&gt;)&lt;/li&gt;
-  &lt;li&gt;Editing the &quot;languages&quot; parameter using &lt;kbd&gt;editparams.cgi&lt;/kbd&gt; would
-    sometimes fail, causing [% terms.Bugzilla %] to throw an error.
-    (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=335354&quot;&gt;[% terms.Bug %] 335354&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v30_req&quot;&gt;Minimum Requirements&lt;/h2&gt;
-
-&lt;p&gt;Any requirements that are new since 2.22 will look like
-  &lt;span class=&quot;req_new&quot;&gt;this&lt;/span&gt;.&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req_perl&quot;&gt;Perl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req_mysql&quot;&gt;For MySQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req_pg&quot;&gt;For PostgreSQL Users&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req_modules&quot;&gt;Required Perl Modules&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_req_optional_mod&quot;&gt;Optional Perl
-    Modules&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-
-&lt;h3 id=&quot;v30_req_perl&quot;&gt;Perl&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Perl &lt;span class=&quot;req_new&quot;&gt;v&lt;strong&gt;5.8.0&lt;/strong&gt;&lt;/span&gt; (non-Windows 
-    platforms)&lt;/li&gt;
-  &lt;li&gt;Perl v&lt;strong&gt;5.8.1&lt;/strong&gt; (Windows platforms)&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_req_mysql&quot;&gt;For MySQL Users&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;MySQL &lt;span class=&quot;req_new&quot;&gt;v4.1.2&lt;/span&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::mysql v2.9003&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_req_pg&quot;&gt;For PostgreSQL Users&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;PostgreSQL v8.00.0000&lt;/li&gt;
-  &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt; DBD::Pg v1.45&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_req_modules&quot;&gt;Required Perl Modules&lt;/h3&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-  &lt;tr&gt;
-    &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt;
-  &lt;/tr&gt;
-    &lt;tr&gt;&lt;td&gt;CGI&lt;/td&gt; &lt;td&gt;2.93&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Date::Format&lt;/td&gt; &lt;td&gt;2.21&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;DBI&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;1.41&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;File::Spec&lt;/td&gt; &lt;td&gt;0.84&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Template&lt;/td&gt; &lt;td&gt;2.12&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;Email::Send&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;2.00&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Email::MIME&lt;/td&gt; 
-    &lt;td&gt;1.861&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;Email::MIME::Modifier&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;1.442&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-
-&lt;h3 id=&quot;v30_req_optional_mod&quot;&gt;Optional Perl Modules&lt;/h3&gt;
-
-&lt;p&gt;The following perl modules, if installed, enable various
-  features of [% terms.Bugzilla %]:&lt;/p&gt;
-
-&lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-  &lt;tr&gt;
-    &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt;
-    &lt;th&gt;Enables Feature&lt;/th&gt;
-  &lt;/tr&gt;
-   &lt;tr&gt;
-     &lt;td class=&quot;req_new&quot;&gt;LWP::UserAgent&lt;/td&gt; 
-     &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-     &lt;td&gt;Automatic Update Notifications&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Template::Plugin::GD::Image&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;GD::Graph&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;GD::Text&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;GD&lt;/td&gt; 
-    &lt;td&gt;1.20&lt;/td&gt; 
-    &lt;td&gt;Graphical Reports, New Charts, Old Charts&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;Email::MIME::Attachment::Stripper&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Inbound Email&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;Email::Reply&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Inbound Email&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Net::LDAP&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;LDAP Authentication&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;HTML::Parser&lt;/td&gt; 
-    &lt;td&gt;3.40&lt;/td&gt; 
-    &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;HTML::Scrubber&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;More HTML in Product/Group Descriptions&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;XML::Twig&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;MIME::Parser&lt;/td&gt; 
-    &lt;td&gt;5.406&lt;/td&gt; 
-    &lt;td&gt;Move [% terms.Bugs %] Between Installations&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Chart::Base&lt;/td&gt; 
-    &lt;td&gt;1.0&lt;/td&gt; 
-    &lt;td&gt;New Charts, Old Charts&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;Image::Magick&lt;/td&gt; 
-    &lt;td&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;Optionally Convert BMP Attachments to PNGs&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;PatchReader&lt;/td&gt; 
-    &lt;td&gt;0.9.4&lt;/td&gt; 
-    &lt;td&gt;Patch Viewer&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;SOAP::Lite&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;(Any)&lt;/td&gt; 
-    &lt;td&gt;XML-RPC Interface&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;req_new&quot;&gt;mod_perl2&lt;/td&gt; 
-    &lt;td class=&quot;req_new&quot;&gt;1.999022&lt;/td&gt; 
-    &lt;td&gt;mod_perl&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt; CGI&lt;/td&gt; 
-    &lt;td&gt;3.11&lt;/td&gt; 
-    &lt;td&gt;mod_perl&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-
-&lt;h2 id=&quot;v30_feat&quot;&gt;New Features and Improvements&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_cf&quot;&gt;Custom Fields&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_mp&quot;&gt;mod_perl Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_sq&quot;&gt;Shared Saved Searches&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;
-    &lt;a href=&quot;#v30_feat_afn&quot;&gt;Attachments and Flags on New [% terms.Bugs %]&lt;/a&gt;
-  &lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_cr&quot;&gt;Custom Resolutions&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_ppp&quot;&gt;Per-Product Permissions&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_ui&quot;&gt;User Interface Improvements&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_xml&quot;&gt;XML-RPC Interface&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_skin&quot;&gt;Skins&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_sbu&quot;&gt;Unchangeable Fields Appear 
-    Unchangeable&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_et&quot;&gt;All Emails in Templates&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_df&quot;&gt;No More Double-Filed [% terms.Bugs %]&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_cc&quot;&gt;Default CC List for Components&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_emi&quot;&gt;File/Modify [% terms.Bugs %] By Email&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_gw&quot;&gt;Users Who Get All [% terms.Bug %] 
-    Notifications&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_utf8&quot;&gt;Improved UTF-8 Support&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_upda&quot;&gt;Automatic Update Notification&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_welc&quot;&gt;Welcome Page for New Installs&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_feat_other&quot;&gt;Other Enhancements and Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_feat_cf&quot;&gt;Custom Fields&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now includes very basic support for custom fields.&lt;/p&gt;
-
-&lt;p&gt;Users in the &lt;kbd&gt;admin&lt;/kbd&gt; group can add plain-text or drop-down
-  custom fields. You can edit the values available for drop-down fields
-  using the &amp;quot;Field Values&amp;quot; control panel.&lt;/p&gt;
-
-&lt;p&gt;Don't add too many custom fields! It can make [% terms.Bugzilla %]
-  very difficult to use. Try your best to get along with the default
-  fields, and then if you find that you can't live without custom fields
-  after a few weeks of using [% terms.Bugzilla %], only then should you
-  start your custom fields.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_mp&quot;&gt;mod_perl Support&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.0 supports mod_perl, which allows for extremely
-  enhanced page-load performance. mod_perl trades memory usage for performance,
-  allowing near-instantaneous page loads, but using much more memory.&lt;/p&gt;
-
-&lt;p&gt;If you want to enable mod_perl for your [% terms.Bugzilla %], we recommend
-  a minimum of 1.5GB of RAM, and for a site with heavy traffic, 4GB to 8GB.&lt;/p&gt;
-
-&lt;p&gt;If performance isn't that critical on your installation, you don't
-  have the memory, or you are running some other web server than
-  Apache, [% terms.Bugzilla %] still runs perfectly as a normal CGI
-  application, as well.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_sq&quot;&gt;Shared Saved Searches&lt;/h3&gt;
-
-&lt;p&gt;Users can now choose to &amp;quot;share&amp;quot; their saved searches
-  with a certain group. That group will then be able to 
-  &amp;quot;subscribe&amp;quot; to those searches, and have them appear
-  in their footer.&lt;/p&gt;
-
-&lt;p&gt;If the sharer can &amp;quot;bless&amp;quot; the group he's sharing to,
-  (that is, if he can add users to that group), it's considered
-  that he's a manager of that group, and his queries show up
-  automatically in that group's footer (although they can
-  unsubscribe from any particular search, if they want.)&lt;/p&gt;
-
-&lt;p&gt;In order to allow a user to share their queries, they also
-  have to be a member of the group specified in the 
-  &lt;code&gt;querysharegroup&lt;/code&gt; parameter.&lt;/p&gt;
-
-&lt;p&gt;Users can control their shared and subscribed queries from
-  the &amp;quot;Preferences&amp;quot; screen.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_afn&quot;&gt;Attachments and Flags on New [% terms.Bugs %]&lt;/h3&gt;
-
-&lt;p&gt;You can now add an attachment while you are filing a new 
-  [%+ terms.bug %].&lt;/p&gt;
-
-&lt;p&gt;You can also set flags on the [% terms.bug %] and on attachments, while
-  filing a new [% terms.bug %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_cr&quot;&gt;Custom Resolutions&lt;/h3&gt;
-
-&lt;p&gt;You can now customize the list of resolutions available
-  in [% terms.Bugzilla %], including renaming the default resolutions.&lt;/p&gt;
-
-&lt;p&gt;The resolutions &lt;code&gt;FIXED&lt;/code&gt;, &lt;code&gt;DUPLICATE&lt;/code&gt;
-  and &lt;code&gt;MOVED&lt;/code&gt; have a special meaning to [% terms.Bugzilla %],
-  though, and cannot be renamed or deleted.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_ppp&quot;&gt;Per-Product Permissions&lt;/h3&gt;
-
-&lt;p&gt;You can now grant users &lt;kbd&gt;editbugs&lt;/kbd&gt; and &lt;kbd&gt;canconfirm&lt;/kbd&gt;
-  for only certain products. You can also grant users &lt;kbd&gt;editcomponents&lt;/kbd&gt;
-  on a product, which means they will be able to edit that product
-  including adding/removing components and other product-specific
-  controls.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_ui&quot;&gt;User Interface Improvements&lt;/h3&gt;
-
-&lt;p&gt;There has been some work on the user interface for [% terms.Bugzilla %] 3.0,
-  including:&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;There is now navigation and a search box a the &lt;em&gt;top&lt;/em&gt; of
-    each page, in addition to the bar at the bottom of the page.&lt;/li&gt;
-  &lt;li&gt;A re-designed &amp;quot;Format for Printing&amp;quot; page for 
-    [%+ terms.bugs %].&lt;/li&gt;
-  &lt;li&gt;The layout of &lt;kbd&gt;show_bug.cgi&lt;/kbd&gt; (the [% terms.bug %] editing 
-    page) has been changed, and the attachment table has been redesigned.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_feat_xml&quot;&gt;XML-RPC Interface&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now has a Web Services interface using the XML-RPC
-  protocol. It can be accessed by external applications by going
-  to the &lt;kbd&gt;xmlrpc.cgi&lt;/kbd&gt; on your installation.&lt;/p&gt;
-
-&lt;p&gt;Documentation can be found in the 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/&quot;&gt;[% terms.Bugzilla %] 
-  API Docs&lt;/a&gt;, in the various &lt;kbd&gt;Bugzilla::WebService&lt;/kbd&gt; modules.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_skin&quot;&gt;Skins&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] can have multiple &amp;quot;skins&amp;quot; installed,
-  and users can pick between them. To write a skin, you just have to
-  write several CSS files. See the &lt;a href=&quot;[% docs_urlbase FILTER html %]cust-skins.html&quot;&gt;Custom
-  Skins Documentation&lt;/a&gt; for more details.&lt;/p&gt;
-
-&lt;p&gt;We currently don't have any alternate skins shipping with
-  [%+ terms.Bugzilla %]. If you write an alternate skin, please
-  let us know!&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_sbu&quot;&gt;Unchangeable Fields Appear Unchangeable&lt;/h3&gt;
-
-&lt;p&gt;As long as you are logged in, when viewing [% terms.abug %], if you 
-  cannot change a field, it will not look like you can change it. That 
-  is, the value will just appear as plain text.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_et&quot;&gt;All Emails in Templates&lt;/h3&gt;
-
-&lt;p&gt;All outbound emails are now controlled by the templating system.
-  What used to be the &lt;code&gt;passwordmail&lt;/code&gt;, &lt;code&gt;whinemail&lt;/code&gt;,
-  &lt;code&gt;newchangedmail&lt;/code&gt; and &lt;code&gt;voteremovedmail&lt;/code&gt;
-  parameters are now all templates in the &lt;kbd&gt;template/&lt;/kbd&gt; directory.&lt;/p&gt;
-
-&lt;p&gt;This means that it's now much easier to customize your outbound
-  emails, and it's also possible for localizers to have more
-  localized emails as part of their language packs, if they want.&lt;/p&gt;
-
-&lt;p&gt;We also added a &lt;code&gt;mailfrom&lt;/code&gt; parameter to let you set
-  who shows up in the &lt;code&gt;From&lt;/code&gt; field on all emails that
-  [%+ terms.Bugzilla %] sends.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_df&quot;&gt;No More Double-Filed [% terms.Bugs %]&lt;/h3&gt;
-
-&lt;p&gt;Users of [% terms.Bugzilla %] will sometimes accidentally submit 
-  [%+ terms.abug %] twice, either by going back in their web browser, 
-  or just by refreshing a page. In the past, this could file the same 
-  [%+ terms.bug %] twice (or even three times) in a row, irritating 
-  developers and confusing users.&lt;/p&gt;
-
-&lt;p&gt;Now, if you try to submit [% terms.abug %] twice from the same screen 
-  (by going back or by refreshing the page), [% terms.Bugzilla %] will warn 
-  you about what you're doing, before it actually submits the duplicate
-  [%+ terms.bug %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_cc&quot;&gt;Default CC List for Components&lt;/h3&gt;
-
-&lt;p&gt;You can specify a list of users who will &lt;em&gt;always&lt;/em&gt; be added to
-  the CC list of new [% terms.bugs %] in a component.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_emi&quot;&gt;File/Modify [% terms.Bugs %] By Email&lt;/h3&gt;
-
-&lt;p&gt;You can now file or modify [% terms.bugs %] via email. Previous versions
-  of [% terms.Bugzilla %] included this feature only as an
-  unsupported add-on, but it is now an official interface to
-  [%+ terms.Bugzilla %].&lt;/p&gt;
-
-&lt;p&gt;For more details see the &lt;a href=&quot;[% docs_urlbase FILTER html %]api/email_in.html&quot;&gt;documentation
-  for email_in.pl&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_gw&quot;&gt;Users Who Get All [% terms.Bug %] Notifications&lt;/h3&gt;
-
-&lt;p&gt;There is now a parameter called &lt;kbd&gt;globalwatchers&lt;/kbd&gt;. This
-  is a comma-separated list of [% terms.Bugzilla %] users who will
-  get all [% terms.bug %] notifications generated by [% terms.Bugzilla %].&lt;/p&gt;
-
-&lt;p&gt;Group controls still apply, though, so users who can't see [% terms.abug %]
-  still won't get notifications about that [% terms.bug %].&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_utf8&quot;&gt;Improved UTF-8 Support&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] users running MySQL should now have excellent
-  UTF-8 support if they turn on the &lt;kbd&gt;utf8&lt;/kbd&gt; parameter. (New
-  installs have this parameter on by default.) [% terms.Bugzilla %]
-  now correctly supports searching and sorting in non-English languages,
-  including multi-bytes languages such as Chinese.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_upda&quot;&gt;Automatic Update Notification&lt;/h3&gt;
-
-&lt;p&gt;If you belong to the &lt;kbd&gt;admin&lt;/kbd&gt; group, you will be notified
-  when you log in if there is a new release of [% terms.Bugzilla %]
-  available to download.&lt;/p&gt;
-
-&lt;p&gt;You can control these notifications by changing the 
-  &lt;kbd&gt;upgrade_notification&lt;/kbd&gt; parameter.&lt;/p&gt;
-
-&lt;p&gt;If your [% terms.Bugzilla %] installation is on a machine that needs to go
-  through a proxy to access the web, you may also have to set the
-  &lt;kbd&gt;proxy_url&lt;/kbd&gt; parameter.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_welc&quot;&gt;Welcome Page for New Installs&lt;/h3&gt;
-
-&lt;p&gt;When you log in for the first time on a brand-new [% terms.Bugzilla %]
-  installation, you will be presented with a page that describes
-  where you should go from here, and what parameters you should set.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_qs&quot;&gt;QuickSearch Plugin for IE7 and Firefox 2&lt;/h3&gt;
-
-&lt;p&gt;Firefox 2 users and Internet Explorer 7 users will be presented
-  with the option to add [% terms.Bugzilla %] to their search bar.
-  This uses the 
-  &lt;a href=&quot;page.cgi?id=quicksearch.html&quot;&gt;QuickSearch syntax&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_feat_other&quot;&gt;Other Enhancements and Changes&lt;/h3&gt;
-
-&lt;p&gt;These are either minor enhancements, or enhancements that have
-  very short descriptions. Some of these are very useful, though!&lt;/p&gt;
-
-&lt;h4&gt;Enhancements That Affect [% terms.Bugzilla %] Users&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;In comments, quoted text (lines that start with &lt;kbd&gt;&amp;gt;&lt;/kbd&gt;)
-    will be a different color from normal text.&lt;/li&gt;
-  &lt;li&gt;There is now a user preference that will add you to the CC list
-    of any [% terms.bug %] you modify. Note that it's &lt;strong&gt;on&lt;/strong&gt; 
-    by default.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugs %] can now be filed with an initial state of 
-    &lt;kbd&gt;ASSIGNED&lt;/kbd&gt;, if you are in the &lt;kbd&gt;editbugs&lt;/kbd&gt; group.&lt;/li&gt;
-  &lt;li&gt;By default, comment fields will zoom large when you are typing in them,
-    and become small when you move out of them. You can disable this
-    in your user preferences.&lt;/li&gt;
-  &lt;li&gt;You can hide obsolete attachments on [% terms.abug %] by clicking
-    &amp;quot;Hide Obsolete&amp;quot; at the bottom of the attachment table.&lt;/li&gt;
-  &lt;li&gt;If [% terms.abug %] has flags set, and you move it to a different 
-    product that has flags with the same name, the flags will be 
-    preserved.&lt;/li&gt;
-  &lt;li&gt;You now can't request a flag to be set by somebody who can't set it
-    ([% terms.Bugzilla %] will throw an error if you try).&lt;/li&gt;
-  &lt;li&gt;Many new headers have been added to outbound [% terms.Bugzilla %]
-    [%+ terms.bug %] emails: &lt;code&gt;X-Bugzilla-Status&lt;/code&gt;,
-    &lt;code&gt;X-Bugzilla-Priority&lt;/code&gt;, &lt;code&gt;X-Bugzilla-Assigned-To&lt;/code&gt;,
-    &lt;code&gt;X-Bugzilla-Target-Milestone&lt;/code&gt;, and 
-    &lt;code&gt;X-Bugzilla-Changed-Fields&lt;/code&gt;, &lt;code&gt;X-Bugzilla-Who&lt;/code&gt;.
-    You can look at an email to get an idea of what they contain.&lt;/li&gt;
-  &lt;li&gt;In addition to the old &lt;code&gt;X-Bugzilla-Reason&lt;/code&gt; email header
-    which tells you why you got an email, if you got an email because
-    you were watching somebody, there is now an 
-    &lt;code&gt;X-Bugzilla-Watch-Reason&lt;/code&gt; header that tells you who you
-    were watching and what role they had.&lt;/li&gt;
-  &lt;li&gt;If you hover your mouse over a full URL (like 
-    &lt;code&gt;http://bugs.mycompany.com/show_bug.cgi?id=1212&lt;/code&gt;) that 
-    links to [% terms.abug %], you will see the title of the 
-    [%+ terms.bug %]. Of course, this only works for [% terms.bugs %] in your
-    [%+ terms.Bugzilla %] installation.&lt;/li&gt;
-  &lt;li&gt;If your installation has user watching enabled, you will now see
-    the users that you can remove from your watch-list as a multi-select
-    box, much like the current CC list. (Previously it was just a text
-    box.)&lt;/li&gt;
-  &lt;li&gt;When a user creates their own account in [% terms.Bugzilla %], the 
-    account is now not actually created until they verify their email
-    address by clicking on a link that is emailed to them.&lt;/li&gt;
-  &lt;li&gt;You can change [% terms.abug %]'s resolution without reopening it.&lt;/li&gt;
-  &lt;li&gt;When you view the dependency tree on [% terms.abug %], resolved 
-    [%+ terms.bugs %] will be hidden by default. (In previous versions,
-    resolved [% terms.bugs %] were shown by default.)&lt;/li&gt;
-  &lt;li&gt;When viewing [% terms.bug %] activity, fields that hold [% terms.bug %] 
-    numbers (such as &amp;quot;Blocks&amp;quot;) will have the [% terms.bug %] numbers
-    displayed as links to those [% terms.bugs %].&lt;/li&gt;
-  &lt;li&gt;When viewing the &amp;quot;Keywords&amp;quot; field in [% terms.abug %] list,
-    it will be sorted alphabetically, so you can sanely sort a list on
-    that field.&lt;/li&gt;
-  &lt;li&gt;In most places, the Version field is now sorted using a version-sort
-    (so 1.10 is greater than 1.2) instead of an alphabetical sort.&lt;/li&gt;
-  &lt;li&gt;Options for flags will only appear if you can set them. So, for
-    example, if you can't grant &lt;kbd&gt;+&lt;/kbd&gt; on a flag, that option
-    won't appear for you.&lt;/li&gt;
-  &lt;li&gt;You can limit the product-related output of &lt;kbd&gt;config.cgi&lt;/kbd&gt;
-    by specifying a &lt;kbd&gt;product=&lt;/kbd&gt; URL argument, containing the name
-    of a product. You can specify the argument more than once for multiple
-    products.&lt;/li&gt;
-  &lt;li&gt;You can now search the boolean charts on whether or not a comment
-    is private.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h4&gt;Enhancements For Administrators&lt;/h4&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Administrators can now delete attachments, making them disappear
-    entirely from [% terms.Bugzilla %].&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;sanitycheck.cgi&lt;/kbd&gt; can now only be accessed by users
-    in the &lt;kbd&gt;editcomponents&lt;/kbd&gt; group.&lt;/li&gt;
-  &lt;li&gt;The &amp;quot;Field Values&amp;quot; control panel can now only be accessed
-    by users in the &lt;kbd&gt;admin&lt;/kbd&gt; group. (Previously it was accessible
-    to anybody in the &lt;kbd&gt;editcomponents&lt;/kbd&gt; group.)&lt;/li&gt;
-  &lt;li&gt;There is a new parameter &lt;kbd&gt;announcehtml&lt;/kbd&gt;, that will allow
-    you to enter some HTML that will be displayed at the top of every
-    page, as an announcement.&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;loginnetmask&lt;/kbd&gt; parameter now defaults to 0 for new
-    installations, meaning that as long as somebody has the right
-    login cookie, they can log in from any IP address. This makes
-    life a lot easier for dial-up users or other users whose IP
-    changes a lot. This could be done because the login cookie is now
-    very random, and thus secure.&lt;/li&gt;
-  &lt;li&gt;Classifications now have sortkeys, so they can be sorted in an
-    order that isn't alphabetical.&lt;/li&gt;
-  &lt;li&gt;Authentication now supports LDAP over SSL (LDAPS) or TLS (using
-    the STARTLS command) in addition to plain LDAP.&lt;/li&gt;
-  &lt;li&gt;LDAP users can have their LDAP username be their email address,
-    instead of having the LDAP &lt;kbd&gt;mail&lt;/kbd&gt; attribute be their
-    email address. You may wish to set the &lt;kbd&gt;emailsuffix&lt;/kbd&gt;
-    parameter if you do this.&lt;/li&gt;
-  &lt;li&gt;Administrators can now see what has changed in a user account,
-    when using the &amp;quot;Users&amp;quot; control panel.&lt;/li&gt;
-  &lt;li&gt;&lt;code&gt;REMIND&lt;/code&gt; and &lt;code&gt;LATER&lt;/code&gt; are no longer part
-    of the default list of resolutions. Upgrading installations will
-    not be affected--they will still have these resolutions.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;editbugs&lt;/kbd&gt; is now the default for the &lt;kbd&gt;timetrackinggroup&lt;/kbd&gt;
-    parameter, meaning that time-tracking will be on by default in a new
-    installation.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v30_issues&quot;&gt;Outstanding Issues&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=69621&quot;&gt;
-    [%- terms.Bug %] 69621&lt;/a&gt;: If you rename or remove a keyword that is
-    in use on [% terms.bugs %], you will need to rebuild the &quot;keyword cache&quot;
-    by running &lt;a href=&quot;sanitycheck.cgi&quot;&gt;sanitycheck.cgi&lt;/a&gt; and choosing 
-    the option to rebuild the cache when it asks. Otherwise keywords may 
-    not show up properly in search results.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=99215&quot;&gt;
-    [%- terms.Bug %] 99215&lt;/a&gt;: Flags are not protected by &quot;mid-air 
-    collision&quot; detection. Nor are any attachment changes.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=89822&quot;&gt;
-    [%- terms.Bug %] 89822&lt;/a&gt;: When changing multiple [% terms.bugs %] at 
-    the same time, there is no &quot;mid-air collision&quot; protection.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=276230&quot;&gt;
-    [%- terms.Bug %] 276230&lt;/a&gt;: The support for restricting access to 
-    particular Categories of New Charts is not complete. You should treat 
-    the 'chartgroup' Param as the only access mechanism available.&lt;br&gt;
-    However, charts migrated from Old Charts will be restricted to 
-    the groups that are marked MANDATORY for the corresponding Product.
-    There is currently no way to change this restriction, and the 
-    groupings will not be updated if the group configuration
-    for the Product changes.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=370370&quot;&gt;
-    [%- terms.Bug %] 370370&lt;/a&gt;: mod_perl support is currently not
-    working on Windows machines.&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=361149&quot;&gt;
-    [%- terms.Bug %] 361149&lt;/a&gt;: If you are using Perl 5.8.0, you may
-    get a lot of warnings in your Apache error_log about &quot;deprecated
-    pseudo-hashes.&quot; These are harmless--they are a b[%# fool test %]ug in 
-    Perl 5.8.0. Perl 5.8.1 and later do not have this problem.&lt;/li&gt;
-  &lt;li&gt;[% terms.Bugzilla %] 3.0rc1 allowed custom field column names in 
-    the database to be mixed-case. [% terms.Bugzilla %] 3.0 only allows
-    lowercase column names. It will fix any column names that you have
-    made mixed-case, but if you have custom fields that previously were
-    mixed-case in any Saved Search, you will have to re-create that Saved
-    Search yourself.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v30_security&quot;&gt;Security Updates in This Release&lt;/h2&gt;
-
-&lt;h3&gt;3.0.6&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] contains a minor security fix. For details, see the
-  &lt;a href=&quot;http://www.bugzilla.org/security/2.20.6/&quot;&gt;Security Advisory&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3&gt;3.0.5&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] contains one security fix for 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/importxml.html&quot;&gt;importxml.pl&lt;/a&gt;.
-  For details, see the 
-  &lt;a href=&quot;http://www.bugzilla.org/security/2.22.4/&quot;&gt;Security Advisory&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3&gt;3.0.4&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.0.4 contains three security fixes.
-  For details, see the
-  &lt;a href=&quot;http://www.bugzilla.org/security/2.20.5/&quot;&gt;Security Advisory&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h3&gt;3.0.3&lt;/h3&gt;
-
-&lt;p&gt;No security fixes in this release.&lt;/p&gt;
-
-&lt;h3&gt;3.0.2&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.0.1 had an important security fix that is
-  critical for public installations with &quot;requirelogin&quot; turned on.
-  For details, see the
-  &lt;a href=&quot;http://www.bugzilla.org/security/3.0.1/&quot;&gt;Security Advisory&lt;/a&gt;&lt;/p&gt;
-
-&lt;h3&gt;3.0.1&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] 3.0 had three security issues that have been
-  fixed in this release: one minor information leak, one hole only
-  exploitable by an admin or using &lt;code&gt;email_in.pl&lt;/code&gt;, and one in an
-  uncommonly-used template. For details, see the 
-  &lt;a href=&quot;http://www.bugzilla.org/security/2.20.4/&quot;&gt;Security Advisory&lt;/a&gt;.&lt;/p&gt;
-
-&lt;h2 id=&quot;v30_upgrading&quot;&gt;How to Upgrade From An Older Version&lt;/h2&gt;
-
-&lt;h3 id=&quot;v30_upgrading_notes&quot;&gt;Notes For Upgraders&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;If you upgrade by CVS, there are several .cvsignore files
-    that are now in CVS instead of being locally created by 
-    &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;. This means that you will have to
-    delete those files when CVS tells you there's a conflict, and
-    then run &lt;kbd&gt;cvs update&lt;/kbd&gt; again.&lt;/li&gt;
-  &lt;li&gt;In this version of [% terms.Bugzilla %], the Summary field
-    is now limited to 255 characters. When you upgrade, any Summary
-    longer than that will be truncated, and the old summary will be
-    preserved in a comment.&lt;/li&gt;
-  &lt;li&gt;If you have the &lt;kbd&gt;utf8&lt;/kbd&gt; parameter turned on, at some
-    point you will have to convert your database. &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;
-    will tell you when this is, and it will give you certain instructions
-    at that time, that you have to follow before you can complete
-    the upgrade. Don't do the conversion yourself manually--follow
-    the instructions of &lt;kbd&gt;checksetup.pl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;If you ever ran 2.23.3, 2.23.4, or 3.0rc1, you will have to run
-    &lt;kbd&gt;./collectstats.pl --regenerate&lt;/kbd&gt; at the command line, because
-    the data for your Old Charts is corrupted. This can take several days,
-    so you may only want to run it if you use Old Charts.&lt;/li&gt;
-  &lt;li&gt;You should also read the Outstanding Issues sections of
-    &lt;a href=&quot;#v30_previous&quot;&gt;older release notes&lt;/a&gt; if you are upgrading
-    from a version lower than 2.22.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;Steps For Upgrading&lt;/h3&gt;
-
-&lt;p&gt;Once you have read the notes above, see the 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]upgrade.html&quot;&gt;Upgrading 
-  documentation&lt;/a&gt; for instructions on how to upgrade.&lt;/p&gt;
-
-&lt;h2 id=&quot;v30_code_changes&quot;&gt;Code Changes Which May Affect Customizations&lt;/h2&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_loc&quot;&gt;&lt;strong&gt;Packagers:&lt;/strong&gt; Location
-    Variables Have Moved&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_hooks&quot;&gt;Hooks!&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_api&quot;&gt;API Documentation&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_globals&quot;&gt;Elimination of globals.pl&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_scope&quot;&gt;Cleaned Up Variable Scoping Issues&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_sql&quot;&gt;No More SendSQL&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_auth&quot;&gt;Auth Re-write&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_obj&quot;&gt;Bugzilla::Object&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_req&quot;&gt;Bugzilla-&amp;gt;request_cache&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a href=&quot;#v30_code_other&quot;&gt;Other Changes&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3 id=&quot;v30_code_loc&quot;&gt;&lt;strong&gt;Packagers:&lt;/strong&gt; Location Variables
-    Have Moved&lt;/h3&gt;
-
-&lt;p&gt;In previous versions of [% terms.Bugzilla %], &lt;kbd&gt;Bugzilla::Config&lt;/kbd&gt;
-  held all the paths for different things, such as the path to localconfig
-  and the path to the &lt;kbd&gt;data/&lt;/kbd&gt; directory.&lt;/p&gt;
-
-&lt;p&gt;Now, all of this data is stored in a subroutine,
-  &lt;kbd&gt;Bugzilla::Constants::bz_locations&lt;/kbd&gt;.&lt;/p&gt;
-
-&lt;p&gt;Also, note that for mod_perl, &lt;kbd&gt;bz_locations&lt;/kbd&gt; must return
-  &lt;em&gt;absolute&lt;/em&gt; (not relative) paths. There is already code in that
-  subroutine to help you with this.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_hooks&quot;&gt;Hooks!&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now supports a code hook mechanism. See the 
-  documentation for 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Hook.html&quot;&gt;Bugzilla::Hook&lt;/a&gt;
-  for more details.&lt;/p&gt;
-
-&lt;p&gt;This gives [% terms.Bugzilla %] very advanced plugin support. You can
-  hook templates, hook code, add new parameters, and use the XML-RPC
-  interface. So we'd like to see some [% terms.Bugzilla %] plugins
-  written! Let us know on the &lt;a href=&quot;http://bugzilla.org/cgi-bin/mj_wwwusr?func=lists-long-full&amp;amp;extra=developers&quot;&gt;developers&amp;#64;bugzilla.org&lt;/a&gt;
-  mailing list if you write a plugin.&lt;/p&gt;
-
-&lt;p&gt;If you need more hooks, please 
-  &lt;a href=&quot;http://www.bugzilla.org/developers/reporting_bugs.html&quot;&gt;File a b&lt;!-- --&gt;ug&lt;/a&gt;!&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_api&quot;&gt;API Documentation&lt;/h3&gt;
-
-&lt;p&gt;[% terms.Bugzilla %] now ships with all of its perldoc built
-  as HTML. Go ahead and read the
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/&quot;&gt;API Documentation&lt;/a&gt;
-  for all of the [% terms.Bugzilla %] modules now! Even scripts like
-  &lt;kbd&gt;checksetup.pl&lt;/kbd&gt; have HTML documentation.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_globals&quot;&gt;Elimination of globals.pl&lt;/h3&gt;
-
-&lt;p&gt;The old file &lt;kbd&gt;globals.pl&lt;/kbd&gt; has been eliminated.
-  Its code is now in various modules. Each function went to the module
-  that was appropriate for it.&lt;/p&gt;
-
-&lt;p&gt;Usually we filed [% terms.abug %] in 
-  &lt;a href=&quot;https://bugzilla.mozilla.org&quot;&gt;bugzilla.mozilla.org&lt;/a&gt; for
-  each function we moved. You can search there for the old name of
-  the function, and that should get you the information about what
-  it's called now and where it lives.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_scope&quot;&gt;Cleaned Up Variable Scoping Issues&lt;/h3&gt;
-
-&lt;p&gt;In normal perl, you can have code like this:&lt;/p&gt;
-&lt;pre&gt;my $var = 0;
-sub y { $var++ }&lt;/pre&gt;
-
-&lt;p&gt;However, under mod_perl that doesn't work. So variables are no
-  longer &amp;quot;shared&amp;quot; with subroutines--instead all variables
-  that a subroutine needs must be declared inside the subroutine itself.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_sql&quot;&gt;No More SendSQL&lt;/h3&gt;
-
-&lt;p&gt;The old &lt;kbd&gt;SendSQL&lt;/kbd&gt; function and all of its companions are
-  &lt;strong&gt;gone&lt;/strong&gt;. Instead, we now use DBI for all database
-  interaction.&lt;/p&gt;
-
-&lt;p&gt;For more information about how to use 
-  &lt;a href=&quot;http://search.cpan.org/perldoc?DBI&quot;&gt;DBI&lt;/a&gt; with 
-  [%+ terms.Bugzilla %], see the 
-  &lt;a href=&quot;http://www.bugzilla.org/docs/developer.html#sql-sendreceive&quot;&gt;Developer's
-  Guide Section About DBI&lt;/a&gt;&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_auth&quot;&gt;Auth Re-write&lt;/h3&gt;
-
-&lt;p&gt;The &lt;kbd&gt;Bugzilla::Auth&lt;/kbd&gt; family of modules have been completely
-  re-written. For details on how the new structure of authentication,
-  read the 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Auth.html&quot;&gt;Bugzilla::Auth
-  API docs&lt;/a&gt;.&lt;/p&gt;
-
-&lt;p&gt;It should be very easy to write new authentication plugins, now.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_obj&quot;&gt;Bugzilla::Object&lt;/h3&gt;
-
-&lt;p&gt;There is a new base class for most of our objects, 
-  &lt;a href=&quot;[% docs_urlbase FILTER html %]api/Bugzilla/Object.html&quot;&gt;Bugzilla::Object&lt;/a&gt;.
-  It makes it really easy to create new objects based on things that are 
-  in the database.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_req&quot;&gt;Bugzilla-&amp;gt;request-cache&lt;/h3&gt;
-
-&lt;p&gt;&lt;kbd&gt;Bugzilla.pm&lt;/kbd&gt; used to cache things like the database
-  connection in package-global variables (like &lt;kbd&gt;$_dbh&lt;/kbd&gt;).
-  That doesn't work in mod_perl, so instead now there's a hash
-  that can be accessed through &lt;code&gt;Bugzilla-&amp;gt;request_cache&lt;/code&gt;
-  to store things for the rest of the current page request.&lt;/p&gt;
-
-&lt;p&gt;You shouldn't access &lt;code&gt;Bugzilla-&amp;gt;request_cache&lt;/code&gt; directly,
-  but you should use it inside of &lt;kbd&gt;Bugzilla.pm&lt;/kbd&gt; if you modify
-  that. The only time you should be accessing it directly is if you need
-  to reset one of the caches. Hash keys are always named after the function
-  that they cache, so to reset the template object, you'd do:
-  &lt;code&gt;delete Bugzilla-&amp;gt;request_cache-&amp;gt;{template};&lt;/code&gt;.&lt;/p&gt;
-
-&lt;h3 id=&quot;v30_code_other&quot;&gt;Other Changes&lt;/h3&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;&lt;kbd&gt;checksetup.pl&lt;/kbd&gt; has been completely re-written, and most
-    of its code moved into modules in the &lt;kbd&gt;Bugzilla::Install&lt;/kbd&gt;
-    namespace. See the
-    &lt;a href=&quot;[% docs_urlbase FILTER html %]api/checksetup.html&quot;&gt;checksetup
-    documentation&lt;/a&gt; and &lt;a href=&quot;https://bugzilla.mozilla.org/showdependencytree.cgi?id=277502&amp;amp;hide_resolved=0&quot;&gt;[% terms.Bugzilla %]
-   [%+ terms.bug %] 277502&lt;/a&gt; for details.&lt;/li&gt;
-  &lt;li&gt;Instead of &lt;kbd&gt;UserInGroup()&lt;/kbd&gt;, all of [% terms.Bugzilla %] now 
-    uses &lt;kbd&gt;Bugzilla-&amp;gt;user-&amp;gt;in_group&lt;/kbd&gt;&lt;/li&gt;
-  &lt;li&gt;mod_perl doesn't like dependency loops in modules, so we now have
-    a test for that detects dependency loops in modules when you run
-   &lt;kbd&gt;runtests.pl&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;globals.pl&lt;/kbd&gt; used to modify the environment variables,
-    like &lt;kbd&gt;PATH&lt;/kbd&gt;. That now happens in &lt;kbd&gt;Bugzilla.pm&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;Templates can now link to the documentation more easily.
-    See the &lt;kbd&gt;global/code-error.html.tmpl&lt;/kbd&gt; and
-    &lt;kbd&gt;global/user-error.html.tmpl&lt;/kbd&gt; templates for examples.
-    (Search for &amp;quot;docslinks.&amp;quot;)&lt;/li&gt;
-  &lt;li&gt;Parameters are accessed through &lt;kbd&gt;Bugzilla-&amp;gt;params&lt;/kbd&gt;
-    instead of using the &lt;kbd&gt;Param()&lt;/kbd&gt; function, now.&lt;/li&gt;
-  &lt;li&gt;The variables from the &lt;kbd&gt;localconfig&lt;/kbd&gt; file are accessed
-    through the &lt;code&gt;Bugzilla-&amp;gt;localconfig&lt;/code&gt; hash instead of through
-    &lt;kbd&gt;Bugzilla::Config&lt;/kbd&gt;.&lt;/li&gt;
-  &lt;li&gt;&lt;kbd&gt;Bugzilla::BugMail::MessageToMTA()&lt;/kbd&gt; has moved into its
-    own module, along with other mail-handling code, called
-    &lt;kbd&gt;Bugzilla::Mailer&lt;/kbd&gt;&lt;/li&gt;
-  &lt;li&gt;The &lt;kbd&gt;CheckCanChangeField()&lt;/kbd&gt; subroutine in 
-    &lt;kbd&gt;process_bug.cgi&lt;/kbd&gt; has been moved to &lt;kbd&gt;Bugzilla::Bug&lt;/kbd&gt;,
-    and is now a method of [% terms.abug %] object.&lt;/li&gt;
-  &lt;li&gt;The code that used to be in the &lt;kbd&gt;global/banner.html.tmpl&lt;/kbd&gt;
-    template is now in &lt;kbd&gt;global/header.html.tmpl&lt;/kbd&gt;. The banner
-    still exists, but the file is empty.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2 id=&quot;v30_previous&quot;&gt;Release Notes For Previous Versions&lt;/h2&gt;
-
-&lt;p&gt;Release notes for versions of [% terms.Bugzilla %] for versions
-  prior to 3.0 are only available in text format: 
-  &lt;a href=&quot;[% docs_urlbase FILTER remove('html/$') FILTER html %]rel_notes.txt&quot;&gt;Release Notes for [% terms.Bugzilla %] 2.22
-  and Earlier&lt;/a&gt;.&lt;/p&gt;
-
-[% INCLUDE global/footer.html.tmpl %]
-
-[% BLOCK db_req %]
-  [% SET m = DB_MODULE.$db %]
-  &lt;h3 id=&quot;v40_req_[% db FILTER html %]&quot;&gt;For [% m.name FILTER html %] Users&lt;/h3&gt;
-
-  &lt;ul&gt;
-    &lt;li&gt;[% m.name FILTER html %]
-       [%+ '&lt;span class=&quot;req_new&quot;&gt;' IF db_new %]v[% m.db_version FILTER html %]
-       [% '&lt;/span&gt;' IF db_new %]
-       &lt;/li&gt;
-    &lt;li&gt;&lt;strong&gt;perl module:&lt;/strong&gt;
-      [%+ m.dbd.module FILTER html %] 
-      [% '&lt;span class=&quot;req_new&quot;&gt;' IF dbd_new %]v[% m.dbd.version FILTER html %]
-      [% '&lt;/span&gt;' IF dbd_new %]&lt;/li&gt;
-  &lt;/ul&gt;
-[% END %]
-
-
-[% BLOCK req_table %]
-  &lt;table class=&quot;req_table&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-    &lt;tr&gt;
-      &lt;th&gt;Module&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt;
-      [% IF include_feature %]
-        &lt;th&gt;Enables Feature&lt;/th&gt;
-      [% END %]
-    &lt;/tr&gt;
-    [% FOREACH req = reqs %]
-      &lt;tr&gt;
-        &lt;td [% ' class=&quot;req_new&quot;' IF new.contains(req.package) %]&gt;
-          [%- req.module FILTER html %]&lt;/td&gt; 
-        &lt;td [% ' class=&quot;req_new&quot;' IF updated.contains(req.package) 
-                                     OR new.contains(req.package) %]&gt;
-          [%- IF req.version == 0 %]
-            (Any)
-          [% ELSE %]
-            [%- req.version FILTER html %]
-          [% END %]
-        &lt;/td&gt;
-        [% IF include_feature %] 
-          &lt;td&gt;[% req.feature.join(', ') FILTER html %]&lt;/td&gt;
-        [% END %]
-      &lt;/tr&gt;
-    [% END %]
-&lt;/table&gt;
-[% END %]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultpagessudohtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/pages/sudo.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/pages/sudo.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/pages/sudo.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,34 +1,21 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 2005 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): A. Karl Kornel &lt;karl@kornel.name&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> [% INCLUDE global/header.html.tmpl title = &quot;sudo: User Impersonation&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  [%+ terms.Bugzilla %] includes the ability to have one user impersonate 
</del><ins>+  Bugzilla includes the ability to have one user impersonate
</ins><span class="cx"> another, in something called a &lt;i&gt;sudo session&lt;/i&gt;, so long as the person 
</span><span class="cx"> doing the impersonating has the appropriate privileges.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  While a session is in progress, [% terms.Bugzilla %] will act as if the 
</del><ins>+  While a session is in progress, Bugzilla will act as if the
</ins><span class="cx">   impersonated user is doing everything.  This is especially useful for testing,
</span><span class="cx">   and for doing critical work when the impersonated user is unavailable.  The 
</span><span class="cx">   impersonated user will receive an email from [% terms.Bugzilla %] when the 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportschartcsvtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.csv.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.csv.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.csv.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% colsepchar = user.settings.csv_colsepchar.value %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportscharthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx">   
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -32,7 +20,7 @@
</span><span class="cx">   header_addl_info = time
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;div align=&quot;center&quot;&gt;
</del><ins>+&lt;div class=&quot;center&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">   [% imageurl = BLOCK %]chart.cgi?
</span><span class="cx">     [% imagebase FILTER html %]&amp;amp;ctype=png&amp;amp;action=plot&amp;amp;width=
</span><span class="lines">@@ -48,7 +36,7 @@
</span><span class="cx">     &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width %]&amp;amp;height=
</span><span class="cx">              [% height + 100 %]&quot;&gt;Taller&lt;/a&gt;&lt;br&gt;
</span><span class="cx">     &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width - 100 %]&amp;amp;height=
</span><del>-             [% height %]&quot;&gt;Thinner&lt;/a&gt; * 
</del><ins>+             [% height %]&quot;&gt;Thinner&lt;/a&gt; | 
</ins><span class="cx">     &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width + 100 %]&amp;amp;height=
</span><span class="cx">              [% height %]&quot;&gt;Fatter&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
</span><span class="cx">     &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width %]&amp;amp;height=
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportschartpngtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.png.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.png.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/chart.png.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% y_label = &quot;$terms.Bugs&quot; %]
-[% x_label = &quot;Time&quot; %]
-
</del><span class="cx"> [% IF chart.cumulate %]
</span><span class="cx">   [% USE graph = GD.Graph.area(width, height) %]
</span><span class="cx">   [% graph.set(cumulate =&gt; &quot;true&quot;) %]
</span><span class="lines">@@ -31,8 +16,8 @@
</span><span class="cx"> [% FILTER null;
</span><span class="cx">   x_label_skip = (30 * chart.data.0.size / width);
</span><span class="cx">   
</span><del>-  graph.set(x_label           =&gt; x_label,
-            y_label           =&gt; y_label,
</del><ins>+  graph.set(x_label           =&gt; &quot;Time&quot;,
+            y_label           =&gt; terms.Bugs,
</ins><span class="cx">             y_tick_number     =&gt; 8, 
</span><span class="cx">             y_max_value       =&gt; chart.y_max_value,
</span><span class="cx">             x_label_position  =&gt; 0.5,
</span><span class="lines">@@ -44,17 +29,18 @@
</span><span class="cx">                                   &quot;lpurple&quot;, &quot;lorange&quot;, &quot;black&quot;, &quot;green&quot;,
</span><span class="cx">                                   &quot;blue&quot;, &quot;dpink&quot;, &quot;lbrown&quot;, &quot;gray&quot;, 
</span><span class="cx">                                   &quot;red&quot;, &quot;dpurple&quot;, &quot;gold&quot;, &quot;marine&quot;]);
</span><del>-   
-  # Workaround for the fact that set_legend won't take chart.labels directly, 
-  # because chart.labels is an array reference rather than an array.
-  graph.set_legend(chart.labels.0, chart.labels.1, chart.labels.2,
-                   chart.labels.3, chart.labels.4, chart.labels.5,
-                   chart.labels.6, chart.labels.7, chart.labels.8,
-                   chart.labels.9, chart.labels.10, chart.labels.11,
-                   chart.labels.12, chart.labels.13, chart.labels.14,
-                   chart.labels.15);
-                      
-  graph.plot(chart.data).png | stdout(1);
</del><ins>+
+  graph.set_legend(chart.labels);
</ins><span class="cx">   END;
</span><span class="cx"> -%]
</span><span class="cx"> 
</span><ins>+[% IF Param(&quot;font_file&quot;) %]
+  [% graph.set_x_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_x_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_y_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_y_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_legend_font(Param(&quot;font_file&quot;), 9);
+  %]
+[% END %]
+
+[% graph.plot(chart.data).png | stdout(1) %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportscomponentshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/components.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/components.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/components.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Bradley Baetz &lt;bbaetz@student.usyd.edu.au&gt;
-  #                 Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,8 +16,8 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><del>-  style_urls = [ &quot;skins/standard/reports.css&quot; ]
-  title = title 
</del><ins>+  style_urls = ['skins/standard/buglist.css']
+  title = title
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% IF Param(&quot;useqacontact&quot;) %]
</span><span class="lines">@@ -39,39 +26,23 @@
</span><span class="cx">   [% numcols = 2 %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;components_header_table&quot;&gt;
-  &lt;tr&gt;
-    &lt;td class=&quot;instructions&quot;&gt;
-      Select a component to see open [% terms.bugs %] in that component:
-    &lt;/td&gt;
-    &lt;td class=&quot;product_container&quot;&gt;
-      &lt;span class=&quot;product_name&quot;&gt;[% product.name FILTER html %]&lt;/span&gt;
-      &lt;div class=&quot;product_desc&quot;&gt;
-        [% product.description FILTER html_light %]
-      &lt;/div&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+&lt;h1&gt;[% product.name FILTER html %]&lt;/h1&gt;
</ins><span class="cx"> 
</span><del>-&lt;span class=&quot;components_header&quot;&gt;Components&lt;/span&gt;
</del><ins>+&lt;div id=&quot;product_desc&quot;&gt;[% product.description FILTER html_light %]&lt;/div&gt;
+&lt;p&gt;Select a component to see open [% terms.bugs %] in that component.&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;table summary=&quot;Components table&quot;
-       class=&quot;component_table&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-  &lt;thead&gt;
</del><ins>+&lt;table id=&quot;component_table&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th&gt;&amp;nbsp;&lt;/th&gt;
</del><ins>+    &lt;th&gt;Component&lt;/th&gt;
</ins><span class="cx">     &lt;th&gt;Default Assignee&lt;/th&gt;
</span><span class="cx">     [% IF Param(&quot;useqacontact&quot;) %]
</span><span class="cx">       &lt;th&gt;Default QA Contact&lt;/th&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/tr&gt;
</span><del>-  &lt;/thead&gt;
</del><span class="cx"> 
</span><del>-  &lt;tbody&gt;
</del><span class="cx">   [% FOREACH comp = product.components %]
</span><span class="cx">     [% INCLUDE describe_comp %]
</span><span class="cx">   [% END %]
</span><del>-  &lt;/tbody&gt;
</del><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><span class="lines">@@ -93,7 +64,9 @@
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">     [% IF Param(&quot;useqacontact&quot;) %]
</span><span class="cx">       &lt;td class=&quot;component_qa_contact&quot;&gt;
</span><del>-        [% INCLUDE global/user.html.tmpl who = comp.default_qa_contact %]
</del><ins>+        [% IF comp.default_qa_contact %]
+          [% INCLUDE global/user.html.tmpl who = comp.default_qa_contact %]
+        [% END %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     [% END %]
</span><span class="cx">   &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportscreatecharthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/create-chart.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/create-chart.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/create-chart.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -27,6 +15,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><span class="cx">   title = &quot;Create Chart&quot;
</span><ins>+  style_urls = ['skins/standard/buglist.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;reports/series-common.html.tmpl&quot; 
</span><span class="lines">@@ -59,9 +48,9 @@
</span><span class="cx">   
</span><span class="cx"> [% gttext = &quot;Grand Total&quot; %]
</span><span class="cx"> 
</span><del>-&lt;form method=&quot;get&quot; action=&quot;chart.cgi&quot; name=&quot;chartform&quot;&gt;  
-  
-  &lt;table cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;
</del><ins>+&lt;form method=&quot;get&quot; action=&quot;chart.cgi&quot; name=&quot;chartform&quot;&gt;
+
+  &lt;table id=&quot;create_chart&quot;&gt;
</ins><span class="cx">     [% IF NOT category OR category.size == 0 %]
</span><span class="cx">       &lt;tr&gt;
</span><span class="cx">         &lt;td&gt;
</span><span class="lines">@@ -70,21 +59,20 @@
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx">     [% ELSE %]
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th&gt;&lt;label for=&quot;category&quot;&gt;Category&lt;/label&gt;:&lt;/th&gt;
</del><ins>+        &lt;th&gt;&lt;label for=&quot;category&quot;&gt;Category&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;th&gt;&lt;/th&gt;
</span><del>-        &lt;th&gt;&lt;label for=&quot;subcategory&quot;&gt;Sub-category&lt;/label&gt;:&lt;/th&gt;
</del><ins>+        &lt;th&gt;&lt;label for=&quot;subcategory&quot;&gt;Sub-category&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;th&gt;&lt;/th&gt;
</span><del>-        &lt;th&gt;&lt;label for=&quot;name&quot; accesskey=&quot;N&quot;&gt;Name&lt;/label&gt;:&lt;/th&gt;
-        &lt;th&gt;&lt;br&gt;
-        &lt;/th&gt;
</del><ins>+        &lt;th&gt;&lt;label for=&quot;name&quot; accesskey=&quot;N&quot;&gt;Name&lt;/label&gt;&lt;/th&gt;
+        &lt;th&gt;&lt;/th&gt;
</ins><span class="cx">       &lt;/tr&gt;
</span><span class="cx">       &lt;tr&gt;
</span><del>-      
</del><ins>+
</ins><span class="cx">         [% PROCESS series_select sel = { name =&gt; 'category', 
</span><span class="cx">                                          size =&gt; 5,
</span><span class="cx">                                          onchange = &quot;catSelected();
</span><span class="cx">                                                      subcatSelected();&quot; } %]
</span><del>-                                   
</del><ins>+
</ins><span class="cx">         &lt;td&gt;
</span><span class="cx">           &lt;noscript&gt;
</span><span class="cx">             &lt;input type=&quot;submit&quot; name=&quot;action-assemble&quot; value=&quot;Update --&amp;gt;&quot;
</span><span class="lines">@@ -91,11 +79,11 @@
</span><span class="cx">                    id=&quot;action-assemble&quot;&gt;
</span><span class="cx">           &lt;/noscript&gt;
</span><span class="cx">         &lt;/td&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">         [% PROCESS series_select sel = { name =&gt; 'subcategory', 
</span><span class="cx">                                          size =&gt; 5,
</span><span class="cx">                                          onchange = &quot;subcatSelected()&quot; } %]
</span><del>-                                   
</del><ins>+
</ins><span class="cx">         &lt;td&gt;
</span><span class="cx">           &lt;noscript&gt;
</span><span class="cx">             &lt;input type=&quot;submit&quot; name=&quot;action-assemble&quot; value=&quot;Update --&amp;gt;&quot;
</span><span class="lines">@@ -102,7 +90,7 @@
</span><span class="cx">                    id=&quot;action-assemble2&quot;&gt;
</span><span class="cx">           &lt;/noscript&gt;
</span><span class="cx">         &lt;/td&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">         [% PROCESS series_select sel = { name =&gt; 'name',
</span><span class="cx">                                          size =&gt; 5,
</span><span class="cx">                                          multiple =&gt; 1,
</span><span class="lines">@@ -110,7 +98,7 @@
</span><span class="cx">                                          # not its name.
</span><span class="cx">                                          value_in_hash =&gt; 1 } %]
</span><span class="cx"> 
</span><del>-        &lt;td align=&quot;center&quot; valign=&quot;middle&quot;&gt; 
</del><ins>+        &lt;td&gt;
</ins><span class="cx">           &lt;input type=&quot;submit&quot; name=&quot;action-add&quot; value=&quot;Add To List&quot;
</span><span class="cx">                  id=&quot;action-add&quot;&gt;&lt;br&gt;
</span><span class="cx">         &lt;/td&gt;
</span><span class="lines">@@ -121,15 +109,15 @@
</span><span class="cx">   &lt;h3&gt;List Of Data Sets To Plot&lt;/h3&gt;
</span><span class="cx"> 
</span><span class="cx">   [% IF chart.lines.size %]
</span><del>-    &lt;table cellspacing=&quot;2&quot; cellpadding=&quot;2&quot;&gt;
</del><ins>+    &lt;table id=&quot;edit_charts&quot;&gt;
</ins><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th style=&quot;width: 5em;&quot;&gt;Select&lt;/th&gt;
</del><ins>+        &lt;th&gt;Select&lt;/th&gt;
</ins><span class="cx">         &lt;th&gt;Label&lt;/th&gt;
</span><span class="cx">         &lt;th&gt;&lt;/th&gt;
</span><span class="cx">         &lt;th&gt;Data Set&lt;/th&gt;
</span><span class="cx">         &lt;th&gt;&lt;/th&gt;
</span><span class="cx">       &lt;/tr&gt;
</span><del>-      
</del><ins>+
</ins><span class="cx">       [%# The external loop has two counters; one which keeps track of where we
</span><span class="cx">         #  are in the old labels array, and one which keeps track of the new
</span><span class="cx">         #  indexes for the form elements. They are different if chart.lines has
</span><span class="lines">@@ -146,11 +134,11 @@
</span><span class="cx">           [% labelidx = labelidx + 1 %]
</span><span class="cx">           [% NEXT %]
</span><span class="cx">         [% END %]
</span><del>-        
</del><ins>+
</ins><span class="cx">         [% FOREACH series = line %]
</span><span class="cx">           &lt;tr&gt;
</span><span class="cx">             [% IF loop.first %]
</span><del>-              &lt;td align=&quot;center&quot; rowspan=&quot;[% line.size %]&quot;&gt;
</del><ins>+              &lt;td class=&quot;center&quot; rowspan=&quot;[% line.size %]&quot;&gt;
</ins><span class="cx">                 &lt;input type=&quot;checkbox&quot; value=&quot;1&quot; name=&quot;select[% newidx %]&quot;&gt;
</span><span class="cx">               &lt;/td&gt;
</span><span class="cx">               &lt;td rowspan=&quot;[% line.size %]&quot;&gt;
</span><span class="lines">@@ -172,7 +160,7 @@
</span><span class="cx">                      value=&quot;[% series.series_id %]&quot;&gt;
</span><span class="cx">             &lt;/td&gt;
</span><span class="cx"> 
</span><del>-            &lt;td align=&quot;center&quot;&gt;
</del><ins>+            &lt;td&gt;
</ins><span class="cx">               [% IF user.id == series.creator_id OR user.in_group(&quot;admin&quot;) %]
</span><span class="cx">                &lt;a href=&quot;chart.cgi?action=edit&amp;amp;series_id=
</span><span class="cx">                        [% series.series_id %]&quot;&gt;Edit&lt;/a&gt; |
</span><span class="lines">@@ -184,7 +172,7 @@
</span><span class="cx">                 [% series.subcategory FILTER uri %]%20/%20
</span><span class="cx">                 [% series.name FILTER uri -%]&amp;amp;series_id=
</span><span class="cx">                 [% series.series_id %]&amp;amp;remaction=runseries&quot;&gt;Run Search&lt;/a&gt;
</span><del>-            &lt;/td&gt;        
</del><ins>+            &lt;/td&gt;
</ins><span class="cx">           &lt;/tr&gt;
</span><span class="cx">         [% END %]
</span><span class="cx">         [% labelidx = labelidx + 1 %]
</span><span class="lines">@@ -193,7 +181,7 @@
</span><span class="cx"> 
</span><span class="cx">       [% IF chart.gt %]
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;td align=&quot;center&quot;&gt;
</del><ins>+          &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">             &lt;input type=&quot;checkbox&quot; value=&quot;1&quot; name=&quot;select65536&quot;&gt;
</span><span class="cx">             &lt;input type=&quot;hidden&quot; value=&quot;1&quot; name=&quot;gt&quot;&gt;
</span><span class="cx">           &lt;/td&gt;
</span><span class="lines">@@ -213,14 +201,12 @@
</span><span class="cx">       &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;td valign=&quot;bottom&quot; style=&quot;text-align: center;&quot;&gt;
-          &lt;input type=&quot;submit&quot; name=&quot;action-sum&quot; value=&quot;Sum&quot; 
-                 style=&quot;width: 5em;&quot; id=&quot;action-sum&quot;&gt;&lt;br&gt;
-          &lt;input type=&quot;submit&quot; name=&quot;action-remove&quot; value=&quot;Remove&quot;
-                 style=&quot;width: 5em;&quot; id=&quot;action-remove&quot;&gt;
</del><ins>+        &lt;td&gt;
+          &lt;input type=&quot;submit&quot; id=&quot;action-sum&quot; name=&quot;action-sum&quot; value=&quot;Sum&quot;&gt;&lt;br&gt;
+          &lt;input type=&quot;submit&quot; id=&quot;action-remove&quot; name=&quot;action-remove&quot; value=&quot;Remove&quot;&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx"> 
</span><del>-        &lt;td style=&quot;text-align: right; vertical-align: bottom;&quot;&gt;
</del><ins>+        &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">           &lt;label for=&quot;cumulate&quot;&gt;&lt;b&gt;Cumulate&lt;/b&gt;&lt;/label&gt;:
</span><span class="cx">           &lt;input type=&quot;checkbox&quot; name=&quot;cumulate&quot; id=&quot;cumulate&quot; value=&quot;1&quot;
</span><span class="cx">           [% &quot; checked&quot; IF chart.cumulate %]&gt;
</span><span class="lines">@@ -227,16 +213,18 @@
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;td&gt;&lt;/td&gt;
</span><del>-        &lt;td valign=&quot;bottom&quot;&gt;
</del><ins>+        &lt;td&gt;
</ins><span class="cx">           &lt;label for=&quot;datefrom&quot;&gt;&lt;b&gt;Date Range&lt;/b&gt;&lt;/label&gt;:
</span><span class="cx">           &lt;input type=&quot;text&quot; size=&quot;12&quot; name=&quot;datefrom&quot; id=&quot;datefrom&quot;
</span><ins>+            placeholder=&quot;YYYY-MM-DD&quot;
</ins><span class="cx">             value=&quot;[% time2str(&quot;%Y-%m-%d&quot;, chart.datefrom) IF chart.datefrom%]&quot;&gt;
</span><span class="cx">           &lt;label for=&quot;dateto&quot;&gt;&lt;b&gt;to&lt;/b&gt;&lt;/label&gt;
</span><span class="cx">           &lt;input type=&quot;text&quot; size=&quot;12&quot; name=&quot;dateto&quot; id=&quot;dateto&quot;
</span><ins>+            placeholder=&quot;YYYY-MM-DD&quot;
</ins><span class="cx">             value=&quot;[% time2str(&quot;%Y-%m-%d&quot;, chart.dateto) IF chart.dateto %]&quot;&gt;
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx"> 
</span><del>-        &lt;td style=&quot;text-align: right&quot; valign=&quot;bottom&quot;&gt;
</del><ins>+        &lt;td&gt;
</ins><span class="cx">           &lt;input type=&quot;submit&quot; name=&quot;action-wrap&quot; value=&quot;Chart This List&quot;
</span><span class="cx">                  id=&quot;action-wrap&quot;&gt;
</span><span class="cx">         &lt;/td&gt;
</span><span class="lines">@@ -268,4 +256,3 @@
</span><span class="cx"> [% END %]                 
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsdeleteserieshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/delete-series.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/delete-series.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/delete-series.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Frédéric Buclin.
-  # Portions created by the Initial Developer are Copyright (C) 2009
-  # the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s):
-  #  Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% series_name = BLOCK %]
</span><span class="lines">@@ -36,7 +24,7 @@
</span><span class="cx">     This series has been created by &lt;a href=&quot;mailto:[% series.creator.email FILTER html %]&quot;&gt;
</span><span class="cx">     [% series.creator.email FILTER html %]&lt;/a&gt;
</span><span class="cx">   [% ELSE %]
</span><del>-    This series has been automatically created by [% terms.Bugzilla %]
</del><ins>+    This series has been automatically created by Bugzilla
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx">   [% IF series.public %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicatessimplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-simple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-simple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-simple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): 
-  #  Gervase Markham &lt;gerv@gerv.net&gt;
-  #  Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,10 +10,7 @@
</span><span class="cx">   # You need to fulfill the interface to duplicates-table.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
-                      &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx">   [% IF product.size %]
</span><span class="cx">     [% title = BLOCK %]
</span><span class="lines">@@ -41,8 +24,6 @@
</span><span class="cx">     &lt;title&gt;[% title FILTER html %]&lt;/title&gt;
</span><span class="cx">     &lt;link href=&quot;[% 'skins/standard/global.css' FILTER mtime %]&quot;
</span><span class="cx">           rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
</span><del>-    &lt;link href=&quot;[% 'skins/standard/duplicates.css' FILTER mtime %]&quot;
-          rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
</del><span class="cx">   &lt;/head&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;body&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicatestablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates-table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Gervase Markham &lt;gerv@gerv.net&gt;
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -36,8 +22,6 @@
</span><span class="cx">   # product: array of strings. Restrict to these products only.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [%# *** Column Headers *** %]
</span><span class="cx"> 
</span><span class="cx"> [% SET columns = [
</span><span class="lines">@@ -47,7 +31,7 @@
</span><span class="cx">       description =&gt; &quot;Change in last&lt;br&gt;$changedsince day(s)&quot; },
</span><span class="cx">     { name =&gt; &quot;component&quot;, description =&gt; field_descs.component },
</span><span class="cx">     { name =&gt; &quot;bug_severity&quot;, description =&gt; field_descs.bug_severity },
</span><del>-    { name =&gt; &quot;op_sys&quot;, description =&gt; field_descs.op_sys },
</del><ins>+    { name =&gt; &quot;priority&quot;, description =&gt; field_descs.priority },
</ins><span class="cx">     { name =&gt; &quot;target_milestone&quot;, description =&gt; field_descs.target_milestone },
</span><span class="cx">     { name =&gt; &quot;short_desc&quot;, description =&gt; field_descs.short_desc },
</span><span class="cx"> ] %]
</span><span class="lines">@@ -69,7 +53,7 @@
</span><span class="cx"> [% base_args_string = base_args.join('&amp;amp;') %]
</span><span class="cx"> 
</span><span class="cx"> [% IF bugs.size %]
</span><del>-  &lt;table id=&quot;duplicates_table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
</del><ins>+  &lt;table id=&quot;duplicates_table&quot;&gt;
</ins><span class="cx">     &lt;thead&gt;
</span><span class="cx">       &lt;tr&gt;
</span><span class="cx">         [% FOREACH column = columns %]
</span><span class="lines">@@ -108,8 +92,8 @@
</span><span class="cx">           &lt;td class=&quot;bug_severity&quot;&gt;
</span><span class="cx">             [%- display_value('bug_severity', bug.bug_severity) FILTER html %]
</span><span class="cx">           &lt;/td&gt;
</span><del>-          &lt;td class=&quot;op_sys&quot;&gt;
-            [%- display_value('op_sys', bug.op_sys) FILTER html %]
</del><ins>+          &lt;td class=&quot;priority&quot;&gt;
+            [%- display_value('priority', bug.priority) FILTER html %]
</ins><span class="cx">           &lt;/td&gt;
</span><span class="cx">           &lt;td class=&quot;target_milestone&quot;&gt;
</span><span class="cx">             [% display_value('target_milestone', 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsduplicateshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/duplicates.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -30,8 +18,6 @@
</span><span class="cx">   # duplicates-table.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% IF product.size %]
</span><span class="cx">   [% title = BLOCK %]
</span><span class="cx">     Most Frequently Reported [% terms.Bugs %] for 
</span><span class="lines">@@ -41,10 +27,7 @@
</span><span class="cx">   [% title = &quot;Most Frequently Reported $terms.Bugs&quot; %]
</span><span class="cx"> [% END%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/header.html.tmpl
-   title = title
-   style_urls = ['skins/standard/duplicates.css']
-%]
</del><ins>+[% PROCESS global/header.html.tmpl title = title %]
</ins><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   &lt;a href=&quot;#explanation&quot;&gt;What is this data?&lt;/a&gt;
</span><span class="lines">@@ -66,6 +49,18 @@
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;bug_id&quot; value=&quot;[% bug_ids_string FILTER html %]&quot;&gt;
</span><span class="cx">   &lt;table&gt;
</span><span class="cx">     &lt;tr&gt;
</span><ins>+      &lt;td&gt;Restrict to products:&lt;/td&gt;
+      &lt;td&gt;
+        [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+          id       =&gt; &quot;product&quot;
+          name     =&gt; &quot;product&quot;
+          multiple =&gt; 5
+          value    =&gt; product
+        %]
+      &lt;/td&gt;
+    &lt;/tr&gt;
+
+    &lt;tr&gt;
</ins><span class="cx">       &lt;td&gt;When sorting or restricting, work with:&lt;/td&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="cx">         &lt;input type=&quot;radio&quot; name=&quot;sortvisible&quot; id=&quot;entirelist&quot; value=&quot;0&quot;
</span><span class="lines">@@ -80,16 +75,6 @@
</span><span class="cx">           currently visible list
</span><span class="cx">         &lt;/label&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td rowspan=&quot;4&quot; valign=&quot;top&quot;&gt;Restrict to products:&lt;/td&gt;
-      &lt;td rowspan=&quot;4&quot; valign=&quot;top&quot;&gt;
-        &lt;select name=&quot;product&quot; size=&quot;5&quot; multiple=&quot;multiple&quot;&gt;
-          [% FOREACH p = user.get_selectable_products %]
-            &lt;option name=&quot;[% p.name FILTER html %]&quot;
-            [% ' selected=&quot;selected&quot;' IF product.contains(p.name) %]
-            &gt;[% p.name FILTER html %]&lt;/option&gt;
-          [% END %]
-        &lt;/select&gt;
-      &lt;/td&gt;
</del><span class="cx">      &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportseditserieshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/edit-series.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/edit-series.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/edit-series.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% title = &quot;Edit Series&quot; %]
</span><span class="lines">@@ -25,16 +13,10 @@
</span><span class="cx">   [%+ default.name FILTER html %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/header.html.tmpl %]
</del><ins>+[% PROCESS global/header.html.tmpl
+  style_urls = ['skins/standard/buglist.css']
+%]
</ins><span class="cx"> 
</span><del>-[% IF changes_saved %]
-  &lt;p&gt;
-    &lt;font color=&quot;red&quot;&gt;
-      Series updated.
-    &lt;/font&gt;
-  &lt;/p&gt;
-[% END %]
-
</del><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;chart.cgi&quot; name=&quot;chartform&quot;&gt;
</span><span class="cx">   
</span><span class="cx">   [% PROCESS reports/series.html.tmpl 
</span><span class="lines">@@ -54,7 +36,7 @@
</span><span class="cx">     &lt;a href=&quot;mailto:[% default.creator.email FILTER html %]&quot;&gt;
</span><span class="cx">     [% default.creator.email FILTER html %]&lt;/a&gt;
</span><span class="cx">   [% ELSE %]
</span><del>-    (automatically created by [% terms.Bugzilla %])
</del><ins>+    (automatically created by Bugzilla)
</ins><span class="cx">   [% END %]
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportskeywordshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/keywords.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/keywords.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/keywords.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  # Contributor(s): David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -25,36 +12,26 @@
</span><span class="cx">   #   name: the name of the keyword
</span><span class="cx">   #   description: keyword description. Can contain some limited HTML code.
</span><span class="cx">   #   bug_count: number of bugs with that keyword
</span><del>-  # caneditkeywords: boolean. True if this user can edit keywords
</del><span class="cx">  %]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;$terms.Bugzilla Keyword Descriptions&quot;
</span><ins>+  style_urls = ['skins/standard/admin.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-[% FOREACH keyword = keywords %]
-  [% IF loop.index % 50 == 0 %]
-    [% IF loop.index != 0 %]
-       &lt;/table&gt;
-    [% END %]
</del><ins>+&lt;table id=&quot;admin_table&quot;&gt;
+  &lt;tr class=&quot;column_header&quot;&gt;
+    &lt;th&gt;Name&lt;/th&gt;
+    &lt;th&gt;Description&lt;/th&gt;
+    &lt;th&gt;Open [% terms.Bugs %]&lt;/th&gt;
+    &lt;th&gt;Total [% terms.Bugs %]&lt;/th&gt;
+  &lt;/tr&gt;
</ins><span class="cx"> 
</span><del>-    &lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
-      &lt;tr bgcolor=&quot;#6666FF&quot;&gt;
-        &lt;th align=&quot;left&quot;&gt;Name&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Description&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Open [% terms.Bugs %]&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Total [% terms.Bugs %]&lt;/th&gt;
-      &lt;/tr&gt;
-  [% END %]
-
</del><ins>+  [% FOREACH keyword = keywords %]
</ins><span class="cx">   &lt;tr id=&quot;[% keyword.name FILTER html %]&quot;&gt;
</span><del>-    &lt;th&gt;
-        [% keyword.name FILTER html %]
-    &lt;/th&gt;
</del><ins>+    &lt;td&gt;[% keyword.name FILTER html %]&lt;/td&gt;
</ins><span class="cx">     &lt;td&gt;[% keyword.description FILTER html_light %]&lt;/td&gt;
</span><del>-    &lt;td align=&quot;center&quot;&gt;
</del><ins>+    &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">       [% IF keyword.bug_count &gt; 0 %]
</span><span class="cx">         &lt;a href=&quot;buglist.cgi?keywords=[% keyword.name FILTER uri %]&amp;amp;resolution=---&quot;&gt;
</span><span class="cx">           Search&lt;/a&gt;
</span><span class="lines">@@ -62,7 +39,7 @@
</span><span class="cx">         none
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><del>-    &lt;td align=&quot;right&quot;&gt;
</del><ins>+    &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">       [% IF keyword.bug_count &gt; 0 %]
</span><span class="cx">         &lt;a href=&quot;buglist.cgi?keywords=[% keyword.name FILTER uri %]&quot;&gt;
</span><span class="cx">           [% keyword.bug_count %]&lt;/a&gt;
</span><span class="lines">@@ -71,13 +48,10 @@
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><del>-[% END %]
</del><ins>+  [% END %]
+&lt;/table&gt;
</ins><span class="cx"> 
</span><del>-[% IF keywords.size &gt; 0 %]
-  &lt;/table&gt;
-[% END %]
-
-[% IF caneditkeywords %]
</del><ins>+[% IF user.in_group(&quot;editkeywords&quot;) %]
</ins><span class="cx">   &lt;p&gt;
</span><span class="cx">     &lt;a href=&quot;editkeywords.cgi&quot;&gt;Edit keywords&lt;/a&gt;.
</span><span class="cx">   &lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsmenuhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/menu.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/menu.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/menu.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,16 +11,14 @@
</span><span class="cx">   # types in Bugzilla.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Reporting and Charting Kitchen&quot;
</span><del>-  doc_section = &quot;reporting.html&quot;
-  style_urls = ['skins/standard/reports.css']
</del><ins>+  doc_section = &quot;using/reports-and-charts.html&quot;
+  style_urls = ['skins/standard/buglist.css']
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  [% terms.Bugzilla %] allows you to view and track the state of the [% terms.bug %] database in
</del><ins>+  Bugzilla allows you to view and track the state of the [% terms.bug %] database in
</ins><span class="cx">   all manner of exciting ways.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsoldchartshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/old-charts.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/old-charts.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/old-charts.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,52 +1,44 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><del>-  # products: an array of product names the user is allowed to view.
</del><span class="cx">   # datasets: an array of hashes with available statuses and resolutions.
</span><span class="cx">   # url_image: URL of the generated graph.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;$terms.Bug Charts&quot;
</span><span class="cx">   h1 = &quot;Welcome to the $terms.Bugzilla Charting Kitchen&quot;
</span><del>-  doc_section = &quot;reporting.html#charts&quot;
</del><ins>+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/reports-and-charts.html#charts&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;div align=&quot;center&quot;&gt;
-  [% IF url_image %]
</del><ins>+[% IF url_image %]
+  &lt;div class=&quot;center&quot;&gt;
</ins><span class="cx">     &lt;img src=&quot;[% url_image FILTER html %]&quot;&gt;
</span><del>-    &lt;br clear=&quot;both&quot;&gt;
-  [% ELSE %]
</del><ins>+  &lt;/div&gt;
+[% ELSE %]
</ins><span class="cx">     &lt;form id=&quot;choose_product&quot; method=&quot;get&quot; action=&quot;reports.cgi&quot;&gt;
</span><del>-      &lt;table border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;2&quot;&gt;
</del><ins>+      &lt;table id=&quot;old_charts&quot;&gt;
</ins><span class="cx">         &lt;tr&gt;
</span><span class="cx">           &lt;th&gt;Product:&lt;/th&gt;
</span><del>-          &lt;td align=&quot;center&quot;&gt;
-            &lt;select id=&quot;product&quot; name=&quot;product&quot;&gt;
-              [% FOREACH product = products %]
-                &lt;option value=&quot;[% product FILTER html %]&quot;&gt;[% product FILTER html %]&lt;/option&gt;
-              [% END %]
-            &lt;/select&gt;
</del><ins>+          &lt;td&gt;
+            [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+              id   =&gt; &quot;product_id&quot;
+              name =&gt; &quot;product_id&quot;
+              valueattribute =&gt; &quot;id&quot;
+              add  =&gt; &quot;-All-&quot;
+            %]
</ins><span class="cx">           &lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">           &lt;th&gt;Chart datasets:&lt;/th&gt;
</span><del>-          &lt;td align=&quot;center&quot;&gt;
</del><ins>+          &lt;td&gt;
</ins><span class="cx">             &lt;select id=&quot;datasets&quot; name=&quot;datasets&quot; multiple=&quot;multiple&quot; size=&quot;5&quot;&gt;
</span><span class="cx">               [%# We cannot use translated statuses and resolutions from field-descs.none.html
</span><span class="cx">                 # because old charts do not distinguish statuses from resolutions. %]
</span><span class="lines">@@ -65,7 +57,6 @@
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">       &lt;/table&gt;
</span><span class="cx">     &lt;/form&gt;
</span><del>-  [% END %]
-&lt;/div&gt;
</del><ins>+[% END %]
</ins><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreportbarpngtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-bar.png.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-bar.png.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-bar.png.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[% y_label = &quot;$terms.Bugs&quot; %]
-
-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
-[% col_field_disp = field_descs.$col_field || col_field %]
-
</del><span class="cx"> [% FOR i IN [ 0 .. data.0.0.max ] %]
</span><span class="cx">   [% data.0.0.$i = display_value(col_field, data.0.0.$i) %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -37,8 +17,8 @@
</span><span class="cx"> [% FILTER null;
</span><span class="cx">   USE graph = GD.Graph.bars(width, height);
</span><span class="cx"> 
</span><del>-  graph.set(x_label           =&gt; col_field_disp,
-            y_label           =&gt; y_label,
</del><ins>+  graph.set(x_label           =&gt; field_descs.$col_field || col_field,
+            y_label           =&gt; terms.Bugs,
</ins><span class="cx">             y_tick_number     =&gt; 8,
</span><span class="cx">             y_number_format   =&gt; &quot;%d&quot;,
</span><span class="cx">             x_label_position  =&gt; 0.5,
</span><span class="lines">@@ -52,13 +32,17 @@
</span><span class="cx">   graph.set(cumulate          =&gt; &quot;true&quot;,
</span><span class="cx">             show_values       =&gt; 0) IF cumulate;
</span><span class="cx"> 
</span><del>-  # Workaround for the fact that set_legend won't take row_names directly,
-  # because row_names is an array reference rather than an array.
-  graph.set_legend(row_names.0, row_names.1, row_names.2, row_names.3,
-                   row_names.4, row_names.5, row_names.6, row_names.7,
-                   row_names.8, row_names.9, row_names.10, row_names.11,
-                   row_names.12, row_names.13, row_names.14, row_names.15);
-
-  graph.plot(data.0).png | stdout(1);
</del><ins>+  graph.set_legend(row_names);
</ins><span class="cx">   END;
</span><span class="cx"> -%]
</span><ins>+
+[% IF Param(&quot;font_file&quot;) %]
+  [% graph.set_x_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_x_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_y_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_y_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_legend_font(Param(&quot;font_file&quot;), 9);
+  %]
+[% END %]
+
+[% graph.plot(data.0).png | stdout(1) %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreportlinepngtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-line.png.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-line.png.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-line.png.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
-[% y_label = &quot;$terms.Bugs&quot; %]
-
-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
-[% col_field_disp = field_descs.$col_field || col_field %]
-
</del><span class="cx"> [% FOR i IN [ 0 .. data.0.0.max ] %]
</span><span class="cx">   [% data.0.0.$i = display_value(col_field, data.0.0.$i) %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -42,8 +22,8 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% FILTER null;
</span><del>-  graph.set(x_label           =&gt; col_field_disp,
-            y_label           =&gt; y_label,
</del><ins>+  graph.set(x_label           =&gt; field_descs.$col_field || col_field,
+            y_label           =&gt; terms.Bugs,
</ins><span class="cx">             y_tick_number     =&gt; 8,
</span><span class="cx">             x_label_position  =&gt; 0.5,
</span><span class="cx">             x_labels_vertical =&gt; x_labels_vertical,
</span><span class="lines">@@ -54,14 +34,17 @@
</span><span class="cx">                                   &quot;blue&quot;, &quot;dpink&quot;, &quot;lbrown&quot;, &quot;gray&quot;, 
</span><span class="cx">                                   &quot;red&quot;, &quot;dpurple&quot;, &quot;gold&quot;, &quot;marine&quot;]);
</span><span class="cx"> 
</span><del>-  # Workaround for the fact that set_legend won't take row_names directly,
-  # because row_names is an array reference rather than an array.
-  graph.set_legend(row_names.0, row_names.1, row_names.2, row_names.3,
-                   row_names.4, row_names.5, row_names.6, row_names.7,
-                   row_names.8, row_names.9, row_names.10, row_names.11,
-                   row_names.12, row_names.13, row_names.14, row_names.15);
-
-  graph.plot(data.0).png | stdout(1);
</del><ins>+  graph.set_legend(row_names);
</ins><span class="cx">   END;
</span><span class="cx"> -%]
</span><span class="cx"> 
</span><ins>+[% IF Param(&quot;font_file&quot;) %]
+  [% graph.set_x_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_x_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_y_axis_font(Param(&quot;font_file&quot;), 9);
+     graph.set_y_label_font(Param(&quot;font_file&quot;), 10);
+     graph.set_legend_font(Param(&quot;font_file&quot;), 9);
+  %]
+[% END %]
+
+[% graph.plot(data.0).png | stdout(1) %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreportpiepngtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-pie.png.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-pie.png.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-pie.png.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,27 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
-[% col_field_disp = field_descs.$col_field || col_field %]
-
</del><span class="cx"> [% FOR i IN [ 0 .. data.0.0.max ] %]
</span><span class="cx">   [% data.0.0.$i = display_value(col_field, data.0.0.$i) %]
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -28,12 +12,18 @@
</span><span class="cx"> 
</span><span class="cx"> [% FILTER null;
</span><span class="cx">   USE graph = GD.Graph.pie(width, height);
</span><del>-    
-  graph.set(title          =&gt; col_field_disp,
</del><ins>+
+  graph.set(title          =&gt; field_descs.$col_field || col_field,
</ins><span class="cx">             pie_height     =&gt; 20,
</span><span class="cx">             suppress_angle =&gt; 2,
</span><span class="cx">             start_angle    =&gt; 180);
</span><del>-    
-  graph.plot(data.0).png | stdout(1);
</del><span class="cx">   END;
</span><span class="cx"> -%]
</span><ins>+
+[% IF Param(&quot;font_file&quot;) %]
+  [% graph.set_title_font(Param(&quot;font_file&quot;), 10);
+     graph.set_value_font(Param(&quot;font_file&quot;), 9);
+  %]
+[% END %]
+
+[% graph.plot(data.0).png | stdout(1) %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreportsimplehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-simple.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-simple.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-simple.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Alan Starr (alanjstr)
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -17,19 +10,13 @@
</span><span class="cx">   # You need to fulfill the interface to report-table.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><del>-
-  [% title = &quot;$terms.Bug List&quot; %]
-
</del><span class="cx">   &lt;head&gt;
</span><del>-    &lt;title&gt;[% title FILTER html %]&lt;/title&gt;
</del><ins>+    &lt;title&gt;[% &quot;$terms.Bug List&quot; FILTER html %]&lt;/title&gt;
</ins><span class="cx">   &lt;/head&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;body&gt;
</span><span class="cx">     [% PROCESS &quot;reports/report-table.html.tmpl&quot; %]
</span><span class="cx">   &lt;/body&gt;
</span><del>-
</del><span class="cx"> &lt;/html&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreporttablecsvtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.csv.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.csv.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.csv.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  # See report-table.html.tmpl.
-  #%]
-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> 
</span><span class="cx"> [% colsepchar = user.settings.csv_colsepchar.value %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreporttablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report-table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 &lt;rdean@cambianetworks.com&gt;
-  #                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #                 Guy Pyrzak &lt;guy.parzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -32,8 +17,6 @@
</span><span class="cx">   # tbl: Name of a hash in data which is the table to be plotted.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% col_field_disp = field_descs.$col_field || col_field %]
</span><span class="cx"> [% row_field_disp = field_descs.$row_field || row_field %]
</span><span class="cx"> 
</span><span class="lines">@@ -133,7 +116,7 @@
</span><span class="cx">       return parseFloat(res[1]);
</span><span class="cx">   };
</span><span class="cx"> 
</span><del>-  this.myDataSource = new YAHOO.util.DataSource(YAHOO.util.Dom.get(&quot;tabular_report&quot;));
</del><ins>+  this.myDataSource = new YAHOO.util.DataSource(YAHOO.util.Dom.get(&quot;tabular_report_[% tbl FILTER html FILTER js %]&quot;));
</ins><span class="cx">   this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
</span><span class="cx">   this.myDataSource.responseSchema = {
</span><span class="cx">     fields: [
</span><span class="lines">@@ -154,17 +137,17 @@
</span><span class="cx">   &lt;h2&gt;[% tbl_disp FILTER email FILTER html %]&lt;/h2&gt;
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-&lt;table&gt;
</del><ins>+&lt;table class=&quot;tabular_report_container&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="cx">     &lt;/td&gt;
</span><del>-    &lt;td align=&quot;center&quot;&gt;
</del><ins>+    &lt;td class=&quot;center&quot;&gt;
</ins><span class="cx">       &lt;strong&gt;[% col_field_disp FILTER html %]&lt;/strong&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;middle&quot;&gt;
</del><ins>+    &lt;td class=&quot;middle&quot;&gt;
</ins><span class="cx">       &lt;strong&gt;[% row_field_disp FILTER html %]&lt;/strong&gt;
</span><span class="cx">     &lt;/td&gt;
</span><span class="cx">     &lt;td&gt;
</span><span class="lines">@@ -173,9 +156,9 @@
</span><span class="cx"> [% classes = [ [ &quot;t1&quot;, &quot;t2&quot; ] , [ &quot;t3&quot;, &quot;t4&quot; ] ] %]
</span><span class="cx"> [% col_idx = 0 %]
</span><span class="cx"> [% row_idx = 0 %]
</span><del>-[% grand_total = 0 %]
</del><ins>+[% total_key = '-total-' %]
</ins><span class="cx"> &lt;div id=&quot;tabular_report_container_[% tbl FILTER html %]&quot;&gt;
</span><del>-&lt;table id=&quot;tabular_report&quot; border=&quot;1&quot;&gt;
</del><ins>+&lt;table id=&quot;tabular_report_[% tbl FILTER html %]&quot; class=&quot;tabular_report&quot;&gt;
</ins><span class="cx">   [% IF col_field %]
</span><span class="cx">     &lt;thead&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="lines">@@ -182,7 +165,6 @@
</span><span class="cx">       &lt;th class=&quot;[% classes.$row_idx.$col_idx %]&quot;&gt;
</span><span class="cx">       &lt;/th&gt;
</span><span class="cx">       [% FOREACH col = col_names %]
</span><del>-        [% col_totals.$col = 0 %]
</del><span class="cx">         [% NEXT IF col == &quot;&quot; %]
</span><span class="cx">         
</span><span class="cx">         [% col_idx = 1 - col_idx %]
</span><span class="lines">@@ -198,20 +180,16 @@
</span><span class="cx">   [% END %]
</span><span class="cx">   &lt;tbody&gt;
</span><span class="cx">   [% FOREACH row = row_names %]
</span><del>-    [% row_total = 0 %]
-    
</del><span class="cx">     [% row_idx = 1 - row_idx %]
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td class=&quot;[% classes.$row_idx.$col_idx %]&quot; align=&quot;right&quot;&gt;
</del><ins>+      &lt;td class=&quot;[% classes.$row_idx.$col_idx %] right&quot;&gt;
</ins><span class="cx">         [% PROCESS value_display value = row field = row_field %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       [% FOREACH col = col_names %]
</span><del>-        [% row_total = row_total + data.$tbl.$col.$row %]
</del><span class="cx">         [% NEXT IF col == &quot;&quot; %]
</span><del>-        [% col_totals.$col = (col_totals.$col || 0) + data.$tbl.$col.$row %]
</del><span class="cx">         
</span><span class="cx">         [% col_idx = 1 - col_idx %]
</span><del>-        &lt;td class=&quot;[% classes.$row_idx.$col_idx %]&quot; align=&quot;center&quot;&gt;
</del><ins>+        &lt;td class=&quot;[% classes.$row_idx.$col_idx %]&quot;&gt;
</ins><span class="cx">           [% IF data.$tbl.$col.$row AND data.$tbl.$col.$row &gt; 0 %]
</span><span class="cx">             &lt;a href=&quot;[% urlbase %]&amp;amp;
</span><span class="cx">               [% row_field FILTER uri %]=[% row FILTER uri %]&amp;amp;
</span><span class="lines">@@ -222,12 +200,11 @@
</span><span class="cx">           [% END %]
</span><span class="cx">         &lt;/td&gt;
</span><span class="cx">       [% END %] 
</span><del>-      &lt;td class=&quot;ttotal&quot; align=&quot;right&quot;&gt;
</del><ins>+      &lt;td class=&quot;ttotal right&quot;&gt;
</ins><span class="cx">         &lt;a href=&quot;[% urlbase %]&amp;amp;
</span><span class="cx">           [% row_field FILTER uri %]=[% row FILTER uri %]
</span><span class="cx">           [% &quot;&amp;amp;$col_vals&quot; IF col_vals %]&quot;&gt;
</span><del>-        [% row_total %]&lt;/a&gt;
-        [% grand_total = grand_total + row_total %]
</del><ins>+        [% data.$tbl.$total_key.$row OR 0 FILTER html %]&lt;/a&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="lines">@@ -238,19 +215,19 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       [% FOREACH col = col_names %]
</span><span class="cx">         [% NEXT IF col == &quot;&quot; %]
</span><del>-      
-        &lt;td class=&quot;ttotal&quot; align=&quot;center&quot;&gt;
</del><ins>+
+        &lt;td class=&quot;ttotal&quot;&gt;
</ins><span class="cx">           &lt;a href=&quot;[% urlbase %]&amp;amp;
</span><span class="cx">             [% col_field FILTER uri %]=[% col FILTER uri %]
</span><span class="cx">             [% &quot;&amp;amp;$row_vals&quot; IF row_vals %]&quot;&gt;
</span><del>-          [% col_totals.$col %]&lt;/a&gt;
</del><ins>+          [% data.$tbl.$col.$total_key OR 0 FILTER html %]&lt;/a&gt;
</ins><span class="cx">         &lt;/td&gt;
</span><span class="cx">       [% END %]
</span><del>-      &lt;td class=&quot;ttotal&quot; align=&quot;right&quot;&gt;
</del><ins>+      &lt;td class=&quot;ttotal right&quot;&gt;
</ins><span class="cx">         &lt;strong&gt;
</span><span class="cx">           &lt;a href=&quot;[% urlbase %]
</span><span class="cx">             [% &quot;&amp;amp;$row_vals&quot; IF row_vals %]
</span><del>-            [% &quot;&amp;amp;$col_vals&quot; IF col_vals %]&quot;&gt;[% grand_total %]&lt;/a&gt;
</del><ins>+            [% &quot;&amp;amp;$col_vals&quot; IF col_vals %]&quot;&gt;[% data.$tbl.$total_key.$total_key OR 0 FILTER html %]&lt;/a&gt;
</ins><span class="cx">         &lt;/strong&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -257,11 +234,18 @@
</span><span class="cx">   &lt;/tbody&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-      
</del><ins>+
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><ins>+[% IF note_multi_select %]
+  &lt;p class=&quot;extra_info&quot;&gt;
+    NOTE: Axes contain multi-value fields, so the total numbers might not add up,
+    as a single [% terms.bug %] can match several rows or columns.
+  &lt;/p&gt;
+[% END %]
+
</ins><span class="cx"> [% BLOCK value_display %]
</span><span class="cx">   [% SET disp_value = display_value(field, value) %]
</span><span class="cx">   [% IF field == 'assigned_to' OR field == 'reporter'
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreportcsvtmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report.csv.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report.csv.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report.csv.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</del><span class="cx"> [% FOREACH tbl = tbl_names %]
</span><span class="cx">   [% PROCESS &quot;reports/report-table.csv.tmpl&quot; %] 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsreporthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/report.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/report.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/report.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx">   
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -33,8 +21,8 @@
</span><span class="cx">   # cumulate: boolean. For bar/line charts, whether to cumulate data sets.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% DEFAULT width = 600
-           height = 350 
</del><ins>+[% DEFAULT width = 1024
+           height = 600
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% IF min_width AND width &lt; min_width %]
</span><span class="lines">@@ -46,8 +34,6 @@
</span><span class="cx">   [% row_field = &quot;&quot; %]
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% tbl_field_disp = field_descs.$tbl_field || tbl_field %]
</span><span class="cx"> [% col_field_disp = field_descs.$col_field || col_field %]
</span><span class="cx"> [% row_field_disp = field_descs.$row_field || row_field %]
</span><span class="lines">@@ -69,24 +55,19 @@
</span><span class="cx"> [% time = time FILTER time('%Y-%m-%d %H:%M:%S') FILTER html %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><del>-  style = &quot;
-    .t1     { background-color: #ffffff } /* white       */
-    .t2     { background-color: #dfefff } /* light blue  */
-    .t3     { background-color: #dddddd } /* grey        */
-    .t4     { background-color: #c3d3ed } /* darker blue */
-    .ttotal, .ttotal td { background-color: #cfffdf } /* light green */
-  &quot;
</del><span class="cx">   header_addl_info = time
</span><ins>+  style_urls = ['skins/standard/buglist.css']
</ins><span class="cx">   yui = ['datatable']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% IF debug %]
</span><del>-  &lt;p&gt;[% query FILTER html %]&lt;/p&gt;
</del><ins>+  [% FOREACH query = queries %]
+    &lt;p&gt;[% query.sql FILTER html %]&lt;/p&gt;
+  [% END %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-&lt;div align=&quot;center&quot;&gt;
-
-  [% FOREACH tbl = tbl_names %]    
</del><ins>+&lt;div class=&quot;center&quot;&gt;
+  [% FOREACH tbl = tbl_names %]
</ins><span class="cx">     [% IF tbl == &quot;-total-&quot; %]
</span><span class="cx">       [% tbl_disp = &quot;Total&quot; %]
</span><span class="cx">     [% ELSE %]
</span><span class="lines">@@ -112,70 +93,52 @@
</span><span class="cx">               [% END %]
</span><span class="cx">             [% END %]
</span><span class="cx">           [% END %]
</span><del>-        [% END %]width=[% width %]&amp;amp;height=[% height %]      
</del><ins>+        [% END %]width=[% width %]&amp;amp;height=[% height %]
</ins><span class="cx">       [% END %]
</span><del>-      
-      &lt;img alt=&quot;Graphical report results&quot; src=&quot;[% imageurl %]&quot;
-        width=&quot;[% width %]&quot; height=&quot;[% height %]&quot;&gt;
</del><ins>+
+      &lt;img id=&quot;graphical_report&quot; alt=&quot;Graphical report results&quot; src=&quot;[% imageurl %]&quot;&gt;
</ins><span class="cx">     [% END %]
</span><span class="cx">     &lt;br&gt;
</span><span class="cx">   [% END %]  
</span><span class="cx"> 
</span><del>-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;td&gt;
-        [% formats = [ { name =&gt; &quot;pie&quot;,   description =&gt; &quot;Pie&quot; },
-                       { name =&gt; &quot;bar&quot;,   description =&gt; &quot;Bar&quot; },
-                       { name =&gt; &quot;line&quot;,  description =&gt; &quot;Line&quot; },
-                       { name =&gt; &quot;table&quot;, description =&gt; &quot;Table&quot; } ] %]
</del><ins>+  [% formats = [ { name =&gt; &quot;pie&quot;,   description =&gt; &quot;Pie&quot; },
+                 { name =&gt; &quot;bar&quot;,   description =&gt; &quot;Bar&quot; },
+                 { name =&gt; &quot;line&quot;,  description =&gt; &quot;Line&quot; },
+                 { name =&gt; &quot;table&quot;, description =&gt; &quot;Table&quot; } ] %]
</ins><span class="cx"> 
</span><del>-        [% formaturl = &quot;report.cgi?$switchbase&amp;amp;width=$width&quot; _ 
-                       &quot;&amp;amp;height=$height&amp;amp;action=wrap&quot; %]
-        [% FOREACH other_format = formats %]
-          [% NEXT IF other_format.name == &quot;pie&quot; AND row_field AND col_field %]
-          [% UNLESS other_format.name == format %]
-            &lt;a href=&quot;[% formaturl %]&amp;amp;format=[% other_format.name %]&quot;&gt;
-          [% END %]
-          [% other_format.description FILTER html %]
-          [% &quot;&lt;/a&gt;&quot; UNLESS other_format.name == format %] | 
-        [% END %]
-        &lt;a href=&quot;[% formaturl %]&amp;amp;ctype=csv&amp;amp;format=table&quot;&gt;CSV&lt;/a&gt; 
-      &lt;/td&gt;
-      
-      [% IF format != &quot;table&quot; %]
-        &lt;td&gt;
-          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-        &lt;/td&gt;
-
-        [% sizeurl = BLOCK %]report.cgi?
-          [% switchbase %]&amp;amp;action=wrap&amp;amp;format=
-          [% format FILTER html %][% END %]
-        &lt;td align=&quot;center&quot;&gt;
-          &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width %]&amp;amp;height=
-                   [% height + 100 %]&quot;&gt;Taller&lt;/a&gt;&lt;br&gt;
-          &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width - 100 %]&amp;amp;height=
-                   [% height %]&quot;&gt;Thinner&lt;/a&gt; * 
-          &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width + 100 %]&amp;amp;height=
-                   [% height %]&quot;&gt;Fatter&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
-          &lt;a href=&quot;[% sizeurl %]&amp;amp;width=[% width %]&amp;amp;height=
-                   [% height - 100 %]&quot;&gt;Shorter&lt;/a&gt;&lt;br&gt;
-        &lt;/td&gt;
</del><ins>+  [% formaturl = &quot;report.cgi?$switchbase&amp;amp;width=$width&amp;amp;height=$height&amp;amp;action=wrap&quot; %]
+  &lt;p&gt;
+    [% FOREACH other_format = formats %]
+      [% NEXT IF other_format.name == &quot;pie&quot; AND row_field AND col_field %]
+      [% UNLESS other_format.name == format %]
+        &lt;a href=&quot;[% formaturl %]&amp;amp;format=[% other_format.name %]&quot;&gt;
</ins><span class="cx">       [% END %]
</span><del>-    &lt;/tr&gt;
-  &lt;/table&gt;
-
-  &lt;p&gt;
-    [% IF format == &quot;table&quot; %]
-      &lt;a href=&quot;query.cgi?[% switchbase %]&amp;amp;format=report-table&quot;&gt;Edit 
-      this report&lt;/a&gt;
-    [% ELSE %]
-      &lt;a href=&quot;query.cgi?[% switchbase %]&amp;amp;chart_format=
-        [% format FILTER uri %]&amp;amp;format=report-graph&amp;amp;cumulate=[% cumulate %]&quot;&gt;
-        Edit this report
-      &lt;/a&gt;
</del><ins>+      [% other_format.description FILTER html %]
+      [% &quot;&lt;/a&gt;&quot; UNLESS other_format.name == format %] |
</ins><span class="cx">     [% END %]
</span><ins>+    &lt;a href=&quot;[% formaturl %]&amp;amp;ctype=csv&amp;amp;format=table&quot;&gt;CSV&lt;/a&gt;
</ins><span class="cx">   &lt;/p&gt;
</span><del>- 
</del><ins>+
+  [% IF format == &quot;table&quot; %]
+    &lt;a href=&quot;query.cgi?[% switchbase %]&amp;amp;format=report-table&quot;&gt;Edit this report&lt;/a&gt;
+  [% ELSE %]
+    &lt;a href=&quot;query.cgi?[% switchbase %]&amp;amp;chart_format=
+             [%~ format FILTER uri %]&amp;amp;format=report-graph&amp;amp;cumulate=[% cumulate %]&quot;&gt;
+      Edit this report&lt;/a&gt;
+  [% END %]
+  |
+  [% IF saved_report_id %]
+    &lt;a href=&quot;report.cgi?action=del&amp;amp;saved_report_id=[% saved_report_id FILTER uri %]&amp;amp;token=
+             [%~ issue_hash_token(['delete_report', saved_report_id]) FILTER uri %]&quot;&gt;Forget this report&lt;/a&gt;
+  [% ELSE %]
+    &lt;form method=&quot;get&quot; action=&quot;report.cgi&quot; class=&quot;inline&quot;&gt;
+      &lt;input type=&quot;submit&quot; id=&quot;remember&quot; value=&quot;Remember report&quot;&gt; as
+      &lt;input type=&quot;hidden&quot; name=&quot;query&quot; value=&quot;[% switchbase %]&amp;amp;format=[% format FILTER uri %]&amp;amp;action=wrap&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;add&quot;&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% issue_hash_token(['save_report']) FILTER html %]&quot;&gt;
+      &lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; size=&quot;20&quot; value=&quot;&quot; maxlength=&quot;64&quot;&gt;
+    &lt;/form&gt;
+  [% END %]
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsseriescommonhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/series-common.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/series-common.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/series-common.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -97,9 +85,9 @@
</span><span class="cx"> [%###########################################################################%]
</span><span class="cx"> 
</span><span class="cx"> [% BLOCK series_select %]
</span><del>-  &lt;td align=&quot;left&quot;&gt;
</del><ins>+  &lt;td&gt;
</ins><span class="cx">     &lt;select name=&quot;[% sel.name %]&quot; id=&quot;[% sel.name %]&quot;
</span><del>-            size=&quot;[% sel.size %]&quot; style=&quot;width: 15em&quot;
</del><ins>+            size=&quot;[% sel.size %]&quot;
</ins><span class="cx">             [%+ 'multiple=&quot;multiple&quot;' IF sel.multiple %]
</span><span class="cx">             [%+ &quot;disabled=\&quot;disabled\&quot;&quot; UNLESS ${sel.name}.keys.size || newtext %]
</span><span class="cx">             [%+ &quot;onchange=\&quot;$sel.onchange\&quot;&quot; IF sel.onchange %]&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultreportsserieshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/reports/series.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/reports/series.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/reports/series.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -29,16 +17,14 @@
</span><span class="cx"> [% PROCESS &quot;reports/series-common.html.tmpl&quot;
</span><span class="cx">    newtext = &quot;New (name below)&quot; 
</span><span class="cx">  %]
</span><del>-  
-&lt;table cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;
-       style=&quot;text-align: left; margin-left: 20px&quot;&gt;
-  &lt;tbody&gt;
</del><ins>+
+&lt;table id=&quot;edit_series&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;th&gt;Category:&lt;/th&gt;
</del><ins>+      &lt;th&gt;Category&lt;/th&gt;
</ins><span class="cx">       &lt;th&gt;&lt;/th&gt;
</span><del>-      &lt;th&gt;Sub-category:&lt;/th&gt;
-      &lt;th&gt;Name:&lt;/th&gt;
-      &lt;td&gt;&lt;/td&gt;
</del><ins>+      &lt;th&gt;Sub-category&lt;/th&gt;
+      &lt;th&gt;Name&lt;/th&gt;
+      &lt;th&gt;&lt;/th&gt;
</ins><span class="cx">     &lt;/tr&gt;
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       [% PROCESS series_select sel = { name =&gt; 'category',
</span><span class="lines">@@ -50,28 +36,28 @@
</span><span class="cx">                    id=&quot;action-edit&quot;&gt;
</span><span class="cx">           &lt;/noscript&gt;
</span><span class="cx">         &lt;/td&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">       [% PROCESS series_select sel = { name =&gt; 'subcategory', 
</span><span class="cx">                                        size =&gt; 5,
</span><span class="cx">                                        onchange =&gt; &quot;checkNewState()&quot; } %]
</span><del>-        
-      &lt;td valign=&quot;top&quot; name=&quot;name&quot;&gt;
</del><ins>+
+      &lt;td&gt;
</ins><span class="cx">         &lt;input type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;64&quot; 
</span><span class="cx">                value=&quot;[% default.name.0 FILTER html %]&quot; size=&quot;25&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx"> 
</span><del>-      &lt;td valign=&quot;top&quot;&gt;
-        &lt;span style=&quot;font-weight: bold;&quot;&gt;Run every&lt;/span&gt; &amp;nbsp;
-        &lt;input type=&quot;text&quot; size=&quot;2&quot; name=&quot;frequency&quot;
</del><ins>+      &lt;td&gt;
+        Run every
+        &lt;input type=&quot;text&quot; size=&quot;2&quot; id=&quot;frequency&quot; name=&quot;frequency&quot;
</ins><span class="cx">                value=&quot;[% (default.frequency.0 OR 7) FILTER html %]&quot;&gt;
</span><del>-        &lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp;day(s)&lt;/span&gt;&lt;br&gt;
</del><ins>+        day(s)&lt;br&gt;
</ins><span class="cx">         [%# Change 'admin' here and in Series.pm, or remove the check
</span><span class="cx">             completely, if you want to change who can make series public. %]
</span><del>-        [% IF user.in_group('admin') %]      
</del><ins>+        [% IF user.in_group('admin') %]
</ins><span class="cx">           &lt;input type=&quot;checkbox&quot; name=&quot;public&quot;
</span><span class="cx">                  [%+ &quot;checked='checked'&quot; IF default.public.0 %]&gt;
</span><del>-          &lt;span style=&quot;font-weight: bold;&quot;&gt;Visible to all&lt;br&gt;
-          (within group restrictions)&lt;/span&gt; 
</del><ins>+          Visible to all&lt;br&gt;
+          (within group restrictions)
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -78,13 +64,12 @@
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;text&quot; style=&quot;width: 100%&quot; name=&quot;newcategory&quot; 
-               maxlength=&quot;64&quot; value=&quot;[% default.newcategory.0 FILTER html %]&quot;&gt;
</del><ins>+        &lt;input type=&quot;text&quot; name=&quot;newcategory&quot; maxlength=&quot;64&quot;
+               value=&quot;[% default.newcategory.0 FILTER html %]&quot;&gt;
</ins><span class="cx">       &lt;/td&gt;
</span><del>-        &lt;td&gt;&lt;/td&gt;
</del><ins>+      &lt;td&gt;&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;
</span><del>-        &lt;input type=&quot;text&quot; style=&quot;width: 100%&quot; name=&quot;newsubcategory&quot;
-               maxlength=&quot;64&quot; 
</del><ins>+        &lt;input type=&quot;text&quot; name=&quot;newsubcategory&quot; maxlength=&quot;64&quot;
</ins><span class="cx">                value=&quot;[% default.newsubcategory.0 FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       &lt;td&gt;&lt;/td&gt;
</span><span class="lines">@@ -93,5 +78,4 @@
</span><span class="cx">                value=&quot;[% button_name FILTER html %]&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><del>-  &lt;/tbody&gt;
</del><span class="cx"> &lt;/table&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultrequestemailtxttmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/request/email.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/request/email.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/request/email.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,95 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s):     Myk Melez &lt;myk@mozilla.org&gt;
-  #                     Jeff Hedlund &lt;jeff.hedlund@matrixsi.com&gt;
-  #                     Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #%]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% bugidsummary = bug.bug_id _ ': ' _ bug.short_desc %]
-[% attidsummary = attachment.id _ ': ' _ attachment.description %]
-[% flagtype_name = flag ? flag.type.name : old_flag.type.name %]
-[% statuses = { '+' =&gt; &quot;granted&quot; , '-' =&gt; 'denied' , 'X' =&gt; &quot;canceled&quot; ,
-                '?' =&gt; &quot;asked&quot; } %]
-
-[% to_identity = &quot;&quot; %]
-[% on_behalf_of = 0 %]
-[% action = flag.status || 'X' %]
-
-[% IF flag &amp;&amp; flag.status == '?' %]
-  [% subject_status = &quot;requested&quot; %]
-  [% IF flag.setter_id == user.id %]
-    [% to_identity = flag.requestee.identity _ &quot; for&quot; %]
-  [% ELSE %]
-    [% on_behalf_of = 1 %]
-    [% IF flag.requestee %][% to_identity = &quot; to &quot; _ flag.requestee.identity %][% END %]
-  [% END %]
-[% ELSE %]
-  [% IF old_flag &amp;&amp; old_flag.status == '?' %]
-    [% to_identity = old_flag.setter.identity _ &quot;'s request for&quot; %]
-  [% END %]
-  [% subject_status = statuses.$action %]
-[% END %]
-From: [% Param('mailfrom') %]
-To: [% to %]
-Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
-[%- IF attachment %] :
-  [Attachment [% attachment.id %]] [% attachment.description FILTER clean_text %][% END %]
-Date: [% date %]
-X-Bugzilla-Type: request
-[%+ threadingmarker %]
-
-[%+ USE wrap -%]
-[%- FILTER bullet = wrap(80) -%]
-
-[% IF on_behalf_of %]
-[% user.identity %] has reassigned [% flag.setter.identity %]'s request for [% flagtype_name %]
-[% to_identity %]:
-[% ELSE %]
-[% user.identity %] has [% statuses.$action %] [%+ to_identity %] [%+ flagtype_name %]:
-[% END %]
-
-[% terms.Bug %] [%+ bugidsummary %]
-[% END %]
-[%+ urlbase %]show_bug.cgi?id=[% bug.bug_id %]
-[% IF attachment %]
-
-[% FILTER bullet = wrap(80) %]
-Attachment [% attidsummary %]
-[%- END %]
-[%# if WEBKIT_CHANGES #%]
-[%+ urlbase %]attachment.cgi?id=[% attachment.id %]&amp;action=review
-[%# endif // WEBKIT_CHANGES #%]
-[%- END %]
-
-[%- Hook.process('after_summary') -%]
-
-[%- FILTER bullet = wrap(80) %]
-
-[% FOREACH comment = new_comments %]
-
-[%- IF comment.count %]
---- Comment #[% comment.count %] from [% comment.author.identity %] ---
-[% ELSE %]
---- Description ---
-[% END %]
-[%+ comment.body_full({ is_bugmail =&gt; 1, wrap =&gt; 1 }) FILTER strip_control_chars %]
-[% END %]
-
-[%- END %]
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultrequestqueuecsvtmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/request/queue.csv.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/request/queue.csv.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/request/queue.csv.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0. #%]
+
+[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
+
+[% column_headers = {
+  &quot;type&quot;            =&gt; &quot;Flag&quot;,
+  &quot;status&quot;          =&gt; field_descs.bug_status,
+  &quot;bug_summary&quot;     =&gt; field_descs.short_desc,
+  &quot;bug_id&quot;          =&gt; field_descs.bug_id,
+  &quot;attach_summary&quot;  =&gt; &quot;Attachment Description&quot;,
+  &quot;attach_id&quot;       =&gt; &quot;Attachment ID&quot;,
+  &quot;requester&quot;       =&gt; &quot;Requester&quot;,
+  &quot;requestee&quot;       =&gt; &quot;Requestee&quot;,
+  &quot;created&quot;         =&gt; &quot;Created&quot;,
+  &quot;category&quot;        =&gt; field_descs.product _ &quot;: &quot; _ field_descs.component,
+} %]
+
+[% display_columns = [&quot;requester&quot;, &quot;requestee&quot;, &quot;type&quot;, &quot;status&quot;,
+                      &quot;bug_id&quot;, &quot;bug_summary&quot;, &quot;attach_id&quot;,
+                      &quot;attach_summary&quot;, &quot;created&quot;, &quot;category&quot;] %]
+
+[% IF requests.size == 0 %]
+No requests.
+[% ELSE %]
+  [% FOREACH column = display_columns %]
+    [% column_headers.$column FILTER csv %][% ',' IF NOT loop.last() %]
+  [% END %]
+
+  [% FOREACH request = requests %]
+    [% FOREACH column = display_columns %]
+      [% IF column == 'created' %]
+        [% request.$column FILTER time FILTER csv %]
+      [% ELSIF column.match('^requeste') %]
+        [% request.$column FILTER email FILTER csv %]
+      [% ELSE %]
+        [% request.$column FILTER csv %]
+      [% END %][% ',' IF NOT loop.last() %]
+    [% END %]
+
+  [% END %]
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultrequestqueuehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/request/queue.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/request/queue.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/request/queue.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,65 +1,25 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><ins>+[% PROCESS &quot;global/js-products.html.tmpl&quot; %]
+
</ins><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title=&quot;Request Queue&quot;
</span><del>-  style = &quot;
-    table.requests th { text-align: left; }
-    table#filtering th { text-align: right; }
-  &quot;
-  onload=&quot;var f = document.request_form; selectProduct(f.product, f.component, null, null, 'Any');&quot;
</del><ins>+  generate_api_token = 1
+  onload=&quot;var f = document.request_form; selectProduct(f.product, f.component, 'Any');&quot;
</ins><span class="cx">   javascript_urls=[&quot;js/productform.js&quot;, &quot;js/field.js&quot;]
</span><span class="cx">   style_urls = ['skins/standard/buglist.css']
</span><span class="cx">   yui = ['autocomplete']
</span><span class="cx"> %]
</span><span class="cx"> 
</span><del>-&lt;script type=&quot;text/javascript&quot;&gt;
-  var useclassification = false; // No classification level in use
-  var first_load = true; // Is this the first time we load the page?
-  var last_sel = []; // Caches last selection
-  var cpts = new Array();
-  [% n = 1 %]
-  [% IF Param('useclassification') %]
-    [% FOREACH clas = user.get_selectable_classifications %]
-      [% FOREACH prod = user.get_selectable_products(clas.id) %]
-        [%+ PROCESS js_comp %]
-      [% END %]
-    [% END %]
-  [% ELSE %]
-    [% FOREACH prod = user.get_selectable_products %]
-      [%+ PROCESS js_comp %]
-    [% END %]
-  [% END %]
-&lt;/script&gt;
-
-[% BLOCK js_comp %]
-  cpts['[% n %]'] = [
-    [%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%]];
-  [% n = n+1 %]
-[% END %]
-
</del><span class="cx"> &lt;p&gt;
</span><span class="cx"> When you are logged in, only requests made by you or addressed to you
</span><span class="cx"> are shown by default.  You can change the criteria using the form below.
</span><span class="lines">@@ -85,28 +45,12 @@
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">       &lt;th&gt;Product:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><del>-        &lt;select name=&quot;product&quot; onchange=&quot;selectProduct(this, this.form.component, null, null, 'Any');&quot;&gt;
-          &lt;option value=&quot;&quot;&gt;Any&lt;/option&gt;
-          [% IF Param('useclassification') %]
-            [% FOREACH c = user.get_selectable_classifications %]
-              &lt;optgroup label=&quot;[% c.name FILTER html %]&quot;&gt;
-                [% FOREACH p = user.get_selectable_products(c.id) %]
-                  &lt;option value=&quot;[% p.name FILTER html %]&quot;
-                    [% &quot; selected&quot; IF cgi.param('product') == p.name %]&gt;
-                    [% p.name FILTER html %]
-                  &lt;/option&gt;
-                [% END %]
-              &lt;/optgroup&gt;
-            [% END %]
-          [% ELSE %]
-            [% FOREACH p = user.get_selectable_products %]
-              &lt;option value=&quot;[% p.name FILTER html %]&quot;
-                [% &quot; selected&quot; IF cgi.param('product') == p.name %]&gt;
-                [% p.name FILTER html %]
-              &lt;/option&gt;
-            [% END %]
-          [% END %]
-        &lt;/select&gt;
</del><ins>+        [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+           id       =&gt; &quot;product&quot;
+           name     =&gt; &quot;product&quot;
+           add      =&gt; &quot;Any&quot;
+           onchange =&gt; &quot;selectProduct(this, this.form.component, 'Any');&quot;
+        %]
</ins><span class="cx">       &lt;/td&gt;
</span><span class="cx">       &lt;th&gt;Flag:&lt;/th&gt;
</span><span class="cx">       &lt;td&gt;
</span><span class="lines">@@ -161,10 +105,20 @@
</span><span class="cx">           } %]
</span><span class="cx">         [% PROCESS &quot;global/select-menu.html.tmpl&quot; name=&quot;group&quot; options=groups default=cgi.param('group') %]
</span><span class="cx">       &lt;/td&gt;
</span><ins>+    &lt;/tr&gt;
+    &lt;tr&gt;
+      &lt;th&gt;&lt;/th&gt;
+      &lt;td&gt;
+        &lt;select id=&quot;do_union&quot; name=&quot;do_union&quot;&gt;
+          &lt;option value=&quot;0&quot;&gt;Match the requester AND requestee&lt;/option&gt;
+          &lt;option value=&quot;1&quot; [% 'selected=&quot;selected&quot;' IF cgi.param('do_union') %]&gt;
+            Match the requester OR requestee&lt;/option&gt;
+        &lt;/select&gt;
+      &lt;/td&gt;
+      &lt;td colspan=&quot;3&quot;&gt;&lt;/td&gt;
</ins><span class="cx">       &lt;td&gt;&lt;input type=&quot;submit&quot; id=&quot;filter&quot; value=&quot;Filter&quot;&gt;&lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   &lt;/table&gt;
</span><del>-
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> [% column_headers = {
</span><span class="lines">@@ -209,6 +163,8 @@
</span><span class="cx">     &lt;/tr&gt;
</span><span class="cx">   [% END %]
</span><span class="cx">   [% PROCESS display_buglist %]
</span><ins>+  &lt;br&gt;&lt;br&gt;
+  &lt;a href=&quot;request.cgi?[% urlquerypart FILTER html %]&amp;amp;ctype=csv&quot;&gt;View entire list as CSV&lt;/a&gt;
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><span class="lines">@@ -218,7 +174,7 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;h3&gt;[% column_headers.$group_field %]: 
</span><span class="cx">     [%+ (request.$group_field || &quot;None&quot;) FILTER email FILTER html %]&lt;/h3&gt;
</span><del>-  &lt;table class=&quot;requests&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;1&quot;&gt;
</del><ins>+  &lt;table class=&quot;requests&quot;&gt;
</ins><span class="cx">     &lt;tr&gt;
</span><span class="cx">       [% FOREACH column = display_columns %]
</span><span class="cx">         [% NEXT IF column == group_field || excluded_columns.contains(column) %]
</span><span class="lines">@@ -268,6 +224,6 @@
</span><span class="cx">   &lt;/table&gt;
</span><span class="cx">   [% NEXT UNLESS buglist.keys.size %]
</span><span class="cx">   &lt;a href=&quot;buglist.cgi?bug_id=
</span><del>-           [%- buglist.keys.nsort.join(&quot;,&quot;) FILTER html %]&quot;&gt;(view as
-  [%+ terms.bug %] list)&lt;/a&gt;
</del><ins>+           [%- buglist.keys.nsort.join(&quot;,&quot;) FILTER html %]&quot;&gt;View as
+  [%+ terms.bug %] list&lt;/a&gt;
</ins><span class="cx"> [% END %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultresthtmltmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/rest.html.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/rest.html.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/rest.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;Bugzilla::REST::API&lt;/title&gt;
+    &lt;link href=&quot;[% urlbase FILTER html %][% 'skins/standard/global.css' FILTER mtime %]&quot;
+          rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;pre&gt;[% result FILTER html %]&lt;/pre&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchbooleanchartshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/boolean-charts.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/boolean-charts.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/boolean-charts.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-  
</del><span class="cx"> [% types = [
</span><span class="cx">   &quot;noop&quot;,
</span><span class="cx">   &quot;equals&quot;,
</span><span class="lines">@@ -47,6 +33,8 @@
</span><span class="cx">   &quot;changedby&quot;,
</span><span class="cx">   &quot;matches&quot;,
</span><span class="cx">   &quot;notmatches&quot;,
</span><ins>+  &quot;isempty&quot;,
+  &quot;isnotempty&quot;,
</ins><span class="cx"> ] %]
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;bz_section_title&quot; id=&quot;custom_search_filter&quot;&gt;
</span><span class="lines">@@ -75,10 +63,14 @@
</span><span class="cx">     TUI_hide_default('custom_search_advanced');
</span><span class="cx">   &lt;/script&gt;
</span><span class="cx">   &lt;script type=&quot;text/javascript&quot; src=&quot;[% 'js/custom-search.js' FILTER mtime %]&quot;&gt;&lt;/script&gt;
</span><del>-  &lt;script type=&quot;text/javascript&quot; src=&quot;[% 'js/history.js/native.history.js' FILTER mtime %]&quot;&gt;&lt;/script&gt;
</del><span class="cx">   &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx">     redirect_html4_browsers();
</span><ins>+    [%# These are alternative labels for the AND and OR options in and_all_select %]
+    var cs_and_label = 'Match ALL of the following:';
+    var cs_or_label  = 'Match ANY of the following:';
+    cs_reconfigure('custom_search_last_row');
</ins><span class="cx">   &lt;/script&gt;
</span><ins>+  &lt;script type=&quot;text/javascript&quot; src=&quot;[% 'js/history.js/native.history.js' FILTER mtime %]&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -134,7 +126,8 @@
</span><span class="cx">       (
</span><span class="cx">       [% indent_level = indent_level + 1 %]
</span><span class="cx">     [% ELSIF condition.f == &quot;CP&quot; %]
</span><del>-      &lt;input type=&quot;hidden&quot; name=&quot;f[% cond_num FILTER html %]&quot; value=&quot;CP&quot;&gt;
</del><ins>+      &lt;input type=&quot;hidden&quot; name=&quot;f[% cond_num FILTER html %]&quot;
+             id=&quot;f[% cond_num FILTER html %]&quot; value=&quot;CP&quot;&gt;
</ins><span class="cx">       )
</span><span class="cx">     [% ELSE %]
</span><span class="cx">       &lt;select name=&quot;f[% cond_num FILTER html %]&quot; title=&quot;Field&quot;
</span><span class="lines">@@ -141,7 +134,15 @@
</span><span class="cx">               id=&quot;f[% cond_num FILTER html %]&quot;
</span><span class="cx">               onchange=&quot;fix_query_string(this)&quot;
</span><span class="cx">               class=&quot;custom_search_form_field&quot;&gt;
</span><del>-        [% FOREACH field = fields %]
</del><ins>+        [%# Turn the array in to a hash with the name as the key %]
+        [%
+          field_hash = {};
+          FOREACH field IN fields;
+            field_hash.${field.name} = field;
+          END;
+        %]
+        [% FOREACH field_name = field_hash.keys.sort_by_field_name(field_descs) %]
+          [% field = field_hash.$field_name %]
</ins><span class="cx">           &lt;option value=&quot;[% field.name FILTER html %]&quot;
</span><span class="cx">                   [%~ ' selected=&quot;selected&quot;' IF field.name == condition.f %]&gt;
</span><span class="cx">             [% field_descs.${field.name} || field.description FILTER html %]
</span><span class="lines">@@ -178,9 +179,11 @@
</span><span class="cx">   &lt;div class=&quot;any_all_select&quot;&gt;
</span><span class="cx">     &lt;select name=&quot;[% name FILTER html %]&quot; id=&quot;[% name FILTER html %]&quot;
</span><span class="cx">             onchange=&quot;fix_query_string(this)&quot;&gt;
</span><del>-      &lt;option value=&quot;AND&quot;&gt;Match ALL of the following:&lt;/option&gt;
</del><ins>+      &lt;option value=&quot;AND&quot;&gt;Match ALL of the following separately:&lt;/option&gt;
</ins><span class="cx">       &lt;option value=&quot;OR&quot; [% ' selected=&quot;selected&quot;' IF selected == &quot;OR&quot; %]&gt;
</span><del>-        Match ANY of the following:&lt;/option&gt;
</del><ins>+        Match ANY of the following separately:&lt;/option&gt;
+      &lt;option value=&quot;AND_G&quot; [% ' selected' IF selected == &quot;AND_G&quot; %]&gt;
+        Match ALL of the following against the same field:&lt;/option&gt;
</ins><span class="cx">     &lt;/select&gt;
</span><span class="cx">     [% IF with_advanced_link %]
</span><span class="cx">       &lt;a id=&quot;custom_search_advanced_controller&quot;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchfieldhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/field.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/field.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/field.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,31 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Guy Pyrzak
-  # Portions created by the Initial Developer are Copyright (C) 2010 the
-  # Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
-  #                 Reed Loden &lt;reed@reedloden.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[%# INTERFACE:
-  #   field: a Bugzilla::Field object
-  #   value: the value or values that should be used to prepopulate the field
-  #   accesskey: the access key used to access the field more quickly
-  #   onchange: js to run when the change event fires on the field
-  #   type_selected: used by the free text to indicate which type of text
-  #                  search was selected for a particular field
-  #%]
</del><span class="cx">   
</span><span class="cx"> [% SWITCH field.type %]
</span><span class="cx">   [% CASE [ constants.FIELD_TYPE_FREETEXT,
</span><span class="lines">@@ -44,7 +23,7 @@
</span><span class="cx">     &lt;input name=&quot;[% field.name FILTER html %]&quot; 
</span><span class="cx">            id=&quot;[% field.name FILTER html %]&quot; size=&quot;40&quot;
</span><span class="cx">            [% IF onchange %] onchange=&quot;[% onchange FILTER html %]&quot;[% END %]
</span><del>-           value=&quot;[% value FILTER html %]&quot;&gt;              
</del><ins>+           value=&quot;[% value FILTER html %]&quot; [% 'autofocus' IF focus %]&gt;
</ins><span class="cx">   [% CASE constants.FIELD_TYPE_KEYWORDS %]
</span><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">       field = field
</span><span class="lines">@@ -56,22 +35,24 @@
</span><span class="cx">        types = types, 
</span><span class="cx">        selected = type_selected
</span><span class="cx">     %]
</span><del>-    &lt;div id=&quot;keyword_container&quot;&gt;
</del><ins>+    &lt;div id=&quot;[% field.name FILTER html %]_container&quot;&gt;
</ins><span class="cx">        &lt;input name=&quot;[% field.name FILTER html %]&quot; 
</span><span class="cx">               id=&quot;[% field.name FILTER html %]&quot; size=&quot;40&quot;
</span><span class="cx">               [% IF onchange %] onchange=&quot;[% onchange FILTER html %]&quot;[% END %]
</span><del>-              value=&quot;[% value FILTER html %]&quot;&gt;
-       &lt;div id=&quot;keyword_autocomplete&quot;&gt;&lt;/div&gt;
</del><ins>+              value=&quot;[% value FILTER html %]&quot; [% 'autofocus' IF focus %]&gt;
+       &lt;div id=&quot;[% field.name FILTER html %]_autocomplete&quot;&gt;&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><del>-    &lt;script type=&quot;text/javascript&quot; defer=&quot;defer&quot;&gt;
-      YAHOO.bugzilla.keyword_array = [
-        [%- FOREACH keyword = all_keywords %]
-          [%-# %]&quot;[% keyword.name FILTER js %]&quot;
</del><ins>+    &lt;script type=&quot;text/javascript&quot;&gt;
+      if (typeof YAHOO.bugzilla.field_array === &quot;undefined&quot;)
+        YAHOO.bugzilla.field_array = [];
+      YAHOO.bugzilla.field_array[&quot;[% field.name FILTER js %]&quot;] = [
+        [%- FOREACH val = possible_values %]
+          [%-# %]&quot;[% val FILTER js %]&quot;
</ins><span class="cx">           [%- &quot;,&quot; IF NOT loop.last %][% END %]];
</span><del>-      YAHOO.bugzilla.keywordAutocomplete.init('[% field.name FILTER js %]',
-                                              'keyword_autocomplete');
</del><ins>+      YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]',
+                                            '[% field.name FILTER js %]_autocomplete');
</ins><span class="cx">     &lt;/script&gt;
</span><del>-  [% CASE constants.FIELD_TYPE_DATETIME %]
</del><ins>+  [% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %]
</ins><span class="cx">     [% INCLUDE &quot;bug/field-label.html.tmpl&quot;
</span><span class="cx">       field = field
</span><span class="cx">       tag_name = &quot;span&quot;
</span><span class="lines">@@ -101,9 +82,10 @@
</span><span class="cx">     
</span><span class="cx">     &lt;span id=&quot;con_calendar_[% field.name FILTER html %]to&quot;&gt;&lt;/span&gt;
</span><span class="cx">     &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-      createCalendar('[% field.name FILTER js %]');
-      createCalendar('[% field.name FILTER js %]to');
-    &lt;/script&gt;
</del><ins>+      &lt;!--
+        [%+ PROCESS &quot;global/calendar.js.tmpl&quot; id = field.name %]
+        [% PROCESS &quot;global/calendar.js.tmpl&quot; id = field.name _ 'to' %]
+      //--&gt;&lt;/script&gt;
</ins><span class="cx">   [% CASE [ constants.FIELD_TYPE_SINGLE_SELECT, 
</span><span class="cx">             constants.FIELD_TYPE_MULTI_SELECT ] %]
</span><span class="cx">     &lt;div id=&quot;container_[% field.name FILTER html %]&quot; class=&quot;search_field_grid&quot;&gt;      
</span><span class="lines">@@ -121,22 +103,82 @@
</span><span class="cx">           [% legal_values = ${&quot;component_&quot;} %]
</span><span class="cx">         [% END %]
</span><span class="cx">         [% FOREACH current_value = legal_values %]
</span><del>-          [% IF current_value.id %]
-            [%# current_value is a hash instead of a value which 
-                only applies for Resolution really, everywhere else current_value
-                is just the value %]
-            [% v = current_value.name OR '---' -%]
-            &lt;option value=&quot;[% v FILTER html %]&quot;
-              [% ' selected=&quot;selected&quot;' IF value.contains( v ) %]&gt;
-              [% display_value(field.name, current_value.name) FILTER html %]
-            &lt;/option&gt;
-          [% ELSE %]
-            &lt;option value=&quot;[% current_value OR '---' FILTER html %]&quot;
-              [% ' selected=&quot;selected&quot;' IF value.contains( current_value ) %]&gt;
-              [% display_value(field.name, current_value) FILTER html %]
-            &lt;/option&gt;
-          [% END %]
</del><ins>+          [% SET v = current_value.name OR '---' -%]
+          [% SET display = display_value(field.name, current_value.name) %]
+          &lt;option value=&quot;[% v FILTER html %]&quot;
+            id=&quot;v[% current_value.id FILTER html %]_[% field.name FILTER html %]&quot;
+            [% ' selected=&quot;selected&quot;' IF value.contains( v ) %]&gt;
+            [%~ display FILTER html ~%]
+          &lt;/option&gt;
</ins><span class="cx">         [% END %]
</span><span class="cx">       &lt;/select&gt;
</span><span class="cx">     &lt;/div&gt;
</span><ins>+
+    [% IF value_controllers.${field.name}.defined %]
+      &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
+        [%+ FILTER collapse %]
+          [% FOREACH accessor = value_controllers.${field.name}.keys %]
+            [% PROCESS controller_js %]
+          [% END %]
+        [%~ END ~%]
+      // --&gt;&lt;/script&gt;
+    [% END %]
+    [% IF duplicates.${field.name}.keys.size %]
+      [% SET field_dups = duplicates.${field.name} %]
+      [% SET dup_counts = duplicate_count.${field.name} %]
+      &lt;script type=&quot;text/javascript&quot;&gt;
+       [%+ FILTER collapse %]
+          bz_option_duplicates['[% field.name FILTER js %]'] = {
+            [% FOREACH dup = field_dups.keys %]
+              [% dup FILTER js %]:[% field_dups.$dup.id FILTER js %]
+              [%~ ',' UNLESS loop.last %]
+            [% END ~%]
+          };
+          bz_option_duplicate_count['[% field.name FILTER js %]'] = {
+            [% FOREACH dup_target = dup_counts.keys %]
+              [% dup_target FILTER js %]:[% dup_counts.$dup_target FILTER js %]
+              [%~ ',' UNLESS loop.last %]
+            [% END %]
+          };
+        [% END %]
+      &lt;/script&gt;
+    [% END %]
+
</ins><span class="cx">   [% END %]
</span><ins>+[%# END OF SWITCH %]
+
+[% BLOCK controller_js %]
+  [%# If there are selected values already, we need to fire the
+    # &quot;change&quot; event once the page has loaded, so we can set all
+    # the values in all the other &lt;select&gt;s properly.
+    #%]
+  YAHOO.util.Event.onDOMReady(function() {
+      var field = document.getElementById('[% field.name FILTER js %]');
+      if (field.selectedIndex != -1) bz_fireEvent(field, 'change');
+  });
+
+  [% SET sub_field = value_controllers.${field.name}.$accessor %]
+  [% SET prod_per_class = {} %]
+  [% IF field.name == &quot;classification&quot; %]
+    [% FOREACH p = product %]
+      [% prod_per_class.${p.classification_id}.${p.id} = 1 %]
+    [% END %]
+  [% END %]
+
+  [% FOREACH legal_value = legal_values %]
+    [% SET controlled_ids = [] %]
+    [% IF field.name == &quot;classification&quot; %]
+      [% controlled_ids = prod_per_class.${legal_value.id}.keys %]
+    [% ELSE %]
+      [% FOREACH sub_value = legal_value.$accessor %]
+        [% controlled_ids.push(sub_value.id) %]
+      [% END %]
+    [% END %]
+    [% NEXT IF !controlled_ids.size %]
+      showValueWhen('[% sub_field.name FILTER js %]',
+                    [[% controlled_ids.join(',') FILTER js %]],
+                    '[% field.name FILTER js %]',
+                    [% legal_value.id FILTER js %],
+                    true);
+  [% END %]
+[% END %]
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchformhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/form.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/form.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/form.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,109 +1,20 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Chris Lahey &lt;clahey@ximian.com&gt; [javascript fixes]
-  #                 Christian Reis &lt;kiko@async.com.br&gt; [javascript rewrite]
-  #                 Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Guy Pyrzak &lt;guy.pyrzak@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</span><span class="cx"> 
</span><ins>+&lt;input type=&quot;hidden&quot; id=&quot;no_redirect&quot; name=&quot;no_redirect&quot; value=&quot;0&quot;&gt;
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><ins>+  if (history &amp;&amp; history.replaceState) {
+    var no_redirect = document.getElementById(&quot;no_redirect&quot;);
+    no_redirect.value = 1;
+  }
</ins><span class="cx"> 
</span><del>-var first_load = true;         [%# is this the first time we load the page? %]
-var last_sel = new Array();    [%# caches last selection %]
-
-[% IF Param('useclassification') %]
-var useclassification = true;
-var prods = new Array();
-[% ELSE %]
-var useclassification = false;
-[% END %]
-var cpts = new Array();
-var vers = new Array();
-[% IF Param('usetargetmilestone') %]
-var tms = new Array();
-[% END %]
-
-[%# Create an array of products, indexed by the classification #%]
-
-[% nclass = 0 %]
-[% FOREACH c = classification %]
-  prods[[% nclass FILTER js %]] = [
-    [% sep = '' %]
-    [%- FOREACH item = user.get_selectable_products(c.id) -%]
-      [%- IF item.components.size -%]
-        [%- sep FILTER js %]'[% item.name FILTER js %]'
-        [%- sep = ',' -%] 
-      [%- END -%]
-    [%- END -%] ];
-  [% nclass = nclass+1 %]
-[% END %]
-
-[%# Create three arrays of components, versions and target milestones, indexed
-  # numerically according to the product they refer to. #%]
-
-[% n = 0 %]
-[% FOREACH p = product %]
-  [% NEXT IF NOT p.components.size %]
-  [% IF Param('useclassification') %]
-  prods['[% p.name FILTER js %]'] = [% n %]
-  [% END %]
-  cpts[[% n %]] = [
-    [%- FOREACH item = p.components %]'[% item.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%] ];
-  vers[[% n %]] = [
-    [%- FOREACH item = p.versions -%]'[%  item.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%] ];
-  [% IF Param('usetargetmilestone') %]
-  tms[[% n %]]  = [
-     [%- FOREACH item = p.milestones %]'[% item.name FILTER js %]'[% &quot;, &quot; UNLESS loop.last %] [%- END -%] ];
-  [% END %]
-  [% n = n+1 %]
-[% END %]
-
-/*
- * doOnSelectProduct determines which selection should get updated 
- *
- * - selectmode = 0  - init
- *   selectmode = 1  - classification selected
- *   selectmode = 2  - product selected
- *
- * globals:
- *   queryform - string holding the name of the selection form
- */
-function doOnSelectProduct(selectmode) {
-    var f = document.forms[queryform];
-    var milestone = (typeof(f.target_milestone) == &quot;undefined&quot; ? 
-                                               null : f.target_milestone);
-    if (selectmode == 0) {
-        // If there is no classification selected, give us a chance to fill
-        // the select fields with values from the possibly selected product.
-        if (useclassification &amp;&amp; f.classification.selectedIndex &gt; -1) {
-            selectClassification(f.classification, f.product, f.component, f.version, milestone);
-        } else {
-            selectProduct(f.product, f.component, f.version, milestone, null);
-        }
-    } else if (selectmode == 1) {
-        selectClassification(f.classification, f.product, f.component, f.version, milestone);
-    } else {
-        selectProduct(f.product, f.component, f.version, milestone, null);
-    }
-}
-
</del><span class="cx"> // Hide the Advanced Fields by default, unless the user has a cookie
</span><span class="cx"> // that specifies otherwise.
</span><span class="cx"> // &amp;#9656; and &amp;#9662; are both utf8 escaped characters for right 
</span><span class="lines">@@ -141,11 +52,8 @@
</span><span class="cx">          value = default.short_desc.0
</span><span class="cx">          type_selected = default.short_desc_type.0 
</span><span class="cx">          accesskey = &quot;s&quot;
</span><del>-         %]
-      &lt;script type=&quot;text/javascript&quot;&gt; &lt;!--
-          document.forms[queryform].short_desc.focus(); 
-      // --&gt;
-      &lt;/script&gt;
</del><ins>+         focus = 1
+      %]
</ins><span class="cx"> 
</span><span class="cx">       [% IF button_name %]
</span><span class="cx">         &lt;input type=&quot;submit&quot; id=&quot;[% button_name FILTER css_class_quote %]_top&quot;
</span><span class="lines">@@ -154,23 +62,26 @@
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> [%# *** Classification Product Component *** %]
</span><del>-  
</del><ins>+
+[% value_controllers = {
+    'classification' =&gt; { 'products' =&gt; bug_fields.product },
+    'product' =&gt; { 'components' =&gt; bug_fields.component,
+                   'versions'   =&gt; bug_fields.version,
+                   'milestones' =&gt; bug_fields.target_milestone },
+} %]
+
</ins><span class="cx"> [% Hook.process('before_selects_top') %]
</span><span class="cx"> [% IF Param('useclassification') %]
</span><del>-      [% fake_classfication = { name =&gt; bug_fields.classification.name,
-                                type =&gt; constants.FIELD_TYPE_SINGLE_SELECT } %]
-      [% INCLUDE &quot;search/field.html.tmpl&quot; 
-            field =&gt; fake_classfication
-            accesskey =&gt; &quot;c&quot;
-            onchange =&gt; &quot;doOnSelectProduct(1);&quot; 
-            value =&gt; default.classification
-      %]          
</del><ins>+  [% INCLUDE &quot;search/field.html.tmpl&quot;
+        field =&gt; bug_fields.classification
+        accesskey =&gt; &quot;c&quot;
+        value =&gt; default.classification
+  %]
</ins><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% INCLUDE &quot;search/field.html.tmpl&quot; 
</span><span class="cx">       field =&gt; bug_fields.product
</span><span class="cx">       accesskey =&gt; &quot;p&quot;
</span><del>-      onchange =&gt; &quot;doOnSelectProduct(2);&quot; 
</del><span class="cx">       value =&gt; default.product
</span><span class="cx"> %]
</span><span class="cx"> [% INCLUDE &quot;search/field.html.tmpl&quot; 
</span><span class="lines">@@ -200,7 +111,7 @@
</span><span class="cx">     [%+ field_descs.longdesc FILTER html %]s, [%+ field_descs.bug_file_loc FILTER html %], 
</span><span class="cx">     [% IF Param('usestatuswhiteboard') %] [%+ field_descs.status_whiteboard FILTER html %], [%+ END %]
</span><span class="cx">     [% IF use_keywords %] [%+ field_descs.keywords FILTER html %], [%+ END %]
</span><del>-    [% IF user.is_timetracker %] [%+ field_descs.deadline FILTER html %], [%+ END %]
</del><ins>+    [% IF Param('timetrackinggroup') %] [%+ field_descs.deadline FILTER html %], [%+ END %]
</ins><span class="cx">     [% terms.Bug %] Numbers, [%+ field_descs.version FILTER html %], 
</span><span class="cx">     [% IF Param('usetargetmilestone') %] [%+ field_descs.target_milestone FILTER html %], [%+ END %]
</span><span class="cx">     [% field_descs.bug_severity FILTER html %], [%+ field_descs.priority FILTER html %], [%+ field_descs.rep_platform FILTER html %], 
</span><span class="lines">@@ -228,6 +139,7 @@
</span><span class="cx">     %]
</span><span class="cx">     &lt;div class=&quot;search_field_row&quot;&gt;
</span><span class="cx">       [% type = field_container.field.name _ &quot;_type&quot; %]
</span><ins>+      [% possible_values = field_container.field.name == 'keywords' ? all_keywords : [] %]
</ins><span class="cx">       [% INCLUDE &quot;search/field.html.tmpl&quot; 
</span><span class="cx">           field =&gt; field_container.field
</span><span class="cx">           types =&gt; field_container.qtypes || query_types
</span><span class="lines">@@ -238,8 +150,7 @@
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx">   [% END %]
</span><span class="cx"> 
</span><del>-  [%# Deadline %]
-  [% IF user.is_timetracker %]
</del><ins>+  [% IF Param('timetrackinggroup') %]
</ins><span class="cx">     &lt;div class=&quot;search_field_row&quot;&gt;
</span><span class="cx">         [% INCLUDE &quot;search/field.html.tmpl&quot; 
</span><span class="cx">                     field = bug_fields.deadline 
</span><span class="lines">@@ -251,16 +162,18 @@
</span><span class="cx"> 
</span><span class="cx">   &lt;div class=&quot;search_field_row&quot;&gt;
</span><span class="cx">     &lt;span class=&quot;field_label&quot;&gt;&lt;label for=&quot;bug_id&quot;&gt;[% terms.Bugs %] numbered&lt;/label&gt;&lt;/span&gt;
</span><del>-    &lt;div id=&quot;bug_id_container&quot; &gt;
</del><ins>+    &lt;div id=&quot;bug_id_container&quot;&gt;
</ins><span class="cx">       &lt;input type=&quot;text&quot; name=&quot;bug_id&quot; id=&quot;bug_id&quot;
</span><span class="cx">            value=&quot;[% default.bug_id.0 FILTER html %]&quot; size=&quot;20&quot;&gt;
</span><span class="cx">            &lt;div class=&quot;field_help&quot;&gt;(comma-separated list)&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><del>-    should be 
-    &lt;select name=&quot;bug_id_type&quot; id=&quot;bug_id_type&quot;&gt;
-      &lt;option value=&quot;anyexact&quot;[% &quot; selected&quot; IF default.bug_id_type.0 == &quot;anyexact&quot; %]&gt;only included in&lt;/option&gt;
-      &lt;option value=&quot;nowords&quot;[% &quot; selected&quot; IF default.bug_id_type.0 == &quot;nowords&quot; %]&gt;excluded from&lt;/option&gt;
-    &lt;/select&gt; the results
</del><ins>+    &lt;span class=&quot;field_label field_label_sup&quot;&gt;
+      should be 
+      &lt;select name=&quot;bug_id_type&quot; id=&quot;bug_id_type&quot;&gt;
+        &lt;option value=&quot;anyexact&quot;[% &quot; selected&quot; IF default.bug_id_type.0 == &quot;anyexact&quot; %]&gt;only included in&lt;/option&gt;
+        &lt;option value=&quot;nowords&quot;[% &quot; selected&quot; IF default.bug_id_type.0 == &quot;nowords&quot; %]&gt;excluded from&lt;/option&gt;
+      &lt;/select&gt; the results
+    &lt;/span&gt;
</ins><span class="cx">   &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">   [% Hook.process('after_freetext_fields') %]
</span><span class="lines">@@ -333,7 +246,8 @@
</span><span class="cx">       &lt;select name=&quot;emailtype[% n %]&quot;&gt;
</span><span class="cx">       [% FOREACH qv = [
</span><span class="cx">         { name =&gt; &quot;substring&quot;, description =&gt; &quot;contains&quot; },
</span><del>-        { name =&gt; &quot;exact&quot;, description =&gt; &quot;is&quot; },
</del><ins>+        { name =&gt; &quot;notsubstring&quot;, description =&gt; &quot;doesn't contain&quot; },
+        { name =&gt; &quot;equals&quot;, description =&gt; &quot;is&quot; },
</ins><span class="cx">         { name =&gt; &quot;notequals&quot;, description =&gt; &quot;is not&quot; },
</span><span class="cx">         { name =&gt; &quot;regexp&quot;, description =&gt; &quot;matches regexp&quot; },
</span><span class="cx">         { name =&gt; &quot;notregexp&quot;, description =&gt; &quot;doesn't match regexp&quot; } ] %]
</span><span class="lines">@@ -403,9 +317,10 @@
</span><span class="cx">           &lt;div id=&quot;con_calendar_chfieldto&quot;&gt;&lt;/div&gt;
</span><span class="cx">     (YYYY-MM-DD or relative dates)
</span><span class="cx">     &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-      createCalendar('chfieldfrom');
-      createCalendar('chfieldto');
-    &lt;/script&gt;
</del><ins>+      &lt;!--
+        [%+ PROCESS &quot;global/calendar.js.tmpl&quot; id = 'chfieldfrom' %]
+        [% PROCESS &quot;global/calendar.js.tmpl&quot; id = 'chfieldto' %]
+      //--&gt;&lt;/script&gt;
</ins><span class="cx">   &lt;/li&gt;    
</span><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchknobhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/knob.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/knob.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/knob.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Tobias Burnus &lt;burnus@net-b.de&gt;
-  #                 Jouni Heikniemi &lt;jouni@heikniemi.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -27,9 +13,6 @@
</span><span class="cx">   #                     edited. This value is just passed through in a
</span><span class="cx">   #                     hidden field.
</span><span class="cx">   #%]
</span><del>-        
-        
-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> 
</span><span class="cx"> [%# This is not necessary for English templates, but useful for localizers. %]
</span><span class="cx"> [% ordersdesc = {
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchadvancedhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-advanced.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-advanced.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-advanced.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,14 +12,10 @@
</span><span class="cx">   # search/boolean-charts.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% USE Bugzilla %]
</span><span class="cx"> [% cgi = Bugzilla.cgi %]
</span><span class="cx"> 
</span><del>-
-[% js_data = BLOCK %]
-var queryform = &quot;queryform&quot;;
</del><ins>+[% javascript = BLOCK %]
</ins><span class="cx"> function remove_token() {
</span><span class="cx">   if (queryform.token) {
</span><span class="cx">     var asDefault = document.getElementById('remasdefault');
</span><span class="lines">@@ -42,15 +26,11 @@
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = &quot;Search for $terms.bugs&quot;
</span><del>-  onload = &quot;doOnSelectProduct(0);&quot;
-  javascript = js_data
</del><span class="cx">   yui = [ 'autocomplete', 'calendar' ]
</span><del>-  javascript_urls = [ &quot;js/productform.js&quot;, &quot;js/util.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot;]
-  style_urls = [ &quot;skins/standard/search_form.css&quot; ]
-  doc_section = &quot;query.html&quot;
-  style = &quot;dl.bug_changes dt {
-             margin-top: 15px;
-           }&quot;
</del><ins>+  javascript = javascript
+  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot;]
+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/finding.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% WRAPPER search/tabs.html.tmpl %]
</span><span class="lines">@@ -70,7 +50,6 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchcreateserieshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-create-series.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-create-series.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-create-series.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,8 +12,6 @@
</span><span class="cx">   # search/boolean-charts.html.tmpl.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% js_data = BLOCK %]
</span><span class="cx">     var queryform = &quot;chartform&quot;;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -35,9 +21,9 @@
</span><span class="cx">   onload = &quot;doOnSelectProduct(0);&quot;
</span><span class="cx">   yui = [ 'autocomplete', 'calendar' ]
</span><span class="cx">   javascript = js_data 
</span><del>-  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/productform.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
-  style_urls = [ &quot;skins/standard/search_form.css&quot; ]
-  doc_section = &quot;reporting.html#charts-new-series&quot;
</del><ins>+  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/reports-and-charts.html#creating-charts&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;chart.cgi&quot; name=&quot;chartform&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchpluginxmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-plugin.xml.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-plugin.xml.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-plugin.xml.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,19 +1,10 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
-  #
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><span class="cx"> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
</span><span class="cx"> &lt;OpenSearchDescription xmlns=&quot;http://a9.com/-/spec/opensearch/1.1/&quot;&gt;
</span><span class="cx"> &lt;ShortName&gt;[% terms.Bugzilla %]&lt;/ShortName&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreportgraphhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-graph.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-graph.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-graph.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +11,6 @@
</span><span class="cx">   # the interfaces of the templates it contains.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% js_data = BLOCK %]
</span><span class="cx"> var queryform = &quot;reportform&quot;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -34,9 +20,9 @@
</span><span class="cx">   onload = &quot;doOnSelectProduct(0); chartTypeChanged()&quot;
</span><span class="cx">   yui = [ 'autocomplete', 'calendar' ]
</span><span class="cx">   javascript = js_data
</span><del>-  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/productform.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
-  style_urls = [ &quot;skins/standard/search_form.css&quot; ]
-  doc_section = &quot;reporting.html#reports&quot;
</del><ins>+  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/reports-and-charts.html#reports&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;search/search-report-select.html.tmpl&quot; %]
</span><span class="lines">@@ -66,72 +52,64 @@
</span><span class="cx"> [% button_name = &quot;Generate Report&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;report.cgi&quot; name=&quot;reportform&quot; id=&quot;reportform&quot;&gt;
</span><ins>+  &lt;table id=&quot;graphical_reports_menu&quot;&gt;
+    &lt;tr&gt;
+      &lt;th id=&quot;reports_menu_vertical_axis&quot;&gt;
+        Vertical Axis:&lt;br&gt;
+        [% PROCESS select name = 'y_axis_field' %]&lt;br&gt;
+        &lt;br&gt;
+        Plot Data Sets:&lt;br&gt;
+        &lt;input type=&quot;radio&quot; id=&quot;cumulate_indiv&quot; name=&quot;cumulate&quot; value=&quot;0&quot;
+        [%+ 'checked=&quot;checked&quot;' IF default.cumulate.0 != &quot;1&quot; %]&gt;
+        &lt;label for=&quot;cumulate_indiv&quot;&gt;Individually&lt;/label&gt;&lt;br&gt;
+        &lt;input type=&quot;radio&quot; id=&quot;cumulate_stacked&quot; name=&quot;cumulate&quot; value=&quot;1&quot;
+        [%+ 'checked=&quot;checked&quot;' IF default.cumulate.0 == &quot;1&quot; %]&gt;
+        &lt;label for=&quot;cumulate_stacked&quot;&gt;Stacked&lt;/label&gt;
+      &lt;/th&gt;
+      &lt;th id=&quot;reports_menu_multiple_tables&quot;&gt;
+        Multiple Images:&lt;br&gt;
+        [% PROCESS select name = 'z_axis_field' %]
+      &lt;/th&gt;
+      &lt;th id=&quot;reports_menu_format&quot;&gt;
+        Format:&lt;br&gt;
+        [% chart_formats = [
+             { name =&gt; &quot;line&quot;, description =&gt; &quot;Line Graph&quot; },
+             { name =&gt; &quot;bar&quot;,  description =&gt; &quot;Bar Chart&quot; },
+             { name =&gt; &quot;pie&quot;,  description =&gt; &quot;Pie Chart&quot; } ] %]
+        [% default.chart_format.0 = default.chart_format.0 || &quot;bar&quot; %]
</ins><span class="cx"> 
</span><del>-&lt;table align=&quot;center&quot;&gt;
-  &lt;tr&gt;
-    &lt;td valign=&quot;middle&quot;&gt;
-      &lt;b&gt;Vertical Axis:&lt;/b&gt;&lt;br&gt;
-      &lt;noscript&gt;&lt;small&gt;(not for pie charts)&lt;/small&gt;&lt;br&gt;&lt;/noscript&gt;
-      [% PROCESS select name = 'y_axis_field' %]&lt;br&gt;
-      &lt;br&gt;
-        &lt;b&gt;Plot Data Sets:&lt;/b&gt;&lt;br&gt;
-        &lt;input type=&quot;radio&quot; name=&quot;cumulate&quot; value=&quot;0&quot;
-        [% &quot; checked&quot; IF default.cumulate.0 != &quot;1&quot; %]&gt;
-        Individually&lt;br&gt;
-        &lt;input type=&quot;radio&quot; name=&quot;cumulate&quot; value=&quot;1&quot;
-        [% &quot; checked&quot; IF default.cumulate.0 == &quot;1&quot; %]&gt;
-        Stacked
-    &lt;/td&gt;
-    &lt;td width=&quot;150&quot; height=&quot;150&quot;&gt;
-      &lt;table border=&quot;1&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
-        &lt;tr&gt;
-          &lt;td align=&quot;center&quot; valign=&quot;middle&quot;&gt;
-            &lt;b&gt;Multiple Images:&lt;/b&gt;&lt;br&gt;
-            [% PROCESS select name = 'z_axis_field' %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      &lt;/table&gt;
-    &lt;/td&gt;
-    &lt;td rowspan=&quot;2&quot;&gt;
-      &lt;b&gt;Format:&lt;/b&gt;&lt;br&gt;
-      [% chart_formats = [
-        { name =&gt; &quot;line&quot;, description =&gt; &quot;Line Graph&quot; },
-        { name =&gt; &quot;bar&quot;,  description =&gt; &quot;Bar Chart&quot; },
-        { name =&gt; &quot;pie&quot;,  description =&gt; &quot;Pie Chart&quot; } ] %]
-      [% default.chart_format.0 = default.chart_format.0 || &quot;bar&quot; %]
</del><ins>+        [% FOREACH chart_format = chart_formats %]
+          &lt;input type=&quot;radio&quot; id=&quot;format_[% chart_format.name FILTER html %]&quot;
+                 name=&quot;format&quot; value=&quot;[% chart_format.name FILTER html %]&quot;
+                 onchange=&quot;chartTypeChanged()&quot;
+                 [%+ 'checked=&quot;checked&quot;' IF default.chart_format.0 == chart_format.name %]&gt;
+          &lt;label for=&quot;format_[% chart_format.name FILTER html %]&quot;&gt;
+            [% chart_format.description FILTER html %]
+          &lt;/label&gt;&lt;br&gt;
+        [% END %]
+      &lt;/th&gt;
+    &lt;/tr&gt;
</ins><span class="cx"> 
</span><del>-      [% FOREACH chart_format = chart_formats %]
-        &lt;input type=&quot;radio&quot; name=&quot;format&quot;
-               value=&quot;[% chart_format.name FILTER html %]&quot;
-               onchange=&quot;chartTypeChanged()&quot;
-          [% &quot; checked&quot; IF default.chart_format.0 == chart_format.name %]&gt;
-          [% chart_format.description FILTER html %]&lt;br&gt;
-      [% END %]
-    &lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+    &lt;tr&gt;
+      &lt;th&gt;&lt;/th&gt;
+      &lt;th id=&quot;reports_menu_horizontal_axis&quot;&gt;
+        Horizontal Axis:&lt;br&gt;
+        [% PROCESS select name = 'x_axis_field' %]&lt;br&gt;
+        &lt;input type=&quot;checkbox&quot; name=&quot;x_labels_vertical&quot; id=&quot;x_labels_vertical&quot;
+               value=&quot;1&quot;
+               [%+ 'checked=&quot;checked&quot;' IF default.x_labels_vertical.0 == &quot;1&quot; %]&gt;
+        &lt;label for=&quot;x_labels_vertical&quot;&gt;Vertical labels&lt;/label&gt;
+      &lt;/th&gt;
+      &lt;th&gt;&lt;/th&gt;
+    &lt;/tr&gt;
+  &lt;/table&gt;
</ins><span class="cx"> 
</span><del>-  &lt;tr&gt;
-    &lt;td&gt;
-    &lt;/td&gt;
-    &lt;td align=&quot;left&quot;&gt;
-      &lt;b&gt;Horizontal Axis:&lt;/b&gt;
-      [% PROCESS select name = 'x_axis_field' %]&lt;br&gt;
-      &lt;label for=&quot;x_labels_vertical&quot;&gt;&lt;b&gt;Vertical labels:&lt;/b&gt;&lt;/label&gt;
-      &lt;input type=&quot;checkbox&quot; name=&quot;x_labels_vertical&quot; id=&quot;x_labels_vertical&quot;
-             value=&quot;1&quot;
-         [% &quot; checked&quot; IF default.x_labels_vertical.0 == &quot;1&quot; %]&gt;
-     &lt;/td&gt;
-    &lt;td&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+  &lt;hr&gt;
</ins><span class="cx"> 
</span><del>-&lt;hr&gt;
</del><ins>+  [% PROCESS search/form.html.tmpl %]
</ins><span class="cx"> 
</span><del>-[% PROCESS search/form.html.tmpl %]
</del><ins>+  [% PROCESS &quot;search/boolean-charts.html.tmpl&quot; %]
</ins><span class="cx"> 
</span><del>-[% PROCESS &quot;search/boolean-charts.html.tmpl&quot; %]
-
</del><span class="cx">   &lt;div id=&quot;knob&quot;&gt;
</span><span class="cx">     &lt;input type=&quot;submit&quot; id=&quot;[% button_name FILTER css_class_quote %]&quot;
</span><span class="cx">            value=&quot;[% button_name FILTER html %]&quot;&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreportselecthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-select.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-select.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-select.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +11,6 @@
</span><span class="cx">   # default.$name.0: string. The default value for the block, if any.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
-
</del><span class="cx"> [% BLOCK select %]
</span><span class="cx">   [% Hook.process('rep_fields', 'search/search-report-select.html.tmpl') %]
</span><span class="cx"> 
</span><span class="lines">@@ -31,7 +17,7 @@
</span><span class="cx">   &lt;select name=&quot;[% name FILTER html %]&quot;&gt;
</span><span class="cx">     &lt;option value=&quot;&quot;&gt;&amp;lt;none&amp;gt;&lt;/option&gt;
</span><span class="cx">     
</span><del>-    [% FOREACH field = report_columns.keys.sort %]
</del><ins>+    [% FOREACH field = report_columns.keys.sort_by_field_name(field_descs) %]
</ins><span class="cx">       [% NEXT IF field == &quot;classification&quot; AND !Param('useclassification') %]
</span><span class="cx">       [% NEXT IF field == &quot;target_milestone&quot; AND !Param('usetargetmilestone') %]
</span><span class="cx">       [% NEXT IF field == &quot;qa_contact&quot; AND !Param('useqacontact') %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchreporttablehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-table.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-table.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-report-table.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,8 +11,6 @@
</span><span class="cx">   # the interfaces of the templates it contains.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% js_data = BLOCK %]
</span><span class="cx"> var queryform = &quot;reportform&quot;
</span><span class="cx"> [% END %]
</span><span class="lines">@@ -34,9 +20,9 @@
</span><span class="cx">   onload = &quot;doOnSelectProduct(0)&quot;
</span><span class="cx">   yui = [ 'autocomplete', 'calendar' ]
</span><span class="cx">   javascript = js_data
</span><del>-  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/productform.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
-  style_urls = [ &quot;skins/standard/search_form.css&quot; ]
-  doc_section = &quot;reporting.html#reports&quot;
</del><ins>+  javascript_urls = [ &quot;js/util.js&quot;, &quot;js/TUI.js&quot;, &quot;js/field.js&quot; ]
+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/reports-and-charts.html#reports&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;search/search-report-select.html.tmpl&quot; %]
</span><span class="lines">@@ -49,37 +35,29 @@
</span><span class="cx"> [% button_name = &quot;Generate Report&quot; %]
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;report.cgi&quot; name=&quot;reportform&quot; id=&quot;reportform&quot;&gt;
</span><ins>+  &lt;table id=&quot;tabular_reports_menu&quot;&gt;
+    &lt;tr&gt;
+      &lt;th&gt;&lt;/th&gt;
+      &lt;th id=&quot;reports_menu_horizontal_axis&quot;&gt;
+        Horizontal Axis:&lt;br&gt;
+        [% PROCESS select name = 'x_axis_field' %]
+      &lt;/th&gt;
+    &lt;/tr&gt;
</ins><span class="cx"> 
</span><del>-&lt;table align=&quot;center&quot;&gt;
-  &lt;tr&gt;
-    &lt;td&gt;
-    &lt;/td&gt;
-    &lt;td align=&quot;center&quot;&gt;
-      &lt;b&gt;Horizontal Axis:&lt;/b&gt;
-      [% PROCESS select name = 'x_axis_field' %]
-    &lt;/td&gt;
-  &lt;/tr&gt;
</del><ins>+    &lt;tr&gt;
+      &lt;th id=&quot;reports_menu_vertical_axis&quot;&gt;
+        Vertical Axis:&lt;br&gt;
+        [% PROCESS select name = 'y_axis_field' %]
+      &lt;/th&gt;
+      &lt;th id=&quot;reports_menu_multiple_tables&quot;&gt;
+        Multiple Tables:&lt;br&gt;
+        [% PROCESS select name = 'z_axis_field' %]
+      &lt;/th&gt;
+    &lt;/tr&gt;
+  &lt;/table&gt;
</ins><span class="cx"> 
</span><del>-  &lt;tr&gt;
-    &lt;td valign=&quot;middle&quot; align=&quot;center&quot;&gt;
-      &lt;b&gt;Vertical Axis:&lt;/b&gt;&lt;br&gt;
-      [% PROCESS select name = 'y_axis_field' %]
-    &lt;/td&gt;
-    &lt;td width=&quot;150&quot; height=&quot;150&quot;&gt;
-      &lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;
-        &lt;tr&gt;
-          &lt;td align=&quot;center&quot; valign=&quot;middle&quot; height=&quot;150&quot;&gt;
-            &lt;b&gt;Multiple Tables:&lt;/b&gt;&lt;br&gt;
-            [% PROCESS select name = 'z_axis_field' %]
-          &lt;/td&gt;
-        &lt;/tr&gt;
-      &lt;/table&gt;
-    &lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
</del><ins>+  &lt;hr&gt;
</ins><span class="cx"> 
</span><del>-&lt;hr&gt;
-
</del><span class="cx">   [% PROCESS search/form.html.tmpl %]
</span><span class="cx"> 
</span><span class="cx">   [% PROCESS &quot;search/boolean-charts.html.tmpl&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchsearchspecifichtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/search-specific.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/search-specific.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/search-specific.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,15 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl 
</span><span class="cx">   title = &quot;Simple Search&quot;
</span><del>-  style_urls = [ &quot;skins/standard/search_form.css&quot; ]
</del><ins>+  style_urls = ['skins/standard/buglist.css']
+  doc_section = &quot;using/finding.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> [% WRAPPER search/tabs.html.tmpl %]
</span><span class="lines">@@ -29,7 +16,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx"> Find a specific [% terms.bug %] by entering words that describe it.  
</span><del>-[% terms.Bugzilla %] will search [% terms.bug %] descriptions and comments
</del><ins>+Bugzilla will search [% terms.bug %] descriptions and comments
</ins><span class="cx"> for those words and return a list of matching [% terms.bugs %] sorted
</span><span class="cx"> by relevance.
</span><span class="cx"> &lt;/p&gt;
</span><span class="lines">@@ -41,9 +28,16 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form name=&quot;queryform&quot; method=&quot;get&quot; action=&quot;buglist.cgi&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;query_format&quot; value=&quot;specific&quot;&gt;
</span><del>-&lt;input type=&quot;hidden&quot; name=&quot;order&quot; value=&quot;relevance desc&quot;&gt;
</del><ins>+&lt;input type=&quot;hidden&quot; name=&quot;order&quot; value=&quot;Importance&quot;&gt;
+&lt;input type=&quot;hidden&quot; id=&quot;no_redirect&quot; name=&quot;no_redirect&quot; value=&quot;0&quot;&gt;
+&lt;script type=&quot;text/javascript&quot;&gt;
+  if (history &amp;&amp; history.replaceState) {
+    var no_redirect = document.getElementById(&quot;no_redirect&quot;);
+    no_redirect.value = 1;
+  }
+&lt;/script&gt;
</ins><span class="cx"> 
</span><del>-&lt;table summary=&quot;Search fields&quot; class=&quot;bz_simple_search_form&quot;&gt;
</del><ins>+&lt;table class=&quot;bz_simple_search_form&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;th&gt;
</span><span class="cx">       &lt;label for=&quot;bug_status&quot;&gt;[% field_descs.bug_status FILTER html %]:&lt;/label&gt;
</span><span class="lines">@@ -67,30 +61,11 @@
</span><span class="cx">       &lt;label for=&quot;product&quot;&gt;[% field_descs.product FILTER html %]:&lt;/label&gt;
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><del>-      &lt;select name=&quot;product&quot; id=&quot;product&quot;&gt;
-        &lt;option value=&quot;&quot;&gt;All&lt;/option&gt;
-        [% IF Param('useclassification') %]
-          [% FOREACH c = classification %]
-            &lt;optgroup label=&quot;[% c.name FILTER html %]&quot;&gt;
-            [% FOREACH p = user.get_selectable_products(c.id) %]
-              [% IF p.components.size %]
-                &lt;option value=&quot;[% p.name FILTER html %]&quot;
-                  [% &quot; selected&quot; IF default.product.contains(p.name) %]&gt;
-                  [% p.name FILTER html %]
-                &lt;/option&gt;
-              [% END %]
-            [% END %]
-            &lt;/optgroup&gt;
-          [% END %]
-        [% ELSE %]
-          [% FOREACH p = product %]
-            &lt;option value=&quot;[% p.name FILTER html %]&quot;
-              [% &quot; selected&quot; IF default.product.contains(p.name) %]&gt;
-              [% p.name FILTER html %]
-            &lt;/option&gt;
-          [% END %]
-        [% END %]
-      &lt;/select&gt;
</del><ins>+      [% INCLUDE &quot;global/product-select.html.tmpl&quot;
+         id   =&gt; &quot;product&quot;
+         name =&gt; &quot;product&quot;
+         add  =&gt; &quot;All&quot;
+      %]
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><span class="lines">@@ -98,28 +73,14 @@
</span><span class="cx">       &lt;label for=&quot;content&quot;&gt;Words:&lt;/label&gt;
</span><span class="cx">     &lt;/th&gt;
</span><span class="cx">     &lt;td&gt;
</span><del>-      &lt;input name=&quot;content&quot; size=&quot;40&quot; id=&quot;content&quot;
-             value=&quot;[% default.content.0 FILTER html %]&quot;&gt;
-      &lt;script type=&quot;text/javascript&quot;&gt; &lt;!--
-          document.forms['queryform'].content.focus(); 
-      // --&gt;
-      &lt;/script&gt;
</del><ins>+      &lt;input name=&quot;content&quot; size=&quot;40&quot; id=&quot;content&quot; autofocus
+             value=&quot;[% default.content.0 FILTER html %]&quot;
+             [%- &quot; required&quot; UNLESS Param('search_allow_no_criteria') %]&gt;
</ins><span class="cx">     &lt;/td&gt;
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx">   &lt;tr&gt;
</span><span class="cx">     &lt;td&gt;&lt;/td&gt;
</span><del>-    &lt;td&gt;
-    
-      [% IF Param('search_allow_no_criteria') %]
-        &lt;input type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Search&quot;&gt;
-      [% ELSE %]
-        &lt;input type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Search&quot;
-             onclick=&quot;if (this.form.content.value == '')
-                      {alert('The Words field cannot be empty. You have to ' +
-                             'enter at least one word in your search criteria.');
-                       return false;} return true;&quot;&gt;
-      [% END %]
-    &lt;/td&gt;
</del><ins>+    &lt;td&gt;&lt;input type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Search&quot;&gt;&lt;/td&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="lines">@@ -127,4 +88,3 @@
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS global/footer.html.tmpl %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchtabshtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/tabs.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/tabs.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/tabs.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Gervase Markham &lt;gerv@gerv.net&gt;
-  #                 Myk Melez &lt;myk@mozilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -23,11 +10,15 @@
</span><span class="cx">   # This template has no interface.
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><ins>+[% tabs = [ { name =&gt; 'specific', label =&gt; &quot;Simple Search&quot;,
+              link =&gt; &quot;query.cgi?format=specific&quot; },
+            { name =&gt; 'advanced', label =&gt; &quot;Advanced Search&quot;,
+              link =&gt; &quot;query.cgi?format=advanced&quot; } ] %]
+
+[% Hook.process('search_tabs') %]
+
</ins><span class="cx"> [% WRAPPER global/tabs.html.tmpl
</span><del>-     tabs = [ { name =&gt; 'specific', label =&gt; &quot;Simple Search&quot;,
-                link =&gt; &quot;query.cgi?format=specific&quot; },
-              { name =&gt; 'advanced', label =&gt; &quot;Advanced Search&quot;,
-                link =&gt; &quot;query.cgi?format=advanced&quot; } ]
</del><ins>+     tabs = tabs
</ins><span class="cx">      current_tab_name = query_format || format || &quot;advanced&quot;
</span><span class="cx"> %]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsearchtypeselecthtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/search/type-select.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/search/type-select.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/search/type-select.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is the San Jose State
-  # University Foundation. Portions created by the Initial Developer are
-  # Copyright (C) 2008 the Initial Developer. All Rights Reserved.
-  #
-  # Contributor(s): 
-  #   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [% PROCESS &quot;global/field-descs.none.tmpl&quot; %]
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultsetupstringstxtpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/setup/strings.txt.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/setup/strings.txt.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/setup/strings.txt.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,20 +1,9 @@
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Initial Developer of the Original Code is Everything Solved.
-# Portions created by Everything Solved are Copyright (C) 2007
-# Everything Solved. All Rights Reserved.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This file contains a single hash named %strings, which is used by the
</span><span class="cx"> # installation code to display strings before Template-Toolkit can safely
</span><span class="lines">@@ -94,21 +83,25 @@
</span><span class="cx"> END
</span><span class="cx">     feature_auth_ldap         =&gt; 'LDAP Authentication',
</span><span class="cx">     feature_auth_radius       =&gt; 'RADIUS Authentication',
</span><ins>+    feature_documentation     =&gt; 'Documentation',
</ins><span class="cx">     feature_graphical_reports =&gt; 'Graphical Reports',
</span><span class="cx">     feature_html_desc         =&gt; 'More HTML in Product/Group Descriptions',
</span><span class="cx">     feature_inbound_email     =&gt; 'Inbound Email',
</span><span class="cx">     feature_jobqueue          =&gt; 'Mail Queueing',
</span><span class="cx">     feature_jsonrpc           =&gt; 'JSON-RPC Interface',
</span><del>-    feature_jsonrpc_faster    =&gt; 'Make JSON-RPC Faster',
</del><span class="cx">     feature_new_charts        =&gt; 'New Charts',
</span><span class="cx">     feature_old_charts        =&gt; 'Old Charts',
</span><ins>+    feature_memcached         =&gt; 'Memcached Support',
</ins><span class="cx">     feature_mod_perl          =&gt; 'mod_perl',
</span><span class="cx">     feature_moving            =&gt; 'Move Bugs Between Installations',
</span><span class="cx">     feature_patch_viewer      =&gt; 'Patch Viewer',
</span><ins>+    feature_rest              =&gt; 'REST Interface',
</ins><span class="cx">     feature_smtp_auth         =&gt; 'SMTP Authentication',
</span><ins>+    feature_smtp_ssl          =&gt; 'SSL Support for SMTP',
</ins><span class="cx">     feature_updates           =&gt; 'Automatic Update Notifications',
</span><span class="cx">     feature_xmlrpc            =&gt; 'XML-RPC Interface',
</span><span class="cx">     feature_detect_charset    =&gt; 'Automatic charset detection for text attachments',
</span><ins>+    feature_typesniffer       =&gt; 'Sniff MIME type of attachments',
</ins><span class="cx"> 
</span><span class="cx">     file_remove =&gt; 'Removing ##name##...',
</span><span class="cx">     file_rename =&gt; 'Renaming ##from## to ##to##...',
</span><span class="lines">@@ -162,10 +155,6 @@
</span><span class="cx"> 
</span><span class="cx"> If this is set to 0, checksetup.pl will not create .htaccess files.
</span><span class="cx"> END
</span><del>-    localconfig_cvsbin =&gt; &lt;&lt;'END',
-If you want to use the CVS integration of the Patch Viewer, please specify
-the full path to the &quot;cvs&quot; executable here.
-END
</del><span class="cx">     localconfig_db_check =&gt; &lt;&lt;'END',
</span><span class="cx"> Should checksetup.pl try to verify that your database setup is correct?
</span><span class="cx"> With some combinations of database servers/Perl modules/moonphase this
</span><span class="lines">@@ -204,6 +193,22 @@
</span><span class="cx"> want that.
</span><span class="cx"> END
</span><span class="cx">     localconfig_db_user =&gt; &quot;Who we connect to the database as.&quot;,
</span><ins>+    localconfig_db_mysql_ssl_ca_file =&gt; &lt;&lt;'END',
+Path to a PEM file with a list of trusted SSL CA certificates.
+The file must be readable by web server user.
+END
+    localconfig_db_mysql_ssl_ca_path =&gt; &lt;&lt;'END',
+Path to a directory containing trusted SSL CA certificates in PEM format.
+Directory and files inside must be readable by the web server user.
+END
+    localconfig_db_mysql_ssl_client_cert =&gt; &lt;&lt;'END',
+Full path to the client SSL certificate in PEM format we will present to the DB server.
+The file must be readable by web server user.
+END
+    localconfig_db_mysql_ssl_client_key =&gt; &lt;&lt;'END',
+Full path to the private key corresponding to the client SSL certificate.
+The file must not be password-protected and must be readable by web server user.
+END
</ins><span class="cx">     localconfig_diffpath =&gt; &lt;&lt;'END',
</span><span class="cx"> For the &quot;Difference Between Two Patches&quot; feature to work, we need to know
</span><span class="cx"> what directory the &quot;diff&quot; bin is in. (You only need to set this if you
</span><span class="lines">@@ -281,12 +286,15 @@
</span><span class="cx"> ***********************************************************************
</span><span class="cx"> * APACHE MODULES                                                      *
</span><span class="cx"> ***********************************************************************
</span><del>-* Normally, when Bugzilla is upgraded, all Bugzilla users have to     *
-* clear their browser cache or Bugzilla will break. If you enable     *
-* certain modules in your Apache configuration (usually called        *
-* httpd.conf or apache2.conf) then your users will not have to clear  *
-* their caches when you upgrade Bugzilla. The modules you need to     *
-* enable are:                                                         *
</del><ins>+* Some Apache modules allow to extend Bugzilla functionalities.       *
+* These modules can be enabled in the Apache configuration file       *
+* (usually called httpd.conf or apache2.conf).                        *
+* - mod_headers, mod_env and mod_expires permit to automatically      *
+*   refresh the browser cache of your users when upgrading Bugzilla.  *
+* - mod_rewrite permits to write shorter URLs used by the REST API.   *
+* - mod_version permits to write rules in .htaccess specific to       *
+*   Apache 2.2 or 2.4.                                                *
+* The modules you need to enable are:                                 *
</ins><span class="cx"> *                                                                     *
</span><span class="cx"> END
</span><span class="cx">     modules_message_db =&gt; &lt;&lt;EOT,
</span><span class="lines">@@ -351,8 +359,7 @@
</span><span class="cx">          recommend that you stop checksetup.pl NOW and run contrib/recode.pl.
</span><span class="cx"> END
</span><span class="cx">     no_checksetup_from_cgi =&gt; &lt;&lt;END,
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
-          &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx">   &lt;head&gt;
</span><span class="cx">     &lt;title&gt;checksetup.pl cannot run from a web browser&lt;/title&gt;
</span><span class="lines">@@ -363,8 +370,8 @@
</span><span class="cx">     &lt;p&gt;
</span><span class="cx">       You &lt;b&gt;must not&lt;/b&gt; execute this script from your web browser.
</span><span class="cx">       To install or upgrade Bugzilla, run this script from
</span><del>-      the command-line (e.g. &lt;tt&gt;bash&lt;/tt&gt; or &lt;tt&gt;ssh&lt;/tt&gt; on Linux
-      or &lt;tt&gt;cmd.exe&lt;/tt&gt; on Windows), and follow instructions given there.
</del><ins>+      the command-line (e.g. &lt;kbd&gt;bash&lt;/kbd&gt; or &lt;kbd&gt;ssh&lt;/kbd&gt; on Linux
+      or &lt;kbd&gt;cmd.exe&lt;/kbd&gt; on Windows), and follow instructions given there.
</ins><span class="cx">     &lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;p&gt;
</span><span class="lines">@@ -380,7 +387,7 @@
</span><span class="cx"> patches' feature of Bugzilla (which requires the PatchReader Perl module
</span><span class="cx"> as well), you should install patchutils from:
</span><span class="cx"> 
</span><del>-    http://cyberelk.net/tim/patchutils/
</del><ins>+    http://cyberelk.net/tim/software/patchutils/
</ins><span class="cx"> END
</span><span class="cx">     template_precompile   =&gt; &quot;Precompiling templates...&quot;,
</span><span class="cx">     template_removal_failed =&gt; &lt;&lt;END,
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwelcomeadminhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/welcome-admin.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/welcome-admin.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/welcome-admin.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,16 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # Contributor(s): Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -17,14 +10,11 @@
</span><span class="cx">   # none
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
</del><ins>+[% title = BLOCK %]Welcome to Bugzilla[% END %]
</ins><span class="cx"> 
</span><del>-[% title = BLOCK %]Welcome to [% terms.Bugzilla %][% END %]
-
</del><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">    title = title
</span><span class="cx">    header_addl_info = &quot;version $constants.BUGZILLA_VERSION&quot;
</span><del>-   style_urls = [ 'skins/standard/index.css' ]
</del><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;welcome-admin&quot;&gt;
</span><span class="lines">@@ -64,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx">     &lt;li&gt;&lt;a href=&quot;editparams.cgi?section=auth#createemailregexp_desc&quot;&gt;createemailregexp&lt;/a&gt;
</span><span class="cx">     defines which users are allowed to create an account on this installation. If set
</span><del>-    to &quot;.*&quot; (the default), everybody is free to create his own account. If set to
</del><ins>+    to &quot;.*&quot; (the default), everybody is free to create their own account. If set to
</ins><span class="cx">     &quot;@mycompany.com$&quot;, only users having an account @mycompany.com will be allowed to
</span><span class="cx">     create an account. If left blank, users will not be able to create accounts themselves;
</span><span class="cx">     only an administrator will be able to create one for them. If you want a private
</span><span class="lines">@@ -77,7 +67,7 @@
</span><span class="cx">   &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;p&gt;
</span><del>-    After having set up all this, we recommend looking at [% terms.Bugzilla %]'s other
</del><ins>+    After having set up all this, we recommend looking at Bugzilla's other
</ins><span class="cx">     parameters as well at some time so that you understand what they do and whether you
</span><span class="cx">     want to modify their settings for your installation.
</span><span class="cx">   &lt;/p&gt;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwhineheadertxttmpl"></a>
<div class="addfile"><h4>Added: trunk/Websites/bugs.webkit.org/template/en/default/whine/header.txt.tmpl (0 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/whine/header.txt.tmpl                                (rev 0)
+++ trunk/Websites/bugs.webkit.org/template/en/default/whine/header.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # subject: subject line of message
+  # recipient: user object for the intended recipient of the message
+  # from: Bugzilla system email address
+  #%]
+
+From: [% from %]
+To: [% recipient.email %]
+Subject: [[% terms.Bugzilla %]] [% subject %]
+X-Bugzilla-Type: whine
+
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwhinemailhtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,14 +12,13 @@
</span><span class="cx">   # queries: array of hashes containing:
</span><span class="cx">   #     bugs: array containing hashes of fieldnames-&gt;values for each bug
</span><span class="cx">   #     title: the title given in the whine scheduling mechanism
</span><ins>+  #     name: the name of the query
+  #     columnlist: array of fieldnames to display in the mail
</ins><span class="cx">   # author: user object for the person who scheduled this whine
</span><span class="cx">   # recipient: user object for the intended recipient of the message
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-[% PROCESS 'global/field-descs.none.tmpl' %]
-
-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx">   &lt;head&gt;
</span><span class="cx">     &lt;title&gt;
</span><span class="lines">@@ -38,13 +25,13 @@
</span><span class="cx">       [[% terms.Bugzilla %]] [% subject FILTER html %]
</span><span class="cx">     &lt;/title&gt;
</span><span class="cx">   &lt;/head&gt;
</span><del>-  &lt;body bgcolor=&quot;#FFFFFF&quot;&gt;
</del><ins>+  &lt;body&gt;
</ins><span class="cx"> 
</span><span class="cx">     &lt;pre&gt;
</span><span class="cx">       [% body FILTER html %]
</span><span class="cx">     &lt;/pre&gt;
</span><span class="cx"> 
</span><del>-    &lt;p align=&quot;left&quot;&gt;
</del><ins>+    &lt;p&gt;
</ins><span class="cx">       [% IF author.login == recipient.login %]
</span><span class="cx">         &lt;a href=&quot;[%+ urlbase FILTER html %]editwhines.cgi&quot;&gt;Click
</span><span class="cx">             here to edit your whine schedule&lt;/a&gt;
</span><span class="lines">@@ -56,34 +43,34 @@
</span><span class="cx"> [% IF queries.size %]
</span><span class="cx">   [% FOREACH query=queries %]
</span><span class="cx"> 
</span><del>-    &lt;h2&gt;[%+ query.title FILTER html %]&lt;/h2&gt;
</del><ins>+    &lt;h2&gt;[%+ query.title FILTER html %] ([% query.bugs.size %] [%+ terms.bugs %])&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-    &lt;table width=&quot;100%&quot;&gt;
</del><ins>+    &lt;table&gt;
</ins><span class="cx">       &lt;tr&gt;
</span><del>-        &lt;th align=&quot;left&quot;&gt;ID&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Sev&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Pri&lt;/th&gt; 
-        &lt;th align=&quot;left&quot;&gt;Plt&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Assignee&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Status&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Resolution&lt;/th&gt;
-        &lt;th align=&quot;left&quot;&gt;Summary&lt;/th&gt;
</del><ins>+        &lt;th&gt;ID&lt;/th&gt;
+        [% FOREACH col = query.columnlist %]
+          [% NEXT IF col == 'bug_id' %]
+          &lt;th&gt;[% field_descs.$col FILTER html %]&lt;/th&gt;
+        [% END %]
</ins><span class="cx">       &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">       [% FOREACH bug=query.bugs %]
</span><span class="cx">         &lt;tr&gt;
</span><del>-          &lt;td align=&quot;left&quot;&gt;&lt;a href=&quot;[%+ urlbase FILTER html %]show_bug.cgi?id=
</del><ins>+          &lt;td&gt;&lt;a href=&quot;[%+ urlbase FILTER html %]show_bug.cgi?id=
</ins><span class="cx">               [%- bug.bug_id %]&quot;&gt;[% bug.bug_id %]&lt;/a&gt;&lt;/td&gt;
</span><del>-          &lt;td align=&quot;left&quot;&gt;[% display_value(&quot;bug_severity&quot;, bug.bug_severity) FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% display_value(&quot;priority&quot;, bug.priority) FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% display_value(&quot;rep_platform&quot;, bug.rep_platform) FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% bug.assigned_to FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% display_value(&quot;bug_status&quot;, bug.bug_status) FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% display_value(&quot;resolution&quot;, bug.resolution) FILTER html %]&lt;/td&gt;
-          &lt;td align=&quot;left&quot;&gt;[% bug.short_desc FILTER html %]&lt;/td&gt;
</del><ins>+          [% FOREACH col = query.columnlist %]
+            [% NEXT IF col == 'bug_id' %]
+            &lt;td&gt;[% display_value(col, bug.$col) FILTER html %]&lt;/td&gt;
+          [% END %]
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">       [% END %]
</span><span class="cx">     &lt;/table&gt;
</span><ins>+
+    [% IF author.login == recipient.login %]
+      &lt;p&gt;
+        &lt;a href=&quot;[% urlbase FILTER html %]buglist.cgi?cmdtype=runnamed&amp;amp;namedcmd=[% query.name FILTER uri %]&quot;&gt;View as [% terms.bug %] list&lt;/a&gt;
+      &lt;/p&gt;
+    [% END %]
</ins><span class="cx">   [% END %]
</span><span class="cx"> [% ELSE %]
</span><span class="cx"> 
</span><span class="lines">@@ -91,5 +78,3 @@
</span><span class="cx"> [% END %]
</span><span class="cx">   &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span><del>-
-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwhinemailtxttmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/whine/mail.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,9 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -24,13 +12,12 @@
</span><span class="cx">   # queries: array of hashes containing:
</span><span class="cx">   #     bugs: array containing hashes of fieldnames-&gt;values for each bug
</span><span class="cx">   #     title: the title given in the whine scheduling mechanism
</span><ins>+  #     name: the name of the query
+  #     columnlist: array of fieldnames to display in the mail
</ins><span class="cx">   # author: user object for the person who scheduled this whine
</span><span class="cx">   # recipient: user object for the intended recipient of the message
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-[% PROCESS 'global/field-descs.none.tmpl' %]
-
</del><span class="cx"> [% body %]
</span><span class="cx"> 
</span><span class="cx"> [% IF author.login == recipient.login %]
</span><span class="lines">@@ -43,26 +30,32 @@
</span><span class="cx"> [% IF queries.size %]
</span><span class="cx">   [% FOREACH query=queries %]
</span><span class="cx"> 
</span><del>-[%+ query.title +%]
</del><ins>+[%+ query.title +%] ([% query.bugs.size %] [%+ terms.bugs %])
</ins><span class="cx"> [%+ &quot;-&quot; FILTER repeat(query.title.length) %]
</span><span class="cx"> 
</span><span class="cx">   [% FOREACH bug=query.bugs %]
</span><span class="cx">   [% terms.Bug +%] [%+ bug.bug_id %]:
</span><span class="cx">   [%+ urlbase %]show_bug.cgi?id=[% bug.bug_id +%]
</span><del>-  Priority: [%+ display_value(&quot;priority&quot;, bug.priority) -%]
-  Severity: [%+ display_value(&quot;bug_severity&quot;, bug.bug_severity) -%]
-  Platform: [%+ display_value(&quot;rep_platform&quot;, bug.rep_platform) %]
-  Assignee: [%+ bug.assigned_to %]
-    Status: [%+ display_value(&quot;bug_status&quot;, bug.bug_status) %]
-            [%- IF bug.resolution -%] Resolution: [% display_value(&quot;resolution&quot;, bug.resolution) -%]
-            [%- END %]
-   Summary: [% bug.short_desc %]
</del><ins>+  [% largest_title = 0 %]
+  [% FOREACH col = query.columnlist %]
+    [% NEXT IF col == 'bug_id' %]
+    [% IF field_descs.${col}.length &gt; largest_title %]
+      [% largest_title = field_descs.${col}.length %]
+    [% END %]
+  [% END %]
+  [% FOREACH col = query.columnlist %]
+    [% NEXT IF col == 'bug_id' %]
+  [%+ &quot; &quot; FILTER repeat(largest_title - field_descs.${col}.length) %]
+  [% field_descs.$col %]: [% display_value($col, bug.$col) %]
+  [% END %]
</ins><span class="cx"> 
</span><del>-   [% END %]
</del><ins>+  [% END %]
</ins><span class="cx"> 
</span><ins>+  [% IF author.login == recipient.login %]
+View as [% terms.bug %] list: [% urlbase %]buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% query.name FILTER uri %]
</ins><span class="cx">   [% END %]
</span><ins>+  [% END %]
</ins><span class="cx"> [% ELSE %]
</span><span class="cx"> 
</span><span class="cx">   No [% terms.bugs %] were found that matched the search criteria.
</span><span class="cx"> [% END %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwhinemultipartmimetxttmpl"></a>
<div class="delfile"><h4>Deleted: trunk/Websites/bugs.webkit.org/template/en/default/whine/multipart-mime.txt.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/whine/multipart-mime.txt.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/whine/multipart-mime.txt.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,53 +0,0 @@
</span><del>-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
-  #
-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
-  #%]
-
-[%# INTERFACE:
-  # subject: subject line of message
-  # alternatives: array of hashes containing:
-  #     type: MIME type
-  #     content: verbatim content
-  # boundary: a string that has been generated to be a unique boundary
-  # recipient: user object for the intended recipient of the message
-  # from: Bugzilla system email address
-  #%]
-
-[% PROCESS global/variables.none.tmpl %]
-
-From: [% from %]
-To: [% recipient.email %]
-Subject: [[% terms.Bugzilla %]] [% subject %]
-MIME-Version: 1.0
-Content-Type: multipart/alternative; boundary=&quot;[% boundary %]&quot;
-X-Bugzilla-Type: whine
-
-
-This is a MIME multipart message.  It is possible that your mail program
-doesn't quite handle these properly.  Some or all of the information in this
-message may be unreadable.
-
-
-[% FOREACH part=alternatives %]
-
---[% boundary %]
-Content-type: [% part.type +%]
-
-[%+ part.content %]
-[%+ END %]
---[% boundary %]--
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtemplateendefaultwhineschedulehtmltmpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/template/en/default/whine/schedule.html.tmpl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/template/en/default/whine/schedule.html.tmpl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/template/en/default/whine/schedule.html.tmpl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,22 +1,9 @@
</span><del>-[%# -*- mode: html -*- %]
-[%# The contents of this file are subject to the Mozilla Public
-  # License Version 1.1 (the &quot;License&quot;); you may not use this file
-  # except in compliance with the License. You may obtain a copy of
-  # the License at http://www.mozilla.org/MPL/
</del><ins>+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx">   #
</span><del>-  # Software distributed under the License is distributed on an &quot;AS
-  # IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-  # implied. See the License for the specific language governing
-  # rights and limitations under the License.
-  #
-  # The Original Code is the Bugzilla Bug Tracking System.
-  #
-  # The Initial Developer of the Original Code is Netscape Communications
-  # Corporation. Portions created by Netscape are
-  # Copyright (C) 1998 Netscape Communications Corporation. All
-  # Rights Reserved.
-  #
-  # Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
</del><ins>+  # This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+  # defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx">   #%]
</span><span class="cx"> 
</span><span class="cx"> [%# INTERFACE:
</span><span class="lines">@@ -32,17 +19,15 @@
</span><span class="cx">   #         sort:  integer that sets execution order on named queries
</span><span class="cx">   #%]
</span><span class="cx"> 
</span><del>-[% PROCESS global/variables.none.tmpl %]
-
</del><span class="cx"> [% title = &quot;Set up whining&quot; %]
</span><span class="cx"> [% PROCESS global/header.html.tmpl
</span><span class="cx">   title = title
</span><span class="cx">   style_urls = ['skins/standard/admin.css']
</span><del>-  doc_section = &quot;whining.html&quot;
</del><ins>+  doc_section = &quot;using/index.html&quot;
</ins><span class="cx"> %]
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><del>-  &quot;Whining&quot; is when [% terms.Bugzilla %] executes a saved query at a regular interval
</del><ins>+  &quot;Whining&quot; is when Bugzilla executes a saved search at a regular interval
</ins><span class="cx">   and sends the resulting list of [% terms.bugs %] via email.
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -62,9 +47,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;
</span><span class="cx">   Searches come from saved searches, which are created by executing a &lt;a
</span><del>-  href=&quot;query.cgi&quot;&gt;search&lt;/a&gt;, then telling [% terms.Bugzilla %] to remember
-  the search under a particular name.  Add a query by clicking &quot;Add a new
-  query&quot;, and select the desired saved search name under &quot;Search&quot; and add a
</del><ins>+  href=&quot;query.cgi&quot;&gt;search&lt;/a&gt;, then telling Bugzilla to remember
+  the search under a particular name.  Add a search by clicking &quot;Add a 
+  search&quot;, and select the desired saved search name under &quot;Search&quot; and add a
</ins><span class="cx">   title for the [% terms.bug %] table.  The optional number entered under
</span><span class="cx">   &quot;Sort&quot; will determine the execution order (lowest to highest) if multiple
</span><span class="cx">   queries are listed.  If you check &quot;One message per [% terms.bug %],&quot; each [%
</span><span class="lines">@@ -78,29 +63,25 @@
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;editwhines.cgi&quot;&gt;
</span><span class="cx"> [%# This hidden submit button must be here to set default behavior when
</span><span class="cx">     the user presses return on a form input field #%]
</span><del>-&lt;input type=&quot;submit&quot; value=&quot;Update / Commit&quot; name=&quot;commit&quot;
-       style=&quot;display: none;&quot; id=&quot;commit&quot;&gt;
</del><ins>+&lt;input type=&quot;submit&quot; value=&quot;Update / Commit&quot; id=&quot;commit&quot; name=&quot;commit&quot;
+       class=&quot;bz_default_hidden&quot;&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;update&quot; value=&quot;1&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[% token FILTER html %]&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> [% FOREACH event = events %]
</span><span class="cx"> 
</span><del>-&lt;table cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; style=&quot;border: 1px solid;&quot;&gt;
</del><ins>+&lt;table class=&quot;whining_list&quot;&gt;
</ins><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;th align=&quot;left&quot;&gt;
-      Event:
-    &lt;/th&gt;
-    &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt;
</del><ins>+    &lt;th class=&quot;subtitle&quot;&gt;Event:&lt;/th&gt;
+    &lt;th colspan=&quot;2&quot;&gt;
</ins><span class="cx">       &lt;input type=&quot;submit&quot; value=&quot;Remove Event&quot;
</span><span class="cx">              name=&quot;remove_event_[% event.key %]&quot;
</span><span class="cx">              id=&quot;remove_event_[% event.key %]&quot;&gt;
</span><del>-    &lt;/td&gt;
</del><ins>+    &lt;/th&gt;
</ins><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      Email subject line:
-    &lt;/td&gt;
</del><ins>+    &lt;th&gt;Email subject line:&lt;/th&gt;
</ins><span class="cx">     &lt;td colspan=&quot;2&quot;&gt;
</span><span class="cx">       &lt;input type=&quot;text&quot; name=&quot;event_[% event.key %]_subject&quot;
</span><span class="cx">              size=&quot;60&quot; maxlength=&quot;128&quot; value=&quot;
</span><span class="lines">@@ -109,9 +90,7 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      Descriptive text sent within whine message:
-    &lt;/td&gt;
</del><ins>+    &lt;th&gt;Descriptive text sent within whine message:&lt;/th&gt;
</ins><span class="cx">     &lt;td colspan=&quot;2&quot;&gt;
</span><span class="cx">       [% INCLUDE global/textarea.html.tmpl
</span><span class="cx">          name           = &quot;event_${event.key}_body&quot;
</span><span class="lines">@@ -125,9 +104,7 @@
</span><span class="cx">   &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">   &lt;tr&gt;
</span><del>-    &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-      Send a message even if there are no [% terms.bugs %] in the search result:
-    &lt;/td&gt;
</del><ins>+    &lt;th&gt;Send a message even if there are no [% terms.bugs %] in the search result:&lt;/th&gt;
</ins><span class="cx">     &lt;td colspan=&quot;2&quot;&gt;
</span><span class="cx">       &lt;input type=&quot;checkbox&quot; name=&quot;event_[% event.key %]_mailifnobugs&quot;
</span><span class="cx">         [%- IF event.value.mailifnobugs == 1 %] checked [% END %]&gt;
</span><span class="lines">@@ -137,9 +114,7 @@
</span><span class="cx">   [% IF event.value.schedule.size == 0 %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-        Schedule:
-      &lt;/td&gt;
</del><ins>+      &lt;th&gt;Schedule:&lt;/th&gt;
</ins><span class="cx">       &lt;td class=&quot;unset&quot; colspan=&quot;2&quot;&gt;
</span><span class="cx">         Not scheduled to run&lt;br&gt;
</span><span class="cx">         &lt;input type=&quot;submit&quot; value=&quot;Add a new schedule&quot;
</span><span class="lines">@@ -151,28 +126,23 @@
</span><span class="cx">   [% ELSE %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-        Schedule:
-      &lt;/td&gt;
</del><ins>+      &lt;th&gt;Schedule:&lt;/th&gt;
</ins><span class="cx">       &lt;td class=&quot;set&quot; colspan=&quot;2&quot;&gt;
</span><span class="cx"> 
</span><del>-        &lt;table&gt;
</del><ins>+        &lt;table class=&quot;schedule_list&quot;&gt;
</ins><span class="cx">           &lt;tr&gt;
</span><ins>+            &lt;th&gt;Interval&lt;/th&gt;
</ins><span class="cx">             &lt;th&gt;
</span><del>-              Interval
-            &lt;/th&gt;
-            &lt;th&gt;
</del><span class="cx">               [% IF mail_others %]
</span><span class="cx">                 Mail to
</span><span class="cx">               [% END %]
</span><span class="cx">             &lt;/th&gt;
</span><del>-            &lt;th&gt;
-            &lt;/th&gt;
</del><ins>+            &lt;th&gt;&lt;/th&gt;
</ins><span class="cx">           &lt;/tr&gt;
</span><ins>+
</ins><span class="cx">           [% FOREACH schedule = event.value.schedule %]
</span><span class="cx">             &lt;tr&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
-
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 [%# these hidden fields allow us to compare old values instead
</span><span class="cx">                     of reading the database to tell if a field has changed %]
</span><span class="cx"> 
</span><span class="lines">@@ -183,7 +153,7 @@
</span><span class="cx">                 [% PROCESS day_field val=schedule.day %]
</span><span class="cx">                 [% PROCESS time_field val=schedule.time %]
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 [% IF mail_others %]
</span><span class="cx">                   &lt;input type=&quot;hidden&quot; name=&quot;orig_mailto_type_[% schedule.id %]&quot;
</span><span class="cx">                          value=&quot;[% schedule.mailto_type FILTER html %]&quot;&gt;
</span><span class="lines">@@ -201,7 +171,7 @@
</span><span class="cx">                          value=&quot;[% schedule.mailto FILTER html %]&quot; size=&quot;30&quot;&gt;
</span><span class="cx">                 [% END %]
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;submit&quot; value=&quot;Remove&quot;
</span><span class="cx">                        name=&quot;remove_schedule_[% schedule.id %]&quot;
</span><span class="cx">                        id=&quot;remove_schedule_[% schedule.id %]&quot;&gt;
</span><span class="lines">@@ -226,16 +196,14 @@
</span><span class="cx">   [% IF event.value.queries.size == 0 %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-        Searches:
-      &lt;/td&gt;
-      &lt;td align=&quot;left&quot;&gt;
</del><ins>+      &lt;th&gt;Searches:&lt;/th&gt;
+      &lt;td&gt;
</ins><span class="cx">         No searches &lt;br&gt;
</span><del>-        &lt;input type=&quot;submit&quot; value=&quot;Add a new query&quot;
</del><ins>+        &lt;input type=&quot;submit&quot; value=&quot;Add a search&quot;
</ins><span class="cx">                name=&quot;add_query_[% event.key %]&quot;
</span><span class="cx">                id=&quot;add_query_[% event.key %]&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><del>-      &lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;
</del><ins>+      &lt;td class=&quot;right&quot;&gt;
</ins><span class="cx">         &lt;input type=&quot;submit&quot; value=&quot;Update / Commit&quot; name=&quot;commit&quot; id=&quot;update&quot;&gt;
</span><span class="cx">       &lt;/td&gt;
</span><span class="cx">     &lt;/tr&gt;
</span><span class="lines">@@ -243,35 +211,32 @@
</span><span class="cx">   [% ELSE %]
</span><span class="cx"> 
</span><span class="cx">     &lt;tr&gt;
</span><del>-      &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;
-        Searches:
-      &lt;/td&gt;
-      &lt;td align=&quot;left&quot; colspan=&quot;2&quot;&gt;
</del><ins>+      &lt;th&gt;Searches:&lt;/th&gt;
+      &lt;td colspan=&quot;2&quot;&gt;
</ins><span class="cx"> 
</span><del>-        &lt;table&gt;
</del><ins>+        &lt;table class=&quot;search_list&quot;&gt;
</ins><span class="cx">           &lt;tr&gt;
</span><span class="cx">             &lt;th&gt;Sort&lt;/th&gt;
</span><span class="cx">             &lt;th&gt;Search&lt;/th&gt;
</span><span class="cx">             &lt;th&gt;Title&lt;/th&gt;
</span><del>-            &lt;th&gt;&lt;/th&gt;
-            &lt;th&gt;&lt;/th&gt;
</del><ins>+            &lt;th colspan=&quot;2&quot;&gt;&lt;/th&gt;
</ins><span class="cx">           &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">           [% FOREACH query = event.value.queries %]
</span><span class="cx"> 
</span><span class="cx">             &lt;tr&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;query_sort_[% query.id %]&quot;
</span><span class="cx">                        size=&quot;3&quot; value=&quot;[% query.sort %]&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;hidden&quot; value=&quot;[% query.sort %]&quot;
</span><span class="cx">                        name=&quot;orig_query_sort_[% query.id %]&quot;&gt;
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;hidden&quot; value=&quot;[% query.name FILTER html %]&quot;
</span><span class="cx">                        name=&quot;orig_query_name_[% query.id %]&quot;&gt;
</span><span class="cx">                 [% PROCESS query_field thisquery=query.name %]
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;hidden&quot; value=&quot;[% query.title FILTER html %]&quot;
</span><span class="cx">                        name=&quot;orig_query_title_[% query.id %]&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;query_title_[% query.id %]&quot;
</span><span class="lines">@@ -278,7 +243,7 @@
</span><span class="cx">                        size=&quot;50&quot; value=&quot;[% query.title FILTER html %]&quot;
</span><span class="cx">                        maxlength=&quot;64&quot;&gt;
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;left&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;hidden&quot; value=&quot;[% query.onemailperbug FILTER html %]&quot;
</span><span class="cx">                        name=&quot;orig_query_onemailperbug_[% query.id %]&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;checkbox&quot; [% IF query.onemailperbug == 1 %] checked [% END %]
</span><span class="lines">@@ -286,7 +251,7 @@
</span><span class="cx">                        name=&quot;query_onemailperbug_[% query.id %]&quot;&gt;
</span><span class="cx">                 &lt;label for=&quot;query_onemailperbug_[% query.id %]&quot;&gt;One message per [% terms.bug %]&lt;/label&gt;
</span><span class="cx">               &lt;/td&gt;
</span><del>-              &lt;td align=&quot;right&quot;&gt;
</del><ins>+              &lt;td&gt;
</ins><span class="cx">                 &lt;input type=&quot;submit&quot; value=&quot;Remove&quot;
</span><span class="cx">                        name=&quot;remove_query_[% query.id %]&quot;
</span><span class="cx">                        id=&quot;remove_query_[% query.id %]&quot;&gt;
</span><span class="lines">@@ -297,11 +262,11 @@
</span><span class="cx"> 
</span><span class="cx">           &lt;tr&gt;
</span><span class="cx">             &lt;td colspan=&quot;3&quot;&gt;
</span><del>-              &lt;input type=&quot;submit&quot; value=&quot;Add a new query&quot;
</del><ins>+              &lt;input type=&quot;submit&quot; value=&quot;Add a search&quot;
</ins><span class="cx">                      name=&quot;add_query_[% event.key %]&quot;
</span><span class="cx">                      id=&quot;add_query_[% event.key %]&quot;&gt;
</span><span class="cx">             &lt;/td&gt;
</span><del>-            &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt;
</del><ins>+            &lt;td colspan=&quot;2&quot; class=&quot;right&quot;&gt;
</ins><span class="cx">               &lt;input type=&quot;submit&quot; value=&quot;Update / Commit&quot; name=&quot;commit&quot; id=&quot;update&quot;&gt;
</span><span class="cx">             &lt;/td&gt;
</span><span class="cx">           &lt;/tr&gt;
</span><span class="lines">@@ -316,7 +281,7 @@
</span><span class="cx"> 
</span><span class="cx"> [% END %]
</span><span class="cx"> 
</span><del>-&lt;p align=&quot;left&quot;&gt;
</del><ins>+&lt;p&gt;
</ins><span class="cx">   &lt;input type=&quot;submit&quot; value=&quot;Add a new event&quot; name=&quot;add_event&quot; id=&quot;add_event&quot;&gt;
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -337,7 +302,7 @@
</span><span class="cx">     &lt;/select&gt;
</span><span class="cx"> 
</span><span class="cx">   [% ELSE %]
</span><del>-    Please visit the &lt;a href=&quot;query.cgi&quot;&gt;Search&lt;/a&gt; page and save a query
</del><ins>+    Please visit the &lt;a href=&quot;query.cgi&quot;&gt;Search&lt;/a&gt; page and save a search
</ins><span class="cx">   [% END %]
</span><span class="cx"> 
</span><span class="cx"> [%+ END %]
</span><span class="lines">@@ -445,4 +410,3 @@
</span><span class="cx"> &lt;/select&gt;
</span><span class="cx"> 
</span><span class="cx"> [%+ END %]
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtestagentcgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/testagent.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/testagent.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/testagent.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,19 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# Contributor(s): Joel Peshkin &lt;bugreport@peshkin.net&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This script is used by servertest.pl to confirm that cgi scripts
</span><span class="cx"> # are being run instead of shown. This script does not rely on database access
</span><span class="cx"> # or correct params.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><del>-print &quot;content-type:text/plain\n\n&quot;;
-print &quot;OK &quot; . ($::ENV{MOD_PERL} || &quot;mod_cgi&quot;) . &quot;\n&quot;;
</del><ins>+use warnings;
+
+say &quot;content-type:text/plain\n&quot;;
+say &quot;OK &quot; . ($::ENV{MOD_PERL} || &quot;mod_cgi&quot;);
</ins><span class="cx"> exit;
</span><del>-
</del></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtestserverpl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/testserver.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/testserver.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/testserver.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,24 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# Contributor(s): Joel Peshkin &lt;bugreport@peshkin.net&gt;
-#                 Byron Jones &lt;byron@glob.com.au&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # testserver.pl is invoked with the baseurl of the Bugzilla installation
</span><span class="cx"> # as its only argument.  It attempts to troubleshoot as many installation
</span><span class="cx"> # issues as possible.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::Util;
</ins><span class="cx"> 
</span><span class="cx"> use Socket;
</span><span class="cx"> 
</span><span class="lines">@@ -31,10 +27,10 @@
</span><span class="cx"> eval &quot;require LWP; require LWP::UserAgent;&quot;;
</span><span class="cx"> my $lwp = $@ ? 0 : 1;
</span><span class="cx"> 
</span><del>-if ((@ARGV != 1) || ($ARGV[0] !~ /^https?:/))
</del><ins>+if ((@ARGV != 1) || ($ARGV[0] !~ /^https?:/i))
</ins><span class="cx"> {
</span><del>-    print &quot;Usage: $0 &lt;URL to this Bugzilla installation&gt;\n&quot;;
-    print &quot;e.g.:  $0 http://www.mycompany.com/bugzilla\n&quot;;
</del><ins>+    say &quot;Usage: $0 &lt;URL to this Bugzilla installation&gt;&quot;;
+    say &quot;e.g.:  $0 http://www.mycompany.com/bugzilla&quot;;
</ins><span class="cx">     exit(1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -44,9 +40,9 @@
</span><span class="cx"> my $sgid = 0;
</span><span class="cx"> if (!ON_WINDOWS) {
</span><span class="cx">     foreach my $pscmd (@pscmds) {
</span><del>-        open PH, &quot;$pscmd 2&gt;/dev/null |&quot;;
</del><ins>+        open PH, '-|', &quot;$pscmd 2&gt;/dev/null&quot;;
</ins><span class="cx">         while (my $line = &lt;PH&gt;) {
</span><del>-            if ($line =~ /^(?:\S*\/)?(?:httpd|apache)2?\s+(\d+)$/) {
</del><ins>+            if ($line =~ /^(?:\S*\/)?(?:httpd|apache?)2?\s+(\d+)$/) {
</ins><span class="cx">                 $sgid = $1 if $1 &gt; $sgid;
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="lines">@@ -67,26 +63,26 @@
</span><span class="cx"> # Check $webservergroup against the server's GID
</span><span class="cx"> if ($sgid &gt; 0) {
</span><span class="cx">     if ($webservergroup eq &quot;&quot;) {
</span><del>-        print 
</del><ins>+        say 
</ins><span class="cx"> &quot;WARNING \$webservergroup is set to an empty string.
</span><span class="cx"> That is a very insecure practice. Please refer to the
</span><del>-Bugzilla documentation.\n&quot;;
</del><ins>+Bugzilla documentation.&quot;;
</ins><span class="cx">     }
</span><span class="cx">     elsif ($webgroupnum == $sgid || Bugzilla-&gt;localconfig-&gt;{use_suexec}) {
</span><del>-        print &quot;TEST-OK Webserver is running under group id in \$webservergroup.\n&quot;;
</del><ins>+        say &quot;TEST-OK Webserver is running under group id in \$webservergroup.&quot;;
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><del>-        print 
</del><ins>+        say 
</ins><span class="cx"> &quot;TEST-WARNING Webserver is running under group id not matching \$webservergroup.
</span><span class="cx"> This if the tests below fail, this is probably the problem.
</span><span class="cx"> Please refer to the web server configuration section of the Bugzilla guide. 
</span><del>-If you are using virtual hosts or suexec, this warning may not apply.\n&quot;;
</del><ins>+If you are using virtual hosts or suexec, this warning may not apply.&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> elsif (!ON_WINDOWS) {
</span><del>-   print
</del><ins>+   say
</ins><span class="cx"> &quot;TEST-WARNING Failed to find the GID for the 'httpd' process, unable
</span><del>-to validate webservergroup.\n&quot;;
</del><ins>+to validate webservergroup.&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -94,26 +90,26 @@
</span><span class="cx"> $ARGV[0] =~ s/\/$//;
</span><span class="cx"> my $url = $ARGV[0] . &quot;/images/padlock.png&quot;;
</span><span class="cx"> if (fetch($url)) {
</span><del>-    print &quot;TEST-OK Got padlock picture.\n&quot;;
</del><ins>+    say &quot;TEST-OK Got padlock picture.&quot;;
</ins><span class="cx"> } else {
</span><del>-    print 
</del><ins>+    say 
</ins><span class="cx"> &quot;TEST-FAILED Fetch of images/padlock.png failed
</span><span class="cx"> Your web server could not fetch $url.
</span><del>-Check your web server configuration and try again.\n&quot;;
</del><ins>+Check your web server configuration and try again.&quot;;
</ins><span class="cx">     exit(1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Try to execute a cgi script
</span><del>-my $response = fetch($ARGV[0] . &quot;/testagent.cgi&quot;);
</del><ins>+my $response = clean_text(fetch($ARGV[0] . &quot;/testagent.cgi&quot;));
</ins><span class="cx"> if ($response =~ /^OK (.*)$/) {
</span><del>-    print &quot;TEST-OK Webserver is executing CGIs via $1.\n&quot;;
</del><ins>+    say &quot;TEST-OK Webserver is executing CGIs via $1.&quot;;
</ins><span class="cx"> } elsif ($response =~ /^#!/) {
</span><del>-    print 
</del><ins>+    say
</ins><span class="cx"> &quot;TEST-FAILED Webserver is fetching rather than executing CGI files.
</span><del>-Check the AddHandler statement in your httpd.conf file.\n&quot;;
</del><ins>+Check the AddHandler statement in your httpd.conf file.&quot;;
</ins><span class="cx">     exit(1);
</span><span class="cx"> } else {
</span><del>-    print &quot;TEST-FAILED Webserver is not executing CGI files.\n&quot;; 
</del><ins>+    say &quot;TEST-FAILED Webserver is not executing CGI files.&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Make sure that the web server is honoring .htaccess files
</span><span class="lines">@@ -122,13 +118,13 @@
</span><span class="cx"> $url = $ARGV[0] . &quot;/$localconfig&quot;;
</span><span class="cx"> $response = fetch($url);
</span><span class="cx"> if ($response) {
</span><del>-    print 
</del><ins>+    say
</ins><span class="cx"> &quot;TEST-FAILED Webserver is permitting fetch of $url.
</span><span class="cx"> This is a serious security problem.
</span><del>-Check your web server configuration.\n&quot;;
</del><ins>+Check your web server configuration.&quot;;
</ins><span class="cx">     exit(1);
</span><span class="cx"> } else {
</span><del>-    print &quot;TEST-OK Webserver is preventing fetch of $url.\n&quot;;
</del><ins>+    say &quot;TEST-OK Webserver is preventing fetch of $url.&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Test chart generation
</span><span class="lines">@@ -142,8 +138,8 @@
</span><span class="cx">         my $gdlib = `gdlib-config --version 2&gt;&amp;1` || &quot;&quot;;
</span><span class="cx">         $gdlib =~ s/\n$//;
</span><span class="cx">         if (!$gdlib) {
</span><del>-            print &quot;TEST-WARNING Failed to run gdlib-config; can't compare &quot; .
-                  &quot;GD versions.\n&quot;;
</del><ins>+            say &quot;TEST-WARNING Failed to run gdlib-config; can't compare &quot; .
+                  &quot;GD versions.&quot;;
</ins><span class="cx">         }
</span><span class="cx">         else {
</span><span class="cx">             my $gd = $GD::VERSION;
</span><span class="lines">@@ -154,9 +150,9 @@
</span><span class="cx">             $gd =~ s/^([^\.]+)\..*/$1/;
</span><span class="cx">     
</span><span class="cx">             if ($gdlib == $gd) {
</span><del>-                print &quot;TEST-OK $verstring; Major versions match.\n&quot;;
</del><ins>+                say &quot;TEST-OK $verstring; Major versions match.&quot;;
</ins><span class="cx">             } else {
</span><del>-                print &quot;TEST-FAILED $verstring; Major versions do not match.\n&quot;;
</del><ins>+                say &quot;TEST-FAILED $verstring; Major versions do not match.&quot;;
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -177,17 +173,17 @@
</span><span class="cx">             create_file(&quot;$datadir/testgd-local.png&quot;, $image-&gt;png);
</span><span class="cx">             check_image(&quot;$datadir/testgd-local.png&quot;, 'GD');
</span><span class="cx">         } else {
</span><del>-            print &quot;TEST-FAILED GD doesn't support PNG generation.\n&quot;;
</del><ins>+            say &quot;TEST-FAILED GD doesn't support PNG generation.&quot;;
</ins><span class="cx">         }
</span><span class="cx">     };
</span><span class="cx">     if ($@ ne '') {
</span><del>-        print &quot;TEST-FAILED GD returned: $@\n&quot;;
</del><ins>+        say &quot;TEST-FAILED GD returned: $@&quot;;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Test Chart
</span><span class="cx">     eval 'use Chart::Lines';
</span><span class="cx">     if ($@) {
</span><del>-        print &quot;TEST-FAILED Chart::Lines is not installed.\n&quot;;
</del><ins>+        say &quot;TEST-FAILED Chart::Lines is not installed.&quot;;
</ins><span class="cx">     } else {
</span><span class="cx">         eval {
</span><span class="cx">             my $chart = Chart::Lines-&gt;new(400, 400);
</span><span class="lines">@@ -199,16 +195,16 @@
</span><span class="cx">             check_image(&quot;$datadir/testchart-local.png&quot;, &quot;Chart&quot;);
</span><span class="cx">         };
</span><span class="cx">         if ($@ ne '') {
</span><del>-            print &quot;TEST-FAILED Chart returned: $@\n&quot;;
</del><ins>+            say &quot;TEST-FAILED Chart returned: $@&quot;;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     eval 'use Template::Plugin::GD::Image';
</span><span class="cx">     if ($@) {
</span><del>-        print &quot;TEST-FAILED Template::Plugin::GD is not installed.\n&quot;;
</del><ins>+        say &quot;TEST-FAILED Template::Plugin::GD is not installed.&quot;;
</ins><span class="cx">     }
</span><span class="cx">     else {
</span><del>-        print &quot;TEST-OK Template::Plugin::GD is installed.\n&quot;;
</del><ins>+        say &quot;TEST-OK Template::Plugin::GD is installed.&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -262,16 +258,16 @@
</span><span class="cx">     my ($local_file, $library) = @_;
</span><span class="cx">     my $filedata = read_file($local_file);
</span><span class="cx">     if ($filedata =~ /^\x89\x50\x4E\x47\x0D\x0A\x1A\x0A/) {
</span><del>-        print &quot;TEST-OK $library library generated a good PNG image.\n&quot;;
</del><ins>+        say &quot;TEST-OK $library library generated a good PNG image.&quot;;
</ins><span class="cx">         unlink $local_file;
</span><span class="cx">     } else {
</span><del>-        print &quot;TEST-WARNING $library library did not generate a good PNG.\n&quot;;
</del><ins>+        say &quot;TEST-WARNING $library library did not generate a good PNG.&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub create_file {
</span><span class="cx">     my ($filename, $content) = @_;
</span><del>-    open(FH, &quot;&gt;$filename&quot;)
</del><ins>+    open(FH, &quot;&gt;&quot;, $filename)
</ins><span class="cx">         or die &quot;Failed to create $filename: $!\n&quot;;
</span><span class="cx">     binmode FH;
</span><span class="cx">     print FH $content;
</span><span class="lines">@@ -280,7 +276,7 @@
</span><span class="cx"> 
</span><span class="cx"> sub read_file {
</span><span class="cx">     my ($filename) = @_;
</span><del>-    open(FH, $filename)
</del><ins>+    open(FH, '&lt;', $filename)
</ins><span class="cx">         or die &quot;Failed to open $filename: $!\n&quot;;
</span><span class="cx">     binmode FH;
</span><span class="cx">     my $content = &lt;FH&gt;;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgtokencgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/token.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/token.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/token.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,32 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Myk Melez &lt;myk@mozilla.org&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><del>-############################################################################
-# Script Initialization
-############################################################################
-
-# Make it harder for us to do dangerous things in Perl.
</del><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -40,7 +22,6 @@
</span><span class="cx"> use Date::Format;
</span><span class="cx"> use Date::Parse;
</span><span class="cx"> 
</span><del>-my $dbh = Bugzilla-&gt;dbh;
</del><span class="cx"> local our $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> local our $template = Bugzilla-&gt;template;
</span><span class="cx"> local our $vars = {};
</span><span class="lines">@@ -50,64 +31,91 @@
</span><span class="cx"> 
</span><span class="cx"> Bugzilla-&gt;login(LOGIN_OPTIONAL);
</span><span class="cx"> 
</span><del>-################################################################################
-# Data Validation / Security Authorization
-################################################################################
-
</del><span class="cx"> # Throw an error if the form does not contain an &quot;action&quot; field specifying
</span><span class="cx"> # what the user wants to do.
</span><span class="cx"> $action || ThrowUserError('unknown_action');
</span><span class="cx"> 
</span><del>-# If a token was submitted, make sure it is a valid token that exists in the
-# database and is the correct type for the action being taken.
-if ($token) {
-  Bugzilla::Token::CleanTokenTable();
</del><ins>+Bugzilla::Token::CleanTokenTable();
+my ($user_id, $date, $data, $tokentype) = Bugzilla::Token::GetTokenData($token);
</ins><span class="cx"> 
</span><del>-  # It's safe to detaint the token as it's used in a placeholder.
-  trick_taint($token);
</del><ins>+# Requesting a new password is the single action which doesn't require a token.
+# XXX Ideally, these checks should be done inside the subroutines themselves.
+unless ($action eq 'reqpw') {
+    $tokentype || ThrowUserError(&quot;token_does_not_exist&quot;);
</ins><span class="cx"> 
</span><del>-  # Make sure the token exists in the database.
-  my ($db_token, $tokentype) = $dbh-&gt;selectrow_array('SELECT token, tokentype FROM tokens
-                                                       WHERE token = ?', undef, $token);
-  (defined $db_token &amp;&amp; $db_token eq $token)
-    || ThrowUserError(&quot;token_does_not_exist&quot;);
</del><ins>+    # Make sure the token is the correct type for the action being taken.
+    # The { user_error =&gt; 'wrong_token_for_*' } trick is to make 012throwables.t happy.
+    my $error = {};
+    if (grep($action eq $_ , qw(cfmpw cxlpw chgpw)) &amp;&amp; $tokentype ne 'password') {
+        $error = { user_error =&gt; 'wrong_token_for_changing_passwd' };
+    }
+    elsif ($action eq 'cxlem'
+           &amp;&amp; ($tokentype ne 'emailold' &amp;&amp; $tokentype ne 'emailnew'))
+    {
+        $error = { user_error =&gt; 'wrong_token_for_cancelling_email_change' };
+    }
+    elsif (grep($action eq $_ , qw(cfmem chgem)) &amp;&amp; $tokentype ne 'emailnew') {
+        $error = { user_error =&gt; 'wrong_token_for_confirming_email_change' };
+    }
+    elsif ($action =~ /^(request|confirm|cancel)_new_account$/
+           &amp;&amp; $tokentype ne 'account')
+    {
+        $error = { user_error =&gt; 'wrong_token_for_creating_account' };
+    }
</ins><span class="cx"> 
</span><del>-  # Make sure the token is the correct type for the action being taken.
-  if ( grep($action eq $_ , qw(cfmpw cxlpw chgpw)) &amp;&amp; $tokentype ne 'password' ) {
-    Bugzilla::Token::Cancel($token, &quot;wrong_token_for_changing_passwd&quot;);
-    ThrowUserError(&quot;wrong_token_for_changing_passwd&quot;);
-  }
-  if ( ($action eq 'cxlem')
-      &amp;&amp; (($tokentype ne 'emailold') &amp;&amp; ($tokentype ne 'emailnew')) ) {
-    Bugzilla::Token::Cancel($token, &quot;wrong_token_for_cancelling_email_change&quot;);
-    ThrowUserError(&quot;wrong_token_for_cancelling_email_change&quot;);
-  }
-  if ( grep($action eq $_ , qw(cfmem chgem))
-      &amp;&amp; ($tokentype ne 'emailnew') ) {
-    Bugzilla::Token::Cancel($token, &quot;wrong_token_for_confirming_email_change&quot;);
-    ThrowUserError(&quot;wrong_token_for_confirming_email_change&quot;);
-  }
-  if (($action =~ /^(request|confirm|cancel)_new_account$/)
-      &amp;&amp; ($tokentype ne 'account'))
-  {
-      Bugzilla::Token::Cancel($token, 'wrong_token_for_creating_account');
-      ThrowUserError('wrong_token_for_creating_account');
-  }
</del><ins>+    if (my $user_error = $error-&gt;{user_error}) {
+        Bugzilla::Token::Cancel($token, $user_error);
+        ThrowUserError($user_error);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if ($action eq 'reqpw') {
+    requestChangePassword();
+}
+elsif ($action eq 'cfmpw') {
+    confirmChangePassword($token);
+}
+elsif ($action eq 'cxlpw') {
+    cancelChangePassword($token);
+}
+elsif ($action eq 'chgpw') {
+    changePassword($user_id, $token);
+}
+elsif ($action eq 'cfmem') {
+    confirmChangeEmail($token);
+}
+elsif ($action eq 'cxlem') {
+    cancelChangeEmail($user_id, $data, $tokentype, $token);
+}
+elsif ($action eq 'chgem') {
+    changeEmail($user_id, $data, $token);
+}
+elsif ($action eq 'request_new_account') {
+    request_create_account($date, $data, $token);
+}
+elsif ($action eq 'confirm_new_account') {
+    confirm_create_account($data, $token);
+}
+elsif ($action eq 'cancel_new_account') {
+    cancel_create_account($data, $token);
+}
+else {
+    ThrowUserError('unknown_action', {action =&gt; $action});
+}
</ins><span class="cx"> 
</span><ins>+exit;
+
+################################################################################
+# Functions
+################################################################################
+
</ins><span class="cx"> # If the user is requesting a password change, make sure they submitted
</span><span class="cx"> # their login name and it exists in the database, and that the DB module is in
</span><span class="cx"> # the list of allowed verification methods.
</span><del>-my $user_account;
-if ( $action eq 'reqpw' ) {
-    my $login_name = $cgi-&gt;param('loginname')
-                       || ThrowUserError(&quot;login_needed_for_password_change&quot;);
-
</del><ins>+sub requestChangePassword {
</ins><span class="cx">     # check verification methods
</span><del>-    unless (Bugzilla-&gt;user-&gt;authorizer-&gt;can_change_password) {
-        ThrowUserError(&quot;password_change_requests_not_allowed&quot;);
-    }
</del><ins>+    Bugzilla-&gt;user-&gt;authorizer-&gt;can_change_password
+      || ThrowUserError(&quot;password_change_requests_not_allowed&quot;);
</ins><span class="cx"> 
</span><span class="cx">     # Check the hash token to make sure this user actually submitted
</span><span class="cx">     # the forgotten password form.
</span><span class="lines">@@ -114,75 +122,22 @@
</span><span class="cx">     my $token = $cgi-&gt;param('token');
</span><span class="cx">     check_hash_token($token, ['reqpw']);
</span><span class="cx"> 
</span><del>-    validate_email_syntax($login_name)
-        || ThrowUserError('illegal_email_address', {addr =&gt; $login_name});
</del><ins>+    my $login_name = $cgi-&gt;param('loginname')
+      or ThrowUserError(&quot;login_needed_for_password_change&quot;);
</ins><span class="cx"> 
</span><del>-    $user_account = Bugzilla::User-&gt;check($login_name);
</del><ins>+    check_email_syntax($login_name);
+    my $user = new Bugzilla::User({ name =&gt; $login_name });
</ins><span class="cx"> 
</span><span class="cx">     # Make sure the user account is active.
</span><del>-    if (!$user_account-&gt;is_enabled) {
</del><ins>+    if ($user &amp;&amp; !$user-&gt;is_enabled) {
</ins><span class="cx">         ThrowUserError('account_disabled',
</span><span class="cx">                        {disabled_reason =&gt; get_text('account_disabled', {account =&gt; $login_name})});
</span><span class="cx">     }
</span><del>-}
</del><span class="cx"> 
</span><del>-# If the user is changing their password, make sure they submitted a new
-# password and that the new password is valid.
-my $password;
-if ( $action eq 'chgpw' ) {
-    $password = $cgi-&gt;param('password');
-    defined $password
-      &amp;&amp; defined $cgi-&gt;param('matchpassword')
-      || ThrowUserError(&quot;require_new_password&quot;);
</del><ins>+    Bugzilla::Token::IssuePasswordToken($user) if $user;
</ins><span class="cx"> 
</span><del>-    validate_password($password, $cgi-&gt;param('matchpassword'));
-    # Make sure that these never show up in the UI under any circumstances.
-    $cgi-&gt;delete('password', 'matchpassword');
-}
-
-################################################################################
-# Main Body Execution
-################################################################################
-
-# All calls to this script should contain an &quot;action&quot; variable whose value
-# determines what the user wants to do.  The code below checks the value of
-# that variable and runs the appropriate code.
-
-if ($action eq 'reqpw') {
-    requestChangePassword($user_account);
-} elsif ($action eq 'cfmpw') {
-    confirmChangePassword($token);
-} elsif ($action eq 'cxlpw') {
-    cancelChangePassword($token);
-} elsif ($action eq 'chgpw') {
-    changePassword($token, $password);
-} elsif ($action eq 'cfmem') {
-    confirmChangeEmail($token);
-} elsif ($action eq 'cxlem') {
-    cancelChangeEmail($token);
-} elsif ($action eq 'chgem') {
-    changeEmail($token);
-} elsif ($action eq 'request_new_account') {
-    request_create_account($token);
-} elsif ($action eq 'confirm_new_account') {
-    confirm_create_account($token);
-} elsif ($action eq 'cancel_new_account') {
-    cancel_create_account($token);
-} else { 
-    ThrowUserError('unknown_action', {action =&gt; $action});
-}
-
-exit;
-
-################################################################################
-# Functions
-################################################################################
-
-sub requestChangePassword {
-    my ($user) = @_;
-    Bugzilla::Token::IssuePasswordToken($user);
-
</del><span class="cx">     $vars-&gt;{'message'} = &quot;password_change_request&quot;;
</span><ins>+    $vars-&gt;{'login_name'} = $login_name;
</ins><span class="cx"> 
</span><span class="cx">     print $cgi-&gt;header();
</span><span class="cx">     $template-&gt;process(&quot;global/message.html.tmpl&quot;, $vars)
</span><span class="lines">@@ -208,29 +163,29 @@
</span><span class="cx">       || ThrowTemplateError($template-&gt;error());
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# If the user is changing their password, make sure they submitted a new
+# password and that the new password is valid.
</ins><span class="cx"> sub changePassword {
</span><del>-    my ($token, $password) = @_;
</del><ins>+    my ($user_id, $token) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><del>-    # Create a crypted version of the new password
-    my $cryptedpassword = bz_crypt($password);
</del><ins>+    my $password = $cgi-&gt;param('password');
+    (defined $password &amp;&amp; defined $cgi-&gt;param('matchpassword'))
+      || ThrowUserError(&quot;require_new_password&quot;);
</ins><span class="cx"> 
</span><del>-    # Get the user's ID from the tokens table.
-    my ($userid) = $dbh-&gt;selectrow_array('SELECT userid FROM tokens
-                                          WHERE token = ?', undef, $token);
-    
-    # Update the user's password in the profiles table and delete the token
-    # from the tokens table.
-    $dbh-&gt;bz_start_transaction();
-    $dbh-&gt;do(q{UPDATE   profiles
-               SET      cryptpassword = ?
-               WHERE    userid = ?},
-             undef, ($cryptedpassword, $userid) );
-    $dbh-&gt;do('DELETE FROM tokens WHERE token = ?', undef, $token);
-    $dbh-&gt;bz_commit_transaction();
</del><ins>+    validate_password($password, $cgi-&gt;param('matchpassword'));
+    # Make sure that these never show up in the UI under any circumstances.
+    $cgi-&gt;delete('password', 'matchpassword');
</ins><span class="cx"> 
</span><del>-    Bugzilla-&gt;logout_user_by_id($userid);
</del><ins>+    my $user = Bugzilla::User-&gt;check({ id =&gt; $user_id });
+    $user-&gt;set_password($password);
+    $user-&gt;update();
+    delete_token($token);
+    $dbh-&gt;do(q{DELETE FROM tokens WHERE userid = ?
+               AND tokentype = 'password'}, undef, $user_id);
</ins><span class="cx"> 
</span><ins>+    Bugzilla-&gt;logout_user_by_id($user_id);
+
</ins><span class="cx">     $vars-&gt;{'message'} = &quot;password_changed&quot;;
</span><span class="cx"> 
</span><span class="cx">     print $cgi-&gt;header();
</span><span class="lines">@@ -248,19 +203,22 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub changeEmail {
</span><del>-    my $token = shift;
</del><ins>+    my ($userid, $eventdata, $token) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><del>-
-    # Get the user's ID from the tokens table.
-    my ($userid, $eventdata) = $dbh-&gt;selectrow_array(
-                                 q{SELECT userid, eventdata FROM tokens
-                                   WHERE token = ?}, undef, $token);
</del><span class="cx">     my ($old_email, $new_email) = split(/:/,$eventdata);
</span><span class="cx"> 
</span><del>-    # Check the user entered the correct old email address
-    if(lc($cgi-&gt;param('email')) ne lc($old_email)) {
-        ThrowUserError(&quot;email_confirmation_failed&quot;);
</del><ins>+    $dbh-&gt;bz_start_transaction();
+    
+    my $user = Bugzilla::User-&gt;check({ id =&gt; $userid });
+    my $realpassword = $user-&gt;cryptpassword;
+    my $cgipassword  = $cgi-&gt;param('password');
+
+    # Make sure the user who wants to change the email address
+    # is the real account owner.
+    if (bz_crypt($cgipassword, $realpassword) ne $realpassword) {
+        ThrowUserError(&quot;old_password_incorrect&quot;);
</ins><span class="cx">     }
</span><ins>+
</ins><span class="cx">     # The new email address should be available as this was 
</span><span class="cx">     # confirmed initially so cancel token if it is not still available
</span><span class="cx">     if (! is_available_username($new_email,$old_email)) {
</span><span class="lines">@@ -269,21 +227,13 @@
</span><span class="cx">         ThrowUserError(&quot;account_exists&quot;, { email =&gt; $new_email } );
</span><span class="cx">     } 
</span><span class="cx"> 
</span><del>-    # Update the user's login name in the profiles table and delete the token
-    # from the tokens table.
-    $dbh-&gt;bz_start_transaction();
-    $dbh-&gt;do(q{UPDATE   profiles
-               SET      login_name = ?
-               WHERE    userid = ?},
-             undef, ($new_email, $userid));
-    $dbh-&gt;do('DELETE FROM tokens WHERE token = ?', undef, $token);
</del><ins>+    # Update the user's login name in the profiles table.
+    $user-&gt;set_login($new_email);
+    $user-&gt;update({ keep_session =&gt; 1, keep_tokens =&gt; 1 });
+    delete_token($token);
</ins><span class="cx">     $dbh-&gt;do(q{DELETE FROM tokens WHERE userid = ?
</span><span class="cx">                AND tokentype = 'emailnew'}, undef, $userid);
</span><span class="cx"> 
</span><del>-    # The email address has been changed, so we need to rederive the groups
-    my $user = new Bugzilla::User($userid);
-    $user-&gt;derive_regexp_groups;
-
</del><span class="cx">     $dbh-&gt;bz_commit_transaction();
</span><span class="cx"> 
</span><span class="cx">     # Return HTTP response headers.
</span><span class="lines">@@ -290,7 +240,6 @@
</span><span class="cx">     print $cgi-&gt;header();
</span><span class="cx"> 
</span><span class="cx">     # Let the user know their email address has been changed.
</span><del>-
</del><span class="cx">     $vars-&gt;{'message'} = &quot;login_changed&quot;;
</span><span class="cx"> 
</span><span class="cx">     $template-&gt;process(&quot;global/message.html.tmpl&quot;, $vars)
</span><span class="lines">@@ -298,39 +247,22 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub cancelChangeEmail {
</span><del>-    my $token = shift;
</del><ins>+    my ($userid, $eventdata, $tokentype, $token) = @_;
</ins><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx"> 
</span><span class="cx">     $dbh-&gt;bz_start_transaction();
</span><span class="cx"> 
</span><del>-    # Get the user's ID from the tokens table.
-    my ($userid, $tokentype, $eventdata) = $dbh-&gt;selectrow_array(
-                              q{SELECT userid, tokentype, eventdata FROM tokens
-                                WHERE token = ?}, undef, $token);
</del><span class="cx">     my ($old_email, $new_email) = split(/:/,$eventdata);
</span><span class="cx"> 
</span><del>-    if($tokentype eq &quot;emailold&quot;) {
</del><ins>+    if ($tokentype eq &quot;emailold&quot;) {
</ins><span class="cx">         $vars-&gt;{'message'} = &quot;emailold_change_canceled&quot;;
</span><ins>+        my $user = Bugzilla::User-&gt;check({ id =&gt; $userid });
</ins><span class="cx"> 
</span><del>-        my $actualemail = $dbh-&gt;selectrow_array(
-                            q{SELECT login_name FROM profiles
-                              WHERE userid = ?}, undef, $userid);
-        
</del><span class="cx">         # check to see if it has been altered
</span><del>-        if($actualemail ne $old_email) {
-            # XXX - This is NOT safe - if A has change to B, another profile
-            # could have grabbed A's username in the meantime.
-            # The DB constraint will catch this, though
-            $dbh-&gt;do(q{UPDATE   profiles
-                       SET      login_name = ?
-                       WHERE    userid = ?},
-                     undef, ($old_email, $userid));
</del><ins>+        if ($user-&gt;login ne $old_email) {
+            $user-&gt;set_login($old_email);
+            $user-&gt;update({ keep_tokens =&gt; 1 });
</ins><span class="cx"> 
</span><del>-            # email has changed, so rederive groups
-
-            my $user = new Bugzilla::User($userid);
-            $user-&gt;derive_regexp_groups;
-
</del><span class="cx">             $vars-&gt;{'message'} = &quot;email_change_canceled_reinstated&quot;;
</span><span class="cx">         } 
</span><span class="cx">     } 
</span><span class="lines">@@ -356,10 +288,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub request_create_account {
</span><del>-    my $token = shift;
</del><ins>+    my ($date, $login_name, $token) = @_;
</ins><span class="cx"> 
</span><span class="cx">     Bugzilla-&gt;user-&gt;check_account_creation_enabled;
</span><del>-    my (undef, $date, $login_name) = Bugzilla::Token::GetTokenData($token);
</del><ins>+
</ins><span class="cx">     $vars-&gt;{'token'} = $token;
</span><span class="cx">     $vars-&gt;{'email'} = $login_name . Bugzilla-&gt;params-&gt;{'emailsuffix'};
</span><span class="cx">     $vars-&gt;{'expiration_ts'} = ctime(str2time($date) + MAX_TOKEN_AGE * 86400);
</span><span class="lines">@@ -370,10 +302,9 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub confirm_create_account {
</span><del>-    my $token = shift;
</del><ins>+    my ($login_name, $token) = @_;
</ins><span class="cx"> 
</span><span class="cx">     Bugzilla-&gt;user-&gt;check_account_creation_enabled;
</span><del>-    my (undef, undef, $login_name) = Bugzilla::Token::GetTokenData($token);
</del><span class="cx"> 
</span><span class="cx">     my $password = $cgi-&gt;param('passwd1') || '';
</span><span class="cx">     validate_password($password, $cgi-&gt;param('passwd2') || '');
</span><span class="lines">@@ -388,11 +319,11 @@
</span><span class="cx">     # Now delete this token.
</span><span class="cx">     delete_token($token);
</span><span class="cx"> 
</span><del>-    # Let the user know that his user account has been successfully created.
</del><ins>+    # Let the user know that their user account has been successfully created.
</ins><span class="cx">     $vars-&gt;{'message'} = 'account_created';
</span><span class="cx">     $vars-&gt;{'otheruser'} = $otheruser;
</span><span class="cx"> 
</span><del>-    # Log in the new user using credentials he just gave.
</del><ins>+    # Log in the new user using credentials they just gave.
</ins><span class="cx">     $cgi-&gt;param('Bugzilla_login', $otheruser-&gt;login);
</span><span class="cx">     $cgi-&gt;param('Bugzilla_password', $password);
</span><span class="cx">     Bugzilla-&gt;login(LOGIN_OPTIONAL);
</span><span class="lines">@@ -404,10 +335,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub cancel_create_account {
</span><del>-    my $token = shift;
</del><ins>+    my ($login_name, $token) = @_;
</ins><span class="cx"> 
</span><del>-    my (undef, undef, $login_name) = Bugzilla::Token::GetTokenData($token);
-
</del><span class="cx">     $vars-&gt;{'message'} = 'account_creation_canceled';
</span><span class="cx">     $vars-&gt;{'account'} = $login_name;
</span><span class="cx">     Bugzilla::Token::Cancel($token, $vars-&gt;{'message'});
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorguserprefscgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/userprefs.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/userprefs.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/userprefs.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Dan Mosedale &lt;dmose@mozilla.org&gt;
-#                 Alan Raetz &lt;al_raetz@yahoo.com&gt;
-#                 David Miller &lt;justdave@syndicomm.com&gt;
-#                 Christopher Aillon &lt;christopher@aillon.com&gt;
-#                 Gervase Markham &lt;gerv@gerv.net&gt;
-#                 Vlad Dascalu &lt;jocuri@softhome.net&gt;
-#                 Shane H. W. Travis &lt;travis@sedsystems.ca&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -29,10 +15,13 @@
</span><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::BugMail;
</span><span class="cx"> use Bugzilla::Constants;
</span><ins>+use Bugzilla::Mailer;
</ins><span class="cx"> use Bugzilla::Search;
</span><span class="cx"> use Bugzilla::Util;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> use Bugzilla::User;
</span><ins>+use Bugzilla::User::APIKey;
+use Bugzilla::User::Setting qw(clear_settings_cache);
</ins><span class="cx"> use Bugzilla::Token;
</span><span class="cx"> 
</span><span class="cx"> my $template = Bugzilla-&gt;template;
</span><span class="lines">@@ -48,11 +37,11 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><del>-    ($vars-&gt;{'realname'}) = $dbh-&gt;selectrow_array(
-        &quot;SELECT realname FROM profiles WHERE userid = ?&quot;, undef, $user-&gt;id);
</del><ins>+    $vars-&gt;{'realname'} = $user-&gt;name;
</ins><span class="cx"> 
</span><del>-    if(Bugzilla-&gt;params-&gt;{'allowemailchange'} 
-       &amp;&amp; Bugzilla-&gt;user-&gt;authorizer-&gt;can_change_email) {
</del><ins>+    if (Bugzilla-&gt;params-&gt;{'allowemailchange'}
+        &amp;&amp; $user-&gt;authorizer-&gt;can_change_email)
+    {
</ins><span class="cx">        # First delete old tokens.
</span><span class="cx">        Bugzilla::Token::CleanTokenTable();
</span><span class="cx"> 
</span><span class="lines">@@ -79,6 +68,9 @@
</span><span class="cx"> sub SaveAccount {
</span><span class="cx">     my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><ins>+    
+    $dbh-&gt;bz_start_transaction;
+
</ins><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx"> 
</span><span class="cx">     my $oldpassword = $cgi-&gt;param('old_password');
</span><span class="lines">@@ -101,12 +93,7 @@
</span><span class="cx">             validate_password($pwd1, $pwd2);
</span><span class="cx"> 
</span><span class="cx">             if ($oldpassword ne $pwd1) {
</span><del>-                my $cryptedpassword = bz_crypt($pwd1);
-                $dbh-&gt;do(q{UPDATE profiles
-                              SET cryptpassword = ?
-                            WHERE userid = ?},
-                         undef, ($cryptedpassword, $user-&gt;id));
-
</del><ins>+                $user-&gt;set_password($pwd1);
</ins><span class="cx">                 # Invalidate all logins except for the current one
</span><span class="cx">                 Bugzilla-&gt;logout(LOGOUT_KEEP_CURRENT);
</span><span class="cx">             }
</span><span class="lines">@@ -126,21 +113,18 @@
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             # Before changing an email address, confirm one does not exist.
</span><del>-            validate_email_syntax($new_login_name)
-              || ThrowUserError('illegal_email_address', {addr =&gt; $new_login_name});
</del><ins>+            check_email_syntax($new_login_name);
</ins><span class="cx">             is_available_username($new_login_name)
</span><span class="cx">               || ThrowUserError(&quot;account_exists&quot;, {email =&gt; $new_login_name});
</span><span class="cx"> 
</span><del>-            Bugzilla::Token::IssueEmailChangeToken($user, $new_login_name);
-
</del><ins>+            $vars-&gt;{'email_token'} = Bugzilla::Token::IssueEmailChangeToken($new_login_name);
</ins><span class="cx">             $vars-&gt;{'email_changes_saved'} = 1;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    my $realname = trim($cgi-&gt;param('realname'));
-    trick_taint($realname); # Only used in a placeholder
-    $dbh-&gt;do(&quot;UPDATE profiles SET realname = ? WHERE userid = ?&quot;,
-             undef, ($realname, $user-&gt;id));
</del><ins>+    $user-&gt;set_name($cgi-&gt;param('realname'));
+    $user-&gt;update({ keep_session =&gt; 1, keep_tokens =&gt; 1 });
+    $dbh-&gt;bz_commit_transaction;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -150,7 +134,7 @@
</span><span class="cx">     my $settings = $user-&gt;settings;
</span><span class="cx">     $vars-&gt;{'settings'} = $settings;
</span><span class="cx"> 
</span><del>-    my @setting_list = keys %$settings;
</del><ins>+    my @setting_list = sort keys %$settings;
</ins><span class="cx">     $vars-&gt;{'setting_names'} = \@setting_list;
</span><span class="cx"> 
</span><span class="cx">     $vars-&gt;{'has_settings_enabled'} = 0;
</span><span class="lines">@@ -188,6 +172,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     $vars-&gt;{'settings'} = $user-&gt;settings(1);
</span><ins>+    clear_settings_cache($user-&gt;id);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub DoEmail {
</span><span class="lines">@@ -338,6 +323,47 @@
</span><span class="cx"> 
</span><span class="cx">         $dbh-&gt;bz_commit_transaction();
</span><span class="cx">     }
</span><ins>+
+    ###########################################################################
+    # Ignore Bugs
+    ###########################################################################
+    my %ignored_bugs = map { $_-&gt;{'id'} =&gt; 1 } @{$user-&gt;bugs_ignored};
+
+    # Validate the new bugs to ignore by checking that they exist and also
+    # if the user gave an alias
+    my @add_ignored = split(/[\s,]+/, $cgi-&gt;param('add_ignored_bugs'));
+    @add_ignored = map { Bugzilla::Bug-&gt;check($_)-&gt;id } @add_ignored;
+    map { $ignored_bugs{$_} = 1 } @add_ignored;
+
+    # Remove any bug ids the user no longer wants to ignore
+    foreach my $key (grep(/^remove_ignored_bug_/, $cgi-&gt;param)) {
+        my ($bug_id) = $key =~ /(\d+)$/;
+        delete $ignored_bugs{$bug_id};
+    }
+
+    # Update the database with any changes made
+    my ($removed, $added) = diff_arrays([ map { $_-&gt;{'id'} } @{$user-&gt;bugs_ignored} ],
+                                        [ keys %ignored_bugs ]);
+
+    if (scalar @$removed || scalar @$added) {
+        $dbh-&gt;bz_start_transaction();
+
+        if (scalar @$removed) {
+            $dbh-&gt;do('DELETE FROM email_bug_ignore WHERE user_id = ? AND ' . 
+                     $dbh-&gt;sql_in('bug_id', $removed),
+                     undef, $user-&gt;id);
+        }
+        if (scalar @$added) {
+            my $sth = $dbh-&gt;prepare('INSERT INTO email_bug_ignore
+                                     (user_id, bug_id) VALUES (?, ?)');
+            $sth-&gt;execute($user-&gt;id, $_) foreach @$added;
+        }
+
+        # Reset the cache of ignored bugs if the list changed.
+        delete $user-&gt;{bugs_ignored};
+
+        $dbh-&gt;bz_commit_transaction();
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -345,9 +371,9 @@
</span><span class="cx">     my $dbh = Bugzilla-&gt;dbh;
</span><span class="cx">     my $user = Bugzilla-&gt;user;
</span><span class="cx">     my (@has_bits, @set_bits);
</span><del>-    
</del><ins>+
</ins><span class="cx">     my $groups = $dbh-&gt;selectall_arrayref(
</span><del>-               &quot;SELECT DISTINCT name, description FROM groups WHERE id IN (&quot; . 
</del><ins>+               &quot;SELECT DISTINCT name, description FROM groups WHERE id IN (&quot; .
</ins><span class="cx">                $user-&gt;groups_as_string . &quot;) ORDER BY name&quot;);
</span><span class="cx">     foreach my $group (@$groups) {
</span><span class="cx">         my ($nam, $desc) = @$group;
</span><span class="lines">@@ -363,7 +389,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    # If the user has product specific privileges, inform him about that.
</del><ins>+    # If the user has product specific privileges, inform them about that.
</ins><span class="cx">     foreach my $privs (PER_PRODUCT_PRIVILEGES) {
</span><span class="cx">         next if $user-&gt;in_group($privs);
</span><span class="cx">         $vars-&gt;{&quot;local_$privs&quot;} = $user-&gt;get_products_by_permission($privs);
</span><span class="lines">@@ -429,7 +455,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ($group_id) {
</span><del>-            # Don't allow the user to share queries with groups he's not
</del><ins>+            # Don't allow the user to share queries with groups they're not
</ins><span class="cx">             # allowed to.
</span><span class="cx">             next unless grep($_ eq $group_id, @{$user-&gt;queryshare_groups});
</span><span class="cx"> 
</span><span class="lines">@@ -470,15 +496,69 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $user-&gt;flush_queries_cache;
</span><del>-    
</del><ins>+
</ins><span class="cx">     # Update profiles.mybugslink.
</span><span class="cx">     my $showmybugslink = defined($cgi-&gt;param(&quot;showmybugslink&quot;)) ? 1 : 0;
</span><span class="cx">     $dbh-&gt;do(&quot;UPDATE profiles SET mybugslink = ? WHERE userid = ?&quot;,
</span><del>-             undef, ($showmybugslink, $user-&gt;id));    
</del><ins>+             undef, ($showmybugslink, $user-&gt;id));
</ins><span class="cx">     $user-&gt;{'showmybugslink'} = $showmybugslink;
</span><ins>+    Bugzilla-&gt;memcached-&gt;clear({ table =&gt; 'profiles', id =&gt; $user-&gt;id });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+sub DoApiKey {
+    my $user = Bugzilla-&gt;user;
+
+    my $api_keys = Bugzilla::User::APIKey-&gt;match({ user_id =&gt; $user-&gt;id });
+    $vars-&gt;{api_keys} = $api_keys;
+    $vars-&gt;{any_revoked} = grep { $_-&gt;revoked } @$api_keys;
+}
+
+sub SaveApiKey {
+    my $cgi = Bugzilla-&gt;cgi;
+    my $dbh = Bugzilla-&gt;dbh;
+    my $user = Bugzilla-&gt;user;
+
+    # Do it in a transaction.
+    $dbh-&gt;bz_start_transaction;
+
+    # Update any existing keys
+    my $api_keys = Bugzilla::User::APIKey-&gt;match({ user_id =&gt; $user-&gt;id });
+    foreach my $api_key (@$api_keys) {
+        my $description = $cgi-&gt;param('description_' . $api_key-&gt;id);
+        my $revoked = $cgi-&gt;param('revoked_' . $api_key-&gt;id);
+
+        if ($description ne $api_key-&gt;description
+            || $revoked != $api_key-&gt;revoked)
+        {
+            $api_key-&gt;set_all({
+                description =&gt; $description,
+                revoked     =&gt; $revoked,
+            });
+            $api_key-&gt;update();
+        }
+    }
+
+    # Create a new API key if requested.
+    if ($cgi-&gt;param('new_key')) {
+        $vars-&gt;{new_key} = Bugzilla::User::APIKey-&gt;create({
+            user_id     =&gt; $user-&gt;id,
+            description =&gt; scalar $cgi-&gt;param('new_description'),
+        });
+
+        # As a security precaution, we always sent out an e-mail when
+        # an API key is created
+        my $template = Bugzilla-&gt;template_inner($user-&gt;setting('lang'));
+        my $message;
+        $template-&gt;process('email/new-api-key.txt.tmpl', $vars, \$message)
+          || ThrowTemplateError($template-&gt;error());
+
+        MessageToMTA($message);
+    }
+
+    $dbh-&gt;bz_commit_transaction;
+}
+
</ins><span class="cx"> ###############################################################################
</span><span class="cx"> # Live code (not subroutine definitions) starts here
</span><span class="cx"> ###############################################################################
</span><span class="lines">@@ -490,9 +570,9 @@
</span><span class="cx"> $cgi-&gt;delete('GoAheadAndLogIn');
</span><span class="cx"> 
</span><span class="cx"> # First try to get credentials from cookies.
</span><del>-Bugzilla-&gt;login(LOGIN_OPTIONAL);
</del><ins>+my $user = Bugzilla-&gt;login(LOGIN_OPTIONAL);
</ins><span class="cx"> 
</span><del>-if (!Bugzilla-&gt;user-&gt;id) {
</del><ins>+if (!$user-&gt;id) {
</ins><span class="cx">     # Use credentials given in the form if login cookies are not available.
</span><span class="cx">     $cgi-&gt;param('Bugzilla_login', $cgi-&gt;param('old_login'));
</span><span class="cx">     $cgi-&gt;param('Bugzilla_password', $cgi-&gt;param('old_password'));
</span><span class="lines">@@ -548,6 +628,11 @@
</span><span class="cx">         DoSavedSearches();
</span><span class="cx">         last SWITCH;
</span><span class="cx">     };
</span><ins>+    /^apikey$/ &amp;&amp; do {
+        SaveApiKey() if $save_changes;
+        DoApiKey();
+        last SWITCH;
+    };
</ins><span class="cx"> 
</span><span class="cx">     ThrowUserError(&quot;unknown_tab&quot;,
</span><span class="cx">                    { current_tab_name =&gt; $current_tab_name });
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgvotescgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/votes.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/votes.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/votes.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,35 +1,25 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This script remains as a backwards-compatibility URL for before
</span><span class="cx"> # the time that Voting was an extension.
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><ins>+
</ins><span class="cx"> use Bugzilla;
</span><span class="cx"> use Bugzilla::Error;
</span><span class="cx"> 
</span><span class="cx"> my $is_enabled = grep { $_-&gt;NAME eq 'Voting' } @{ Bugzilla-&gt;extensions };
</span><del>-$is_enabled || ThrowCodeError('extension_disabled', { name =&gt; 'Voting' });
</del><ins>+$is_enabled || ThrowUserError('extension_disabled', { name =&gt; 'Voting' });
</ins><span class="cx"> 
</span><span class="cx"> my $cgi = Bugzilla-&gt;cgi;
</span><span class="cx"> my $action = $cgi-&gt;param('action') || 'show_user';
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgwhinepl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/whine.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/whine.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/whine.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,30 +1,18 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Erik Stambaugh &lt;erik@dasbistro.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> ################################################################################
</span><span class="cx"> # Script Initialization
</span><span class="cx"> ################################################################################
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
</ins><span class="cx"> 
</span><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="lines">@@ -352,57 +340,26 @@
</span><span class="cx"> #  - queries        array of hashes containing:
</span><span class="cx"> #          - bugs:  array of hashes mapping fieldnames to values for this bug
</span><span class="cx"> #          - title: text title given to this query in the whine event
</span><ins>+#          - columnlist: array of fieldnames to display in the mail
+#          - name:  text name of this query
</ins><span class="cx"> #  - schedule_id    integer id of the schedule being run
</span><span class="cx"> #  - subject        Subject line for the message
</span><span class="cx"> #  - recipient      user object for the recipient
</span><span class="cx"> #  - author         user object of the person who created the whine event
</span><del>-#
-# In addition, mail adds two more fields to $args:
-#  - alternatives   array of hashes defining mime multipart types and contents
-#  - boundary       a MIME boundary generated using the process id and time
-#
</del><span class="cx"> sub mail {
</span><span class="cx">     my $args = shift;
</span><del>-    my $addressee = $args-&gt;{recipient};
</del><span class="cx">     # Don't send mail to someone whose bugmail notification is disabled.
</span><del>-    return if $addressee-&gt;email_disabled;
</del><ins>+    return if $args-&gt;{recipient}-&gt;email_disabled;
</ins><span class="cx"> 
</span><del>-    my $template = Bugzilla-&gt;template_inner($addressee-&gt;setting('lang'));
-    my $msg = ''; # it's a temporary variable to hold the template output
-    $args-&gt;{'alternatives'} ||= [];
-
-    # put together the different multipart mime segments
-
-    $template-&gt;process(&quot;whine/mail.txt.tmpl&quot;, $args, \$msg)
-        or die($template-&gt;error());
-    push @{$args-&gt;{'alternatives'}},
</del><ins>+    $args-&gt;{to_user} = $args-&gt;{recipient};
+    MessageToMTA(generate_email(
+        $args,
</ins><span class="cx">         {
</span><del>-            'content' =&gt; $msg,
-            'type'    =&gt; 'text/plain',
-        };
-    $msg = '';
-
-    $template-&gt;process(&quot;whine/mail.html.tmpl&quot;, $args, \$msg)
-        or die($template-&gt;error());
-    push @{$args-&gt;{'alternatives'}},
-        {
-            'content' =&gt; $msg,
-            'type'    =&gt; 'text/html',
-        };
-    $msg = '';
-
-    # now produce a ready-to-mail mime-encoded message
-
-    $args-&gt;{'boundary'} = &quot;----------&quot; . $$ . &quot;--&quot; . time() . &quot;-----&quot;;
-
-    $template-&gt;process(&quot;whine/multipart-mime.txt.tmpl&quot;, $args, \$msg)
-        or die($template-&gt;error());
-
-    MessageToMTA($msg);
-
-    delete $args-&gt;{'boundary'};
-    delete $args-&gt;{'alternatives'};
-
</del><ins>+            header =&gt; 'whine/header.txt.tmpl',
+            text   =&gt; 'whine/mail.txt.tmpl',
+            html   =&gt; 'whine/mail.html.tmpl',
+        }
+    ));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # run_queries runs all of the queries associated with a schedule ID, adding
</span><span class="lines">@@ -421,6 +378,7 @@
</span><span class="cx">               'name'          =&gt; $_-&gt;[0],
</span><span class="cx">               'title'         =&gt; $_-&gt;[1],
</span><span class="cx">               'onemailperbug' =&gt; $_-&gt;[2],
</span><ins>+              'columnlist'    =&gt; [],
</ins><span class="cx">               'bugs'          =&gt; [],
</span><span class="cx">             }
</span><span class="cx">         );
</span><span class="lines">@@ -433,27 +391,30 @@
</span><span class="cx">         next unless $savedquery;    # silently ignore missing queries
</span><span class="cx"> 
</span><span class="cx">         # Execute the saved query
</span><del>-        my @searchfields = qw(
-            bug_id
-            bug_severity
-            priority
-            rep_platform
-            assigned_to
-            bug_status
-            resolution
-            short_desc
-        );
</del><ins>+        my @searchfields = ('bug_id', DEFAULT_COLUMN_LIST);
+
</ins><span class="cx">         # A new Bugzilla::CGI object needs to be created to allow
</span><span class="cx">         # Bugzilla::Search to execute a saved query.  It's exceedingly weird,
</span><span class="cx">         # but that's how it works.
</span><span class="cx">         my $searchparams = new Bugzilla::CGI($savedquery);
</span><ins>+
+        # Use the columnlist for the saved query, if it exists, and make
+        # sure bug_id is always in the list.
+        if (my $columnlist = $searchparams-&gt;param('columnlist')) {
+            @searchfields = split(/[\s,]+/, $columnlist);
+            unshift(@searchfields, 'bug_id') unless grep { $_ eq 'bug_id' } @searchfields;
+        }
+        push @{$thisquery-&gt;{'columnlist'}}, @searchfields;
+
+        my @orderstrings = split(/,\s*/, $searchparams-&gt;param('order') || '');
</ins><span class="cx">         my $search = new Bugzilla::Search(
</span><span class="cx">             'fields' =&gt; \@searchfields,
</span><span class="cx">             'params' =&gt; scalar $searchparams-&gt;Vars,
</span><span class="cx">             'user'   =&gt; $args-&gt;{'recipient'}, # the search runs as the recipient
</span><ins>+            'order'  =&gt; \@orderstrings
</ins><span class="cx">         );
</span><span class="cx">         # If a query fails for whatever reason, it shouldn't kill the script.
</span><del>-        my $sqlquery = eval { $search-&gt;sql };
</del><ins>+        my $data = eval { $search-&gt;data };
</ins><span class="cx">         if ($@) {
</span><span class="cx">             print STDERR get_text('whine_query_failed', { query_name =&gt; $thisquery-&gt;{'name'},
</span><span class="cx">                                                           author =&gt; $args-&gt;{'author'},
</span><span class="lines">@@ -461,15 +422,12 @@
</span><span class="cx">             next;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $sth = $dbh-&gt;prepare($sqlquery);
-        $sth-&gt;execute;
-
-        while (my @row = $sth-&gt;fetchrow_array) {
</del><ins>+        foreach my $row (@$data) {
</ins><span class="cx">             my $bug = {};
</span><span class="cx">             for my $field (@searchfields) {
</span><span class="cx">                 my $fieldname = $field;
</span><span class="cx">                 $fieldname =~ s/^bugs\.//;  # No need for bugs.whatever
</span><del>-                $bug-&gt;{$fieldname} = shift @row;
</del><ins>+                $bug-&gt;{$fieldname} = shift @$row;
</ins><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if ($thisquery-&gt;{'onemailperbug'}) {
</span><span class="lines">@@ -477,6 +435,7 @@
</span><span class="cx">                     {
</span><span class="cx">                         'name' =&gt; $thisquery-&gt;{'name'},
</span><span class="cx">                         'title' =&gt; $thisquery-&gt;{'title'},
</span><ins>+                        'columnlist' =&gt; $thisquery-&gt;{'columnlist'},
</ins><span class="cx">                         'bugs' =&gt; [ $bug ],
</span><span class="cx">                     },
</span><span class="cx">                 ];
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgwhineatnewspl"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/whineatnews.pl (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/whineatnews.pl        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/whineatnews.pl        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,26 +1,10 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman &lt;terry@mozilla.org&gt;
-#                 Joseph Heenan &lt;joseph@heenan.me.uk&gt;
-#                 Frédéric Buclin &lt;LpSolit@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> # This is a script suitable for running once a day from a cron job.  It 
</span><span class="lines">@@ -30,7 +14,10 @@
</span><span class="cx"> # param. (We have NEW and REOPENED in there to keep compatibility with old
</span><span class="cx"> # Bugzillas.)
</span><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -94,5 +81,5 @@
</span><span class="cx"> 
</span><span class="cx">     MessageToMTA($msg);
</span><span class="cx"> 
</span><del>-    print &quot;$email      &quot; . join(&quot; &quot;, @{$bugs{$email}}) . &quot;\n&quot;;
</del><ins>+    say &quot;$email      &quot; . join(&quot; &quot;, @{$bugs{$email}});
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxmlrpccgi"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xmlrpc.cgi (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xmlrpc.cgi        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xmlrpc.cgi        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,21 +1,15 @@
</span><del>-#!/usr/bin/env perl -wT
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -T
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# Contributor(s): Marc Schumann &lt;wurblzap@gmail.com&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><ins>+use 5.10.1;
</ins><span class="cx"> use strict;
</span><ins>+use warnings;
+
</ins><span class="cx"> use lib qw(. lib);
</span><span class="cx"> 
</span><span class="cx"> use Bugzilla;
</span><span class="lines">@@ -24,7 +18,7 @@
</span><span class="cx"> use Bugzilla::WebService::Constants;
</span><span class="cx"> BEGIN {
</span><span class="cx">     if (!Bugzilla-&gt;feature('xmlrpc')) {
</span><del>-        ThrowCodeError('feature_disabled', { feature =&gt; 'xmlrpc' });
</del><ins>+        ThrowUserError('feature_disabled', { feature =&gt; 'xmlrpc' });
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> use Bugzilla::WebService::Server::XMLRPC;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxthtaccess"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/.htaccess (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/.htaccess        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/.htaccess        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><span class="cx"> # nothing in this directory is retrievable unless overridden by an .htaccess
</span><span class="cx"> # in a subdirectory
</span><del>-deny from all
</del><ins>+&lt;IfModule mod_version.c&gt;
+  &lt;IfVersion &lt; 2.4&gt;
+    Deny from all
+  &lt;/IfVersion&gt;
+  &lt;IfVersion &gt;= 2.4&gt;
+    Require all denied
+  &lt;/IfVersion&gt;
+&lt;/IfModule&gt;
+&lt;IfModule !mod_version.c&gt;
+  Deny from all
+&lt;/IfModule&gt;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchAndTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/AndTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/AndTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/AndTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This test combines two field/operator combinations using AND in
</span><span class="cx"> # a single boolean chart.
</span><span class="cx"> package Bugzilla::Test::Search::AndTest;
</span><del>-use base qw(Bugzilla::Test::Search::OrTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::OrTest);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Test::Search::Constants;
</span><span class="cx"> use List::MoreUtils qw(all);
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchConstantspm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/Constants.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/Constants.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/Constants.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> # These are constants used by Bugzilla::Test::Search.
</span><span class="lines">@@ -26,7 +12,7 @@
</span><span class="cx"> # More detailed information on each constant is available in the comments
</span><span class="cx"> # in this file.
</span><span class="cx"> package Bugzilla::Test::Search::Constants;
</span><del>-use base qw(Exporter);
</del><ins>+use parent qw(Exporter);
</ins><span class="cx"> use Bugzilla::Constants;
</span><span class="cx"> use Bugzilla::Util qw(generate_random_password);
</span><span class="cx"> 
</span><span class="lines">@@ -252,10 +238,6 @@
</span><span class="cx"> # while the other fails. In this case, we have a special override for
</span><span class="cx"> # &quot;operator-value&quot;, which uniquely identifies tests.
</span><span class="cx"> use constant KNOWN_BROKEN =&gt; {
</span><del>-    &quot;equals-%group.&lt;1-bug_group&gt;%&quot; =&gt; {
-        commenter =&gt; { contains =&gt; [1,2,3,4,5] },
-    },
-
</del><span class="cx">     greaterthan   =&gt; { GREATERTHAN_BROKEN },
</span><span class="cx">     greaterthaneq =&gt; { GREATERTHAN_BROKEN },
</span><span class="cx"> 
</span><span class="lines">@@ -965,6 +947,9 @@
</span><span class="cx">           },
</span><span class="cx">         },
</span><span class="cx">     ],
</span><ins>+    # XXX these need tests developed
+    isempty =&gt; [],
+    isnotempty =&gt; [],
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Fields that do not behave as we expect, for InjectionTest.
</span><span class="lines">@@ -1013,6 +998,8 @@
</span><span class="cx">     changedafter  =&gt; { search =&gt; 1, field_ok =&gt; ['creation_ts'] },
</span><span class="cx">     changedbefore =&gt; { search =&gt; 1, field_ok =&gt; ['creation_ts'] },
</span><span class="cx">     changedby     =&gt; { search =&gt; 1 },
</span><ins>+    isempty       =&gt; { search =&gt; 1 },
+    isnotempty    =&gt; { search =&gt; 1 },
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> # Tests run by Bugzilla::Test::Search::InjectionTest.
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchCustomTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/CustomTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/CustomTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/CustomTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,29 +1,15 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Google, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2011 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module represents a test with custom URL parameters.
</span><span class="cx"> # Tests like this are specified in CUSTOM_SEARCH_TESTS in
</span><span class="cx"> # Bugzilla::Test::Search::Constants.
</span><span class="cx"> package Bugzilla::Test::Search::CustomTest;
</span><del>-use base qw(Bugzilla::Test::Search::FieldTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::FieldTest);
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchFieldTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module represents the tests that get run on a single
</span><span class="cx"> # operator/field combination for Bugzilla::Test::Search.
</span><span class="lines">@@ -562,13 +548,13 @@
</span><span class="cx">     my $sql;
</span><span class="cx">     TODO: {
</span><span class="cx">         local $TODO = $search_broken if $search_broken;
</span><del>-        lives_ok { $sql = $search-&gt;sql } &quot;$name: generate SQL&quot;;
</del><ins>+        lives_ok { $sql = $search-&gt;_sql } &quot;$name: generate SQL&quot;;
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     my $results;
</span><span class="cx">     SKIP: {
</span><span class="cx">         skip &quot;Can't run SQL without any SQL&quot;, 1 if !defined $sql;
</span><del>-        $results = $self-&gt;_test_sql($sql);
</del><ins>+        $results = $self-&gt;_test_sql($search);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $self-&gt;_test_content($results, $sql);
</span><span class="lines">@@ -585,12 +571,11 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> sub _test_sql {
</span><del>-    my ($self, $sql) = @_;
-    my $dbh = Bugzilla-&gt;dbh;
</del><ins>+    my ($self, $search) = @_;
</ins><span class="cx">     my $name = $self-&gt;name;
</span><span class="cx">     my $results;
</span><del>-    lives_ok { $results = $dbh-&gt;selectall_arrayref($sql) } &quot;$name: Run SQL Query&quot;
-        or diag($sql);
</del><ins>+    lives_ok { $results = $search-&gt;data } &quot;$name: Run SQL Query&quot;
+        or diag($search-&gt;_sql);
</ins><span class="cx">     return $results;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchFieldTestNormalpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This is the same as a FieldTest, except that it uses normal URL
</span><span class="cx"> # parameters instead of Boolean Charts.
</span><span class="lines">@@ -24,7 +10,7 @@
</span><span class="cx"> package Bugzilla::Test::Search::FieldTestNormal;
</span><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><del>-use base qw(Bugzilla::Test::Search::FieldTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::FieldTest);
</ins><span class="cx"> 
</span><span class="cx"> use Scalar::Util qw(blessed);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchInjectionTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/InjectionTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/InjectionTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/InjectionTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module represents the SQL Injection tests that get run on a single
</span><span class="cx"> # operator/field combination for Bugzilla::Test::Search.
</span><span class="cx"> package Bugzilla::Test::Search::InjectionTest;
</span><del>-use base qw(Bugzilla::Test::Search::FieldTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::FieldTest);
</ins><span class="cx"> 
</span><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="lines">@@ -88,4 +74,4 @@
</span><span class="cx">     return $self-&gt;SUPER::_test_sql(@_);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-1;
</del><span class="cx">\ No newline at end of file
</span><ins>+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchNotTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/NotTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/NotTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/NotTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module runs tests just like a normal FieldTest, AndTest,
</span><span class="cx"> # or OrTest, but in a NOT chart instead of a normal chart.
</span><span class="lines">@@ -26,7 +12,7 @@
</span><span class="cx"> # it to OrTest and AndTest, but without Moose there isn't much of an
</span><span class="cx"> # easy way to do that.
</span><span class="cx"> package Bugzilla::Test::Search::NotTest;
</span><del>-use base qw(Bugzilla::Test::Search::FieldTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::FieldTest);
</ins><span class="cx"> use strict;
</span><span class="cx"> use warnings;
</span><span class="cx"> use Bugzilla::Test::Search::Constants;
</span><span class="lines">@@ -72,4 +58,4 @@
</span><span class="cx">     return \%params;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-1;
</del><span class="cx">\ No newline at end of file
</span><ins>+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchOperatorTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OperatorTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OperatorTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OperatorTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module represents the tests that get run on a single operator
</span><span class="cx"> # from the TESTS constant in Bugzilla::Search::Test::Constants.
</span><span class="lines">@@ -114,4 +100,4 @@
</span><span class="cx">     $and_test-&gt;run();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-1;
</del><span class="cx">\ No newline at end of file
</span><ins>+1;
</ins></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchOrTestpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OrTest.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OrTest.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search/OrTest.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,28 +1,14 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This test combines two field/operator combinations using OR in
</span><span class="cx"> # a single boolean chart.
</span><span class="cx"> package Bugzilla::Test::Search::OrTest;
</span><del>-use base qw(Bugzilla::Test::Search::FieldTest);
</del><ins>+use parent qw(Bugzilla::Test::Search::FieldTest);
</ins><span class="cx"> 
</span><span class="cx"> use Bugzilla::Test::Search::Constants;
</span><span class="cx"> use List::MoreUtils qw(all any uniq);
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtlibBugzillaTestSearchpm"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search.pm (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search.pm        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/lib/Bugzilla/Test/Search.pm        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,23 +1,9 @@
</span><del>-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # This module tests Bugzilla/Search.pm. It uses various constants
</span><span class="cx"> # that are in Bugzilla::Test::Search::Constants, in xt/lib/.
</span><span class="lines">@@ -887,7 +873,6 @@
</span><span class="cx">     my $params = Bugzilla-&gt;params;
</span><span class="cx">     local $params-&gt;{'useclassification'} = 1;
</span><span class="cx">     local $params-&gt;{'useqacontact'} = 1;
</span><del>-    local $params-&gt;{'usebugaliases'} = 1;
</del><span class="cx">     local $params-&gt;{'usetargetmilestone'} = 1;
</span><span class="cx">     local $params-&gt;{'mail_delivery_method'} = 'None';
</span><span class="cx">     local $params-&gt;{'timetrackinggroup'} = $everybody-&gt;name;
</span></span></pre></div>
<a id="trunkWebsitesbugswebkitorgxtsearcht"></a>
<div class="modfile"><h4>Modified: trunk/Websites/bugs.webkit.org/xt/search.t (214223 => 214224)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/bugs.webkit.org/xt/search.t        2017-03-21 15:52:28 UTC (rev 214223)
+++ trunk/Websites/bugs.webkit.org/xt/search.t        2017-03-21 16:27:49 UTC (rev 214224)
</span><span class="lines">@@ -1,24 +1,10 @@
</span><del>-#!/usr/bin/env perl -w
-# -*- Mode: perl; indent-tabs-mode: nil -*-
</del><ins>+#!/usr/bin/perl -w
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
</ins><span class="cx"> #
</span><del>-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the &quot;License&quot;); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an &quot;AS
-# IS&quot; basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2010 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Max Kanat-Alexander &lt;mkanat@bugzilla.org&gt;
</del><ins>+# This Source Code Form is &quot;Incompatible With Secondary Licenses&quot;, as
+# defined by the Mozilla Public License, v. 2.0.
</ins><span class="cx"> 
</span><span class="cx"> # For a description of this test, see Bugzilla::Test::Search
</span><span class="cx"> # in xt/lib/.
</span></span></pre>
</div>
</div>

</body>
</html>