]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1498362 - Shutter the "Powered By Mozilla" form
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 15 Oct 2018 15:20:10 +0000 (11:20 -0400)
committerdklawren <dklawren@users.noreply.github.com>
Mon, 15 Oct 2018 15:20:10 +0000 (11:20 -0400)
* Bug 1498362 - Shutter the "Powered By Mozilla" form

* Fix text - why this is hardcoded

extensions/BMO/Extension.pm
extensions/BMO/template/en/default/bug/create/create-poweredby.html.tmpl [deleted file]
extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl
qa/t/test_bmo_enter_new_bug.t
qa/t/test_bug_edit.t

index 6c4ad2ef274c59624f1b921275a102b9adb988a3..3a7dc6fd9520c29bc81272fed868ab6e193ad43c 100644 (file)
@@ -2737,8 +2737,6 @@ sub app_startup {
       ->to( 'CGI#enter_bug_cgi' => { 'product' => 'Infrastructure & Operations', 'format' => 'itrequest' } );
     $r->any( '/:REWRITE_mozlist' => [ REWRITE_mozlist => qr{form[\.:]mozlist} ] )
       ->to( 'CGI#enter_bug_cgi' => { 'product' => 'mozilla.org', 'format' => 'mozlist' } );
-    $r->any( '/:REWRITE_poweredby' => [ REWRITE_poweredby => qr{form[\.:]poweredby} ] )
-      ->to( 'CGI#enter_bug_cgi' => { 'product' => 'mozilla.org', 'format' => 'poweredby' } );
     $r->any( '/:REWRITE_presentation' => [ REWRITE_presentation => qr{form[\.:]presentation} ] )
       ->to( 'cgi#enter_bug_cgi' => { 'product' => 'mozilla.org', 'format' => 'presentation' } );
     $r->any( '/:REWRITE_trademark' => [ REWRITE_trademark => qr{form[\.:]trademark} ] )
diff --git a/extensions/BMO/template/en/default/bug/create/create-poweredby.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-poweredby.html.tmpl
deleted file mode 100644 (file)
index d6243c7..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-[%# 1.0@bugzilla.org %]
-[%# 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.
-  #
-  # The Initial Developer 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 <gerv@gerv.net>
-  #                 Ville Skytta <ville.skytta@iki.fi>
-  #                 John Hoogstrate <hoogstrate@zeelandnet.nl>
-  #%]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% PROCESS global/header.html.tmpl
-   title = "Powered by Mozilla Logo Requests"
-%]
-
-[% USE Bugzilla %]
-
-<p>If you are interested in using the <a href="https://www.mozilla.org/about/powered-by/">Powered by Mozilla logo</a>,
-please provide some information about your application or product.</p>
-
-<p><strong>Please use this form for Powered by Mozilla logo requests only.</strong></p>
-
-<form method="post" action="post_bug.cgi" id="tmRequestForm">
-
-        <input type="hidden" name="product" value="Marketing">
-        <input type="hidden" name="component" value="Trademark Permissions">
-        <input type="hidden" name="bug_severity" value="enhancement">
-        <input type="hidden" name="rep_platform" value="All">
-        <input type="hidden" name="priority" value="--">
-        <input type="hidden" name="op_sys" value="Other">
-        <input type="hidden" name="version" value="unspecified">
-        <input type="hidden" name="assigned_to" value="nobody@mozilla.org">
-        <input type="hidden" name="cc" value="liz@mozilla.com">
-        <input type="hidden" name="groups" value="marketing-private">
-        <input type="hidden" name="token" value="[% token FILTER html %]">
-
-  <table>
-    <tr>
-      <td align="right"><strong>Application or Product Name:</strong></td>
-      <td colspan="3">
-        <input name="short_desc" size="60" value="Powered by Mozilla request for: [% short_desc FILTER html %]">
-      </td>
-    </tr>
-
-    <tr>
-      <td align="right"><strong>URL&nbsp;(optional):</strong></td>
-      <td colspan="3">
-        <input name="bug_file_loc" size="60"
-               value="[% bug_file_loc FILTER html %]">
-      </td>
-    </tr>
-
-    <tr><td align="right" valign="top"><strong>Comments&nbsp;(optional):</strong></td>
-      <td colspan="3">
-        <textarea name="comment" rows="10" cols="80">
-          [% comment FILTER html %]</textarea>
-        <br>
-      </td>
-    </tr>
-
-  </table>
-
-  <br>
-
-        <input type="submit" id="commit" value="Submit Request">
-</form>
-
-<p>Thanks for contacting us.
-   You will be notified by email of any progress made in resolving your
-   request.
-</p>
-
-[% PROCESS global/footer.html.tmpl %]
index 0d37a1386c93e0f899e6c8e4f55c98d094215ee7..cdc2e73e228b3dbdc8152bcacbd461d4d866ebd2 100644 (file)
@@ -37,10 +37,6 @@ custom_forms = {
       title => "Mozilla Gear Request",
       group => "mozilla-employee-confidential",
     },
-    {
-      link  => "form.poweredby",
-      title => "Powered by Mozilla Logo Requests",
-    },
     {
       link  => "form.mozlist",
       title => "Mozilla Discussion Forum Requests",
@@ -63,10 +59,6 @@ custom_forms = {
       title => "Brand Engagement Initiation Form",
       group => "mozilla-employee-confidential",
     },
-    {
-      link  => "form.poweredby",
-      title => "Powered by Mozilla Logo Requests",
-    },
     {
       link  => "form.comm.newsletter",
       title => "Mozilla Communities Newsletter",
index 5f015ab64072ae394f87b795da2de5e086384a55..021e25f0629a6168fa41de5fd562447811de88dd 100644 (file)
@@ -228,22 +228,6 @@ $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->is_text_present_ok('has been added to the database', 'Bug created');
 my $legal_bug_id = $sel->get_value('//input[@name="id" and @type="hidden"]');
 
-# poweredby
-
-_check_product('Websites', 'other');
-_check_component('Websites', 'www.mozilla.org');
-_check_user('liz@mozilla.com');
-
-$sel->open_ok("/$config->{bugzilla_installation}/enter_bug.cgi?product=Websites&format=poweredby");
-$sel->wait_for_page_to_load_ok(WAIT_TIME);
-$sel->title_is("Powered by Mozilla Logo Requests", "Open custom bug entry form - poweredby");
-$sel->type_ok("short_desc", "Bug created by Selenium", "Enter bug summary");
-$sel->type_ok("comment", "--- Bug created by Selenium ---", "Enter bug description");
-$sel->click_ok("commit", undef, "Submit bug data to post_bug.cgi");
-$sel->wait_for_page_to_load_ok(WAIT_TIME);
-$sel->is_text_present_ok('has been added to the database', 'Bug created');
-my $poweredby_bug_id = $sel->get_value('//input[@name="id" and @type="hidden"]');
-
 set_parameters($sel, { "Bug Fields" => {"useclassification-on" => undef} });
 logout($sel);
 
index 01037aa1e7ef8dd01a4618e50d5e1fcfdc6baafb..45f8225a3ab5a5264a216ee80b4a290566abb476 100644 (file)
@@ -320,7 +320,7 @@ check_page_load($sel, WAIT_TIME, q{http://HOSTNAME:8000/bmo/post_bug.cgi});
 $sel->title_is("Suspicious Action");
 $sel->is_text_present_ok("you have no valid token for the create_bug action");
 $sel->click_ok('//input[@value="Confirm Changes"]');
-check_page_load($sel, WAIT_TIME, q{http://HOSTNAME:8000/bmo/show_bug.cgi?id=15});
+check_page_load($sel, WAIT_TIME, q{http://HOSTNAME:8000/bmo/show_bug.cgi?id=14});
 $sel->is_text_present_ok('has been added to the database', 'Bug created');
 $sel->type_ok("comment", "New comment not allowed");
 $sel->click_ok("commit");