Commit graph

1894 commits

Author SHA1 Message Date
Kris Maglione
dc9f1e38d5 Bug 1525511: Part 5 - Get rid of most LWTManager gunk in tests. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18788

--HG--
extra : rebase_source : d550bfad07edeaae24ec385b2b57d2d9ae0161df
2019-02-05 21:25:21 -08:00
Shane Caraveo
ab4bac388f Bug 1494033 test event order with onAuthRequired r=zombie
Adds testing webrequest events related to async handling in httpChannel
that was added in bug 1407384.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 21:14:33 +00:00
Shane Caraveo
237485f661 Bug 1538975 read the raw extension manifest if we need to localize it r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D24803

--HG--
extra : moz-landing-system : lando
2019-03-26 15:35:53 +00:00
Philipp Kewisch
52aa5b978e Bug 1507709 - Move WebExtensions geckoProfiler API to toolkit. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12100

--HG--
rename : browser/components/extensions/ProfilerGetSymbols-worker.js => toolkit/components/extensions/ProfilerGetSymbols-worker.js
rename : browser/components/extensions/ProfilerGetSymbols.jsm => toolkit/components/extensions/ProfilerGetSymbols.jsm
rename : browser/components/extensions/parent/ext-geckoProfiler.js => toolkit/components/extensions/parent/ext-geckoProfiler.js
rename : browser/components/extensions/profiler_get_symbols.js => toolkit/components/extensions/profiler_get_symbols.js
rename : browser/components/extensions/schemas/geckoProfiler.json => toolkit/components/extensions/schemas/geckoProfiler.json
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js
extra : moz-landing-system : lando
2019-03-22 13:18:01 +00:00
Gijs Kruitbosch
5e05f6c9c9 Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:14 +00:00
Edwin Gao
3cd20bfd5c Bug 1530841 - disable test_ext_native_messaging.js r=jmaher
This test frequently fails, so disabled for the time being.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 20:13:40 +00:00
shindli
a7af1edc71 Backed out 3 changesets (bug 1353013) for a11y failures in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset af8bce2330e9 (bug 1353013)
Backed out changeset a3d1302b06c0 (bug 1353013)
Backed out changeset 976afd1adf84 (bug 1353013)
2019-03-18 18:21:16 +02:00
Gijs Kruitbosch
b7a741e6cb Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:04 +00:00
Rob Wu
8fd0fcc7e8 Bug 1534969 - Ensure that extension.id/uuid is set in browser tests r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D23311

--HG--
extra : moz-landing-system : lando
2019-03-13 18:48:53 +00:00
Luca Greco
484a8ed0c2 Bug 1516862 - Fix test_ext_webrequest_basic intermittency while testing onError events fired on hostname resolving error. r=mixedpuppy
When the dns resolution for an url's hostname fails, the webRequest API seems to be
receiving (from time to time but more often on macos and windows) more then one call
to the HttpObserverManager.observeActivity method for the activityType

  nsISocketTransport.STATUS_RESOLVING and nsISocketTransport.STATUS_RESOLVED

while channel wrapper errorString property is still null.

The observeActvity method goal seems to fire fallback WebRequest errors for error conditions
that are not fired as ChannelWrapper error events, but the "NS_ERROR_UNKNOWN_HOST" error
is also being fired right after the fallback webRequest error event fired as
"NS_ERROR_NET_ON_RESOLVED" (or "NS_ERROR_NET_ON_RESOLVING").

This behavior consistently triggers the two intermittent failures on the test
test_ext_webrequest_basic.html while executing the test_webRequest_frames
task

"expected error message received in onErrorOccurred - Expected: NS_ERROR_UNKNOWN_HOST, Actual: NS_ERROR_NET_ON_RESOLVED"

(when the fallback NS_ERROR_NET_ON_RESOLVED is fired first)

and then

"received onErrorOccurred"

(because the "NS_ERROR_UNKNOWN_HOST" error is also being fired
right after the fallback error message).

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:06:33 +00:00
Shane Caraveo
7d1f88f391 Bug 1532990 handle default port better for proxy.settings r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D22297

