Looking at the code, I think this error is only created when we attempt to store a too big string.
STRs:
- copy a very long string (ef run `copy(new Array(1 * 1024 * 1025).join("a"))`)
- open netmonitor
- resend any request
- add a URL parameter with name "test" and value the string from your clipboard
The panel immediately crashes.
This also means this won't be fixed by using a string pref, because we still have size limits to respect.
Either need to store that in indexeddb or avoid saving if the content goes over the limit (or try catching I guess)?
The size limit is 1 * 1024 * 1024, see https://searchfox.org/mozilla-central/rev/dcb0cfb66e4ed3b9c7fbef1e80572426ff5f3c3a/modules/libpref/Preferences.cpp#142
Bug 1780544 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looking at the code, I think this error is only created when we attempt to store a too big string.
STRs:
- copy a very long string (eg run `copy(new Array(1 * 1024 * 1025).join("a"))`)
- open netmonitor
- resend any request
- add a URL parameter with name "test" and value the string from your clipboard
The panel immediately crashes.
This also means this won't be fixed by using a string pref, because we still have size limits to respect.
Either need to store that in indexeddb or avoid saving if the content goes over the limit (or try catching I guess)?
The size limit is 1 * 1024 * 1024, see https://searchfox.org/mozilla-central/rev/dcb0cfb66e4ed3b9c7fbef1e80572426ff5f3c3a/modules/libpref/Preferences.cpp#142