Commit graph

1894 commits

Author SHA1 Message Date
Eliza Balazs
6b21545d1f Bug 1485567 - Disable test_ext_content_security_policy.js on win debug. r=jmaher
--HG--
extra : rebase_source : d02ef23df54f1b5238d4896d252f32bb576dfa65
2018-12-20 07:18:00 +02:00
Kris Maglione
778252994f Bug 1513366: Part 5 - Migrate extension process script to a JSM. r=aswan
This simplifies things all around, and gets rid of one more unnecessary
component registration.

--HG--
rename : toolkit/components/extensions/extension-process-script.js => toolkit/components/extensions/ExtensionProcessScript.jsm
extra : rebase_source : 7ceb6ada0730f8241bbd5ddbd889a320da22b1b1
2018-12-12 17:58:19 -08:00
tossj
8d271c1f4d Bug 1437258 - Move webRequestBlocking permission check to webRequest child to log error to debugging console. r=mixedpuppy
With this change, ext-webRequest.js will throw an ExtensionError when "blocking" is used without the "webRequestBlocking" permission, and ExtensionParent.jsm will relay that error to ExtensionChild.jsm so an error can be logged to the extension debugging console. Previously, the error was only being logged to the browser console.

Differential Revision: https://phabricator.services.mozilla.com/D9937

--HG--
extra : moz-landing-system : lando
2018-12-10 15:57:50 +00:00
Andrew Swan
57a0ea1bc6 Bug 1498027 Defer window/browser creation for extension pages r=kmag
Also, use a single hidden window to hold <browser> elements
for multiple extensions.

Differential Revision: https://phabricator.services.mozilla.com/D14163

--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js => browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId_private.js
extra : moz-landing-system : lando
2018-12-14 03:36:14 +00:00
Shane Caraveo
2f65e17f02 Bug 1345474 - Check incognito access for webNavigation api, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D12337

--HG--
extra : moz-landing-system : lando
2018-12-12 14:34:19 +00:00
Shane Caraveo
0758a6a1dc Bug 1345474 - Check incognito access for theme api, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D11709

--HG--
extra : moz-landing-system : lando
2018-12-10 21:32:14 +00:00
Shane Caraveo
7760ed3ea3 Bug 1345474 - Check incognito access for cookies api, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D11699

--HG--
extra : moz-landing-system : lando
2018-12-12 14:35:17 +00:00
Shane Caraveo
19887c0e90 Bug 1345474 - Check incognito access for webRequest api r=kmag
Depends on D4112

Differential Revision: https://phabricator.services.mozilla.com/D5571

--HG--
extra : moz-landing-system : lando
2018-12-10 21:30:43 +00:00
Shane Caraveo
593042d7b1 Bug 1345474 - Check incognito access for content scripts r=rpl
Depends on D4100

Differential Revision: https://phabricator.services.mozilla.com/D4109

--HG--
extra : moz-landing-system : lando
2018-12-10 21:27:45 +00:00
Shane Caraveo
ed2e4c07aa Bug 1345474 - Add policy flags to support incognito settings r=rpl,kmag
Differential Revision: https://phabricator.services.mozilla.com/D4100

--HG--
extra : moz-landing-system : lando
2018-12-10 21:27:22 +00:00
Mark Banner
0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
Csoregi Natalia
9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Csoregi Natalia
354257650e Merge mozilla-central to autoland. CLOSED TREE 2018-12-11 18:29:02 +02:00
Mark Banner
1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Jason Orendorff
4499193a01 Backed out 2 changesets (bug 1488417, bug 1259822) for web compat issues.
Backed out changeset b58b7cd29a0b (bug 1488417)
Backed out changeset f0c6e521429c (bug 1259822)

--HG--
extra : rebase_source : 8c06ed65ee33eddad7131694beb9740abeca82cb
2018-12-10 10:47:47 -06:00
Emilio Cobos Álvarez
1d7963c67b Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 14:23:35 -05:00
Emilio Cobos Álvarez
c9a4b595f3 Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 14:23:33 -05:00
arthur.iakab
168846ee68 Backed out 5 changesets (bug 1511138) for causing eslint failure on SelectChild.jsm CLOSED TREE
Backed out changeset daee82295b3c (bug 1511138)
Backed out changeset d23c9c3e1566 (bug 1511138)
Backed out changeset a99600391704 (bug 1511138)
Backed out changeset 4ef293b90887 (bug 1511138)
Backed out changeset 4df286b234b3 (bug 1511138)
2018-12-07 20:55:24 +02:00
Emilio Cobos Álvarez
e94c3c6180 Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 13:01:04 -05:00
Emilio Cobos Álvarez
f4b8cf19fc Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 13:01:03 -05:00
Ben Armstrong
448c4dc94c Bug 1503760: Changed browser.downloads.search({}) to return 0 byte downloads. r=aswan
Updated the totalBytesGreater property in browser.downloads.search({}) to default to -1 so files with a byte size of 0 will be returned.

Differential Revision: https://phabricator.services.mozilla.com/D12344

--HG--
extra : moz-landing-system : lando
2018-11-26 22:54:49 +00:00
shindli
a3fb3e15c2 Backed out changeset 1382e8cdf8a6 (bug 1437258) for xpcshell failures CLOSED TREE 2018-12-01 04:59:45 +02:00
tossj
ce98c21b5a Bug 1437258 - Added exception handling to log webRequest blocking error to debugging console. r=mixedpuppy
With this change, ext-webRequest.js will throw an ExtensionError when "blocking" is used without the "webRequestBlocking" permission, and ExtensionParent.jsm will relay that error to ExtensionChild.jsm so an error can be logged to the extension debugging console. Previously, the error was only being logged to the browser console.

Differential Revision: https://phabricator.services.mozilla.com/D9937

--HG--
extra : moz-landing-system : lando
2018-11-30 15:46:09 +00:00
Luca Greco
8a7ce0a354 Bug 1509339 - Support exporting apiScript arrays using the UserScript's export API method. r=zombie,robwu
Depends on D12678

Differential Revision: https://phabricator.services.mozilla.com/D12680

--HG--
extra : moz-landing-system : lando
2018-11-30 16:11:26 +00:00
Luca Greco
2074f536c7 Bug 1509339 - Implement a UserScript API object and remove the userScripts.setScriptAPIs method. r=zombie,robwu
Depends on D12676

Differential Revision: https://phabricator.services.mozilla.com/D12678

--HG--
extra : moz-landing-system : lando
2018-11-30 16:10:58 +00:00
Luca Greco
26591e4e51 Bug 1509339 - Split userScript's apiScript methods test into smaller xpcshell-test tasks. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D10061

--HG--
extra : moz-landing-system : lando
2018-11-30 16:08:04 +00:00
Luca Greco
93075fc624 Bug 1472740 - Avoid LWT aliases in theme API tests that are not specifically about LWT aliases. r=ntim,jaws
This patch replace the LWT aliases with their related non-deprecated alias in all the theme API tests
that don't seem to be specifically testing the LWT aliases (e.g. browser_ext_themes_lwtsupport.js is
leaved unmodified for this reason).

The main reason to replace them in the "not stricly LWT-related" tests before their final removal
(currently planned for Firefox 69) is that the deprecation warnings will make these tests more
noisy (and so they may be making harder to investigate failures, without any actual gain in terms
of coverage).

Depends on D12297

Differential Revision: https://phabricator.services.mozilla.com/D12783

--HG--
extra : moz-landing-system : lando
2018-11-26 16:10:36 +00:00
Shane Caraveo
93ce8de619 Bug 1507138 fix default port usage with proxy settings, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D13324

--HG--
extra : moz-landing-system : lando
2018-11-29 16:19:40 +00:00
Coroiu Cristina
d4aafa8e1c Merge inbound to mozilla-central a=merge 2018-11-28 23:49:09 +02:00
Jan-Erik Rediger
5fd1cd8036 Bug 1498163 - Migrate external callers to the new snapshot API r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D12890