--HG--
extra : moz-landing-system : lando
2019-03-12 19:08:44 +00:00
Mark Banner
32932082dc Bug 1530334 - Port browser_ext_themes_autocomplete_popup.js to work with QuantumBar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D22289

--HG--
extra : moz-landing-system : lando
2019-03-10 13:35:36 +00:00
Narcis Beleuzu
b9a96f34ff Backed out 2 changesets (bug 1530334, bug 1533060) for bc failures on browser_urlbar_empty_search.js . CLOSED TREE
Backed out changeset 8d02942b98f5 (bug 1533060)
Backed out changeset bff0dee7c2ef (bug 1530334)
2019-03-08 19:01:33 +02:00
Mark Banner
9fe29aff7f Bug 1530334 - Port browser_ext_themes_autocomplete_popup.js to work with QuantumBar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D22289

--HG--
extra : moz-landing-system : lando
2019-03-08 14:54:59 +00:00
Michael Kaply
8002a5b134 Bug 1230802 - Add support for setting chrome.storage.managed via enterprise policy. r=Felipe,zombie,flod
Differential Revision: https://phabricator.services.mozilla.com/D21470

--HG--
extra : moz-landing-system : lando
2019-03-07 17:31:38 +00:00
Luca Greco
a8c9ce8ce9 Bug 1529347 - Record telemetry event on extensions enabled on private windows as part of Firefox upgrade. r=mixedpuppy,Dexter
Depends on D21931

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:58:07 +00:00
Shane Caraveo
dc6636f2f6 Bug 1529394 revert early breakout to support test infra extensions r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D22170

--HG--
extra : moz-landing-system : lando
2019-03-05 20:56:07 +00:00
Shane Caraveo
981bfc4fb9 Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 14:17:36 +00:00
Andreea Pavel
5d350a5796 Backed out 2 changesets (bug 1529394) for bc failures at automation.py on a CLOSED TREE
Backed out changeset 7f3e254c982c (bug 1529394)
Backed out changeset 3a8c338af709 (bug 1529394)
2019-03-05 01:34:50 +02:00
Shane Caraveo
1027eb159f Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 17:55:38 +00:00
Shane Caraveo
5046835f49 Bug 1531974 revert automatic extension permission in permanent private browsing r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D21937

--HG--
extra : moz-landing-system : lando
2019-03-04 19:00:21 +00:00
violet
3663447f59 Bug 1529230 - Drop bracket for IPv6 URL in mDomain of MatchPattern. r=robwu,mixedpuppy
mDomain in MatchPattern is inconsistent with nsIURI for IPv6 URL, which causes
failure of IPv6 matching. We normalize mDomain by droping the brackets so that
it's consistent with nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-02 13:20:10 +00:00
Kris Maglione
73a527c54f Bug 1518863: Part 4 - Add tests. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D21449

--HG--
extra : rebase_source : 4bb7654ce9a5538cad170633dcf5ddffeed7ce45
2019-02-27 13:57:08 -08:00
Boris Zbarsky
2e5c884144 Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug
The main behavior changes are:

1) We no longer create a new Window when doing document.open().  We use the
same Window but remove all the event listeners on it and on the existing DOM
tree before removing the document's existing kids.

2) We no longer create a new session history entry.  The existing one always
gets replaced instead.

3) We now support document.open on documents that are not in a Window.

The reasons for the various test changes are as follows:

The change to browser_modifiedclick_inherit_principal.js is because we no
longer set the docshell to a wyciwyg URL when document.open() happens and the
test was depending on that to terminate.

browser_wyciwyg_urlbarCopying.js is being removed because it's trying to test
wyciwyg URIs, which no longer exist.

The changes in docshell/test/navigation are because document.open() no longer
affects session history.  One of the tests was testing the interactions there
and is being removed; another is being repurposed to just test that
document.open() does not affect history.length.

