https://html.spec.whatwg.org/#external "The AddSearchProvider() and IsSearchProviderInstalled() methods must do nothing."
Let's remove the support for this function just in nightly, as smaug suggested.
Attachment #9021500 - Flags: review?(bugs)
The spec wants window.external
Attachment #9021502 - Flags: review?(bugs)
Attachment #9021500 - Attachment description: sidebar.patch → part 1 - dummy window.external methods
Comment on attachment 9021500 [details] [diff] [review] part 1 - dummy window.external methods ok, let's try this.
Attachment #9021500 - Flags: review?(bugs) → review+
Just a changes in browser.ini which was brone. I guess I can keep the r+.
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/23850b9ba24d Make window.external.AddSearchProvider a dummy function, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/7db2b627cacc Remove window.sidebar, r=smaug
8 months ago
Posted site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2018/window-sidebar-and-window-external-addsearchprovider-have-been-deprecated/
NOOOOOOOOOOOO :( I knew this day would come, but AddSearchProvider is important for my extension: https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/, because Firefox does not provide a reasonable way to add custom search engines.
Maybe we can have a webExtension to support this feature. Do you mind to file a bug?
AddSearchProvider is required by my extension as well: https://addons.mozilla.org/en-US/firefox/addon/search-engines-helper/ A web extension API to add (and manage) search engines would be very welcome
(In reply to Andrea Marchesini [:baku] from comment #10) > Maybe we can have a webExtension to support this feature. Do you mind to > file a bug? Opened bug 1504338
No longer blocks: 1504338
Did you remove all these APIs completely? If so, we can't do this yet. This breaks all AMO search engines. Please test AMO engines on nightly.
(In reply to Mike Kaply [:mkaply] (on PTO until Nov 5) from comment #13) > Did you remove all these APIs completely? No. I just made the exposed window.external methods dummy as the spec says here: https://html.spec.whatwg.org/#dom-external-addsearchprovider The code is still there.
This also breaks installing search engines from https://mycroftproject.com/
Sorry, missed this comment: > Let's remove the support for this function just in nightly, as smaug suggested. There are a lot of other things that need to happen for this function to be completely removed. Side note, I had originally opened another bug for this work: https://bugzilla.mozilla.org/show_bug.cgi?id=1377213 The biggest blocker to putting this in release is AMO.
OK, so I've had a go at documenting this, unusual as it is ;-) I added a quick page covering external: https://developer.mozilla.org/en-US/docs/Web/API/Window/external I don't think we need anything more in-depth, as it is obsolete and the functions do nothing. I've also submitted a PR to add/update compat data for these features: https://github.com/mdn/browser-compat-data/pull/3111 I've noted that the external methods do nothing, and that window.sidebar has been put behind a pref in Nightly only. I also added a note to the FX65 rel notes: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs Let me know if this all sounds OK, or if I've got something wrong here. Thanks!
> Let me know if this all sounds OK, or if I've got something wrong here. So far, all of this happens in nightly only because we want to collect regressions. I'm planning to disable Window.external for 66.
> So far, all of this happens in nightly only because we want to collect regressions. OK, thanks. In that case I've removed the rel note and the nightly-only stuff from the compat data for now. I'll add them back in when it lands in release. > I'm planning to disable Window.external for 66. Cool; add dev-doc-needed to the relevant bugs and I'll make sure the docs are sorted!
This is a very major change that will break AMO and other sites. It can't be put in without deprecation and a plan to solve those other sites.
Am I missing something here (I haven't been following browser dev for some time) Is this just pandering to a standard without an alternative or am I missing a suggested alternative?
6 months ago
No longer depends on: 1504338
You need to log in before you can comment on or make changes to this bug.