--HG--
extra : moz-landing-system : lando
2018-11-28 09:36:03 +00:00
Andrea Marchesini
f399725b04 Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
Brindusan Cristian
025923e8bc Backed out 3 changesets (bug 1503681) for geckoview failures on org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. CLOSED TREE
Backed out changeset 211c7dfdc408 (bug 1503681)
Backed out changeset 076cc5bece1d (bug 1503681)
Backed out changeset 7a19fe6be68c (bug 1503681)
2018-11-28 11:10:48 +02:00
Andrea Marchesini
d69ebc1ae7 Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
Andreea Pavel
ebe85db8e7 Backed out changeset ad857edac6a5 (bug 1498163) for failing devtools/client/performance/test/browser_perf-telemetry-04.js on a CLOSED TREE 2018-11-27 11:05:28 +02:00
Jan-Erik Rediger
c6e72f0819 Bug 1498163 - Migrate external callers to the new snapshot API r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D12890

--HG--
extra : moz-landing-system : lando
2018-11-26 14:34:23 +00:00
Luca Greco
37fc08499b Bug 1496801 - Set persist mode on ExtensionStorageIDB for extensions with the unlimitedStorage permission. r=mixedpuppy,janv
Differential Revision: https://phabricator.services.mozilla.com/D7915

--HG--
extra : moz-landing-system : lando
2018-11-17 20:07:28 +00:00
Mark Banner
8fb3e110a9 Bug 1508322 - Define 'importGlobalProperties' variables as explicit in ESLint to help identify unused variables. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D12327

--HG--
extra : moz-landing-system : lando
2018-11-19 18:23:16 +00:00
Ehsan Akhgari
d28e1c14c6 Bug 1507689 - Fix an intermittent failure condition in test_WebExtensionContentScript.js which is turned into a perma-failure with the patch in bug 1504728 r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12093

--HG--
extra : moz-landing-system : lando
2018-11-16 21:42:02 +00:00
arthur.iakab
c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Timothy Guan-tin Chien
2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel
d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien
c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
Daniel Varga
5039d2e3f8 Merge mozilla-central to mozilla. a=merge on a CLOSED TREE 2018-11-11 23:49:08 +02:00
Brian Grinstead
b57202f633 Bug 1503342 - Rename richlistbox.children to richlistbox.itemChildren so .children will refer to the normal DOM API;r=paolo
In Bug 1479125 we put calls to .children that were intended to access child elements into the custom
method, which is a slower path. We may eventually want to remove itemChildren altogether and just assume
that all children are items, but that's out of scope for a perf fix like this.

Differential Revision: https://phabricator.services.mozilla.com/D10751

--HG--
extra : moz-landing-system : lando
2018-11-11 13:21:18 +00:00
Andrew Swan
1c87eeb691 Bug 1500198 Convert talos damp addon to a webextension r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D9337

--HG--
rename : testing/talos/talos/tests/devtools/addon/bootstrap.js => testing/talos/talos/tests/devtools/addon/api.js
rename : testing/talos/talos/tests/devtools/addon/content/damp.html => testing/talos/talos/tests/devtools/addon/damp.html
rename : testing/talos/talos/tests/devtools/addon/install.rdf => testing/talos/talos/tests/devtools/addon/manifest.json
extra : source : db40c647334687d2e97b537c955d834cff0452b8
extra : histedit_source : a83ca0deeda71c358b00743970feb22c9562beed%2Ce09a3ec4c83163775d24dc3046823d660e2cca33
2018-11-07 18:52:06 -08:00
Jan Henning
4aeb4f5c39 Bug 1429488 - Part 5: Support persisting moz-extension resources. r=Gijs
Bug 1344926 integrated static themes more closely into the existing infra-
structure for lightweight themes and also intended the static theme's image data
to be persisted to disk as well.

While the headerURL image file is in fact successfully copied out of the
extension archive into the profile, the persist progress listener being used
isn't equipped to properly handle this case and therefore the success callback
is never executed.

As a result
- the callback passed to _persistImages in the LWTManager isn't executed,
  either, although because setting the fallbackThemeData passes in an empty
  callback anyway, no one noticed.
- the persist operation never actually completes, so subsequent calls to
  currentThemeForDisplay() always return the original moz-extension:// image URI
  and never the persisted file from the profile folder.

For Android we definitively require a working callback in order to be able to
forward the fixed-up theme data once the image data has been persisted, so the
persistProgressListener's logic is modified accordingly.
Additionally, because as far as the LWTManager is concerned, WE static themes
are only fallback themes and a call to LWTManager.currentTheme will therefore
never return a WE static theme, the LWTPersister's logic to check whether the
theme, whose files have just been successfully persisted, is still the current
theme, needs to be modified.

Differential Revision: https://phabricator.services.mozilla.com/D10729

--HG--
extra : source : 91b2a9224846ef9cc81f1afc9fcfcd1db278644b
extra : histedit_source : d8a47bba3563cb8eb0faf94a7c1f28ba2925d80c
2018-10-22 22:08:01 +02:00
Andrew Swan
cec5e01ad1 Bug 1500265: Remove support for hybrid WebExtensions. r=kmag
--HG--
extra : rebase_source : 92eeb2fd34cc6e9f3361bc0ee33b40f59379ea86
extra : amend_source : 7126a6de6953affabc4530638ab23fe230dcd9c4
2018-11-14 15:47:21 -08:00
Dão Gottwald
6dda6f1766 Bug 1505801 - Use --lwt-accent-color behind --toolbar-bgcolor in the find bar background. r=ntim
--HG--
extra : rebase_source : 13b8fb97d8afdffcdb62691bb11045ebbf2f28b7
2018-11-09 11:44:15 +01:00
Jared Wein
5a6ffe9618 Bug 1505328 - Remove the theme transition from the title bar. r=dao
This patch solves half of the problem but it will still show the transition when the window regains focus. I am OK with removing the transition on the title bar, we will still have it on the navbar and bookmarks toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D11282

--HG--
extra : moz-landing-system : lando
2018-11-08 22:35:51 +00:00
Csoregi Natalia
dd3666f9d4 Backed out changeset 09ceaf8491d8 (bug 1505328) for browser_ext_management.js failures. CLOSED TREE 2018-11-08 22:54:10 +02:00
Jared Wein
c887792c09 Bug 1505328 - Remove the theme transition from the title bar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11282

--HG--
extra : moz-landing-system : lando
2018-11-08 18:43:02 +00:00
Jonathan Kingston
4248b4c554 Bug 1490257 - Pass triggeringPrincipal to test code. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10882

--HG--
extra : moz-landing-system : lando
2018-11-05 14:05:47 +00:00
Shane Caraveo
985fda0279 Bug 1504008 correctly show/not show protocol hander dialog, r=aswan
If no handlers exist for a protocol, dont show the handler chooser dialog.
If a default handler exists, force showing the dialog when a new handler
has been installed so the user may choose the new handler.

Differential Revision: https://phabricator.services.mozilla.com/D10737

--HG--
extra : moz-landing-system : lando
2018-11-02 17:58:01 +00:00
Arshad Kazmi
69a05f48b6 Bug 1420744 - Extensions downloads.download api with saveAs flag, skips file picker in android r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D7118

--HG--
extra : moz-landing-system : lando
2018-10-23 18:03:17 +00:00
Daniel Varga
77036132f7 Merge autoland to mozilla-central. a=merge 2018-11-02 00:26:12 +02:00
Jan-Erik Rediger
50555e7773 Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten
Depends on D9236

Differential Revision: https://phabricator.services.mozilla.com/D9237

--HG--
extra : moz-landing-system : lando
2018-11-01 13:46:59 +00:00
Gurzau Raul
424b125b93 Backed out changeset 523ff2753dea (bug 1490257) for causing Bug 1503757 a=backout 2018-11-01 15:27:30 +02:00
Jonathan Kingston
873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
Andrew McCreight
c87fb5b0a9 Bug 1499865 - Make loadedModules and loadedComponents into array attributes. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D9561

--HG--
extra : moz-landing-system : lando
2018-10-23 23:28:44 +00:00
Andrew McCreight
4c274219f8 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader. r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

Differential Revision: https://phabricator.services.mozilla.com/D8168

--HG--
extra : moz-landing-system : lando
2018-10-23 00:47:16 +00:00
Luca Greco
02b1c3c4d5 Bug 1498343 - Make it easier to recognize an extension that have access to the userScript.setScriptAPIs API method. r=mixedpuppy
Depends on D8538

