• 5 Posts
  • 31 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle
  • Beginning with Firefox 127, users will be prompted to grant MV3 host permissions as part of the install flow (similar to MV2 extensions).

    Hooray! Previously Firefox MV3 extensions had to include a custom button in the UI to prompt the user for host permissions at runtime. It generally made more sense to stay on MV2 than switch from a 2-click to a 6-click install procedure.







  • p1mrx@sh.itjust.worksto196@lemmy.blahaj.zonefixed rule
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 months ago

    GNU style is logical, because braces are syntactically a single statement:

    while (x == y)
      func1();  // can be replaced by { ... }
    

    However, I prefer to entirely avoid unbraced single statements after while/if:

    while (x == y) {
      func1();  // easy to add func2(); later
    }
    

    Although this is ok when it fits:

    while (x == y) func1();  // brevity!
    














  • p1mrx@sh.itjust.worksOPtoFirefox@lemmy.mlMissing Chrome's 'Go to URL' feature
    link
    fedilink
    arrow-up
    11
    arrow-down
    3
    ·
    edit-2
    8 months ago

    I don’t think .co versus .com is the relevant factor. I can select xample.co by itself, but not as a substring of http://www.example.com. The rules seem so arbitrary and context-dependent that it behaves more like a dice roll than a usable feature.

    If a selection to URL feature cares about TLDs, IP addresses, or text beyond the selection range, then it’s operating at the wrong abstraction layer. (well, technically Goto foo has a couple lines of code to [bracket] bare IPv6 addresses, but that’s not core functionality.)