The change to test_x-frame-options.html is because document.open() now removes
event listeners on the window, which it didn't use to do (and in the specific
case in this test reused the existing inner too, so the listener was still
around in practice).  The new behavior matches other browsers.

The removal of test_bug172261.html is because document.open() no longer affects
session history, so you can't go back across it or forward to the "opened"
state, so the situation that test is trying to test no longer exists.

The changes to test_bug255820.html are because reloading a document after
document.open() will now just load the URL of the document that was the entry
document for the open() call, not reload the written content.  So there's not
much point testing reload behavior, and in this test it was just reloading the
toplevel test file inside the frames.

The change to test_bug346659.html is because now we no longer create a new
Window on document.open().

The change to test_bug1232829.html is because document.open() (implicit in this
test) no longer adds history entries, so the back() was just leaving the test
page instead of going back across the document.open().  The test is a
crashtest in practice, so might still be testing something useful about how
document.open() interacts with animations.

The change to test_bug715739.html is because the URL of the document after
document.open() is now the URL of the entry document, not a wyciwyg URL, so
reload() has different behavior than it used to.

The change to test_bug329869.html is because now when we go back we're
reloading the original document we had, not doing a wyciwyg load, and the
security info now doesn't include the untrusted script.

The changes to the wpt expectations are removing a bunch of expected failures
now that we pass those tests and disabling some tests that are fundamentally
racy and hence fail randomly.  The latter all have github issues filed for the
test problem.

The change to testing/web-platform/tests/common/object-association.js is fixing
tests that were not matching the spec (and were failing in other browsers).

The change to parser-uses-registry-of-owner-document.html is fixing tests that
were not matching the spec (and were failing in other browsers).

The change to document-write.tentative.html is because the test was buggy: it
was using the same iframe element for all its tests and racing loads from some
tests against API calls from other tests, etc.  It's a wonder it ever managed
to pass, independent of these patches (and in fact it doesn't pass according to
wpt.fyi data, even in Firefox).

The changes in html/browsers/history/the-history-interface are because
document.open() no longer adds history entries.  The test was failing in all
other browsers for the same reason.

The changes in html/browsers/history/the-location-interface are because
reloading a document.open()-created thing now loads the URL of the page that
was the entry document for the open() call.  The test was failing in all other
browsers.

The change to reload_document_open_write.html is because we now reload the url
of the document that entered the script that called open() when we reload, not
the written content.  Other browsers were failing this test too; Gecko with
the old document.open implementation was the only one that passed.

The change to http-refresh.py is to fix a test bug: it was not returning a
Content-Type header, so we were putting up helper app dialogs, etc.

The change to test_ext_contentscript.js is because we no create a new global
for document.open() calls.  Kris Maglione OKed this part.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 23:24:48 +00:00
Jonathan Kingston
f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston
dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
Shane Caraveo
e52a8bacf3 Bug 1527127 set permission for enabled extensions on initial upgrade r=aswan
When a user first upgrades to a version where incognito is enabled,
add the permission to all enabled extensions.  This preserves user workflow
and addresses other issues (e.g. proxy).  This will only happen once.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 16:59:55 +00:00
James Willcox
61ca9441b1 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

This also replaces 'isFennec' with the more correct 'is_fennec'.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 15:01:43 +00:00
Shane Caraveo
c99e710c21 Bug 1521596 incognito support for protocol handlers r=flod,kmag
Depends on D19081

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

--HG--
extra : moz-landing-system : lando
2019-02-27 01:45:34 +00:00
Oana Pop Rus
f4b7b652c4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-25 18:52:42 +02:00
Christoph Kerschbaumer
c8bb3d7749 Bug 1529869: Remove the 2 from speculate speculative(Anonymous)Connect2 within nsISpeculativeConnect.idl. r=valentin 2019-02-24 20:26:56 +01:00
Rob Wu
0559c134cb Bug 1501375 - Test extension shutdown during extension startup r=aswan
Depends on D17700

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

