Commit Graph

2456 Commits

Author SHA1 Message Date
Adrian Wielgosik
93eb294385 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
53b104eab3 Bug 1460940 - Remove nsIDOMDocument uses in toolkit/. r=bz
MozReview-Commit-ID: LJhw1bKsUkn
2018-05-11 19:46:15 +02:00
Bogdan Tara
cf900408b9 Bug 1455405 - disable test_ext_webrequest_basic.html on linux 32 and 64 for frequent failures. r=jmaher 2018-05-11 08:52:00 +03:00
Kris Maglione
00f580d240 Bug 1460748: Load the correct affix file for WebExtension dictionaries. r=aswan
MozReview-Commit-ID: 1arZbiexgma
2018-05-10 15:42:29 -07:00
Margareta Eliza Balazs
d06d032d88 Merge inbound to mozilla-central. a=merge 2018-05-09 12:33:51 +03:00
Tooru Fujisawa
41aa207cb4 Bug 1420574 - Add CustomizableUITestUtils.prototype.{addSearchBar,removeSearchBar} to show search bar in nav bar and verify it does not overflow. r=Paolo 2018-05-09 09:48:40 +09:00
Jan-Erik Rediger
96146257d0 Bug 1320052 - Update external snapshot callers to not deal with subsessions. r=chutten
MozReview-Commit-ID: DGTer5oMnwd
2018-05-02 15:56:03 +02:00
Andrew Swan
1af4bc710c Bug 1457224 Enable delayed background page startup on Nightly r=zombie
MozReview-Commit-ID: 8xzBLmQRIL6
2018-04-26 10:28:58 -07:00
Andrew Swan
ec3ff5b7af Bug 1457224 Clean up extension testing helpers r=zombie
- Remove outdated appChanged logic from test helper function to start
  the AddonManager
- Avoid calling to the AddonManager in webextension tests that don't
  otherwise require the AddonManager

MozReview-Commit-ID: Fx4o1TzXTCd
2018-04-30 13:01:10 -07:00
Shane Caraveo
a5e056babe Bug 1457213 support early startup for proxy api, r=aswan
MozReview-Commit-ID: kMf8ig4U2S
2018-05-01 18:46:07 -05:00
Cosmin Sabou
6ae0d6ca5e Merge inbound to mozilla-central. a=merge 2018-05-02 17:58:43 +03:00
Tim Nguyen
9eb9f3d535 Bug 1432508 - Support default_locale in static theme manifests. r=aswan
MozReview-Commit-ID: HGbsztYtyjr
2018-05-02 09:48:14 +01:00
Narcis Beleuzu
31af7eedbc Backed out changeset b74e2721b7f0 (bug 1432508) for browser chrome failures on browser_ext_browserAction_theme_icons.js.CLOSED TREE 2018-05-02 10:39:38 +03:00
Tim Nguyen
fbcaa4ec56 Bug 1432508 - Support default_locale in static theme manifests. r=aswan
MozReview-Commit-ID: J5desAN98GQ
2018-04-29 19:20:42 +01:00
Zibi Braniecki
a2cf94f8a4 Bug 1455766 - Handle langpacks versions properly. r=aswan
MozReview-Commit-ID: HhY5SQOtFl7
2018-04-26 14:01:26 -07:00
Sebastian Hengst
fbb3023628 Bug 1457718 - test_ext_experiments.js result depends on MOZ_ALLOW_LEGACY_EXTENSIONS. r=kmag
MozReview-Commit-ID: 42lAMuFlhH
2018-04-29 23:24:15 +03:00
Andreea Pavel
68fa42ef9b Merge inbound to mozilla-central. a=merge 2018-04-28 20:30:18 +03:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Jonathan Kingston
c285bde064 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Cosmin Sabou
cd2df3e76b Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Cosmin Sabou
9f0c6460a5 Backed out changeset 8141b60030b9 (bug 1454820) for browser chrome failures on browser_901207_searchbar_in_panel.js on Linux debug. CLOSED TREE 2018-04-27 09:20:20 +03:00
Boris Zbarsky
9a8e024fa0 Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot 2018-04-26 23:37:29 -04:00
Kris Maglione
7334f58a19 Bug 1410214: Part 3 - Support packed WebExtension dictionaries. r=aswan,masayuki
MozReview-Commit-ID: 6nrw0IIe4UG
2018-04-26 13:26:05 -07:00
Kris Maglione
cfea814c3f Bug 1410214: Part 1 - Implement support for WebExtension-style dictionary add-ons. r=aswan,gandalf
MozReview-Commit-ID: 3oylyEBgrzB
2018-04-26 13:32:38 -07:00
Tim Nguyen
0c33a2eff7 Bug 1450554 - Fix identity box security color on dark themes. r=johannh
MozReview-Commit-ID: 4ulHEEAMonP
2018-04-26 10:48:22 +01:00
Cosmin Sabou
50d85b561e Backed out changeset 5e8342edb62d (bug 1454820) mochitest e-10s failures on test_bug386782.html. CLOSED TREE 2018-04-27 19:50:26 +03:00
Jonathan Kingston
131c049368 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Mark Hammond
ec6888212a Bug 1457071 - allow all extension-storage data to be deleted from the profile. r=glasserc
MozReview-Commit-ID: Dnb2kdcz1CH
2018-04-26 17:53:56 +10:00
Jonathan Kingston
fcf8743ad0 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Tiberius Oros
31ce26f0f3 Bug 1455405 - disable test_ext_webrequest_basic.html on Linux x64 on all build types except asan r=jmaher 2018-04-30 04:46:00 +03:00
Cosmin Sabou
dc16ce0787 Backed out changeset 7e3aa63ae752 (bug 1454820) for ESlint failure on extensions/Extension.jsm:509:22. CLOSED TREE 2018-04-27 14:46:19 +03:00
Jonathan Kingston
6243245712 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Shane Caraveo
fa5b498b4d Bug 1455755 Move browserSettings.proxyConfig to proxy.settings, r=aswan, mstrimer 2018-04-25 18:50:22 -05:00
Andrew Swan
f151f369f0 Bug 1447551 Part 2: Convert webRequest to persistent events r=mixedpuppy,kmag
MozReview-Commit-ID: ANprpK8Kw5Q
2018-04-20 11:41:30 -07:00
Andrew Swan
b1feeb96c8 Bug 1447551 Part 1: Fix some issues with persistent EventManagers r=kmag
- Un-lazify the startup promises in ext-toolkit.js since the
  manifest background property is handled asynchronously, so it
  races with startup and can miss the relevant events if it
  loses the race.
