tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.js (2839B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 const { createEnum } = require("resource://devtools/client/shared/enum.js");
      8 
      9 createEnum(
     10  [
     11    // Append node and their children on DOM mutation
     12    "COMPATIBILITY_APPEND_NODE_START",
     13    "COMPATIBILITY_APPEND_NODE_SUCCESS",
     14    "COMPATIBILITY_APPEND_NODE_FAILURE",
     15    "COMPATIBILITY_APPEND_NODE_COMPLETE",
     16 
     17    // Remove references to node that is removed
     18    // programmatically whose fronts are destroyed.
     19    "COMPATIBILITY_CLEAR_DESTROYED_NODES",
     20 
     21    // Init user settings.
     22    "COMPATIBILITY_INIT_USER_SETTINGS_START",
     23    "COMPATIBILITY_INIT_USER_SETTINGS_SUCCESS",
     24    "COMPATIBILITY_INIT_USER_SETTINGS_FAILURE",
     25    "COMPATIBILITY_INIT_USER_SETTINGS_COMPLETE",
     26 
     27    // Append node using internal helper that caused issues.
     28    "COMPATIBILITY_INTERNAL_APPEND_NODE",
     29 
     30    // Updates a node via the internal helper
     31    "COMPATIBILITY_INTERNAL_NODE_UPDATE",
     32 
     33    // Remove references to node that is removed
     34    // in Markup Inspector but retained by DevTools
     35    // using the internal helper.
     36    "COMPATIBILITY_INTERNAL_REMOVE_NODE",
     37 
     38    // Updates the selected node issues using internal helper.
     39    "COMPATIBILITY_INTERNAL_UPDATE_SELECTED_NODE_ISSUES",
     40 
     41    // Clean up removed node from node list
     42    "COMPATIBILITY_REMOVE_NODE_START",
     43    "COMPATIBILITY_REMOVE_NODE_SUCCESS",
     44    "COMPATIBILITY_REMOVE_NODE_FAILURE",
     45    "COMPATIBILITY_REMOVE_NODE_COMPLETE",
     46 
     47    // Update node on attribute mutation
     48    "COMPATIBILITY_UPDATE_NODE_START",
     49    "COMPATIBILITY_UPDATE_NODE_SUCCESS",
     50    "COMPATIBILITY_UPDATE_NODE_FAILURE",
     51    "COMPATIBILITY_UPDATE_NODE_COMPLETE",
     52 
     53    // Updates nodes.
     54    "COMPATIBILITY_UPDATE_NODES_START",
     55    "COMPATIBILITY_UPDATE_NODES_SUCCESS",
     56    "COMPATIBILITY_UPDATE_NODES_FAILURE",
     57    "COMPATIBILITY_UPDATE_NODES_COMPLETE",
     58 
     59    // Updates the selected node.
     60    "COMPATIBILITY_UPDATE_SELECTED_NODE_START",
     61    "COMPATIBILITY_UPDATE_SELECTED_NODE_SUCCESS",
     62    "COMPATIBILITY_UPDATE_SELECTED_NODE_FAILURE",
     63    "COMPATIBILITY_UPDATE_SELECTED_NODE_COMPLETE",
     64 
     65    // Updates the settings panel visibility.
     66    "COMPATIBILITY_UPDATE_SETTINGS_VISIBILITY",
     67 
     68    // Updates the target browsers.
     69    "COMPATIBILITY_UPDATE_TARGET_BROWSERS_START",
     70    "COMPATIBILITY_UPDATE_TARGET_BROWSERS_SUCCESS",
     71    "COMPATIBILITY_UPDATE_TARGET_BROWSERS_FAILURE",
     72    "COMPATIBILITY_UPDATE_TARGET_BROWSERS_COMPLETE",
     73 
     74    // Updates the top level target.
     75    "COMPATIBILITY_UPDATE_TOP_LEVEL_TARGET_START",
     76    "COMPATIBILITY_UPDATE_TOP_LEVEL_TARGET_SUCCESS",
     77    "COMPATIBILITY_UPDATE_TOP_LEVEL_TARGET_FAILURE",
     78    "COMPATIBILITY_UPDATE_TOP_LEVEL_TARGET_COMPLETE",
     79  ],
     80  module.exports
     81 );