docs: def setup_profile(self, firebug=True, netexport=True):
          """
          Setup the profile for firefox
          :param firebug: whether add firebug extension
          :param netexport: whether add netexport extension
          :return: a firefox profile object
          """
          profile = webdriver.FirefoxProfile()
          profile.set_preference("app.update.enabled", False)
          if firebug:
              profile.add_extension(os.path.join(self.cur_path, 'extensions/firebug-2.0.8.xpi'))
              profile.set_preference("extensions.firebug.currentVersion", "2.0.8")
              profile.set_preference("extensions.firebug.allPagesActivation", "on")
              profile.set_preference("extensions.firebug.defaultPanelName", "net")
              profile.set_preference("extensions.firebug.net.enableSites", True)
              profile.set_preference("extensions.firebug.delayLoad", False)
              profile.set_preference("extensions.firebug.onByDefault", True)
              profile.set_preference("extensions.firebug.showFirstRunPage", False)
              profile.set_preference("extensions.firebug.net.defaultPersist", True)  # persist all redirection responses
          if netexport:
              har_path = os.path.join(self.cur_path, "har")
              if not os.path.exists(har_path):
                  os.mkdir(har_path)
              profile.add_extension(os.path.join(self.cur_path, 'extensions/netExport-0.9b7.xpi'))
              profile.set_preference("extensions.firebug.DBG_NETEXPORT", True)
              profile.set_preference("extensions.firebug.netexport.alwaysEnableAutoExport", True)
              profile.set_preference("extensions.firebug.netexport.defaultLogDir", har_path)
              profile.set_preference("extensions.firebug.netexport.includeResponseBodies", True)
          return profile