GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "New user script" doesn't open a new tab · Issue #2994 · greasemonkey/greasemonkey

"New user script" doesn't open a new tab #2994

New issue
Copy link
New issue
Copy link
Closed
Closed
"New user script" doesn't open a new tab#2994
Copy link
Milestone
4.8

Description

@seishun
seishun
opened on Sep 3, 2018
Issue body actions

Using Greasemonkey 4.7, Firefox 61.0.2. When clicking "New user script", nothing appears to happen, but "Unnamed Script XXXX" is added to the "User script for this tab" list.

The following errors show up in the browser console:

[Show/hide message details.] [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.principal]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/nsBrowserGlue.js :: prompt :: line 2850"  data: no]
prompt
jar:file:///C:/Program Files (x86)/Mozilla Firefox/browser/omni.ja!/components/nsBrowserGlue.js:2850:1
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.cancel] nsBrowserGlue.js:2874
[Show/hide message details.] [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.principal]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/nsBrowserGlue.js :: prompt :: line 2850"  data: no]
prompt
jar:file:///C:/Program Files (x86)/Mozilla Firefox/browser/omni.ja!/components/nsBrowserGlue.js:2850:1
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.cancel]

Same happens on a fresh profile.

Activity

  1. Eselce commented on Sep 4, 2018

    @Eselce
    Eselce
    on Sep 4, 2018
    Contributor
    More actions

    Experienced that as well (GM v4.7), but I can't say, when it started...

  2. arantius commented on Sep 4, 2018

    @arantius
    arantius
    on Sep 4, 2018
    Collaborator
    More actions

    Confirmed in 2018.08.28 nightly; Firefox is Built from https://hg.mozilla.org/releases/mozilla-release/rev/975058795980dfbba1daedfe5fc82d1abcb5638b, 61.0.2. Most relevant error seems to be:

    TypeError: content is null ext-browser-content.js:234:9 
    

    That's not our code, though, so .. it's something we're passing? The error has no traceback attached.

  3. arantius
    added this to the 4.8 milestone on Sep 4, 2018
  4. arantius commented on Sep 4, 2018

    @arantius
    arantius
    on Sep 4, 2018
    Collaborator
    More actions

    This works in 4.6, fails at head. Git bisect tells me:

    5cb38357954bc0bd797d5e70b186ede581b7196a is the first bad commit
    commit 5cb38357954bc0bd797d5e70b186ede581b7196a
    Author: Anthony Lieuallen <[email protected]>
    Date:   Fri Jul 20 15:34:31 2018 -0400
    
        Track install and edit time.
        
        Don't (auto) update a script that's been edited since install time.
        
        Refs #2531
    
    :040000 040000 5ed933a6eb8717e5ef810b7e46c1bf7ec44bc25a 9f13ac5508a51d3b0c0b2aff45e02a5e3ec1d50b M      src
    :040000 040000 260f6f0e18145a4fbfdad57439d3cb40b5baabb5 109c86127e79cb4f8d5ae9ad383784c00c996c9f M      test
    

    5cb3835 is the bad commit that introduced this. A first look through confuses me about how/why.

  5. Sxderp commented on Sep 7, 2018

    @Sxderp
    Sxderp
    on Sep 7, 2018
    Contributor
    More actions

    Your problem is here: 5cb3835#diff-6ba827f37e1348164a6c4d6c5d015654R299
    Curly braces were added. Therefore the anonymous function is now a 'block' rather than a line. Blocks don't return anything (unlike a line which will return whatever the expression evaluates to). 'undefined' is immediately resolved and window.close is executed.

    Reacted by Nikolai Vavilov and arantius
  6. arantius
    added a commit that references this issue on Sep 7, 2018

    Correctly complete install of "new user script".

    This issue will close once commit d95d58f is merged into the 'master' branch.
    d95d58f
  7. arantius
    closed this as completedin d95d58fon Sep 7, 2018
  8. arantius commented on Sep 7, 2018

    @arantius
    arantius
    on Sep 7, 2018
    Collaborator
    More actions

    Thanks @Sxderp ! That was it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      • 4.8

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.