- Ensure that persistent events don't cause breakage when the
  background-delayed-startup preference is set to false.
- Add a wakeup() method to the fire object provided to primed
  listeners.  This method returns a Promise that resolves when
  the extension background page has started.  Events that need to
  do some work in the context of the extension can wait on the
  result of wakeup(), then continue processing after the background
  page is started, using fire.[a?]sync as normal.

MozReview-Commit-ID: HiYOguVdEQK
2018-04-20 16:09:13 -07:00
Rob Wu
77a949f94f Bug 1392067 - Disconnect open extension ports when the message manager goes away
- Previously, if a port is disconnected by the other end, then memory
  would be leaked to `ProxyMessenger.ports` in ExtensionParent.jsm.
  To fix this, the port descriptor is now saved separately, keyed by
  port ID instead of message manager.

- Previously, when a message manager was disconnected (e.g. window
  closed/tab crashed), the port is disconnected only if the port was
  created from that page.
  This patch adds bookkeeping to keep track of the message managers at
  both the sender and receiver's side, so that the port is always
  disconnected when the other side goes away.

- The new test browser_ext_port_disconnect_on_crash.js checks whether
  the ports are disconnected as expected. Previously, the subtest
  connect_from_tab_to_bg_and_crash_tab failed because of the previous
  point.

- Although not as deterministic as the crash test, the new
  browser_ext_port_disconnect_on_window_close.js reproduces the original
  test failure and serves as a regression test for the bug.

- Previously, the data structure in ProxyMessenger.ports contained
  the original `sender` and `recipient`. For the purpose of sending
  port disconnection messages, these are not necessary and therefore
  they have been removed.

- Fix incorrect JSDoc (type of portId is number, not string)