--HG--
extra : moz-landing-system : lando
2019-02-20 22:44:17 +00:00
Dorel Luca
4a4dcd57fa Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston
63ab2bd8aa Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-24 20:27:55 +00:00
Jonathan Kingston
147e351e0b Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-25 00:07:42 +00:00
Luca Greco
106797bead Bug 1529826 - Fix test_ext_permissions.js permafailure on non-nightly builds. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D20816

--HG--
extra : moz-landing-system : lando
2019-02-22 14:12:51 +00:00
Junior Hsu
b7e28eddd2 Bug 1507110 - Allow hijacking localhost only if network.proxy.allow_hijacking_localhost is set r=Gijs,mayhemer,mkaply,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D19325

--HG--
extra : moz-landing-system : lando
2019-02-19 21:53:22 +00:00
Ehsan Akhgari
0648e78f1c Bug 1529396 - Stop throwing an exception from window.localStorage when a privacy check fails; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D20583

--HG--
extra : moz-landing-system : lando
2019-02-21 14:21:02 +00:00
Shane Caraveo
b9a80cb460 Bug 1525718 fix setting private permission when private browsing r=rpl
Setting the permission has to happen after the call to parseManifest so
it may be set if the manifest is already cached.  Also grant permission
when installed from permanent private browsing.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 15:52:29 +00:00
Shane Caraveo
3b665f2cc3 Bug 1525846 ensure ExtensionPermissions is fully initialized prior to changing r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D19199

--HG--
extra : moz-landing-system : lando
2019-02-20 21:39:21 +00:00
Cosmin Sabou
c5b5dcfb26 Bug 1523193 - Disable test_ext_contentscript_devtools_metadata.html on android 4.3 !debug. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20123

--HG--
extra : moz-landing-system : lando
2019-02-18 23:55:33 +00:00
Shane Caraveo
84ec4ca5cf Bug 1525447 support incognito setting in proxy api r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18754

--HG--
extra : moz-landing-system : lando
2019-02-15 21:20:51 +00:00
arthur.iakab
52dc4687b4 Backed out changeset 60cb2cb96e5e (bug 1525447) for failing android xpcshell on test_proxy_incognito.js CLOSED TREE 2019-02-15 21:44:42 +02:00
Shane Caraveo
753f89ef34 Bug 1525447 support incognito setting in proxy api r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18754

--HG--
extra : moz-landing-system : lando
2019-02-15 18:08:44 +00:00
Edwin Gao
e7669e0875 Bug 1525785 - include aarch64 in list of validArchs for xpcshell test that checks architecture r=jmaher,gbrown
This should address the bug noted above, as well as several other bugs where `validArchs` is responsible for TEST-UNEXPECTED-FAIL.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 22:47:49 +00:00
Shane Caraveo
5b5b01194d Bug 1524001 update manifest to validate manifest.icons, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18105

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_manifest.js => browser/components/extensions/test/xpcshell/test_ext_manifest.js
extra : moz-landing-system : lando
2019-02-14 01:32:31 +00:00
Brindusan Cristian
44cac3f90f Backed out changeset eac52dd0d152 (bug 1525846) for mochitest failures at test_chrome_ext_permissions.html and bc failures at browser_webext_incognito.js. 2019-02-14 03:29:33 +02:00
Shane Caraveo
1e955787e8 Bug 1525846 ensure ExtensionPermissions is fully initialized prior to changing r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D19199

--HG--
extra : moz-landing-system : lando
2019-02-14 00:34:19 +00:00
Rob Wu
861487eec5 Bug 1522918 - Fully remove optional permission data upon uninstall r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18217

--HG--
extra : moz-landing-system : lando
2019-02-12 14:04:39 +00:00
Luca Greco
d787d73489 Bug 1527330 - Fix test_ext_userScript_exports.js failure on beta. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D19533

--HG--
extra : moz-landing-system : lando
2019-02-13 17:30:20 +00:00
Shane Caraveo
d826634cd4 Bug 1516709 support incognito in downloads api r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D17426