Differential Revision: https://phabricator.services.mozilla.com/D8539

--HG--
extra : moz-landing-system : lando
2018-10-17 12:39:20 +00:00
Luca Greco
c978631678 Bug 1498343 - Add more assertions related to behaviors on redefined globals and prototype methods in the userScript tests. r=mixedpuppy
Depends on D8537

Differential Revision: https://phabricator.services.mozilla.com/D8538

--HG--
extra : moz-landing-system : lando
2018-10-15 17:56:34 +00:00
Luca Greco
2d797a01ef Bug 1498343 - Fix and re-enable userScript test disabled in Bug 1498343. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D8537

--HG--
extra : moz-landing-system : lando
2018-10-18 12:19:51 +00:00
Luca Greco
8dd8306889 Bug 1499363 - Fix userScript test failure on beta due to runWithPrefs not restoring the initial prefs values. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D9107

--HG--
extra : moz-landing-system : lando
2018-10-18 17:14:24 +00:00
Dorel Luca
88bfc3786c Backed out 5 changesets (bug 1497707) for android mass failures. CLOSED TREE
Backed out changeset bb1b80139e37 (bug 1497707)
Backed out changeset 11c813f192e2 (bug 1497707)
Backed out changeset 32595f9e73d3 (bug 1497707)
Backed out changeset f37f2d39ec9c (bug 1497707)
Backed out changeset 80bf9ddf5bed (bug 1497707)

--HG--
extra : rebase_source : 598b7732d9b994dfeb63c417841a4b9516ecdf19
2018-10-18 00:35:39 +03:00
Andrew McCreight
7c9511ad37 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

Differential Revision: https://phabricator.services.mozilla.com/D8168

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:41 +00:00
Rob Wu
92e0725cbb Bug 1491397 - Correctly forward falsey scriptMetadata in userScripts API r=rpl
This also adds new test coverage for the previously untested features:
- "file" in "js" param to userScripts.register works.
- "allFrames" set to true in userScripts.register works.
- scriptMetadata accepts primitive values, and in particular falsey
  values in particular (= bug 1491397 ).
 - scriptMetadata is the same object in all API script calls.

Differential Revision: https://phabricator.services.mozilla.com/D8582

--HG--
extra : moz-landing-system : lando
2018-10-15 18:05:08 +00:00
Dorel Luca
451e26f0c6 Backed out changeset 8d7987ea4fb1 (bug 1490257) for causing android failures. CLOSED TREE 2018-10-15 14:39:00 +03:00
Jonathan Kingston
8bcd10a7ab Bug 1490257 - Add asserts and remove implied system triggering principal code r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8368

--HG--
extra : moz-landing-system : lando
2018-10-15 06:29:45 +00:00
Narcis Beleuzu
e09f2e2622 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-12 06:53:11 +03:00
divyansh
a5939cf925 Bug 1478694 - Ensure that WebExtensions alarms set in the past are fired immediately. r=rpl
Bug 1478694 - Ensure that WebExtensions alarms set in the past are fired immediately.

Differential Revision: https://phabricator.services.mozilla.com/D7287

--HG--
extra : moz-landing-system : lando
2018-10-11 19:22:21 +00:00
Gijs Kruitbosch
3fd8c2aca5 Bug 1497364 - allow browser_ext_themes_dynamic_getCurrent.js to work if window focus becomes more async, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D8078

--HG--
extra : moz-landing-system : lando
2018-10-10 12:14:16 +00:00
Tomislav Jovanovic
7910836509 Bug 1496532 - Stop running content scripts on preallocated new tab page r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D7976

--HG--
extra : moz-landing-system : lando
2018-10-08 19:40:20 +00:00
Shane Caraveo
e7fedf66f4 Bug 1494328 fix launchWebAuthFlow to use default redirect_uri r=aswan
Some oauth services require the redirect uri be configured on their service,
and the reject the redirect_uri param if we send it.  Chrome works fine in this scenario,
but we have been requiring the redirect_uri be provided.  This addresses that requirement
by using our own default redirect url, which would be the url used to configure the
oauth service.

Differential Revision: https://phabricator.services.mozilla.com/D6945

--HG--
extra : moz-landing-system : lando
2018-09-28 13:18:00 +00:00
Tomislav Jovanovic
7cb46fea7c Bug 1484980 - Add selective canvas tainting for content scripts r=bzbarsky
Reviewers: bzbarsky

Bug #: 1484980

Differential Revision: https://phabricator.services.mozilla.com/D6999
2018-09-26 20:29:36 +02:00
Ciure Andrei
4cd1cc463e Backed out 1 changesets (bug 1492519) for tps perma failures a=backout
Backed out changeset f2b2b043c046 (bug 1492519)
2018-09-28 14:50:45 +03:00
Ciure Andrei
819cd31a93 Merge inbound to mozilla-central. a=merge 2018-09-28 11:53:32 +03:00
Brian Grinstead
eaaac5ca03 Bug 1460982 - Convert <searchbar> to a Custom Element;r=adw
Differential Revision: https://phabricator.services.mozilla.com/D5912

--HG--
rename : browser/components/search/content/search.xml => browser/components/search/content/searchbar.js
extra : moz-landing-system : lando
2018-09-27 23:09:55 +00:00
Rob Wu
fd1f17a6e3 Bug 1280347 - Require a permission for the API r=mixedpuppy
The new permission is added to make it easier to audit the usage of the
API. It is an optional permission, in case we ever decide to introduce
a permission warning for it.

Differential Revision: https://phabricator.services.mozilla.com/D6771

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:07 +00:00
Dão Gottwald
1a784b026b Bug 1492519 - lightweightThemes.selectedThemeID default should be "default-theme@mozilla.org" rather than "". r=aswan 2018-09-21 16:22:30 +02:00
Andrea Marchesini
61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Andreea Pavel
1cdcfb64dc Bug 1489771 - disable test_ext_subframes_privileges.html on android r=gbrown 2018-09-20 19:02:00 +03:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

Differential Revision: https://phabricator.services.mozilla.com/D6339

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Ehsan Akhgari
f8ef224ee2 Bug 1493057 - Make sure test_ext_privacy.js doesn't depend on the default value of the network.cookie.cookieBehavior preference r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D6456

--HG--
extra : moz-landing-system : lando
2018-09-21 15:12:10 +00:00
Luca Greco
28fc8336c0 Bug 1491272 - Lock experimental userScripts API behind a pref and make it enabled by default on Nightly. r=mixedpuppy
Depends on D6146

Differential Revision: https://phabricator.services.mozilla.com/D6147

--HG--
extra : moz-landing-system : lando
2018-09-20 17:10:37 +00:00
Luca Greco
792d7cbf1b Bug 1491272 - Require user_scripts manifest property to have access to the userScripts API namespace. r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D6146

--HG--
extra : moz-landing-system : lando
2018-09-20 17:09:11 +00:00
Luca Greco
e834e90cb2 Bug 1433335 - Send telemetry events for each AddonManager action on an extension. r=aswan
- Added definitions for the new telemetry events
- Send telemetry events for each AddonManager action on an extension.
- Ensure that telemetry events are sent also for the extension prompts.

Differential Revision: https://phabricator.services.mozilla.com/D4448

--HG--
extra : moz-landing-system : lando
2018-09-19 16:43:11 +00:00
Arshad Kazmi
8494711fea Bug 1463487 - Use urldecoded filename by default in downloads.download r=robwu,aswan
Differential Revision: https://phabricator.services.mozilla.com/D5558

--HG--
extra : moz-landing-system : lando
2018-09-19 03:51:55 +00:00
Luca Greco
747f4cbfca Bug 1491782 - Allow unrecognized user_scripts manifest properties. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D6016

--HG--
extra : moz-landing-system : lando
2018-09-17 20:47:58 +00:00
Luca Greco
633796a0fc Bug 1491388 - Clear userScripts revoked urls and refresh sharedData contentScripts on register/unregister. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5885

--HG--
extra : moz-landing-system : lando
2018-09-15 20:38:43 +00:00
Luca Greco
202b39bc4b Bug 1491051 - Avoid awaiting a promise when all the content scripts are already precompiled and cached. r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5794

