Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

WebExtensions tabs.update don't functioned no more with Windows Protocol?

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 9 προβολές
  • Τελευταία απάντηση από TheKaoGer

more options

Hello,

i have a problem with a personal webextensions, that i have written for my personal use. I add a new protocol in windows 10 pe registry (player://) and use this to start a special windows script.

My extensions put an new menu-entry on right click and rewrite the url from the tab with the the protocol (play://https://www.youtube.com/asanexample).

Now he does nothing in the newest versions of Firefox. I use

browser.tabs.update({url: "play://https://www.youtube.com/asanexample"});

and nothing happends. The tab.url says www.youtube.com, but nothing happends. But when i call

function updateFirstTab(tabs) { var updating = browser.tabs.update(tabs.id, { // active: true, // loadReplace: true, url: "play://https://www.youtube.com/asanexample"}); updating.then(onUpdated, onError); }

var querying = browser.tabs.query({currentWindow:true}); querying.then(updateFirstTab, onError);

and then an:

browser.tabs.create({

   		url:"https://example.org"
 		});

He loads the protocol page and the new created example.org page.

When i use tabs.create he call the protocol, like my old tabs.update code.

Is that an security change? But why tabs.update functioned when i call a tabs.create after it? When i must use tabs.create how can i seamlessly close the newly created tab after call the protocol?

I hope it is a bug in web extension;), why my code has functioned with the tabs.update() so many firefox version along.

thx

Hello, i have a problem with a personal webextensions, that i have written for my personal use. I add a new protocol in windows 10 pe registry (player://) and use this to start a special windows script. My extensions put an new menu-entry on right click and rewrite the url from the tab with the the protocol (play://https://www.youtube.com/asanexample). Now he does nothing in the newest versions of Firefox. I use browser.tabs.update({url: "play://https://www.youtube.com/asanexample"}); and nothing happends. The tab.url says www.youtube.com, but nothing happends. But when i call function updateFirstTab(tabs) { var updating = browser.tabs.update(tabs.id, { // active: true, // loadReplace: true, url: "play://https://www.youtube.com/asanexample"}); updating.then(onUpdated, onError); } var querying = browser.tabs.query({currentWindow:true}); querying.then(updateFirstTab, onError); and then an: browser.tabs.create({ url:"https://example.org" }); He loads the protocol page and the new created example.org page. When i use tabs.create he call the protocol, like my old tabs.update code. Is that an security change? But why tabs.update functioned when i call a tabs.create after it? When i must use tabs.create how can i seamlessly close the newly created tab after call the protocol? I hope it is a bug in web extension;), why my code has functioned with the tabs.update() so many firefox version along. thx

Επιλεγμένη λύση

Hi TheKaoGer, could I suggest re-posting this question on Mozilla's Add-on Development forum? I think you'll be able to get the attention of more add-on developers there:

https://discourse.mozilla.org/c/add-ons/development

Let us know what you learn.

Ανάγνωση απάντησης σε πλαίσιο 👍 1

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

Hi TheKaoGer, could I suggest re-posting this question on Mozilla's Add-on Development forum? I think you'll be able to get the attention of more add-on developers there:

https://discourse.mozilla.org/c/add-ons/development

Let us know what you learn.

more options

@jscher2000 Thank you, i repost it on the forum. Thx fot the link.