--HG--
extra : moz-landing-system : lando
2019-02-13 15:20:04 +00:00
Logan Smyth
e962578670 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 02:55:21 +00:00
Andreea Pavel
e754faad17 Backed out 3 changesets (bug 1518661) for failing test_promise_rejections_from_jsimplemented.html
Backed out changeset d381785b0c4c (bug 1518661)
Backed out changeset 4a8b38e5373b (bug 1518661)
Backed out changeset 64ebb085a6b3 (bug 1518661)

--HG--
extra : rebase_source : 7e4c5c4cd0b2ea9e48238e6083fdfc01b3f9bd16
2019-02-13 04:27:22 +02:00
Logan Smyth
2efd56750c Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 23:46:27 +00:00
Andreea Pavel
7b1605af56 Backed out 3 changesets (bug 1525959, bug 1526002) for failing android
Backed out changeset de0efca1118e (bug 1526002)
Backed out changeset 503cbc86e442 (bug 1525959)
Backed out changeset 33ea61c54aea (bug 1525959)
2019-02-12 23:53:05 +02:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
James Willcox
c7a8bf9699 Bug 1526002 - Replace 'isFennec' with 'is_fennec' in mochitest.ini r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19038

--HG--
extra : moz-landing-system : lando
2019-02-10 19:07:57 +00:00
James Willcox
228b5844d5 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 15:15:28 +00:00
Csoregi Natalia
5d10478fe1 Backed out 3 changesets (bug 1518661) for failures on dom/bindings/test/test_exception_options_from_jsimplemented.html. CLOSED TREE
Backed out changeset aeaa74707320 (bug 1518661)
Backed out changeset 12df8c46ef78 (bug 1518661)
Backed out changeset a4ff0bd9ff80 (bug 1518661)
2019-02-12 06:25:57 +02:00
Logan Smyth
1677d55556 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 01:28:27 +00:00
Luca Greco
6f372ca372 Bug 1525200 - Add an xpcshell test which loads all the WebExtensions API modules. r=zombie
This patch defines a new xpcshell test which loads all the WebExtensions API modules twice,
first in alphabetic order and then again in reversed order.

The goal of this new test is to make it easier to detect issues with API module loading,
because all these API modules are loaded lazily in a shared global and it can fail
if multiple API modules defines the same global in incompatible ways (e.g. something which
is defined as a `const` in one module, and then as a `var` in a different one).

Depends on D18683

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

--HG--
extra : moz-landing-system : lando
2019-02-11 20:08:59 +00:00
Luca Greco
292c6a749e Bug 1512741 - Split userScripts xpcshell test and re-enable it on android debug build. r=robwu
This patch move the part of test_ext_userScripts.js that is testing the userScripts' export API helpers
(script.defineGlobals and script.export) into a separate test_ext_userScripts_exports.js test file.

Based on the logs from the intermittent failures of the test_ext_userScripts.js test file
on android debug builds, it seems that this xpcshell test was just timing out while exiting after all
the test tasks were actually completed.

The results got from pushing to try this patch seems to confirm that once the test tasks are splitted
over two test files, the intermittent failures are not being triggered anymore on the android debug
builds.

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

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js => toolkit/components/extensions/test/xpcshell/test_ext_userScripts_exports.js
extra : moz-landing-system : lando
2019-02-06 11:45:51 +00:00
shindli
346a7d1be9 Backed out 4 changesets (bug 1518661) for spidermonkey build bustages CLOSED TREE
Backed out changeset 6c45ce836a12 (bug 1518661)
Backed out changeset dd2caed01823 (bug 1518661)
Backed out changeset 02ddcca425a2 (bug 1518661)
Backed out changeset 8bad1d8c8944 (bug 1518661)
2019-02-09 03:16:14 +02:00
Logan Smyth
4ea937d283 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 22:39:23 +00:00
Andrew Swan
34eebd4863 Bug 857458 Remove addon manager update.rdf support r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18793

--HG--
extra : rebase_source : ba8d6ebc630c020dc46951ce72f93a91cf8d0349
extra : source : 55736daf0dc59cb10ce4ade6709312c9f317f549
2019-02-05 10:22:20 -08:00
Andrew Swan
84de729f2c Bug 1525445 Part 2: Move users of Extension.generate to ExtensionTestCommon r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18753