--HG--
extra : moz-landing-system : lando
2018-09-15 18:42:23 +00:00
Tarek Ziadé
c955693f09 Bug 1479740 - Track Web API calls made in the child - r=florian,mixedpuppy
The performance counter is now also used in the children, and
the ParentAPIManager.retrievePerformanceCounters() can be used
to aggregate all counters into a promise.

Differential Revision: https://phabricator.services.mozilla.com/D5399

--HG--
extra : moz-landing-system : lando
2018-09-14 14:29:08 +00:00
Brian Grinstead
a2db8cd913 Bug 1411707 - Switch findbar and findbar-textbox from XBL bindings into a Custom Element;r=paolo
MozReview-Commit-ID: F95i9H9FvYv

Differential Revision: https://phabricator.services.mozilla.com/D5596

--HG--
rename : toolkit/content/widgets/findbar.xml => toolkit/content/widgets/findbar.js
extra : moz-landing-system : lando
2018-09-14 18:30:31 +00:00
Luca Greco
e557551409 Bug 1491036 - Allow null type into PlainJSONValue WebExtensions schema type definition. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5779

--HG--
extra : moz-landing-system : lando
2018-09-13 20:43:14 +00:00
Noemi Erli
abe2f49a95 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-14 01:17:10 +03:00
Noemi Erli
a548d10a8c Merge inbound to mozilla-central. a=merge 2018-09-14 01:01:37 +03:00
Cosmin Sabou
3061c72b4b Backed out changeset f1cc448b5137 (bug 1491024) for failures on test_ext_userScripts. CLOSED TREE 2018-09-13 22:11:41 +03:00
Luca Greco
87e37e32a0 Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5777

--HG--
extra : source : f1cc448b5137c220962a35f1816f112f931de119
2018-09-13 15:33:12 +00:00
Luca Greco
44493dc39f Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5777

--HG--
extra : moz-landing-system : lando
2018-09-13 15:33:12 +00:00
Gabriele Svelto
b605bebd6a Bug 1488401 - Remove the remnants of the DiskSpaceWatcher r=asuth,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4933

--HG--
extra : moz-landing-system : lando
2018-09-13 06:40:51 +00:00
Jason Orendorff
a644a2e695 Bug 1488417 - Even better error message on property access on undefined/null variable.
Differential Revision: https://phabricator.services.mozilla.com/D5711

--HG--
extra : moz-landing-system : lando
2018-09-12 22:02:17 +00:00
Luca Greco
0f496e199e Bug 1470466 - Use a different telemetry histogram key for the userScripts injection. r=janerik,mixedpuppy
This patch adds a new telemetry histogram for the userScripts injection time and adds an additional test case to verify that the expected telemetry histograms are being updated.

This phabricator revision depends on the following bugs and their related mozreview requests:

