Make the capability summary print a question mark when the memory size is unknown #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
summarizein web/js/runtime/caps.js builds the diagnostic line for the Settings screen. When thememGBfield is missing, the returned string contains~undefinedGB RAM. Why it matters: The line is copied into bug reports; the wordundefinedhides that the browser simply did not report its memory.Proposal
Render a missing
memGBas?so the text reads~?GB RAM, and leave the output unchanged whenmemGBis a number.Acceptance criteria
summarizeof a capability object whosememGBfield is missing returns a string that does not containundefined.summarizeof a capability object whosememGBfield is missing returns a string that contains~?GB RAM.summarizeof a capability object whosememGBis a number returns a string that contains that number immediately followed byGB RAM.Files
web/js/runtime/caps.jsT2T-Issue: 0x74d315a963e864fb89a00de904bbf1b82abb5325c6102bedaea0ce1545593480
Number: 1
Kind: bug
Origin: imported
Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919
Ledger: elffuss/ledger, event 72