Any person who would have been entitled to oppose the grant of a patent, or is the successor in interest of a person who was so entitled, may, within two years from the date of the patent, in the prescribed manner apply to the comptroller for an order revoking the patent on any one or more of the grounds on which the grant of the patent might have been opposed.
Provided that, when an action for infringement or proceedings for the revocation of the patent are pending in any court, an application under this section shall not be made except with the leave of the court.
The comptroller shall give notice of the application to the patentee, and after hearing the parties, if desirous of being heard, may make an order revoking the patent or requiring the specification relating thereto to be amended by disclaimer, correction, or explanation, or dismissing the application ; but the comptroller shall not make an order revoking the patent unless the circumstances are such as would have justified him in refusing to grant the patent, had the proceedings been proceedings in an opposition to the grant of a patent.
A patentee may at any time by giving notice in the prescribed manner to the comptroller offer to surrender his patent, and the comptroller may, -if after giving notice of the offer and hearing all parties who desire to be heard he thinks fit, accept the offer, and thereupon make an order for the revocation of the patent.
Any decision of the comptroller under this section shall be subject to appeal to the court.