- [Bug 1437861](https://bugzilla.mozilla.org/1437861) Implement userScripts.register and execute userScripts js code in isolated sandboxes (https://reviewboard.mozilla.org/r/219856/)
- [Bug 1437864](https://bugzilla.mozilla.org/1437866) Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes (https://reviewboard.mozilla.org/r/220630/)

Differential Revision: https://phabricator.services.mozilla.com/D3893

--HG--
extra : moz-landing-system : lando
2018-09-12 16:58:55 +00:00
Luca Greco
6056022481 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

Differential Revision: https://phabricator.services.mozilla.com/D4355

--HG--
extra : moz-landing-system : lando
2018-09-12 16:46:24 +00:00
Luca Greco
c322d3c14f Bug 1437861 - Implement userScripts.register and execute userScripts js code in isolated sandboxes. r=zombie,mixedpuppy
This patch introduces the userScripts API namespace and the userScripts.register API method,
which allows an extension to register some javascript code to run on the matched webpages
into an isolated sandbox (whereas all the content scripts from the same extension run in
a per-window sandbox shared by all the extension content scripts).

Differential Revision: https://phabricator.services.mozilla.com/D4353

--HG--
extra : moz-landing-system : lando
2018-09-12 16:44:54 +00:00
Eliza Balazs
27e0d60857 Bug 1482983 - Disable test_ext_webrequest_frameId.html on linux webrender for frequent failures caused by 1480951. r=aryx 2018-09-12 01:45:00 +03:00
Bogdan Tara
9c802a42f1 Backed out 4 changesets (bug 1437864, bug 1470466, bug 1437861) for Android xpcshell failures CLOSED TREE
Backed out changeset a6185abfc2f8 (bug 1470466)
Backed out changeset 82d60e34a977 (bug 1437864)
Backed out changeset 7634d9d14449 (bug 1437864)
Backed out changeset a92b6e069d7e (bug 1437861)
2018-09-12 00:57:00 +03:00
Luca Greco
0a4bdf7e7e Bug 1470466 - Use a different telemetry histogram key for the userScripts injection. r=janerik,mixedpuppy
This patch adds a new telemetry histogram for the userScripts injection time and adds an additional test case to verify that the expected telemetry histograms are being updated.

This phabricator revision depends on the following bugs and their related mozreview requests:

- [Bug 1437861](https://bugzilla.mozilla.org/1437861) Implement userScripts.register and execute userScripts js code in isolated sandboxes (https://reviewboard.mozilla.org/r/219856/)
- [Bug 1437864](https://bugzilla.mozilla.org/1437866) Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes (https://reviewboard.mozilla.org/r/220630/)

Differential Revision: https://phabricator.services.mozilla.com/D3893

--HG--
extra : moz-landing-system : lando
2018-09-11 10:11:26 +00:00
Luca Greco
fd88da28d9 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

Differential Revision: https://phabricator.services.mozilla.com/D4355

--HG--
extra : moz-landing-system : lando
2018-09-11 10:09:50 +00:00
Luca Greco
aa17481856 Bug 1437861 - Implement userScripts.register and execute userScripts js code in isolated sandboxes. r=zombie,mixedpuppy
This patch introduces the userScripts API namespace and the userScripts.register API method,
which allows an extension to register some javascript code to run on the matched webpages
into an isolated sandbox (whereas all the content scripts from the same extension run in
a per-window sandbox shared by all the extension content scripts).

Differential Revision: https://phabricator.services.mozilla.com/D4353

--HG--
extra : moz-landing-system : lando
2018-09-11 10:06:30 +00:00
Cosmin Sabou
bc5a7500cd Backed out changeset cfd695493ec7 (bug 1488417) for causing mochitest failures on test_browserElement_inproc_ExecuteScript. CLOSED TREE 2018-09-11 17:43:32 +03:00
Jason Orendorff
d3a1e8ea56 Bug 1488417 - Even better error message on property access on undefined/null variable. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D5197

--HG--
extra : moz-landing-system : lando
2018-09-11 13:00:52 +00:00
Kris Maglione
09c4acee00 Fix absurd assertion message. r=me (no bug) DONTBUILD
--HG--
extra : amend_source : 7a8cf1806e7b6a9f9b64e463882ea6136ff1f54d
2018-09-07 17:38:58 -07:00
Luca Greco
bc6ccc75fd Bug 1489315 - Move ExtensionTelemetry into its own JSM module. r=mixedpuppy
This patch moves the ExtensionTelemetry helpers (added into ExtensionUtils.jsm by Bug 1483002)
into a new ExtensionTelemetry.jsm and makes the ExtensionTelemetry a lazy getter on every one
of the JSM and API modules that are going to use it, so that we don't have to load these helpers
until they are actually used and we can reduce their impact on the base content memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D5266

--HG--
extra : moz-landing-system : lando
2018-09-07 16:27:44 +00:00
Rob Wu
05e087da1a Bug 1488105 - Fix routing of extension port messages to non-tab contexts r=mixedpuppy
Fixes bug 1488105 and adds two new test files:

- browser test to test ping-pong from background page, sidebar and browserAction.

- xpcshell test with same test logic, mainly for Android test coverage.
  The test uses uses contentScripts.register instead of the manifest
  file to also have test coverage for contentScripts.register + child
  frames in the background page.

These tests serve as a regression test for bug 1488105 and bug 1463074.

Differential Revision: https://phabricator.services.mozilla.com/D5261

--HG--
extra : moz-landing-system : lando
2018-09-07 14:59:22 +00:00
Rob Wu
78f137f2c2 Bug 1315513 - Replace test_ext_alarms_replaces with reliable test r=aswan
The original test_ext_alarms_replaces test was sensitive to system loads
that slowed down the execution of the test, resulting in intermittent
failures.

This new test tests the equivalent behavior (namely that calling
browser.alarms.create replaces a previous alarm), without being
sensitive to system load. This is achieved by creating a repeating alarm
and immediately replacing this alarm with a one-shot alarm that runs
later than the original alarm.

Differential Revision: https://phabricator.services.mozilla.com/D4698

--HG--
extra : moz-landing-system : lando
2018-09-06 20:20:59 +00:00
Narcis Beleuzu
8d6a7af6ba Backed out 1 changesets (bug 1315513) for xpcshell failures on test_ext_alarms_replaces.js. CLOSED TREE
Backed out changeset a3deb2827c8e (bug 1315513)
2018-09-06 20:54:07 +03:00
Rob Wu
c69f84282e Bug 1315513 - Replace test_ext_alarms_replaces with reliable test r=aswan
The original test_ext_alarms_replaces test was sensitive to system loads
that slowed down the execution of the test, resulting in intermittent
failures.

This new test tests the equivalent behavior (namely that calling
browser.alarms.create replaces a previous alarm), without being
sensitive to system load. This is achieved by creating a repeating alarm
and immediately replacing this alarm with a one-shot alarm that runs
later than the original alarm.

Differential Revision: https://phabricator.services.mozilla.com/D4698

--HG--
extra : moz-landing-system : lando
2018-09-06 17:12:13 +00:00
Luca Greco
88b7be38f8 Bug 1483002 - Added WEBEXT probes keyed by addon id. r=janerik,mixedpuppy
This patch contains a set of changes needed to add WEBEXT telemetry probes keyed by addon id.

The telemetry probes keyed by addon id has been added as separate telemetry histograms
named after the related generic WEBEXT probe with the additional "_BY_ADDONID" suffix.

A set of small helper methods have been defined in a new ExtensionTelemetry object, exported
by the ExtensionUtils.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D4437

--HG--
extra : moz-landing-system : lando
2018-09-05 20:16:35 +00:00
Rob Wu
f9c7d11a3a Bug 1462121 - Improve reliability of context.contentWindow/active r=zombie
- Register pagehide/pageshow events in the system group and ignore
  synthetic events to avoid interference from web pages.
- Remove unused docShell member.
- Fix memory leak in bfcached windows, by ensuring that BaseContext
  instances can be GC'd when an extension is unloaded, even if the
  context is associated with a page in the bfcache.
- Ensure that context.contentWindow and context.active always have an
  accurate value.

The latter is achieved by moving all contentWindow tracking logic in a
new helper class "InnerWindowReference".

Differential Revision: https://phabricator.services.mozilla.com/D4072

--HG--
extra : moz-landing-system : lando
2018-09-05 12:11:09 +00:00
Tim Nguyen
eda7b67115 Bug 1488000 - Allow theming sidebar border color. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D4839

--HG--
extra : moz-landing-system : lando
2018-09-04 21:33:46 +00:00
shindli
561c1777fb Backed out changeset 8d6a57caa626 (bug 1462121) for bc16 failures in browser_ext_getViews.js 2018-09-04 19:25:19 +03:00
Rob Wu
d7e758ca6e Bug 1462121 - Improve reliability of context.contentWindow/active r=zombie
- Register pagehide/pageshow events in the system group and ignore
  synthetic events to avoid interference from web pages.
- Remove unused docShell member.
- Fix memory leak in bfcached windows, by ensuring that BaseContext
  instances can be GC'd when an extension is unloaded, even if the
  context is associated with a page in the bfcache.
- Ensure that context.contentWindow and context.active always have an
  accurate value.

The latter is achieved by moving all contentWindow tracking logic in a
new helper class "InnerWindowReference".

Differential Revision: https://phabricator.services.mozilla.com/D4072

--HG--
extra : moz-landing-system : lando
2018-09-04 13:17:10 +00:00
Margareta Eliza Balazs
8f250956ce Backed out changeset e31d944d504b (bug 1462121) for mozbuild bustage in /builds/worker/workspace/build/src/toolkit/components/extensions/moz.build CLOSED TREE 2018-09-04 15:26:45 +03:00
Rob Wu
21e439aacf Bug 1462121 - Improve reliability of context.contentWindow/active r=zombie
- Register pagehide/pageshow events in the system group and ignore
  synthetic events to avoid interference from web pages.
- Remove unused docShell member.
- Fix memory leak in bfcached windows, by ensuring that BaseContext
  instances can be GC'd when an extension is unloaded, even if the
  context is associated with a page in the bfcache.
- Ensure that context.contentWindow and context.active always have an
  accurate value.

The latter is achieved by moving all contentWindow tracking logic in a
new helper class "InnerWindowReference".

Differential Revision: https://phabricator.services.mozilla.com/D4072

--HG--
extra : moz-landing-system : lando
2018-09-04 12:12:01 +00:00
Geoff Brown
5181659443 Bug 1487877 - Disable some xpcshell tests on Android/debug only; r=me,a=test-only
These continue to run on Android/opt and on debug on other platforms. These tests
have very-long run times on Android/debug, making it impossible to balance chunk
run-times and causing intermittent task timeouts.
2018-09-03 08:57:55 -06:00
Narcis Beleuzu
721842eed8 Merge inbound to mozilla-central. a=merge 2018-09-02 00:56:16 +03:00
Rob Wu
dbc64fd7ba Bug 1484062 - Add optional favicon.ico expectation to test_ext_webrequest_filter.html r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4654

--HG--
extra : moz-landing-system : lando
2018-08-30 13:31:21 +00:00
Tim Nguyen
825932cc26 Bug 1484891 - Make sidebar and sidebar_text properties apply to the sidebar header. r=dao 2018-08-23 14:21:59 +01:00
Luca Greco
9925dfcc35 Bug 1487121 - Allow proxy.settings.set calls without an explicit proxyType property. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4562

--HG--
extra : moz-landing-system : lando
2018-08-30 13:48:36 +00:00
Kershaw Chang
08bb991b4d Bug 1357676 - Modify failed tests r=jdm
We've introduced a new pref network.cookie.quotaPerHost and also a rule that the value of network.cookie.maxPerHost should always be bigger than network.cookie.quotaPerHost. So, before changing the value of network.cookie.maxPerHost, we have to set network.cookie.quotaPerHost first.
This patch only sets network.cookie.quotaPerHost equal to network.cookie.maxPerHost - 1 in all failed tests.

Differential Revision: https://phabricator.services.mozilla.com/D4346

--HG--
extra : moz-landing-system : lando
2018-08-30 15:41:37 +00:00
Rob Wu
404b079aa8 Bug 1381799 - Fix intermittent test_alarm_clear_non_matching_name r=aswan
The failure from the bug could happen if the test runs so slow that the
timer expires before the existence of the alarm is checked.
To avoid that failure, extend the lifetime of the alarm from 2 to 2000
seconds.

Differential Revision: https://phabricator.services.mozilla.com/D4678

--HG--
extra : moz-landing-system : lando
2018-08-30 15:33:12 +00:00
Rob Wu
88ec13510d Bug 1465388 - Resume about:blank parser upon unblocking the document r=hsivonen
When `document.blockParsing()` is called, the nsIParser is suspended
until the document is unblocked. For about:blank documents, this is a
nsParser.

When a document is unblocked, nsParser::ContinueInterruptedParsingAsync
is invoked, which delegates its implementation to nsIContentSink, which
is a nsHTMLContentSink for about:blank documents. Due to a missing
implementation of nsHTMLContentSink::ContinueInterruptedParsingAsync,
the parser was never resumed, causing bug 1465388 and bug 1407501.

This patch fixes the problem, by implementing the required method (and
using a load blocker to ensure that the (about:blank) document does not
finish before the parser finishes).

This patch is tested through extension tests: Currently document_start
stylesheets always activate the parser blocker, and document_start
scripts trigger the parser blocker when the script has not been
preloaded yet (e.g. at the first run).
Before this patch, the test failed due to the assertion failure as
reported in the linked bugs. After this patch, the tests pass.

Differential Revision: https://phabricator.services.mozilla.com/D4352

--HG--
extra : moz-landing-system : lando
2018-08-29 11:52:49 +00:00
Margareta Eliza Balazs
2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Andreea Pavel
65e947cc68 Backed out changeset 126368a5c3ec (bug 1465388) for causing topcrash bug 1487004 a=backout 2018-08-29 11:39:19 +03:00
Rob Wu
618a64cb28 Bug 1465388 - Resume about:blank parser upon unblocking the document r=hsivonen
When `document.blockParsing()` is called, the nsIParser is suspended
until the document is unblocked. For about:blank documents, this is a
nsParser.

When a document is unblocked, nsParser::ContinueInterruptedParsingAsync
is invoked, which delegates its implementation to nsIContentSink, which
is a nsHTMLContentSink for about:blank documents. Due to a missing
implementation of nsHTMLContentSink::ContinueInterruptedParsingAsync,
the parser was never resumed, causing bug 1465388 and bug 1407501.

This patch fixes the problem, by implementing the required method (and
using a load blocker to ensure that the (about:blank) document does not
finish before the parser finishes).

This patch is tested through extension tests: Currently document_start
stylesheets always activate the parser blocker, and document_start
scripts trigger the parser blocker when the script has not been
preloaded yet (e.g. at the first run).
Before this patch, the test failed due to the assertion failure as
reported in the linked bugs. After this patch, the tests pass.

Differential Revision: https://phabricator.services.mozilla.com/D4352

--HG--
extra : moz-landing-system : lando
2018-08-28 05:28:21 +00:00
Tim Nguyen
d0b7351fd9 Bug 1486018 - Make additional_backgrounds_alignment default to right top. r=dao
--HG--
extra : rebase_source : a96efbc387cca4b424aaa5116f3548a69e9de046
2018-08-24 21:03:11 +01:00
Brendan Dahl
f6923ccc24 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265

--HG--
extra : moz-landing-system : lando
2018-08-25 00:16:27 +00:00
Ciure Andrei
9aabc73223 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-29 01:31:20 +03:00
Kris Maglione
53f96aa226 Bug 1486182: Part 2a - Add Services.catMan getter for the category manager. r=mossop
This makes it much easier to update existing consumers of
XPCOMUtils.enumerateCategoryEntries to use the category manager directly.

It also, unfortunately, requires updating existing category manager consumers
to use the Services getter in order to avoid ESLint errors.

Differential Revision: https://phabricator.services.mozilla.com/D4278

--HG--
extra : rebase_source : fb9fd9b21db80af472ff6250a2e9a35e8d538147
2018-08-24 22:13:57 -07:00
Tooru Fujisawa
ebe7394edf Bug 1259822 - Show property key in the error message when target object value is null or undefined. r=jorendorff 2018-08-24 13:22:13 +09:00
Kris Maglione
6adf9223ce Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3730

--HG--
extra : rebase_source : 935f166ec2c6581ba6f3fffe912404e81c8dc3d6
extra : histedit_source : ba701801de5205dcce6cfdccabe7b26aa7c7859c
2018-08-18 19:27:50 -07:00
Luca Greco
52b320151f Bug 1467352 - Fix test_ext_storage_telemetry intermittency on win64-ccov. r=mixedpuppy
I've been unable to reproduce this intermittent locally (even by creating a
"win64 ccov debug" build on Windows 10), but it has been easy enough to trigger
on try.

The failure is triggered when the test has been completed and it is unloading the test extension1,
by the `NS_ERROR_FILE_ACCESS_DENIED` error raised from Extension's `cleanupGeneratedFile`
(https://searchfox.org/mozilla-central/rev/f2ac80ab7dbde5400a3400d463e07331194dec94/toolkit/components/extensions/Extension.jsm#1835-1841).

By comparing the test behavior when it runs successfully locally and fails on try, I've been
finally able to identify what goes wrong when it fails:

The reason for the `NS_ERROR_FILE_ACCESS_DENIED` is the ScriptCache entry for the
test extension1's content script, which is created when we create and load the
test content page which triggers it, this script cache entry should be cleared
when the extension shutdown (and it is cleared when the test runs successfully)

Then, right after the content script is executed, the contentPage is closed and this
is where something goes (intermittently) wrong with the ipc (and the following pipe errors
may be related to it: https://treeherder.mozilla.org/logviewer.html#?job_id=194750915&repo=mozilla-central&lineNumber=2692-2702) and, because of that, during the extension shutdown the "Extension:Shutdown" message broadcasted
to all the process never reaches the process where the content script cache entry has been
created (as well as "Extension:FlushJarCache" message sent to ensure that the jar cache is flushed
in every process), and so the XPI file is still kept active by that process and so it fails to be
removed on windows (where the usual `NS_ERROR_FILE_ACCESS_DENIED` is raised in this kind of scenarios).

The underlying issue doesn't seem to be strictly related to the behavior that this test file is
verifying (that is "checking that the expected telemetry data is being collected when the storage
APIs are being used"), and so I think that it would be reasonable to prevent the intermittent
by fixing the test (and closing the page after we unload the test extension 1 is enough to ensure
that the script cache entry is always cleared as expected and the file can be removed successfully
when the test is exiting).

The following push to try seems to confirm it (the oranges are triggered by another unrelated test
which fails intermittently in win64 ccov builds):

- https://treeherder.mozilla.org/#/jobs?repo=try&revision=978e21c57ef084c4115703bf827306320e81bcad

Differential Revision: https://phabricator.services.mozilla.com/D4067

--HG--
extra : moz-landing-system : lando
2018-08-23 17:50:50 +00:00
Andrew Swan
5abc00958c Bug 1498311 Handle content scripts properly on platforms without oop extensions r=zombie
--HG--
extra : rebase_source : 35e207d45979b5166833ad47c9e8b5892af15186
extra : source : 1cec1e9365524792ae0aeb11e53c33885f77f44e
2018-10-11 11:31:40 -07:00
shindli
620ed51b95 Backed out changeset 1cec1e936552 (bug 1498311) for ES linting failure 2018-10-12 00:10:59 +03:00
Andrew Swan
631def558c Bug 1498311 Handle content scripts properly on platforms without oop extensions r=zombie
--HG--
extra : rebase_source : 96f10978d9f19c2a8ec007a725643cd58395ccb6
2018-10-11 11:31:40 -07:00
Vivek Dhingra
6e979ca4ca Bug 1443561 - Part 1: Make additional backgrounds alignment relative to toolbox. r=jaws
MozReview-Commit-ID: 5gjrzZiLx0Q

--HG--
extra : rebase_source : e53df27931b46dfe002ec6db197e0257b1eacbb4
2018-08-17 09:57:25 +01:00
Tim Nguyen
ec46af2969 Bug 1443561 - Part 0: Workaround bug 1482157, set -moz-appearance:toolbox on #navigator-toolbox::after. r=dao
MozReview-Commit-ID: CuJIYn9ioPO

--HG--
extra : rebase_source : 47f0b067884cdc1b18c183f1674c473162f73343
2018-08-17 10:22:42 +01:00
Tim Nguyen
0c68c54d3e Bug 1418602 - Allow theming sidebars. r=mconley
MozReview-Commit-ID: 97zkU7raehV

--HG--
extra : rebase_source : 02a80c78170723bf9d7d2e72834fc26850894dbc
2018-08-06 17:46:43 +01:00
Margareta Eliza Balazs
5f8fc9fbde Backed out 2 changesets (bug 1443561) for causing bc perma failures in toolkit/components/extensions/test/browser/browser_ext_themes_sanitization.js
Backed out changeset 1d748613485f (bug 1443561)
Backed out changeset 37b4dc3bc73a (bug 1443561)
2018-08-21 14:05:22 +03:00
Vivek Dhingra
29e63a034b Bug 1443561 - Part 1: Make additional backgrounds alignment relative to toolbox. r=jaws
MozReview-Commit-ID: 5gjrzZiLx0Q

--HG--
extra : rebase_source : df858d25b76a1f96ba08538f011b527a1c00d75c
2018-08-17 09:57:25 +01:00
Margareta Eliza Balazs
48299c8cd6 Merge inbound to mozilla-central. a=merge 2018-08-16 12:24:26 +03:00
Kris Maglione
6d732b690f Bug 1480319: Split favicon loading code out of ContentLinkHandler.jsm. r=Mossop
MozReview-Commit-ID: KyP42P5FJRq

--HG--
rename : browser/modules/ContentLinkHandler.jsm => browser/actors/LinkHandlerChild.jsm
rename : browser/modules/ContentLinkHandler.jsm => browser/modules/FaviconLoader.jsm
extra : rebase_source : dccf68b3e9e5d90dfca72a8860ca88d7ba67dfb7
extra : source : aa14dcca91fb46a6e44a68d2b0370dd0eff8d400
2018-08-01 21:36:12 -07:00
Kris Maglione
962487a047 Bug 1480319: Follow-up: Re-enable favicon guessing during WebRequest tests. r=Mossop
--HG--
extra : rebase_source : fa21ef2a779d39c08bf0e1616046cde7126789ca
2018-08-15 14:56:49 -07:00
Kris Maglione
507be890b3 Bug 1480319: Follow-up: Don't try to guess favicons during WebRequest test. r=bustage CLOSED TREE
--HG--
extra : amend_source : 667b1c387f0b548ebdf2e695aae260c2e07221ff
2018-08-15 14:34:51 -07:00
Kris Maglione
f99ee35b82 Bug 1480244: Part 5 - Run most framescripts in shared scope. r=mconley
Creating non-shared scopes for frame scripts is fairly expensive. After these
changes it's even more expensive. However, many frame scripts have no use for
the shared scopes at all. Run-once scripts which execute in closures, for
instance, make no use of them. And after bug 1472491, neither do most of our
default frame scripts.

MozReview-Commit-ID: 9PK7bYdQ0yh

--HG--
extra : rebase_source : db2516d2f00a75e233e1957649f2b62a9299b7cd
2018-08-10 13:58:18 -07:00
Kris Maglione
3e3223bf92 Bug 1480244: Part 3c - Fix GC test with bad assumptions. r=aswan
This failure starts showing up after these changes by chance. Some aspect of
the environment or other causes a map() call to be baseline-optimized, which
causes its IC stubs to hold its function environemnt alive, which causes it to
hold the context we're checking alive.

Forcing a shrinking GC makes the IC stub go away sooner, and therefore allows
the test to pass.

MozReview-Commit-ID: LXp5mgMZeB1

--HG--
extra : rebase_source : 083c5425e55fcd512bda016c6aa2fb0d72ded7d9
2018-08-03 14:11:38 -07:00
Kris Maglione
24dc48a4df Bug 1480244: Part 3a - Fix non-strict-mode test code which expects this to be bound to its global. r=aswan
A lot of the ad-hoc frame scripts we execute for tests does not run in strict
mode, and therefore has its functions' `this` objects set to the global when
they are called without a target object.

At the moment, this gives them a MessageManager global. Once message managers
become non-global objects, however, it will give them the shared JSM global,
which is not what they expect.

This patches changes scripts which rely on this to explicitly capture or set
the appropriate `this` object for their calls.

MozReview-Commit-ID: DY8DDb0xE1K

--HG--
extra : rebase_source : 86c1fa4df070711f666dfee5487182afe28a7611
2018-08-03 14:33:38 -07:00
Jared Hirsch
da3fb8092c Bug 1280234 - Expose Telemetry APIs to trusted WebExtensions; r=aswan,gfritzsche
MozReview-Commit-ID: 4uQBq3Qvj0M

--HG--
extra : rebase_source : 4a5bea259d6ad5b557010a88a1da9c26b7f69daf
2018-07-13 12:35:34 -07:00
Mark Banner
21236ee00f Bug 1481932 - Fully enable ESLint rule mozilla/reject-requires-await. r=mossop
MozReview-Commit-ID: 7pYfD6Ax5VX

Differential Revision: https://phabricator.services.mozilla.com/D2971

--HG--
extra : moz-landing-system : lando
2018-08-11 07:27:35 +00:00
Csoregi Natalia
8464228873 Backed out changeset 3dc7979622c3 (bug 1280234) for xpcshell failures e.g. test_ext_contentscript_restrictSchemes.js. CLOSED TREE 2018-08-11 05:17:02 +03:00
Jared Hirsch
d8081025b3 Bug 1280234 - Expose Telemetry APIs to trusted WebExtensions; r=aswan,gfritzsche
MozReview-Commit-ID: 4uQBq3Qvj0M

--HG--
extra : rebase_source : a875fd98c0e22250de47baa0c5947485d72b9c9c
2018-07-13 12:35:34 -07:00
Ursula Sarracini
130d05505f Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 19:54:24 +00:00
Anny Gakhokidze
11cce48de4 Bug 1479956 - Fixed async clipboard API tests, r=nika
MozReview-Commit-ID: Bjz9OI2lAyw

Differential Revision: https://phabricator.services.mozilla.com/D2856

--HG--
extra : moz-landing-system : lando
2018-08-08 15:35:47 +00:00
Brindusan Cristian
3fba2fdf68 Backed out changeset 44e1ccd1d22b (bug 1480888) for xpcshell failure on toolkit/modules/tests/xpcshell/test_CanonicalJSON.js. CLOSED TREE 2018-08-10 19:22:22 +03:00
Ursula Sarracini
24b94b7aae Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 15:12:58 +00:00
Luca Greco
ab9f64f524 Bug 1481485 - Fix Android-only failure related to telemetry tests when running on Beta. r=Dexter
This patch contains a small fix needed to fix an Android-only failure related to the test
test_ext_storage_idb_data_migration.js when running on a non-Nightly build.

After digging into it a bit I notice that the reason behind this failure is similar to
the one we fixed an year ago in Bug 1380287 for another test telemetry-related.

Differential Revision: https://phabricator.services.mozilla.com/D2952

--HG--
extra : moz-landing-system : lando
2018-08-09 12:44:37 +00:00
Margareta Eliza Balazs
f617807241 Merge inbound to mozilla-central. a=merge 2018-08-10 12:17:09 +03:00
Tim Nguyen
1b0e474591 Bug 1347207 - Add and fix tests for theme loading warnings. r=mixedpuppy
MozReview-Commit-ID: 6C3H7wPK2v6

--HG--
extra : rebase_source : 2acd741506c3dc7dbcc9a215749ee271de64189d
2018-08-09 19:00:39 +01:00
Tim Nguyen
552399eb7e Bug 1347207 - Implement theme_experiment manifest field. r=jaws
MozReview-Commit-ID: DuUiVAMcti2

--HG--
extra : rebase_source : 2fef94584c628da57a59d08f240e32f1e55d6b6e
2018-07-23 18:46:40 +01:00
Mark Banner
226dbd7bdc Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop
MozReview-Commit-ID: 7yvvXKxYodA

Differential Revision: https://phabricator.services.mozilla.com/D2834

--HG--
extra : moz-landing-system : lando
2018-08-07 14:46:19 +00:00
Andreea Pavel
c8db2b8801 acked out changeset 20d0116ece9a (bug 1347207) for failing xpcshell at xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_manifest_themes.js on a CLOSED TREE 2018-08-09 19:39:40 +03:00
Tim Nguyen
adf0b6d294 Bug 1347207 - Implement theme_experiment manifest field. r=jaws
MozReview-Commit-ID: DuUiVAMcti2

--HG--
extra : rebase_source : 06788d3e7f06820ba944434a379fffbd46f888c1
2018-07-23 18:46:40 +01:00
Andreea Pavel
feaee7b26c Backed out changeset 421c12a2837b (bug 1347207) for bc failures at toolkit/components/extensions/test/browser/browser_ext_themes_experiment.js on a CLOSED TREE 2018-08-09 16:31:06 +03:00
Tim Nguyen
96c6b8f5ac Bug 1347207 - Implement theme_experiment manifest field. r=jaws
MozReview-Commit-ID: DuUiVAMcti2

--HG--
extra : rebase_source : 62ffd3057ff5fbdde32f52277eec48296007a426
2018-07-23 18:46:40 +01:00
Andreea Pavel
c7eba1716b Backed out changeset 91a30d78c074 (bug 1347207) for browser_ext_themes_experiment.js test failures 2018-08-09 14:46:38 +03:00
Tim Nguyen
1784c2f3a0 Bug 1347207 - Implement theme_experiment manifest field. r=jaws
MozReview-Commit-ID: DuUiVAMcti2

--HG--
extra : rebase_source : e76ade5a02df1cb87165ce4c8148908b2a3b35d8
2018-07-23 18:46:40 +01:00
Rob Wu
9c695f87b8 Bug 1280370 - Properly parse MatchPattern for schemes with no authority r=mixedpuppy,zombie
I found these schemes by enumerating all registered nsIProtocolHandler
and checking whether they require a "//".

The list of schemes in HOST_LOCATOR_SCHEMES only includes schemes that
are known to Firefox. Any other scheme is parsed as if the separator is
":". For example, NetUtil.newURI("unknown-scheme://host/path") has its
pathQueryRef member set to "//host/path". For the purpose of matching in
MatchPattern, this unknown scheme has therefore no host and only a path.

MozReview-Commit-ID: KGNRXGcZTZx

--HG--
extra : rebase_source : 2aece6a9d3e67d28567352e3bc3ed934f7f9a1d5
2018-07-24 16:35:45 +02:00
Rob Wu
fdc1958e8b Bug 1280370 - Don't set MatchPattern::mMatchSubdomain if the scheme does not support hosts r=mixedpuppy,zombie
Otherwise MatchPattern::Matches would always return false if the
aExplicit flag is set to true, even if the match pattern is identical to
the tested URL.

MozReview-Commit-ID: FtdOgwrAkk8

--HG--
extra : rebase_source : 75fc36b176d59dba7556843686b04e5d50ab263f
2018-07-24 13:33:15 +02:00
Rob Wu
d70bc1eeb4 Bug 1280370 - Properly parse MatchPatterns with "data:" scheme r=mixedpuppy,zombie
The "data:" scheme is not followed by "//host". This patch fixes
the parser so that "data:..." is expected instead of "data://...".

MozReview-Commit-ID: 8TLVF3hdQ7H

--HG--
extra : rebase_source : 70fff5091c860bfdf2b727c4ff3ab08866b88efe
2018-07-24 11:43:02 +02:00
Luca Greco
cbd6a8ef9d Bug 1481607 - Fix ExtensionStorageIDB storage.local.get when called with a string param. r=aswan
When the storage.local.get API method is called with a string parameter, it should return
a result object that only include that property (if it is one of the key stored into the
storage.local data backend).

This patch fixes the behavior of the ExtensionStorageIDB in the above scenario, and also
applies some related small changes to the tests (to add some additional assertion to verify
this behavior as part of the automated tests and to fix a mistake on a storage.local.get
call in one of the test case, which has been caught once fixed the storage.local.get behavior
for the string parameter).

Differential Revision: https://phabricator.services.mozilla.com/D2934

--HG--
extra : moz-landing-system : lando
2018-08-08 16:56:47 +00:00
Ehsan Akhgari
e1682c9e96 Bug 1482277 - Rewrite test_chrome_ext_webrequest_host_permissions.html to make it not depend on the order in which HTTP notifications are dispatched; r=kmag 2018-08-09 18:59:13 -04:00
Ehsan Akhgari
db94e81256 Bug 1482262 - Ensure that test_chrome_ext_webrequest_host_permissions.html can access the images it uses; r=kmag
file_image_good.png isn't currently packaged, and file_with_images.html uses
the wrong paths to the image files.
2018-08-09 18:59:12 -04:00
Noemi Erli
be6ab34c54 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
extra : rebase_source : 691b5b30b6c3b2ddece605c045ad913e466fdbab
2018-08-10 00:35:58 +03:00
Jonathan Kingston
2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
Geoff Lankow
1e93905608 Bug 1481094 - Skip all downloads tests on Thunderbird; r=aswan 2018-08-07 11:58:12 +12:00
Andreea Pavel
f5c1119983 Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston
4ca581ffed Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : rebase_source : 4bb9e7feb0704239756e6e38623c0fea81669f7b
extra : amend_source : 9417f96547735fbdc55ea23666327a5cb86ac92f
2018-08-06 19:56:37 +03:00
Boris Zbarsky
357b6b1348 Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2669

--HG--
extra : moz-landing-system : lando
2018-08-03 00:05:07 +00:00
Geoff Lankow
a01dc6a50a Bug 1468667 - [webext] Enable webextensions tests for Thunderbird r=aswan
MozReview-Commit-ID: AktrEd91ROz

--HG--
extra : rebase_source : b61f811e7fb576419fee6401b661bede0013340d
2018-08-02 20:12:06 +12:00
Shane Caraveo
d99b32ea60 Bug 1476570 - allow proxy to work on restricted domains, r=aswan
Proxies must work with all requests, however the new onRequest proxy api
has maching logic using ChannelWrapper which uses WebExtensionPolicy which
checks against restricted domains.  We need to bypass that check when
matching for proxy requests.

MozReview-Commit-ID: 5zCdmV1b9M7

--HG--
extra : rebase_source : 4bc0f2735a8c2cc4f42934877783dbc68f6067ab
2018-08-02 14:03:00 -03:00
Shane Caraveo
626f82368e Bug 1479565 - add speculative filter type for webRequest and proxy API, r=aswan
MozReview-Commit-ID: 5iaZYMnWuwN

--HG--
extra : rebase_source : bdb40c7c93004155bb8d634678d060512af072dc
2018-07-30 17:58:58 -03:00
Rob Wu
49b6bca477 Bug 1477688 - Enable test_ext_contexts_gc on Android r=rpl
MozReview-Commit-ID: 2q8FkeCl4Ay

--HG--
extra : rebase_source : b7640092c67cfe3c218be9592195a36e98545c6a
2018-08-01 16:35:16 +02:00
Luca Greco
ceee91f76f Bug 1473920 - Fix browser_ext_themes_ntp_colors_perwindow failures when running on Linux. r=mixedpuppy
MozReview-Commit-ID: LxlmZ7xx06s

--HG--
extra : rebase_source : 4d440ccb0fb638a544ff6241557d7592c23588e4
2018-07-30 21:40:35 +02:00
Rob Wu
9287b6789f Bug 1477271 - Require "search" permission for search API r=aswan
And re-enable the test_ext_all_apis.html test to ensure that new APIs
are only available by default if the contributor really intents to.

MozReview-Commit-ID: FWIKybrk0EE

--HG--
extra : rebase_source : 58c5bd98ddb59be74b9454995cbbd3edef6c45f9
2018-07-31 20:14:03 +02:00
Mark Banner
c7192b42df Bug 1478305 - Remove unnecessary imports and fix ESLint warnings about unused variables for toolkit/. r=mossop
MozReview-Commit-ID: CB8xT8c5E4L

--HG--
extra : rebase_source : d19443e823ff4f7a6830bf97bef1257176b830af
2018-07-30 11:04:36 +01:00
Luca Greco
f55e636331 Bug 1477015 - Select storage.local backend on startup when the extension is not migrating its data. r=aswan,mixedpuppy
MozReview-Commit-ID: WzW2bFlYNg

--HG--
extra : rebase_source : 048dbd36e6bf1bfc64d02e11bf26af1392071139
2018-07-26 13:53:22 +02:00
Anny Gakhokidze
469c8c4a94 Bug 1461465 - Implement async Clipboard APIs, r=nika,r=enndeakin
MozReview-Commit-ID: 3vCxbaGZtiv
2018-07-31 13:13:02 -04:00
Shane Caraveo
aad6d3674f Bug 1378647 - support creating lazy tabs from extensions, r=JanH,mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P

--HG--
extra : rebase_source : 1c4d57ac25b00d0a63901f4fd00b11e0b5d765a5
2018-07-30 12:15:32 -03:00
Tarek Ziadé
22f99a12a7 Bug 1468550 - Track webextension activity - r=kmag
Adds a performance counter in ParentAPIManager to track the
number and duration of API calls by webextensions.

MozReview-Commit-ID: PTpaSCkE6A

--HG--
extra : rebase_source : 21c6c7f2e38c8808771fe4fea90d2750196202bd
2018-07-27 19:26:12 +02:00
Tim Nguyen
b3a838d6e4 Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : 913275a0002531ddefce19308fc13b3cfbf5efec
2018-07-13 16:21:34 +01:00