--HG--
extra : rebase_source : 8df66f0ae26dbe126a6bf426532ea3f3ec030f0e
2019-01-03 14:22:44 -08:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Jared Wein
49653012dd Bug 1520966 - Make toolkit/components/passwordmgr/test/text_xhr.html work with e10s. r=MattN
I didn't use the checkPromptModal function because the implementation in chromeScript was getting a null document reference. Since handlePrompt already has access to this information it made sense to extend handlePrompt to cover more cases.

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

--HG--
rename : toolkit/components/passwordmgr/test/test_xhr.html => toolkit/components/passwordmgr/test/mochitest/test_xhr.html
extra : rebase_source : fdd7b11b6d8cace8b7bef63228aa95f3fceca6df
2019-02-01 20:15:02 +00:00
Alexander Surkov
599d3ecb6b Bug 1519486 - convert autocomplete-richlistitem XBL binding to CE, r=MattN 2019-01-24 08:40:36 -05:00
Luca Greco
76ae7167ab Bug 1258897 - Ensure that both test_ext_sendmessage_reply2 tab scripts are ready to exchange messages. r=mixedpuppy
This test seems to be still failing intermittently, and its intermittency rate looks high enough.

Looking to the logs collected on the recent intermittent failures, it seems that the issue
is still related to the extension tabs opened in the test:

The two extension tabs (each one part of one of the two test extension) are going to exchange messages
between each other, and currently there is a chance (and apparently a very good chance) that one of the
two extension tabs is not yet ready to listen to the messages sent from the other extension tab.

This patch applies to the test the additional changes needed to ensure that both the extension tabs
are ready to exchange messages, before we let them exchange these messages over the extension messaging
API.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 16:43:30 +00:00
edward.i.wu
49e491e837 Bug 1450114 -Update browser themes to allow customization of selection background and text r=jaws
Bug 1450114 -Update browser themes to allow customization of selection background and text r=Jaws

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

--HG--
extra : moz-landing-system : lando
2019-01-31 13:28:30 +00:00
Luca Greco
8372c1ce21 Bug 1398518 - Fix test_ext_notifications.html intermittency and re-enable it. r=mixedpuppy
Based on what I've been able to reproduce locally using --verify, there is a chance that
the notifications created by the test case named `test_notifications_populated_getAll`
may have been removed before the `browser.notifications.getAll` is going to retrieve them,
and when this happens the test gets stuck because `browser.test.notifyPass("getAll populated");`
is never reached, and the test timeouts.

This patch includes the following changes to prevent the intermittent failure described above:

- add a new head_notifications.js support file and create a new MockAlertsService test helper that
  loads a chrome script which replace the alerts service with a mock service (based on a
  similar mock defined in dom/notification/test/mochitest/MockServices.js), the mocked alert
  service doesn't close the notification until the test case itself has called
  `MockAlertsService.clearNotifications` (so that the test shouldn't fail intermittently as
  described above).

- applies the changes needed on test_ext_notifications.html to make use of the MockAlertsService

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

--HG--
rename : dom/notification/test/mochitest/MockServices.js => toolkit/components/extensions/test/mochitest/head_notifications.js
extra : moz-landing-system : lando
2019-01-30 18:05:34 +00:00
Luca Greco
b4cdfc9841 Bug 1258897 - Fix test_ext_sendmessage_reply2.html intermittency and re-enable. r=mixedpuppy
This patch should fix the test_ext_sendmessage_reply2.html intermittency which, based on the
timeout failure that I've been able to intermittently reproduce when running this test
locally using --verify, seems to be likely due to the following race:

