X
點擊此處開啟此網站的行動版。

技術支援討論區

How can I open a link in new tab from inside the firefox addon I am developing?

已張貼

I am developing a firefox addon which uses an API and shows some links. Now if I click those links it opens a new window. How can I change it to open in a new tab on the same window I am using addon.

I am developing a firefox addon which uses an API and shows some links. Now if I click those links it opens a new window. How can I change it to open in a new tab on the same window I am using addon.

額外的系統細節

已安裝的外掛程式

  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.

應用程式

  • Firefox 44.0
  • 使用者代理:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
  • 技術支援網址:https://support.mozilla.org/1/firefox/44.0/Linux/en-US/

擴充套件

  • Adblock Plus 2.7.3 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • Coder's Calendar 0.3.3 (jid1-ThQRNy5J1zU6Bg@jetpack)
  • Firebug 2.0.17 (firebug@software.joehewitt.com)
  • HttpFox 0.8.14.1-signed.1-signed ({4093c4de-454a-4329-8aff-c6b0b123c386})
  • ImageBlock 3.1 (imageblock@hemantvats.com)
  • Ubuntu Modifications 3.2 (ubufox@ubuntu.com)
  • Flareget Browser Integration 2.82.1-signed.1-signed.1-signed (support@flareget.com) (Inactive)
  • LeechBlock 1.0.3 ({a95d8332-e4b4-6e7f-98ac-20b733364387}) (Inactive)
  • Proxy Selector 1.31.1-signed.1-signed (proxyselector@mozilla.org) (Inactive)
  • Yandex translate - from anything to Russian (or from Russian to English) 1.9.3 (jid1-ac4GNZhbcz2Q0A@jetpack) (Inactive)

JavaScript

  • incrementalGCEnabled: True

圖形

  • adapterDescription: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
  • adapterDeviceID: Mesa DRI Intel(R) Haswell Mobile
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: Intel Open Source Technology Center
  • driverDate:
  • driverVersion: 3.0 Mesa 10.5.9
  • info: {u'CairoUseXRender': 1, u'AzureCanvasBackend': u'cairo', u'AzureFallbackCanvasBackend': u'none', u'AzureContentBackend': u'cairo', u'AzureSkiaAccelerated': 0}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • supportsHardwareH264: No;
  • webglRenderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Basic

修改過的偏好設定

其他

  • User JS: 否
  • 輔助功能: 否
the-edmeister
  • Top 25 Contributor
  • Moderator
5412 個解決方法 40311 個答案
Add-on support is over here: https://discourse.mozilla-community.org/c/add-ons

提出問題者

Instead of sending me from one forum to another it will be better to give solution link if this has been asked before .

Instead of sending me from one forum to another it will be better to give solution link if this has been asked before .