From d747ecddcc15ee1c504a7c722920290f129c32fc Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Wed, 6 Feb 2019 18:14:04 +0100 Subject: [PATCH] Add type information in storage events To know if the `localStorage` or `sessionStorage` is impacted. --- src/main/zapHomeFiles/hud/drawer.html | 2 ++ src/main/zapHomeFiles/hud/target/front-end-tracker.js | 2 +- src/other/resources/UIMessages/UIMessages.properties | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/zapHomeFiles/hud/drawer.html b/src/main/zapHomeFiles/hud/drawer.html index 91defff29..6ec4e9797 100644 --- a/src/main/zapHomeFiles/hud/drawer.html +++ b/src/main/zapHomeFiles/hud/drawer.html @@ -129,6 +129,7 @@ {{ $t('message.storage_tool_field_time') }} + {{ $t('message.storage_tool_field_type') }} {{ $t('message.storage_tool_field_action') }} {{ $t('message.storage_tool_field_key') }} {{ $t('message.storage_tool_field_value') }} @@ -137,6 +138,7 @@ {{ message.time }} + {{ message.type }} {{ message.action }} {{ message.key }} {{ message.value }} diff --git a/src/main/zapHomeFiles/hud/target/front-end-tracker.js b/src/main/zapHomeFiles/hud/target/front-end-tracker.js index 4a798f8a1..c48a5b26f 100644 --- a/src/main/zapHomeFiles/hud/target/front-end-tracker.js +++ b/src/main/zapHomeFiles/hud/target/front-end-tracker.js @@ -1 +1 @@ -!function(){return function t(e,n,o){function r(i,c){if(!n[i]){if(!e[i]){var a="function"==typeof require&&require;if(!c&&a)return a(i,!0);if(s)return s(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[i]={exports:{}};e[i][0].call(l.exports,function(t){return r(e[i][1][t]||t)},l,l.exports,t,e,n,o)}return n[i].exports}for(var s="function"==typeof require&&require,i=0;i{(new t.Hook).setOptions(t.options)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./events.js":1,"./hooks/event-listener-hook.js":2,"./hooks/storage-hook":3,"pubsub-js":5}],5:[function(t,e,n){!function(t,o){"use strict";var r={};t.PubSub=r;var s=t.define;!function(t){var e={},n=-1;function o(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function r(t,e,n){try{t(e,n)}catch(t){setTimeout(function(t){return function(){throw t}}(t),0)}}function s(t,e,n){t(e,n)}function i(t,n,o,i){var c,a=e[n],u=i?s:r;if(e.hasOwnProperty(n))for(c in a)a.hasOwnProperty(c)&&u(a[c],t,o)}function c(t,n,r,s){var c=function(t,e,n){return function(){var o=String(t),r=o.lastIndexOf(".");for(i(t,t,e,n);-1!==r;)o=o.substr(0,r),r=o.lastIndexOf("."),i(t,o,e,n)}}(t="symbol"==typeof t?t.toString():t,n,s),a=function(t){var n=String(t),r=Boolean(e.hasOwnProperty(n)&&o(e[n])),s=n.lastIndexOf(".");for(;!r&&-1!==s;)n=n.substr(0,s),s=n.lastIndexOf("."),r=Boolean(e.hasOwnProperty(n)&&o(e[n]));return r}(t);return!!a&&(!0===r?c():setTimeout(c,0),!0)}t.publish=function(e,n){return c(e,n,!1,t.immediateExceptions)},t.publishSync=function(e,n){return c(e,n,!0,t.immediateExceptions)},t.subscribe=function(t,o){if("function"!=typeof o)return!1;t="symbol"==typeof t?t.toString():t,e.hasOwnProperty(t)||(e[t]={});var r="uid_"+String(++n);return e[t][r]=o,r},t.subscribeOnce=function(e,n){var o=t.subscribe(e,function(){t.unsubscribe(o),n.apply(this,arguments)});return t},t.clearAllSubscriptions=function(){e={}},t.clearSubscriptions=function(t){var n;for(n in e)e.hasOwnProperty(n)&&0===n.indexOf(t)&&delete e[n]},t.unsubscribe=function(n){var o,r,s,i="string"==typeof n&&(e.hasOwnProperty(n)||function(t){var n;for(n in e)if(e.hasOwnProperty(n)&&0===n.indexOf(t))return!0;return!1}(n)),c=!i&&"string"==typeof n,a="function"==typeof n,u=!1;if(!i){for(o in e)if(e.hasOwnProperty(o)){if(r=e[o],c&&r[n]){delete r[n],u=n;break}if(a)for(s in r)r.hasOwnProperty(s)&&r[s]===n&&(delete r[s],u=!0)}return u}t.clearSubscriptions(n)}}(r),"function"==typeof s&&s.amd?s(function(){return r}):"object"==typeof n&&(void 0!==e&&e.exports&&(n=e.exports=r),n.PubSub=r,e.exports=n=r)}("object"==typeof window&&window||this)},{}]},{},[4,2,3]); \ No newline at end of file +!function(){return function t(e,n,o){function r(i,c){if(!n[i]){if(!e[i]){var a="function"==typeof require&&require;if(!c&&a)return a(i,!0);if(s)return s(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[i]={exports:{}};e[i][0].call(l.exports,function(t){return r(e[i][1][t]||t)},l,l.exports,t,e,n,o)}return n[i].exports}for(var s="function"==typeof require&&require,i=0;i{(new t.Hook).setOptions(t.options)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./events.js":2,"./hooks/event-listener-hook.js":3,"./hooks/storage-hook":4,"pubsub-js":1}]},{},[5,3,4]); \ No newline at end of file diff --git a/src/other/resources/UIMessages/UIMessages.properties b/src/other/resources/UIMessages/UIMessages.properties index 78a6413fa..cb964b95e 100644 --- a/src/other/resources/UIMessages/UIMessages.properties +++ b/src/other/resources/UIMessages/UIMessages.properties @@ -119,6 +119,7 @@ storage_tool = Storage storage_tool_field_action = Action storage_tool_field_key = Key storage_tool_field_time = Time +tool_storage_field_type = Type storage_tool_field_value = Value websockets_message_field_time = Time