the tabs.create API (used to create the extension tabs used as part of the tests) was called
right before subscribing the extension message listeners, and so from time to time the
extension tabs were not able to successfully send their messages to the background page listeners
(because the background page didn't subscribe the listeners yet) and as a result the test was getting
stuck waiting for extension messages that were never going to be received.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:50:42 +00:00
Shane Caraveo
3e429f056f Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:40:09 +00:00
Sebastian Hengst
bce7497e86 Bug 1514594: Follow-up: Remove unused imports merged from autoland. a=eslint-fix 2019-01-29 12:32:57 +02:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Andreea Pavel
b839d65d3c Backed out changeset 546ee20723b6 (bug 1521573) for failing test_ext_web_accessible_incognito.html 2019-01-29 06:07:40 +02:00
Shane Caraveo
6004d08141 Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 01:42:34 +00:00
Shane Caraveo
050ca2e7d4 Bug 1511636: update incognito support to use pref and permissions r=rpl,aswan,kmag
This changes the policy to use the pref and permissions rather than a boolean flag.  Using permissions gets us proper settings on startup without introducing any new overhead.  Going this way flips our tests around so rather than testing an override to turn off private browsing support, we test overrides to enable private browsing support.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:47 +00:00
Shane Caraveo
6b86edb199 Bug 1511636 update ExtensionPermissions to take id instead of extension instance, r=aswan,rpl
Differential Revision: https://phabricator.services.mozilla.com/D14800

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:16 +00:00
Randell Jesup
a0370b467f Bug 1270059: Disable test_ext_async_clipboard.html on android only r=nika
See bug 1523131 for re-enabling
2019-01-26 18:30:04 -05:00
Rob Wu
71c8ed90e5 Bug 1315829 - Re-enable test_ext_runtime_onInstalled_and_onStartup.js r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D17489

--HG--
extra : moz-landing-system : lando
2019-01-24 19:36:35 +00:00
Shane Caraveo
b03a534f39 Bug 1522209 fix regex for icon path, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D17405

--HG--
extra : moz-landing-system : lando
2019-01-23 19:54:42 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Honza Bambas
594d062b4c Bug 1520125 - Don't use origin attributes to distinguish proxy authentication cache entries. r=dragana, r=mixedpuppy 2019-01-22 07:34:00 -05:00
Edouard Oger
f35506cf5d Bug 1518300 - Refactor CryptoUtils and add JWK/JWE methods to jwcrypto. r=rfkelly,tjr
Differential Revision: https://phabricator.services.mozilla.com/D15868

--HG--
extra : moz-landing-system : lando
2019-01-18 20:58:42 +00:00
Margareta Eliza Balazs
ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
Varun Dey
ef0ef45dff Fix Bug 1419109 - Empty default icon shows blank icon in toolbar r=mixedpuppy
If the extension had either default_icon or one of it's property as an empty string, it would show a black icon in the toolbar. With this patch, it checks if any of default_icon property is empty and throws an error on extension load.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 18:52:00 +00:00
Stefan Hindli
3cc58d362f Bug 1512741 - disable test_ext_userScripts.js on Android debug for frequent failures. r=jmaher 2019-01-17 08:59:00 +02:00
Andrew Swan
bde8f820fb Bug 1519762 Fix a regression with browser.downloads.search() r=kmag
The fixes in bug 1503760 inadvertently broke searches of downloads that
have not yet started receiving data (which have a value of -1 for the
totalBytes property).  That regression is fixed here.

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

--HG--
extra : rebase_source : d6abf7e5bdc2ae10e690df56c060b30166fc75f7
extra : amend_source : 6580b889860d4d28f216fd92522ecd539a8f7d1d
2019-01-17 11:12:46 -08:00
Jorg K
88602869fa Bug 1519626 - Use application specific string bundle in test_ext_permission_warnings.js. r=robwu,aswan
--HG--
extra : amend_source : 4fe42edf6cd2fbb39306e5e136ed1e106c3c485a
2019-01-15 10:45:10 +02:00
Rob Wu
f8d91f5c26 Bug 1504018 - Support unrestricted schemes in permission warnings r=aswan
If an extension with the "mozillaAddons" permission is updated, the
permission diffing logic should support restricted schemes.
Otherwise the MatchPattern will throw and prevent the update from being
installed.

`Extension.comparePermissions` is called with the result of
`.userPermissions`, which in turn is equivalent to the result of the
`manifestPermissions` getter. This already filters out restricted
schemes if needed. Therefore we can unconditionally use
`restrictSchemes:false` in `comparePermissions`.

And update the regexp in formatPermissionStrings to support permissions
that start with "about:", since the "MatchPatternUnestricted" type in
toolkit/components/extensions/schemas/manifest.json supports this,
and the lack of "//" in about:-URLs prevents the scheme from being
matched by the existing pattern.

Depends on D14963

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:19:06 +00:00
Rob Wu
0074eaeaf7 Bug 1504018 - Skip host permissions for which a warning has been shown before r=aswan
Permission warnings only include the host name (ignoring any scheme),
so the comparison of old and new permissions should ignore schemes too.

Any origin permission has to match the definition of "MatchPattern"
as defined in toolkit/components/schemas/manifest.json.
For normal (non-privileged extensions), this is either <all_urls>, or a
pattern consisting of the "http", "https", "ws", "wss", "file", "ftp"
schemes.

Depends on D5527

Depends on D5527

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:16:59 +00:00
Rob Wu
e60742dbc8 Bug 1484263 - Clean up manifest permission parser and add tests r=aswan
The "permissions" array of the raw manifest is not (and should not) be
used for permission checking, so it is not necessary to strip the
"mozillaAddons" permission from it.

This commit moves the validation of the "mozillaAddons" permission to
classifyPermission, so that the "manifestPermissions" getter (that uses
this method too) accurately reflects the supported permissions of an
extension.

New tests has been added to verify the permission warnings for some
combinations of permissions. This also includes tests that verify
that only privileged extensions can use "mozillaAddons" to unlock
unrestricted schemes.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:56:18 +00:00
Christoph Kerschbaumer
6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
edward.i.wu
06030d9eb9 Bug 1370077 - Avoid deprecation message when background.persistent is true r=robwu,aswan
Add support for enumerations to boolean types, and use it to only show
a deprecation message when background.persistent is false.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:11:44 +00:00
Shane Caraveo
91c0fb097f Bug 1467523 xpcshell tests for host header setting, r=aswan
Depends on D7750

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

--HG--
extra : moz-landing-system : lando
2018-12-05 09:02:34 +00:00
Rob Wu
7e3ca361db Bug 1418710 - Use non-resolvable host in test_ext_webrequest_basic r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D15398

--HG--
extra : moz-landing-system : lando
2018-12-27 13:37:20 +00:00
Narcis Beleuzu
7cfde3000c Merge inbound to mozilla-central. a=merge 2018-12-20 23:56:42 +02:00
Luca Greco
1affa50933 Bug 1514731 - Move to API schema wrappers the webRequestBlocking permission checks for webRequest blocking listeners. r=mixedpuppy
This patch includes the following changes:

- move into the API schema wrappers the additional checks needed (in the child process) to ensure that we throw a validation error when
  a webRequest blocking listener is registered by an extension that doesn't have the required webRequestBlocking permission:
  - define a new webRequestBlockingPermissionRequired postprocessor
  - add to web_request.json API schema the `"postprocess": "webRequestBlockingPermissionRequired"` property
    to all the webRequest options types that allows "blocking" as a valid string value (currently
    OnBeforeRequestOptions, OnBeforeSendHeadersOptions, OnHeadersReceivedOptions and OnAuthRequiredOptions)

- add back an additional check for the webRequestBlocking permission in parent/ext-webRequest.js
  (just in case a new webRequest event is added in the future and we forget to add the postprocess
  property, so that we still ensure that an extension without the webRequestBlocking permission
  is not able to register any blocking listener)

- tweak the test_no_webRequestBlocking_error test case to use browser.test.assertThrows to explicitly check
  that the error is thrown and "catchable" by the extension code, and not just logged in the console
  messages, and extend it to run on all the webRequest API events that can be blocking.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 18:40:59 +00:00