Closed Bug 291652 Opened 20 years ago Closed 20 years ago

window.sidebar.addSearchEngine incapable of handling https links

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 267487

People

(Reporter: mmn, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I get javascript errors when running the following command in a javascript (more
specifically when using https:// instead of http://)

    window.sidebar.addSearchEngine(
      "https://example.com/searchplugin.src",
      "https://example.com/searchplugin.png",
      name, cat);

I am reporting this as a major issue because the site I will eventually use this
on is going to be strictly https:// and there may very well be others who think
the same.

Reproducible: Always

Steps to Reproduce:
1. Write Javascript function for window.sidebar.addSearchEngine for Firefox
2. Use an https:// link to the .src and graphic files
Actual Results:  
JavaScript Console gave me these errors:

Error: [Exception... "Not enough arguments [nsIPromptService.alert]"  nsresult:
"0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame ::
file:///opt/firefox/components/nsSidebar.js :: anonymous :: line 138"  data: no]
Source File: file:///opt/firefox/components/nsSidebar.js
Line: 138

Error: uncaught exception: [Exception... "Not enough arguments
[nsIPromptService.alert]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"
 location: "JS frame :: file:///opt/firefox/components/nsSidebar.js :: anonymous
:: line 138"  data: no]

Expected Results:  
Getting a popup asking me whether I want to install the searchplugin or not.

*** This bug has been marked as a duplicate of 267487 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.