Closed Bug 1558323 Opened 6 years ago Closed 5 years ago

Move window.external.AddSearchProvider / IsSearchProviderInstalled to JS Window Actors, unless we decide to just remove them

Categories

(Firefox :: Search, task, P5)

task

Tracking

()

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: mconley, Assigned: enndeakin)

Details

Attachments

(1 file)

We seem to implement these two functions:

window.external.AddSearchProvider and window.external.IsSearchProviderInstalled here.

I believe this is a Microsoft API, and was introduced in IE7. Both methods were altered in IE10 so that they return hard-coded values.

From what I can tell, Chromium doesn't even return anything. For those.

We still support AddSearchProvider, and have a message listener for it here.

Interestingly, our own MDN page on window.external says that Firefox only implements these as dummy functions.

Can we do the same thing as IE10 or Chromium here, and just return some hard-coded values?

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Priority: -- → P5

(In reply to Mike Conley (:mconley) (:⚙️) (Wayyyy behind on needinfos) from comment #0)

Interestingly, our own MDN page on window.external says that Firefox only implements these as dummy functions.

I fixed that for the time being.

Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/428e0cb54f8c move addSearchProvider implementation to use JSWindowActor, also helps reduce the extra code in MainProcessSingleton.jsm, r=adw
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: