logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

0001-Source-WebInspectorUI-UserInterface-Views-ConsoleMes.patch (2280B)


  1. From 9c4baaec2f310d43011ec3835e0fbaf585ed583c Mon Sep 17 00:00:00 2001
  2. Message-Id: <9c4baaec2f310d43011ec3835e0fbaf585ed583c.1550728895.git.contact@hacktivis.me>
  3. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  4. Date: Fri, 2 Nov 2018 17:59:57 +0100
  5. Subject: [PATCH 1/6]
  6. Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js: Remove %c
  7. support in the console
  8. ---
  9. .../UserInterface/Views/ConsoleMessageView.js | 23 -------------------
  10. 1 file changed, 23 deletions(-)
  11. diff --git a/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js b/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js
  12. index 7aecedb8d8..01890f02e6 100644
  13. --- a/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js
  14. +++ b/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js
  15. @@ -674,26 +674,6 @@ WI.ConsoleMessageView = class ConsoleMessageView extends WI.Object
  16. }
  17. var currentStyle = null;
  18. - function styleFormatter(obj)
  19. - {
  20. - currentStyle = {};
  21. - var buffer = document.createElement("span");
  22. - buffer.setAttribute("style", obj.description);
  23. - for (var i = 0; i < buffer.style.length; i++) {
  24. - var property = buffer.style[i];
  25. - if (isWhitelistedProperty(property))
  26. - currentStyle[property] = buffer.style[property];
  27. - }
  28. - }
  29. -
  30. - function isWhitelistedProperty(property)
  31. - {
  32. - for (var prefix of ["background", "border", "color", "font", "line", "margin", "padding", "text"]) {
  33. - if (property.startsWith(prefix) || property.startsWith("-webkit-" + prefix))
  34. - return true;
  35. - }
  36. - return false;
  37. - }
  38. // Firebug uses %o for formatting objects.
  39. var formatters = {};
  40. @@ -705,9 +685,6 @@ WI.ConsoleMessageView = class ConsoleMessageView extends WI.Object
  41. formatters.i = integerFormatter;
  42. formatters.d = integerFormatter;
  43. - // Firebug uses %c for styling the message.
  44. - formatters.c = styleFormatter;
  45. -
  46. // Support %O to force object formatting, instead of the type-based %o formatting.
  47. formatters.O = parameterFormatter.bind(this, true);
  48. --
  49. 2.20.1