Developer Tool – Storage: Edit Cookie, Local Storage…  [Closed]

Suggestions and feature requests for the Pale Moon browser

Moderator: satrow

User avatar
zcyzcy88
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: Tue, 30 May 2017, 15:30

Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby zcyzcy88 » Thu, 08 Jun 2017, 07:49

Why can't edit them?
Internet for people, not profit — Mozilla

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22273
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby Moonchild » Thu, 08 Jun 2017, 11:27

zcyzcy88 wrote:Why can't edit them?

Because it's not a storage editor. It's a storage viewer. Devtools are present to help you develop and debug site code; being able to view storage will help writing proper site code. Editing storage values manually won't help, and as such it's a viewer.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
zcyzcy88
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: Tue, 30 May 2017, 15:30

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby zcyzcy88 » Thu, 08 Jun 2017, 12:24

Moonchild wrote:Editing storage values manually won't help, and as such it's a viewer.


Well, but DevTools is not only for web-page developers, also for power users / hackers / add-on developers.
It is needed and helpful when I sometime need hack, and I don't want to use Firebug or other add-ons.

By the way, is it difficult to implement this feature?
Internet for people, not profit — Mozilla

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22273
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby Moonchild » Thu, 08 Jun 2017, 13:25

used by != created for. Extension devs normally won't need this on-the-fly data editing either, because it's still not going to fix their scripting :)

So that leaves... power users who want to hack data?
Can you give an example where this is both helpful and needed?

PS: "I don't want to use extensions" is not an argument when using a browser that is, at its core, lean on purpose so people can extend it as they need.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
zcyzcy88
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: Tue, 30 May 2017, 15:30

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby zcyzcy88 » Thu, 08 Jun 2017, 14:04

My case:
I can edit via console, but can't edit httpOnly cookies.

Code: Select all

document.cookie = "XXX";
localStorage.XXX = "XXX";


Other case:
- Try to delete part of cookies to test how server handle it (test server software)
- Some web-app use localStorage to save setting, I want copy it to backup, paste it to restore

And, further according to your logic, DOM Inspector should also not editable. (double standard)
Internet for people, not profit — Mozilla

User avatar
adesh
Astronaut
Astronaut
Posts: 564
Joined: Tue, 06 Jun 2017, 07:38

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby adesh » Thu, 08 Jun 2017, 14:37

zcyzcy88 wrote:- Try to delete part of cookies to test how server handle it (test server software)
- Some web-app use localStorage to save setting, I want copy it to backup, paste it to restore

If you want to play with requests and test server side handling, it might be better to use an application suited for that, e.g. Postman - https://www.getpostman.com/
You can always export a request as cURL from Pale Moon, import it in Postman and play as you wish.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22273
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby Moonchild » Thu, 08 Jun 2017, 16:23

zcyzcy88 wrote:And, further according to your logic, DOM Inspector should also not editable. (double standard)

Incorrect. Editing the DOM and CSS is important to be able to see the immediate layout results in the web page. Not so for cookies and storage.

Please stop making every "wontfix" a fight. There are good reasons why certain things are implemented a certain way. If you want to offer enhancements to them is one thing, making demands to cater to your specific workflow is another. See viewtopic.php?f=13&t=5647
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

GMforker
Astronaut
Astronaut
Posts: 537
Joined: Thu, 27 Aug 2015, 06:29
Location: Czech Republic

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby GMforker » Thu, 08 Jun 2017, 16:42

zcyzcy88 wrote:Why can't edit them?

...and because no one added it to Pale Moon.

See also:
https://bugzilla.mozilla.org/show_bug.cgi?id=1031192

User avatar
zcyzcy88
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: Tue, 30 May 2017, 15:30

Re: Developer Tool – Storage: Edit Cookie, Local Storage…

Unread postby zcyzcy88 » Thu, 08 Jun 2017, 18:17

The reason & case is said before.
It is even OK if Pale Moon have no build-in DevTools, but a non-editable DevTools is really out of common knowledge.

If have no time to implement, "backlog" instead of "wontfix".

[hr][/hr]

GMforker wrote:...and because no one added it to Pale Moon.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1031192

Good "reason". Surprise. :problem:

Off-topic:
Moonchild wrote:Please stop making every "wontfix" a fight.

If you tag a "wontfix", I must clearly get the reason, discuss is not fight.
Even you think I "fight", I "fight" twice, not every.
Internet for people, not profit — Mozilla

User avatar
zcyzcy88
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: Tue, 30 May 2017, 15:30

Re: Developer Tool – Storage: Edit Cookie, Local Storage…  [Closed]

Unread postby zcyzcy88 » Sun, 19 Aug 2018, 18:49

Since the DevTools have been given a refresh (followed the upstream), this case is solved.
Internet for people, not profit — Mozilla


Return to “Suggestions/feature requests”

Who is online

Users browsing this forum: No registered users and 5 guests