Title: [264669] trunk/Source/WebInspectorUI
Revision
264669
Author
drou...@apple.com
Date
2020-07-21 12:03:40 -0700 (Tue, 21 Jul 2020)

Log Message

Web Inspector: unable to save files that are base64 encoded
https://bugs.webkit.org/show_bug.cgi?id=214601

Reviewed by Brian Burg.

* UserInterface/Models/SourceCode.js:
(WI.SourceCode.prototype.get base64Encoded): Added.
Expose if the current content is base64 encoded. The current content is already exposed.

* UserInterface/Views/ContextMenuUtilities.js:
(WI.appendContextMenuItemsForSourceCode):
Include the base64 encoded state in the save data.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (264668 => 264669)


--- trunk/Source/WebInspectorUI/ChangeLog	2020-07-21 18:54:25 UTC (rev 264668)
+++ trunk/Source/WebInspectorUI/ChangeLog	2020-07-21 19:03:40 UTC (rev 264669)
@@ -1,5 +1,20 @@
 2020-07-21  Devin Rousso  <drou...@apple.com>
 
+        Web Inspector: unable to save files that are base64 encoded
+        https://bugs.webkit.org/show_bug.cgi?id=214601
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Models/SourceCode.js:
+        (WI.SourceCode.prototype.get base64Encoded): Added.
+        Expose if the current content is base64 encoded. The current content is already exposed.
+
+        * UserInterface/Views/ContextMenuUtilities.js:
+        (WI.appendContextMenuItemsForSourceCode):
+        Include the base64 encoded state in the save data.
+
+2020-07-21  Devin Rousso  <drou...@apple.com>
+
         Web Inspector: Elements: Styles: don't blur the add class input when a class is added
         https://bugs.webkit.org/show_bug.cgi?id=214604
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/SourceCode.js (264668 => 264669)


--- trunk/Source/WebInspectorUI/UserInterface/Models/SourceCode.js	2020-07-21 18:54:25 UTC (rev 264668)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/SourceCode.js	2020-07-21 19:03:40 UTC (rev 264669)
@@ -99,6 +99,11 @@
         return this._currentRevision.content;
     }
 
+    get base64Encoded()
+    {
+        return this._currentRevision.base64Encoded;
+    }
+
     get url()
     {
         return this._url;

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js (264668 => 264669)


--- trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js	2020-07-21 18:54:25 UTC (rev 264668)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js	2020-07-21 19:03:40 UTC (rev 264669)
@@ -170,6 +170,7 @@
             let saveData = {
                 url: sourceCode.url,
                 content: sourceCode.content,
+                base64Encoded: sourceCode.base64Encoded,
             };
 
             if (sourceCode.urlComponents.path === "/") {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to