# Problems with tabs.update() and network protocols (Firefox)

**URL:** https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276
**Category:** Development
**Created:** [July 6, 2020, 3:22pm UTC](https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276 "2020-07-06T15:22:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TheKaoGer](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@TheKaoGer](https://discourse.mozilla.org/u/TheKaoGer)
#### Post date: [July 6, 2020, 3:22pm UTC](https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276/1 "2020-07-06T15:22:10Z")

</div>

Hello,

i have coded an WebExtension-AddOn for my personal use. In short: I add a new network protocol to windows 10 (player://) and connect this with an special windows script. Now i have coded an AddOn that create an context-menu that reparsed the link and use it for an tabs.update() action. As an example on youtube player://http://www.youtube.com/videolinkasexample.

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

```

This called the ne protocol and shows up the protocol handler in firefox and the actual tabs was not updated, the tabs shows allways the youtube-site where i have called the protocol link.

This has functioned a long time with firefox version with WebExtensions. In the newest Version it happend nothing.

So then i have used tabs.create() and all functioned, but with an ugly new empty tab.

And i have figured out one strange thing:

When i call:

```
function updateFirstTab(tabs)
	{
		var updating = browser.tabs.update(tabs.id,
		{
			// active: true,
			// loadReplace: true,
			url: 'player://http://videoadress'
		});
		updating.then(onUpdated, onError);
	}
var querying = browser.tabs.query({currentWindow:true});
		querying.then(updateFirstTab, onError);

```

and the directly after this call an tabs.create()

```
browser.tabs.create({
		url:"https://example.org"
	});

```

He opened the tabs.update() and the tabs.create()

Is that an security change? Or an bug? But why tabs.create triggers an protocol tabs.update?

How can i call an protocol link in an context-menu without changing the actual tab. Ghostly;)?

Or when i must use tabs.create, how can i close the created tab after call the protocol - linkurl?

thx

---

<div class="post-metadata">

### Author: ![TheKaoGer](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@TheKaoGer](https://discourse.mozilla.org/u/TheKaoGer)
#### Post date: [July 9, 2020, 6:50pm UTC](https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276/2 "2020-07-09T18:50:20Z")

</div>

Closed in the newest update 78.0.2 all functioned perfectly with code again. That was a bug from an previous version.

---

<div class="post-metadata">

### Author: ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)
#### Post date: [July 10, 2020, 4:35am UTC](https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276/3 "2020-07-10T04:35:49Z")

</div>

Oh… I didn’t connect this to the roblox / Microsoft Teams / GoToMeeting problem.

---

<div class="post-metadata">

### Author: ![TheKaoGer](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@TheKaoGer](https://discourse.mozilla.org/u/TheKaoGer)
#### Post date: [July 10, 2020, 9:40am UTC](https://discourse.mozilla.org/t/problems-with-tabs-update-and-network-protocols-firefox/63276/4 "2020-07-10T09:40:16Z")

</div>

@jscher2000  
Hi, that problem i don’t know. By chance i have after i stopped the debugging of my addon by habit klicked a video link and received the protocol-popup. And then i have seen an firefox update from 9th july, yesterday. In the changelogs i don’t have seen a special entry about tabs.update() and i think that must another bug that have triggered the tabs.update() bug.