MozReview-Commit-ID: BoaKRVAUKuq
2018-04-25 22:31:03 +02:00
Kris Maglione
b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Gurzau Raul
5bab245fc3 Backed out 2 changesets (bug 1447551) for failing on xpcshell/test_ext_webRequest_startup.js
Backed out changeset cbae9dd05293 (bug 1447551)
Backed out changeset 50a1ddd35664 (bug 1447551)
2018-04-25 12:49:05 +03:00
Andrew Swan
fc50724788 Bug 1447551 Part 2: Convert webRequest to persistent events r=mixedpuppy,kmag
MozReview-Commit-ID: ANprpK8Kw5Q
2018-04-20 11:41:30 -07:00
Andrew Swan
b50f743c88 Bug 1447551 Part 1: Fix some issues with persistent EventManagers r=kmag
- Un-lazify the startup promises in ext-toolkit.js since the
  manifest background property is handled asynchronously, so it
  races with startup and can miss the relevant events if it
  loses the race.
- Ensure that persistent events don't cause breakage when the
  background-delayed-startup preference is set to false.
- Add a wakeup() method to the fire object provided to primed
  listeners.  This method returns a Promise that resolves when
  the extension background page has started.  Events that need to
  do some work in the context of the extension can wait on the
  result of wakeup(), then continue processing after the background
  page is started, using fire.[a?]sync as normal.

MozReview-Commit-ID: HiYOguVdEQK
2018-04-20 16:09:13 -07:00
Kris Maglione
0e5cc4744c Bug 1455406: Convert test_same_site_cookies_webextension to an xpcshell test. r=mixedpuppy
MozReview-Commit-ID: BFAmZUn349n
2018-04-19 12:49:19 -07:00
Tim Nguyen
9698f93bd0 Bug 1372694 - Stop making the default theme a heavyweight theme. r=kmag,aswan
MozReview-Commit-ID: 30wMauuc9oo
2018-04-01 13:53:31 +02:00
Shane Caraveo
c3ac564638 Bug 1455705 fix how browserSettings.proxyConfig sets network prefs, r=rpl
proxyConfig set urls onto the pref rather than host names.  This adds a round-trip test
with a test that uses the proxy after setting the config.  Also fixes setting prefs
when httpProxyAll is true.

MozReview-Commit-ID: FpXKjnOXEkl
2018-04-20 19:43:36 -05:00
Kris Maglione
d3bbf87c83 Bug 1454202: Part 1 - Update legacy callers to use Promise-based AddonManager APIs. r=aswan
***
Bug 1454202: Part 1a - Auto-replace uses of callback-based AddonManager APIs with Promise-based versions. r=aswan

This was done using the following script:

4cd5ae9597/processors/aom-api-generators.jsm

MozReview-Commit-ID: 8hobLz15a66
***
Bug 1454202: Part 1b - Manually fix eslint errors after auto-rewrite. r=aswan

This also deletes an obsolete test whose xpcshell variant was already deleted.

MozReview-Commit-ID: DM9W9Q2SVIE
***
Bug 1454202: Part 1c - Manually fix non-eslint issues after auto-rewrite. r=aswan

MozReview-Commit-ID: DtMscWZuExc
2018-04-14 19:38:18 -07:00
Dorel Luca
65816eb63f Merge mozilla-central to autoland 2018-04-21 02:03:27 +03:00
Bogdan Pozderca
6f22c5ef7c Bug 1418605 - The toolbar, toolbar_text, toolbar_field, toolbar_field_text, toolbar_field_border properties should apply to the findbar r=jaws,mconley,ntim
MozReview-Commit-ID: 821d7kR41mJ
2018-02-10 17:24:50 -05:00
Cosmin Sabou
449057ea0f Merge inbound to mozilla-central. a=merge 2018-04-20 01:29:10 +03:00
Christoph Kerschbaumer
826d6a509f Bug 1454914: Test web extensions are exempt from samesite cookie policy.r=jkt 2018-04-19 20:00:52 +02:00
Shane Caraveo
2cec3a5c7a Bug 1432645 add browserSetting to flip urlbar.openintab, r=rpl
MozReview-Commit-ID: 6egB1yj6bkI
2018-04-18 14:24:32 -05:00
Soeren Hentzschel
3a24a7e061 Bug 1400805 - added WebExtension API to get/set browser.display.use_document_fonts r=ntim,zombie
MozReview-Commit-ID: 9JaJN1yTxMy
2018-04-17 21:27:42 +02:00