Commit graph

1238 commits

Author SHA1 Message Date
arthur.iakab
877c99c523 Merging mozilla-inbound to mozilla central a=merge 2018-03-19 12:43:31 +02:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Tooru Fujisawa
0047ec3b43 Bug 1442465 - Part 3: Use BrowserTestUtils.{waitForTabClosing,waitForSessionStoreUpdate} instead of BrowserTestUtils.removeTab. r=dao 2018-03-19 11:12:13 +09:00
Bogdan Tara
4785e99532 Merge inbound to mozilla-central. a=merge 2018-03-17 12:29:57 +02:00
Nicolas Chevobbe
7f4f2e28cf Bug 1382581 - Adapt extension code to the EventEmitter change in devtools/client/framework; r=rpl.
MozReview-Commit-ID: 3I7kmXiPOqd

--HG--
extra : rebase_source : 033f3aef38cf90a6ea495f2ab86de1900ae2c4e3
2018-03-14 18:12:17 +01:00
Kris Maglione
313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00
Oriol Brufau
b69cc1c281 Bug 1439246 - Clear browser and page actions when inactive tabs navigate r=mixedpuppy,zombie
MozReview-Commit-ID: 5uGHmXEiMQS

--HG--
extra : rebase_source : d2b9acc14536de89a8e43aa5634226bf08c65236
2018-02-18 21:03:36 +01:00
Emilio Cobos Álvarez
0ecba9a059 Bug 1439875: Fix extension windows. r=kmag
Now we're loading the sizemode attribute earlier, doing this on load stops
working.

MozReview-Commit-ID: ToiJiYrvFw
2018-03-16 17:26:51 +01:00
Tiberius Oros
a4a2be52e8 Merge inbound to mozilla-central. a=merge 2018-03-16 11:53:43 +02:00
Gurzau Raul
540992331b Backed out 6 changesets (bug 1439875) for massive breakage for nightly users a=backout
Backed out changeset 990a8eb972cd (bug 1439875)
Backed out changeset 187aef60922c (bug 1439875)
Backed out changeset 9c764daa1234 (bug 1439875)
Backed out changeset f8e091577d2a (bug 1439875)
Backed out changeset 1ee5a2d21901 (bug 1439875)
Backed out changeset 610ba5dfaae1 (bug 1439875)
2018-03-16 11:26:31 +02:00
Emilio Cobos Álvarez
bfce521488 Bug 1439875: Fix extension windows. r=kmag
Now we're loading the sizemode attribute earlier, doing this on load stops
working.

MozReview-Commit-ID: ToiJiYrvFw

--HG--
extra : rebase_source : 48ad80e5535ecc5f7c8c8297f417f797deddc017
extra : source : 80194b5bf0e7bbcccf727d2fec140e747ebd0949
extra : histedit_source : 2b7755fece2a564fc806369280559c8829d3d486
2018-03-15 21:21:33 +11:00
Kris Maglione
853856ff98 Bug 1445537: Follow-up: Add test. r=aswan
MozReview-Commit-ID: 8rDoqbPfnrS

--HG--
extra : rebase_source : ceee3287ffcfc2d1fea70d91c8686a9d0de3ec16
2018-03-14 21:43:11 -07:00
Kris Maglione
62cdcecdd3 Bug 1445780: Part 2 - Remove CPOW usage in WebExtension tests. r=aswan
MozReview-Commit-ID: I27tO3K1E9r

--HG--
extra : rebase_source : 254a5d1482d0594269aaadae225499e83703c8ba
2018-03-14 15:08:52 -07:00
Kris Maglione
83957914cc Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT

--HG--
extra : rebase_source : f7b79ad5998f1138266e89767ee1b434e4797b30
2018-03-14 14:35:05 -07:00
Shane Caraveo
a62b33d946 Bug 1445080 - fix handling of remote web progress for non-tab browsers, r=Gijs,mconley
Ensure remoteWebProgress is initialized for remote browsers.  Includes devtools fix from jryans.

MozReview-Commit-ID: Ce3TzwkNnyi

--HG--
extra : rebase_source : 0f2bcb96ef04f4eaee447180dc21400dca3bf410
2018-03-14 09:12:26 -05:00
Shane Caraveo
d026df2036 Bug 1329507 add filtering to tabs.onUpdated, r=kmag
Add filtering of urls, properties, window and tab id to onUpdated events to
help reduce the quantity of update events that are dispatched.

MozReview-Commit-ID: J8Rh9uEt1gW

--HG--
extra : rebase_source : df821e63a3029e9970f6174f8132f30003b77221
2018-03-09 09:11:28 -06:00
Shane Caraveo
25d47480bb Bug 1443749 only reload sidebar when the url has changed r=kmag
Regression from bug 1398713.  Before that, we reloaded the entire webext-panel.xul if the
sidebar changed.  This verifies we don't reload unecessarily as well as discards
the browser to force a runtime disconnect for the extension if it does change.

MozReview-Commit-ID: LuYxmj9mSb7

--HG--
extra : rebase_source : 9839d7b96195f2323328d1a37c3d946032bbb652
2018-03-09 16:30:49 -06:00
Luca Greco
a7b7f06441 Bug 1435959 - Fix missing network requests in netmonitor panel for oop extensions. r=ochameau
MozReview-Commit-ID: F8jzwBveACm

--HG--
extra : rebase_source : d45591793484ad916c2e3312818700e9db628abe
2018-02-19 18:00:35 +01:00
Jan Odvarko
fae7d4473f Bug 1434855 - Improve performance of HAR export; r=ochameau
MozReview-Commit-ID: 6H6P6wYmdQL

--HG--
extra : rebase_source : ab9e8e9ea68ae91e8fe4f28c344c41e2324e223f
2018-03-08 12:45:36 +01:00
Tooru Fujisawa
3aa4b5ece2 Bug 1439472 - Skip browser/components/extensions/test/browser/browser_ext_popup_select.js on debug build. r=kmag 2018-03-05 08:41:33 +09:00
Kris Maglione
3e279d936f Bug 1434076: Follow-up: Add test for conflict between browserAction and bundled experiment. r=zombie a=test-only
--HG--
extra : rebase_source : 4612cdff82bac267c61aa5a249a19a71c21d70f1
extra : amend_source : 5e643c5b3543a7837f64d15df41a4bc3b28eff11
2018-03-03 11:39:18 -08:00
Luca Greco
237bd0a1f9 Bug 1434590 - Re-enabled browser_ext_tabs_lastAccessed.js test on Windows. r=jmaher
This test has been disabled because it was failing intermittently with a pretty high
frequency on the Windows platform, the reasons behind the failures have been fixed
in Bug 1435100.

MozReview-Commit-ID: FNJqocBcxnf

--HG--
extra : rebase_source : f5fd1392bc53f137c8e48e433fddd103af74eaad
2018-03-02 13:30:19 +01:00
Ciure Andrei
2afb60f7a8 Backed out changeset a512c178c19b (bug 1439472) for causing bug 1442101. a=backout 2018-03-02 14:25:33 +02:00
Tim Nguyen
084b267c6b Bug 1442437 - Rename background_tab_text to tab_background_text. r=jaws
MozReview-Commit-ID: LFXUqxuHbBb

--HG--
extra : rebase_source : 914f0b36fda459391ff38dddf97140005f5703f8
2018-03-01 23:49:07 +00:00
Oriol Brufau
b57dc90eeb Bug 1438666 - Let tabs.query check if a tab is highlighted r=mixedpuppy,rpl
MozReview-Commit-ID: CgVuzLCxjPl

--HG--
extra : rebase_source : 020bf5dc8903c60df109b135144882db52df7bf5
2018-02-26 17:19:18 +01:00
Shane Caraveo
766d86e4a3 Bug 1438985 fix showing hidden tabs on extension shutdown, r=aswan
We need a static disable event so we can handle shutdown
of extensions using hidden tabs.  This allows us to handle
shutdown when the extension has not yet used the API (thus
the ext-tabs api has not loaded).

MozReview-Commit-ID: BxV5PmbHJ8o

--HG--
extra : rebase_source : 78dd8b6e6b6ee1b09d446545dc8b38e32d7e9969
2018-03-01 12:04:52 -06:00
Csoregi Natalia
1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Tooru Fujisawa
e497c77767 Bug 1193394 - Part 6: Disable browser_devices_get_user_media_unprompted_access.js and browser_ext_commands_execute_browser_action.js. r=bustage CLOSED TREE 2018-03-01 22:26:20 +09:00
Sebastian Hengst
6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst
3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Tooru Fujisawa
c253fc2790 Bug 1193394 - Part 3: Disable browser_ext_browserAction_popup.js and browser_ext_browserAction_popup_resize.js. r=bustage 2018-03-01 18:42:14 +09:00
Nicolas Chevobbe
8ea55ce28a Bug 1382606 - Switch webconsole to new event-emitter; r=Honza.
MozReview-Commit-ID: HBogPeOI7WM

--HG--
extra : rebase_source : 4ad1fb922ffc818d175ae3c09820ce31ba416487
2018-02-23 09:10:36 +01:00
Peter Van der Beken
6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Tooru Fujisawa
623d991cc1 Bug 1439472 - Wait for ViewShown event of extension panel before synthesizing mouse event. r=Paolo 2018-03-01 10:36:05 +09:00
Tooru Fujisawa
05149ef895 Backed out changeset 1c928c9f81ca (bug 1439472) 2018-03-01 10:35:52 +09:00
Tooru Fujisawa
2634248fc8 Bug 1439472 - Wait for all transitions for arrow panel before operating on the content of the panel. r=Paolo 2018-03-01 10:28:45 +09:00
Cosmin Sabou
c8da530727 Bug 1417052 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_omnibox.js for frequent failures. r=jmaher
--HG--
extra : rebase_source : e10b15d3787944a28ebb25a18a455220c9159904
2018-02-26 14:57:41 +02:00
Johann Hofmann
09d9353e79 Bug 1333468 - Part 2 - Add tests for paused/disabled sharing state indicators. r=florian
MozReview-Commit-ID: G1CTAefOPNB

--HG--
extra : rebase_source : fcdfbf3d646ddf96a43b5facf69f0f7f8211dfa6
2018-02-13 10:09:07 +01:00
Zibi Braniecki
e37732b867 Bug 1431260 - Migrate Extensions tests to mock locale availability. r=aswan
MozReview-Commit-ID: KbFa11j69F1

--HG--
extra : rebase_source : dd8212a3e614dcdd833c9152478871160c82d550
2018-02-16 14:35:00 -08:00
Cosmin Sabou
5148c3627f Bug 1438663 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_focus.js for frequent failures. r=aryx
--HG--
extra : rebase_source : 455577d7f3ff824fadb6c6a6369dff705ea9b78d
2018-02-21 11:36:00 +02:00
Tooru Fujisawa
9a81f2437f Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because the current compartment is used in the
following places and all of them are safe:

1. GlobalObject::CallerType(), that is ultimately passed to
   nsDocument::IsWebAnimationsEnabled in KeyframeEffectParamsFromUnion,
   to decide whether to copy mIterationComposite/mComposite to
   KeyframeEffectParams.

   GlobalObject::CallerType() can now be different than the target window's one,
   if the caller has the system principal and the target is web content, and
   in that case nsDocument::IsWebAnimationsEnabled there always returns true
   while Web Animations can be disabled on web content.

   honoring the mIterationComposite/mComposite properties is OK, since it just
   changes the animation behavior, and this is disabled by default until
   remaining spec issues are resolved.

2. GlobalObject::Context(), that is ultimately passed to
   KeyframeUtils::GetKeyframesFromObject and used while extracting information
   from passed-in keyframe object, with iterable/iterator protocols.

   Performing that operation in the caller side is okay, since the same thing
   can be done on caller, and the operation doesn't perform any GCThing
   allocation on the target window global.
2018-02-17 17:21:13 +09:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
shindli
58aef5128f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-18 11:39:20 +02:00
Oriol Brufau
da20c7145a Bug 1437178 - Fix various pageAction visibiltiy issues when using show_matches and hide_matches r=mixedpuppy
MozReview-Commit-ID: 5jQ7MkkKWRk

--HG--
extra : rebase_source : 4af4acda8d25c606ea8734b2ce3bd96954647dbd
2018-02-09 22:22:43 +01:00
Tooru Fujisawa
d58a217b1c Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because of the following reasons:

1. The target window global is used for most operation:
     * KeyframeEffectReadOnly::ConstructKeyframeEffect uses the target window
       global instead of current global.
     * KeyframeEffectParamsFromUnion which receives `aGlobal.CallerType()`

   In Xray case, Web Animations API can be disabled on web content
   (currently disabled on beta/release by default), and in that case some API
   won't work even it's triggered from WebExtensions, but it should be fine.

2. GetKeyframesFromObject is executed in the caller's compartment to access
   the passed-in JSObject that is keyframe, with iterable/iterator protocols.
   This operation doesn't perform any GCThing allocation on the target window
   global.
2018-02-17 17:21:13 +09:00
Tooru Fujisawa
d70a10cbd8 Backed out changeset c3f16a179c93 (bug 1414674) 2018-02-18 01:24:08 +09:00
Oriol Brufau
5f5467402a Bug 1438274 - Fix browser and page actions clearance when navigating r=mixedpuppy
MozReview-Commit-ID: Jb43H65LmFB

--HG--
extra : rebase_source : b6b276f6bd49d1d0387ea150b8ab81b257c14b76
2018-02-15 02:57:53 +01:00
Shane Caraveo
2f634add59 Bug 1324255 make webextension panels focused when opened, r=Gijs,rpl 2018-02-15 09:52:54 -07:00
Jan Odvarko
96233200ee Bug 1311171 - Implement the devtools.network.onRequestFinished API event; r=jdescottes,rpl
MozReview-Commit-ID: IymuzcUg0VN

--HG--
extra : rebase_source : 5c262babe60132c9a73acc7dadf3b38f30133ecc
2018-02-14 11:32:10 +01:00
Shane Caraveo
4bea9207d6 Bug 1436720 use sessionstore to track controlling extension, r=Gijs
MozReview-Commit-ID: ACzGfNDVFXm

--HG--
extra : rebase_source : 7b7c8123f74b437ae5dc37c254dfb090b9321d4b
2018-02-13 15:43:31 -07:00
Mark Striemer
5431ec74a5 Bug 1429590 - Only allow one homepage to be set by extensions r=aswan
MozReview-Commit-ID: 8DTj8ceWAr8

--HG--
extra : rebase_source : 006f967cfd183e9c915e622056fec10ab173842e
2018-01-31 20:21:32 -06:00
Tom Ritter
c4edd2fe5c Bug 1435296 Address xpcshell test failures from increasing timer precision r=baku
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.

MozReview-Commit-ID: LrsucEPdZIo

--HG--
extra : rebase_source : 8147c034f7dc93f678eebc80b0afabf55729d804
2018-02-12 11:41:38 -06:00
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
Cristian Brindusan :cristian_brindusan
8cd85773bd Bug 1434590 - disable browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js for frequent failures r=gbrown 2018-02-11 12:44:44 -07:00
Mark Striemer
5b4239522f Bug 1421811 - Part 3: Update shortcut in sidebar on update r=Gijs,mixedpuppy
MozReview-Commit-ID: 4y02mCqwacg

--HG--
extra : rebase_source : c0a0334d46037793faf3c6797903df70f8de0e51
2018-02-06 12:55:40 -06:00
Mark Striemer
8c26de1d7c Bug 1421811 - Part 2: Support commands.reset() to reset a command's updates r=mixedpuppy
MozReview-Commit-ID: 4hWGo1ZH6tn

--HG--
extra : rebase_source : afa5b3dff8f77b5d5f87e71aa63918e1a4d31bfd
2018-01-31 15:49:20 -06:00
Mark Striemer
35992a1b90 Bug 1421811 - Part 1: Support commands.update() to modify a command r=mixedpuppy
MozReview-Commit-ID: 5A6ZmvNT294

--HG--
extra : rebase_source : fb8461900000fbf461eaabfc662051940b8de16a
2018-01-31 15:48:32 -06:00
Luca Greco
126281c8a6 Bug 1403130 - Allow DOMNodes and cyclic objects to be rendered with the sidebar.setExpression API method. r=aswan
MozReview-Commit-ID: AjHn7KfVhas

--HG--
extra : rebase_source : 006cb5df0649fc001c2ddfaecc1ddd3cba7d1f54
2017-10-12 15:55:47 +02:00
Andrew McCreight
b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Nathan Watson
1605552221 Bug 1434262 - Remove PlacesTestUtils.clearHistory() r=mak
MozReview-Commit-ID: In2RaM0LBsc

--HG--
extra : rebase_source : 0cb5dc65a53bfa384b93fb2a8c2af67ad9d3fe1c
2018-01-31 22:03:05 -08:00
Drew Willcoxon
779a6db762 Bug 1435992 - Disabled page actions still show extension context menu items. r=mixedpuppy
MozReview-Commit-ID: JmC6PXtW1SK

--HG--
extra : rebase_source : ebb3895ba0d2ebb533cf134c598ffb6ef988f446
2018-02-06 11:15:50 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Mark Striemer
6e113c8c8f Bug 1344815 - Show sidebar shortcut in menus r=mixedpuppy
MozReview-Commit-ID: C6q0FBtCmRK

--HG--
extra : rebase_source : d936c4bdcc779ee8d040412b6f518a1c352200aa
2018-01-31 19:41:32 -06:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Luca Greco
058667beb9 Bug 1420485 - Fix 'message manager count' failure when browser_ext_tabs_insertCSS.js is executed first. r=mixedpuppy
MozReview-Commit-ID: HEWS8Lxldbi

--HG--
extra : rebase_source : 6f323e6f13ed20d7227d89ffb6487551ac95f757
2018-01-29 17:24:57 +01:00
Luca Greco
760c5d578f Bug 1420485 - Fix browser.test.notifyFailure is not defined in tabs.insertCSS/removeCSS tests. r=mixedpuppy
This patch fix a type in the tests related to tabs.insertCSS/removeCSS,
the test function is actually named browser.test.notifyFail.

MozReview-Commit-ID: 8DpOFBpm795

--HG--
extra : rebase_source : 86a4977659cdbb9717b6411bd37142ef60ec9e55
2017-11-27 15:37:45 +01:00
Luca Greco
589a8dd24f Bug 1420485 - Fix an exception raised by browser_ext_tabs_insertCSS.js on injecting the same cached preloaded stylesheet twice. r=mixedpuppy
MozReview-Commit-ID: Jq2JdXwt7zC

--HG--
extra : rebase_source : 196992e71d975ae9e291cdb1d67732730eda28a0
2017-11-24 19:19:27 +01:00
Luca Greco
a457ca6fc6 Bug 1420485 - Added new tabs.insertCSS test case to ensure that the injected CSS are cleaned up. r=mixedpuppy
MozReview-Commit-ID: EPTTA2MnZ6O

--HG--
extra : rebase_source : c997153da3b2a5446c5b6cedf5ad108fde6f226d
2017-11-27 15:38:45 +01:00
Shane Caraveo
0fb829b692 Bug 1408194 prevent using find api on about urls 2018-01-30 16:55:54 -07:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Gijs Kruitbosch
d9872d9e13 Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj

--HG--
extra : rebase_source : 3d10e802f50ba3e342591dbe86a37fa10b74ee1f
2018-01-12 18:51:41 +00:00
Andreea Pavel
1e5f9a6650 Backed out changeset 5421387a997d (bug 1345081)for failing browser chrome browser/components/extensions/test/browser/browser_ext_menus_events.js on a CLOSED TREE 2018-01-26 17:23:27 +02:00
Gijs Kruitbosch
625c300198 Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj

--HG--
extra : rebase_source : 5a72fb58f7c610e0906db9a283a8b136c840a07a
2018-01-12 18:51:41 +00:00
Rob Wu
2cf5e43401 Bug 1215376 - fix linting and test issues from rebase r=mixedpuppy
- Work-around in browser_ext_menus_events.js for bug 1428213
- Fix indentation issues (eslint)
- Hide the "pageUrl" property for bookmark menu events
  (fixes test failure in test_bookmark_contextmenu).

MozReview-Commit-ID: 4YHJci0J7Rh

--HG--
extra : rebase_source : 3879e843bd2826fcd34dbd41708d570024e681e8
2018-01-05 01:13:04 +01:00
Rob Wu
31f0051ebc Bug 1215376 - Test menu event order: onShown, onClicked, onHidden r=mixedpuppy
This test ensures that the menu events will always be fired in the
natural event order.

Two menus are tested:
- A context menu in the page.
- The tools menu.

MozReview-Commit-ID: 4sLyvgMYMtE

--HG--
extra : rebase_source : 9837661f034530b63c9cbbbb3104fb6367f513a8
2017-09-26 19:25:22 +02:00
Rob Wu
ea69a1a9b5 Bug 1215376 - Fire menus.onShown for every menu r=mixedpuppy
This commit lifts the restriction that onShown is only fired for
extensions with a visible menu item.

MozReview-Commit-ID: Ao4MgBoRWLR

--HG--
extra : rebase_source : c1acd1bcbfdcc6ef4bfaf199f3f016dde71ad2e5
2017-09-14 18:28:36 +02:00
Rob Wu
fc7e2d4ea9 Bug 1215376 - Add more contextual information to onShown r=mixedpuppy
- Adds most of the OnClickData properties to the onShown event parameter
  (except for menu-specific properties such as parentMenuId / checked).
- Add tests to verify the values of these properties.

MozReview-Commit-ID: 7705sJyAOIJ

--HG--
extra : rebase_source : 8948ea20129cfd1c34653a3cbe9b36cebd6fa00d
2017-09-14 16:37:57 +02:00
Rob Wu
582474fa51 Bug 1215376 - Always use old contextData upon refresh r=mixedpuppy
MozReview-Commit-ID: K1wfFCYpMqB

--HG--
extra : rebase_source : c82f9d01631e3d4160de0c49657dd7d8ca8c7a6a
2017-09-14 02:11:29 +02:00
Rob Wu
e86d6006f0 Bug 1215376 - Add menus.refresh to update menus r=mixedpuppy
Together with the previous patches that introduced menus.onShown,
this enabled extensions to update/remove menu items after a menu
has been shown.

At this point, it is not yet possible to add a menu item if an
extension has not shown a menu item before; this can be added later.

MozReview-Commit-ID: E0JrE9gd4gS

--HG--
extra : rebase_source : 0d21c369eb17b3a819603f27af8d9f9fccf5b783
2017-09-13 03:14:00 +02:00
Rob Wu
a495a0b1c0 Bug 1215376 - Ensure that menu elements have a unique ID r=mixedpuppy
Previously, there was no guarantee for the uniqueness of the ID.
Now the ID is unique, and always set.

See https://bugzil.la/1358213#c6 and #c7 for examples of collisions.

MozReview-Commit-ID: 7CHP6tWFDUg

--HG--
extra : rebase_source : a585dcfd3a83eb590de9b69a02dba8b4bb1b0a0c
2017-09-11 01:01:41 +02:00
Rob Wu
e9a64ba705 Bug 1215376 - Add onShown and onHidden to contextMenus/menus API r=mixedpuppy
This commit adds the bare minimum to support the onShown and onHidden
methods in the contextMenus and menus API (plus tests).

The onShown event data may be extended in a separate commit, to make it
easier to see how the additional properties are reflected in the tests.

MozReview-Commit-ID: 20VJS2YLhTN

--HG--
extra : rebase_source : 1fe9985b2e5daa1be455e07ccf58e36e6d9fe508
2017-09-10 01:38:45 +02:00
Rob Wu
5926434b44 Bug 1215376 - allow itemToSelect to be null in menu closing test utility r=mixedpuppy
Most close*Menu methods in browser tests allow itemToSelect to be null.
Some did not.
Now they do (after this commit)

MozReview-Commit-ID: 2jSGAi2R3ZD

--HG--
extra : rebase_source : 897d4a66f5b1da8027180f85c5f5f5284734e860
2017-09-09 19:41:56 +02:00
dw-dev
9d2e97a23a Bug 1415507 - changes to tabs.saveAsPDF(); r=mixedpuppy
There are three changes:

1. Adds a print progress listener to tabs.saveAsPDF() in ext-tabs.js so that the
  'saved' or 'replaced' status is not returned until the PDF file has been saved.

2. Adds four more "edge" properties to the  pageSettings object to allow positioning
   of the page headers and footers.

3. Adds automated tests for tabs.saveAsPDF() in browser_ext_tabs_saveAsPDF.js that
   cover all returned statuses: saved, replaced, canceled, not_saved, not_replaced.

MozReview-Commit-ID: iljvT8wp11

--HG--
extra : rebase_source : 081f8b6ed56ecaa5f5f5414a11f57b143c0fd19e
2018-01-19 14:13:33 +00:00
Jan Odvarko
c59f2d5676 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: gUtGjbr0FQ

--HG--
extra : rebase_source : 78f837101f83d5ad455fc7e2d1f53db054cec4cc
2018-01-22 18:30:46 +01:00
Tooru Fujisawa
f3708770fd Bug 1431961 - Wait for the extension startup code before starting tests in browser/components/extensions/test/browser/browser_ext_user_events.js r=kmag 2018-01-21 14:29:42 +09:00
Oriol Brufau
2259549f9d Bug 1424538 - Allow pageAction and sidebarAction set* methods to accept a null value (desktop). r=mixedpuppy
MozReview-Commit-ID: FqcRrFDYqWp

--HG--
extra : rebase_source : 0ae2cfb1db75f3abbdc9b0e57c56848dadd3a431
2017-12-18 20:41:10 +01:00
Margareta Eliza Balazs
9ba236fd80 Backed out changeset 32daec7fd5b6 (bug 1311177) for bc5 failures in browser/components/extensions/test/browser/test-oop-extensions/browser_ext_devtools_network.js on a CLOSED TREE 2018-01-19 11:54:43 +02:00
Noemi Erli
9f768aa4e8 Backed out changeset 9687e3d987be (bug 1415507) for bc failures in browser/components/extensions/test/browser/browser_ext_tabs_saveAsPDF.js on a CLOSED TREE 2018-01-19 10:22:14 +02:00
Jan Odvarko
e1114707d4 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: I9F4tGSwBrt

--HG--
extra : rebase_source : ce3adb6ce47e62302b29651a05276d13621679cb
2018-01-17 13:32:42 +01:00
dw-dev
0af31f6b53 Bug 1415507 - changes to tabs.saveAsPDF(); r=mixedpuppy
There are three changes:

1. Adds a print progress listener to tabs.saveAsPDF() in ext-tabs.js so that the
  'saved' or 'replaced' status is not returned until the PDF file has been saved.

2. Adds four more "edge" properties to the  pageSettings object to allow positioning
   of the page headers and footers.

3. Adds automated tests for tabs.saveAsPDF() in browser_ext_tabs_saveAsPDF.js that
   cover all returned statuses: saved, replaced, canceled, not_saved, not_replaced.

MozReview-Commit-ID: LMTjKDjBwY3

--HG--
extra : rebase_source : 3fc661c737ee5800d9d40e51ecafc11a946e8780
2018-01-18 10:15:36 +00:00
Shane Caraveo
636a2a5a8f Bug 1423725 add show/hide tabs api, r=rpl
MozReview-Commit-ID: 4z73ZTRE7kN

--HG--
extra : rebase_source : 7683973921b07818c7a63ab8387e4ebe65705499
2018-01-18 16:37:18 -07:00
Shane Caraveo
d78ea2931e Bug 1423725 add event, query and details for hidden status, r=Gijs,rpl
MozReview-Commit-ID: AMcmbh4m8lK

--HG--
extra : rebase_source : 6e8c246cbe69e4d298de031361e10276ddbf7551
2018-01-18 16:37:11 -07:00
Oriol Brufau
ac5db38313 Bug 1427107 - Reject setBadgeBackgroundColor promise for invalid string colors r=mixedpuppy
MozReview-Commit-ID: 1XXiQCDe7Tu

--HG--
extra : rebase_source : df1ab14e9473d1fab42016ea31823274838bffdd
2018-01-11 18:56:18 +01:00
Oriol Brufau
52b205414a Bug 1427431 - Add methods to check if browser/page/sidebar actions are enabled/shown/open r=mixedpuppy
MozReview-Commit-ID: DPbg8SwKVQL

--HG--
extra : rebase_source : 9364415cfed7ed47083d2b67782930ed99d9a021
2018-01-11 18:19:02 +01:00
Tim Nguyen
40b755ffc4 Bug 1427463 - Implement tabs.captureTab(tabId). r=mixedpuppy
MozReview-Commit-ID: 5sr3I1A1b8A

--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js => browser/components/extensions/test/browser/browser_ext_tabs_captureTab.js
extra : rebase_source : 3bcadd40eb506bbaef53f0cafcbcd4347e5cf58b
2018-01-10 14:51:43 +00:00
Luca Greco
fdcbd7477c Bug 1380855 - Fix intermittency and speed up devtools panel webextension test. r=mixedpuppy
MozReview-Commit-ID: 27DFuD9hYUa

--HG--
extra : rebase_source : e2fb1576ae60f150630613f5c2e5d5d137651fb7
2018-01-05 19:16:53 +01:00
Tooru Fujisawa
75c3fdab9c Bug 1426599 - Wait for the next event tick after onLocationChange, in browser/components/extensions/test/browser/browser_ext_url_overrides_newtab.js. r=Gijs 2018-01-06 16:24:43 +09:00
Luca Greco
d9b0711c09 Bug 1425224 - Use manifest.ExtensionURL in devtools.panels.create API schema. r=mixedpuppy
MozReview-Commit-ID: AR6j1fC0PmJ
2017-12-14 18:20:59 +01:00
Lukas Jung
21f7b5704f Bug 1370228 - "Context menu title with placeholder always shows ellipsis" [r=mixedpuppy]
--HG--
extra : rebase_source : aaf2763c9f28d196376e5d543978b7e6b788b704
2017-12-21 08:33:00 +02:00
Andrew Swan
e66f92191d Bug 1426259: Revamp processing of manifest.json for themes r=kmag
MozReview-Commit-ID: 6dWy8wwrobY

--HG--
extra : rebase_source : f742c50f06a358b30f20eabf1cd81713dbfaa86f
2017-12-20 16:06:50 -08:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Tim Nguyen
fd655b880c Bug 1425868 - Consolidate arrow panel styling. r=dao
Original patch by Jared Wein [:jaws]

MozReview-Commit-ID: D8GxCjJ8Si3

--HG--
extra : rebase_source : 3f877d5b69e3ab86ad7d8b769e6b5459cea3b5bf
2017-12-19 08:00:00 -06:00
Andrew Swan
b71f9b4b1a Bug 1423425 Stop reading the Extension.jsm module object in specialpowers r=kmag
The return value from Cu.import() does not include lexically scoped
symbols so stop using it here.  Also stop using Extension.generate()
while we're here.

MozReview-Commit-ID: HnX3RGgDHbR

--HG--
extra : rebase_source : b4e238f2a5f1c9dce838b4dd70447edd9f401c10
2017-12-18 10:32:23 -08:00
Mark Striemer
02fae21b7d Bug 1414018 - Go to new New Tab page after disabling add-on in New Tab doorhanger r=aswan
MozReview-Commit-ID: 7ZXehNEC6ml

--HG--
extra : rebase_source : b1b78fe53e1049df326649a76be5a39259ebc919
2017-11-29 17:14:54 -06:00
Andreea Pavel
5ba2665757 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 22:21:17 +02:00
Kris Maglione
4a4c4fdfd4 Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
MozReview-Commit-ID: LxLDWlsIlSk

--HG--
extra : rebase_source : 5762bdf08ff6c09c1b29f87366bddb552e4c74b2
extra : amend_source : 922a0c03722bd5a81daace7f0289ec3228191cfb
2017-11-28 14:13:59 -08:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Oriol Brufau
a9a6960797 Bug 1419940 - Allow browserAction set* methods to accept a null value. r=aswan
MozReview-Commit-ID: H2UfUITBEMm

--HG--
extra : rebase_source : 470bcb87dc3389430068bd374084192a375aa1fd
2017-11-29 05:50:00 +01:00
Andreea Pavel
89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Ryan VanderMeulen
d945b2a059 Bug 1423667 - Disable some tests that fail on Windows Code Coverage builds with clang-cl r317840. rs=marco
--HG--
extra : histedit_source : d2f4b4d59301469c4cabb7198f0f98c5247eab84
2017-12-06 20:40:46 -05:00
Shane Caraveo
f27fb376d0 Bug 1419842 support pattern matching to show/hide pageActions, r=aswan
MozReview-Commit-ID: bYcR08xX8r

--HG--
extra : rebase_source : cdd22772e6b319dc3fb2c8895503bf22f872f745
2017-12-05 14:41:21 -08:00
Ciure Andrei
48e5c9892f Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-02 12:19:55 +02:00
Tooru Fujisawa
07264d6840 Bug 1420319 - Wait for the next event tick before resolving promise in browser_ext_optionsPage_modals.js. r=jaws 2017-12-01 22:35:59 +09:00
Thomas Nguyen
d67c09f7dd Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb,JanH
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : 3741530254b3cb2627f798cf22eacf64c29a8b9e
2017-10-23 18:15:40 +08:00
Bob Silverberg
c86e3d1c91 Bug 1408472 - Read-only browserSettings should return false on write attempts, r=mixedpuppy
This updates browserSettings so that calling set and clear return false, rather than undefined,
for read-only settings. It also returns "not_controllable" rather than "controllable_by_this_extension"
for levelOfControl from calls to get for read-only settings.

MozReview-Commit-ID: 9c0bKDaYIC7

--HG--
extra : rebase_source : c47c97bcc19095bf1945e111e13e2a8f02e98799
2017-11-28 12:11:23 -05:00
Bob Silverberg
9e8f1233a1 Bug 1415913 - tabs.create without a windowId should target only normal windows, r=aswan
This introduces a new property to WindowTracker (on desktop only) called topNormalWindow
which returns the topmost window which is not a popup window. That property is then used
by tabs.create to identify the top "normal" window when a windowId is not passed to it.

Bug 1421709 has been filed to look for other opportunities to use topNormalWindow
in place of topWindow in our codebase.

MozReview-Commit-ID: DcV93wO6FoV

--HG--
extra : rebase_source : 7c7be7c364cc627d385929a2c9fd2dee757bf835
2017-11-20 17:00:20 -05:00
Tiberius Oros
18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
tushararora
ec914abaff Bug 1402399 - Fix browser.windows.update to clear titlePreface if it is passed empty. r=bsilverberg, r=mixedpuppy 2017-10-13 12:38:19 +05:30
Mark Striemer
5c1b7369e5 Bug 1415029 - Use better extension icon in identity block r=johannh
MozReview-Commit-ID: CFTIe9I9mfe

--HG--
extra : rebase_source : 763d0cce8ebc278b285e5810ab01f6c180f56988
2017-11-27 11:36:10 -06:00
tushararora
b990216761 Bug 1334782 - tabs.query should pattern match the title r=zombie
MozReview-Commit-ID: 5WaKLaOP7Nc

--HG--
extra : rebase_source : 6d317b643cd6d6f38659dfc5cc0c8e16bee74e56
2017-11-16 16:17:45 +05:30
Marco Bonardo
42c2f7913b Bug 1416142 - Intermittent timeout in browser_ext_omnibox.js. r=standard8
MozReview-Commit-ID: DAZumEpI1xB

--HG--
extra : rebase_source : d422ca4bd2afbf2ae7ea27027a2cddc0ff445a23
2017-11-23 13:47:34 +01:00
Bob Silverberg
dec75b31da Bug 1416039 - Fix intermittent browser_ext_tabs_lastAccessed.js, r=mixedpuppy
The recent failures all seem to be on the assertion that lastAccessed of tab 1 is
later than the test start time. It's possible that things happen so quickly that
lastAccessed of tab 1 is the same as the start time, so this patch changes the
comparison to be a <=.

MozReview-Commit-ID: 67CVQPj1ShM

--HG--
extra : rebase_source : c370422f3c9e54bbae8b4e7827c671c5a784ce7b
2017-11-24 08:26:34 -05:00
Mark Striemer
8a1f9ea7ae Bug 1390158 - Notify user of extension controlling New Tab on first access r=aswan,jaws
MozReview-Commit-ID: 1g9d4UTuOgr

--HG--
extra : rebase_source : 29e07cff103e7751bf4ca414a88f89136d3ac237
2017-11-22 19:00:58 -06:00
Tiberius Oros
797c93d81f Merge inbound to mozilla-central r=merge a=merge 2017-11-21 11:55:23 +02:00
Tooru Fujisawa
50f5bf47cd Bug 1418739 - Part 2: Remove unused delayedStartup parameter from BrowserTestUtils.waitForNewWindow. r=smaug 2017-11-21 03:41:56 +09:00
Bob Silverberg
ea5edb4f6a Bug 1404584 Part 3: Convert ExtensionPreferencesManager to use update and uninstall events, r=aswan,jkt
This includes removing the "web-extension-preferences-replacing" and "web-extension-preferences-replaced"
notifications as they are no longer needed.

MozReview-Commit-ID: IjNf4BImgas

--HG--
extra : rebase_source : a48e72c291ebd509d19e9e94196d3600eb7328c4
2017-11-01 09:51:41 -04:00
Bob Silverberg
d5a84e4c0a Bug 1404584 Part 2: Convert ext-chrome-settings-overrides to use update and uninstall events, r=aswan,mkaply
MozReview-Commit-ID: KtagRbDz19S

--HG--
extra : rebase_source : 07b6aca0c1ad1653397055fc0ab61c2f37ad51bb
2017-11-01 09:50:03 -04:00
Tim Nguyen
a8dec5b3f6 Bug 1370499 - Support WebExtensions bookmark context menus. r=mixedpuppy
MozReview-Commit-ID: AkYxeGHlDvi

--HG--
extra : rebase_source : 104e86ceec0994076b1c05d6de2000ac1bc77e8c
2017-11-20 23:01:02 +00:00
Tim Nguyen
6a9b3a4737 Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A

--HG--
extra : rebase_source : 3d88c63a68721a120161b9ddb915eb05a24ad9e0
2017-11-15 17:34:12 +00:00
Xidorn Quan
7d5f568abc Bug 1417281 part 2 - Add 32x32 theme icon in browser_ext_browserAction_theme_icons.js test so that it works as expected on HiDPI as well. r=mixedpuppy
MozReview-Commit-ID: DLFuxxeVyTR

--HG--
extra : rebase_source : 4c83df88e8a99a5886f481774dfbf0ce4eec16ab
2017-11-14 17:55:06 -08:00
Mark Banner
ab78a2a54d Bug 1371293 - Fix instances of space-before-function-paren failures after ESLint 4 upgrade. r=mossop
MozReview-Commit-ID: 5XfdCSDjLEG

--HG--
extra : rebase_source : 96335eec91a40f893ff28a1c002653b758d8f24d
2017-11-06 13:46:21 +00:00
Joel Maher
fdb492189b Bug 1285500 - Disable browser_ext_browserAction_popup.js on windows/debug for frequent failures. r=me, a=testonly 2017-11-13 12:20:01 -05:00
Drew Willcoxon
46c5139ac2 Bug 1413574 - Hide disabled page actions and offer a "Manage Extension" command for actions in extensions. r=Gijs
MozReview-Commit-ID: HJpu9Jfi2bB

--HG--
extra : rebase_source : ee219138b8df1744c223d81281d9525c3d7b7227
2017-11-10 11:06:02 -05:00
Bob Silverberg
0e9d7b7ac2 Bug 1381684 - Fix intermittent browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js, r=mixedpuppy
This patch introduces two changes to the test:

1. It breaks apart the assertion that was combining three tests into individual assertions, so if this does
fail again in the future it will be easier to spot the actual problem.

2. It uses addTab and browserLoaded instead of openNewForegroundTab, which seems to allow the test to wait
long enough before starting the extension.

When I was able to reproduce the failure, after separating the assertions, I found the one that was failing
was the check that tab2.lastAccessed was less than the current time. I believe that the current time was being
recorded too soon, which is why I changed the test to not record the current time until after both tabs have
completed loading. This seems to fix the intermittent locally for me.

MozReview-Commit-ID: I3VoYODwjgz

--HG--
extra : rebase_source : 34729a3ae02e9266cf5aee63de293786403a46e9
2017-10-30 13:39:53 -04:00
Marco Bonardo
223e6dec30 Bug 1402286 - chunk notifyResults calls so that we don't run all the autocomplete js for each match. r=adw
MozReview-Commit-ID: GuYew5B30WQ

--HG--
extra : rebase_source : 236f6fe83728ddbb9d73c4f7606aca2187e267b5
2017-10-31 11:13:47 +01:00
Gijs Kruitbosch
c8a6cce3c5 Bug 1387081 - stop re-adding the sidebar button to the toolbar now that it's there by default, r=mixedpuppy
MozReview-Commit-ID: 9e1eFaVltMO

--HG--
extra : rebase_source : b05d6e7034037da95187d25303d359b4c2e67179
2017-11-08 18:01:53 +01:00
Drew Willcoxon
e42d94c099 Bug 1413692 - Extensions page actions are pinned to address bar again and again. r=mixedpuppy
MozReview-Commit-ID: HrhYTNSwygH

--HG--
extra : rebase_source : e67932403b4294902c5096883cb5be6759969d69
2017-11-06 21:19:26 -05:00
Shane Caraveo
6cd7d5e813 Bug 1413648 fix default extension icon use, r=aswan
MozReview-Commit-ID: 3Dh2DjGIAgn

--HG--
extra : rebase_source : da88dcede96fa8f89cca1e9abf9baabb78a73855
2017-11-02 15:49:38 -07:00
Tomislav Jovanovic
bf724a5a3a Bug 1409433 - Handle contextmenu clicks in non-tab content r=aswan
MozReview-Commit-ID: BSTb0ATBfbh

--HG--
extra : rebase_source : 03888d08aab2dd58f8886d1adc0baa1d2c658c8f
2017-11-01 23:00:33 +01:00
Michael Kaply
c7b960e287 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : d9859034a5e98879c7911a802cc6b631e1d3f0a1
2017-10-31 20:15:49 -05:00
Csoregi Natalia
452c8e7040 Backed out 1 changesets (bug 1413298)
Backed out changeset 2b8095d47140 (bug 1413298) for failing ESLINT browser_ext_settings_overrides_search.js:37 r=backout on a CLOSED TREE
2017-11-01 15:11:39 +02:00
Michael Kaply
c2e017ed48 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : 5bec3399533e3832d50593e8172d9f053e435291
2017-10-31 20:15:49 -05:00
Phil Ringnalda
90dde0bad4 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00
Thomas Nguyen
e6dd599a0d Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : c8bef97f35437368297af402ddf0f18b32182035
2017-10-23 18:15:40 +08:00
Shane Caraveo
ccad062436 Bug 1321854 add logging for intermittent, r=mixedpuppy
MozReview-Commit-ID: 6Wo1CYLVtgL

--HG--
extra : rebase_source : cdee6fc233475a3f29f4ec58833da67a32632b5a
2017-10-31 15:46:13 -07:00
Bob Silverberg
f85ae5dc48 Bug 1371919 - Fix Intermittent browser/components/extensions/test/browser/browser_ext_browsingData_history.js, r=mixedpuppy
I spoke to Marco about this and it turns out the problem is due to using PlacesUtils.history.insertMany together with
PlacesTestUtils.visitsInDB. Calling the former to insert the visits and then immediately calling the latter to verify
them can result in the latter reading a snapshot of the places DB that is not up to date. The fix is to call
PlacesTestUtils.addVisits which will not return until everything is finished up and will therefore not cause
PlacesTestUtils.visitsInDB to possibly read an old snapshot.

MozReview-Commit-ID: GebqORQI0Co

--HG--
extra : rebase_source : a52b9354557f7bcf4f94ad2b06693ae8f81b87ab
2017-10-30 11:37:31 -04:00
Margareta Eliza Balazs
a63fdbeabb Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Sebastian Hengst
2c835e29c4 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-31 00:00:54 +01:00
Sebastian Hengst
f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Kevin Jones
02944dc817 Bug 1322485 - Implement browser.tabs.discard API. r=mixedpuppy 2017-10-30 12:52:00 -04:00
Sebastian Hengst
6979ea37b4 merge mozilla-central to autoland. r=merge a=merge 2017-10-30 23:58:16 +01:00
Drew Willcoxon
37cb69c21b Bug 1395387 - Reconcile WebExtension page actions and Photon page actions: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: n2eR3q1aZF

--HG--
extra : rebase_source : 56a68a6a268e23c05d57960040be4a441566fa03
2017-10-27 17:39:57 -04:00
Drew Willcoxon
3629cb997a Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0

--HG--
extra : rebase_source : dd4f1a60479a435565c78ff7561bf3997cc8e049
2017-10-30 17:50:33 -04:00
Phil Ringnalda
c21a471320 Backed out 2 changesets (bug 1412170) for eslint bustage
Backed out changeset a9a646fe54ec (bug 1412170)
Backed out changeset 8b46ed411edf (bug 1412170)

MozReview-Commit-ID: Et3MnX3ieBe
2017-10-30 14:21:45 -07:00
Drew Willcoxon
7cdccba586 Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0

--HG--
extra : rebase_source : c80e33fdb0e7dd825987c8bd4b36dcbaa875ebcc
2017-10-30 16:53:42 -04:00
Joel Maher
302c4b5c31 Bug 1405453 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js on windows and mac for frequent failures. r=me, a=testonly 2017-10-30 07:56:25 -04:00
Mark Banner
2f2b926bc0 Bug 1411368 - Automatically fix indent-legacy issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: BaQ8GXIGV5v

--HG--
extra : rebase_source : 0be52046d11133a54e961d770572d81e5c0dd7f7
2017-10-26 12:20:08 +01:00
Sebastian Hengst
319217d574 Backed out changeset ba4a39241953 (bug 1386018) for xpcshell failures, e.g. toolkit/mozapps/extensions/test/xpcshell/test_signed_install.js on Linux debug. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 0b31c5a3d73783a3c60f4126a5c11fdda862d9e3
2017-10-25 00:32:35 +02:00
Mark Striemer
04b924cbdf Bug 1386018 - Tell users that the default search engine was set by an extension r=bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF

--HG--
extra : rebase_source : 98875d0bcabbae86f9c25dea9b4fe30d6a3d0109
2017-10-18 14:54:54 -05:00
Wouter Verhelst
900dd77859 Bug 1404421 - Add an empty slot to the test PKCS#11 module r=keeler
It is helpful to have a slot which never has a token, so that the
absense of a token can be asserted in unit tests.

Add a third token that is always empty, and update a number of unit
tests to check for it.

MozReview-Commit-ID: 4apvRRhZJus

--HG--
extra : rebase_source : cd3bb819bcf66c769f36a428ed26ea8fa6c68a26
2017-10-01 12:10:20 +02:00
Luca Greco
35068439d1 Bug 1403349 - Split webNavigation onCreatedNavigationTarget tests to prevent timeouts on linux32 debug. r=aswan
MozReview-Commit-ID: 50JLocTVvfu

--HG--
rename : browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget_window_open.js => browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget_named_window.js
rename : browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget_window_open.js => browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget_subframe_window_open.js
extra : rebase_source : 3b21d6786ae666afc5c5174723444f19ad8411b5
2017-10-13 18:19:47 +02:00
Luca Greco
b02bf31d78 Bug 1403349 - Add a new webNavigation test for window.open called with a named window target. r=aswan
MozReview-Commit-ID: Aj8uMtcGwJx

--HG--
extra : rebase_source : 67bb473d07638f261610c156ef61f38c8d8e38e1
2017-09-28 22:04:14 +02:00
Luca Greco
f02af2dbb2 Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L

--HG--
extra : rebase_source : cd3c072301a1eb24de368c655a96891dd1287c7b
2017-09-27 19:07:41 +02:00
Luca Greco
5b52ad7584 Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan
This changes fixes the regression introduced by Bug 1355120 and adds a new
test case which contains a browserAction popup which open and immediately
close a new window and ensure that the received onCreatedNavigationTarget
is the expected one.

MozReview-Commit-ID: JIcVCpBTpxj

--HG--
extra : rebase_source : 37a7db29fa91d0e3f0593f7d5d996ccd3fba719d
2017-09-27 14:24:54 +02:00
Sebastian Hengst
3ff7869b72 Backed out changeset 9ad123fb9ce5 (bug 1404421) for eslint failure at security/manager/ssl/tests/unit/test_pkcs11_slot.js:44 and static bustage at security/manager/ssl/tests/unit/pkcs11testmodule/pkcs11testmodule.cpp:119. r=backout on a CLOSED TREE 2017-10-19 00:57:36 +02:00
Wouter Verhelst
92f74a28ce Bug 1404421 - Add an empty slot to the test PKCS#11 module r=keeler
It is helpful to have a slot which never has a token, so that the
absense of a token can be asserted in unit tests.

Add a third token that is always empty, and update a number of unit
tests to check for it.

MozReview-Commit-ID: 4apvRRhZJus

--HG--
extra : rebase_source : 13bfac22fcf4dfbdbcbff25254785e53cbd25920
2017-10-01 12:10:20 +02:00
Mark Banner
42cb2dc6a3 Bug 1230373 - Enable mozilla/use-services for browser/components/ r=mossop
MozReview-Commit-ID: 9m9iss3jUJJ

--HG--
extra : rebase_source : e6a6f9dec168ab1d0e0343236db65f3dd1b44aeb
2017-10-11 15:43:51 +01:00
Masatoshi Kimura
58f00b395f Bug 1409617 - Convert test_ext_history_redirect.html to browser test and make it a bit robust. r=aswan
MozReview-Commit-ID: FKvBB01ntm4

--HG--
rename : browser/components/extensions/test/mochitest/test_ext_history_redirect.html => browser/components/extensions/test/browser/browser_ext_history_redirect.js
extra : rebase_source : 3a42009b063dce8b4b374885fd3ae921824a9dfb
2017-10-18 20:37:39 +09:00
Bob Silverberg
d94a6f7526 Bug 1406379 - Implement windowTypes option for windows.getAll, r=mixedpuppy
This option works in Chrome and is documented to work in Firefox but seems
to have never been implemented.

MozReview-Commit-ID: KOu8TRaCCzL

--HG--
extra : rebase_source : 98605a64c12102e5c09acfd5bfef410cb75d5ba0
2017-10-16 16:01:59 -04:00
Bob Silverberg
272fe41a5f Bug 1408993 - Allow tabs.create to create URLS in reader mode, r=mixedpuppy
MozReview-Commit-ID: B5Nk0ZVvQIC

--HG--
extra : rebase_source : 6f515ef1dbc110c35b527e06f269ae703bb77468
2017-10-16 10:42:45 -04:00
Mike de Boer
8678d63172 Bug 1366646 - Include borders and padding when calculating the offset of a window inside an (i)frame. r=jaws
MozReview-Commit-ID: 58fBRcw1lg3

--HG--
extra : rebase_source : 7e125ba0203ce56e9782152b036ab5c26e0a3aa5
2017-10-18 13:58:36 +02:00
Masatoshi Kimura
cac8494c04 Bug 1406594 - Fix history.search and history.getVisited so that they find hidden items correctly. r=aswan,bsilverberg
I had to add a mochitest because PlacesUtils.history.insertMany cannot create hidden redirects.

I also added a support for the "reload" transition while I am here.

MozReview-Commit-ID: ECQp6pW2r8v

--HG--
extra : rebase_source : d4456d32a57cdadec8ca383a2b09dee29e20b10f
2017-10-07 06:04:56 +09:00
Phil Ringnalda
802759e321 Backed out 3 changesets (bug 1403349) for test-oop-extensions/browser_ext_webNavigation_onCreatedNavigationTarget_window_open.js | This test exceeded the timeout threshold
Backed out changeset 6c50dc08aa42 (bug 1403349)
Backed out changeset 5dbe3db9affc (bug 1403349)
Backed out changeset 0039b4539113 (bug 1403349)

MozReview-Commit-ID: 2jlfAoj8SPn
2017-10-12 18:57:33 -07:00
Julian Descottes
12d2d25576 Bug 1361080 - update webextension tests to directly use devtools loader;r=rpl
In the end the webextensions tests that test devtools should be able to load devtools
apis in the same way as devtools tests. This allows to remove the gDevTools getter on
the devtools shim, which makes the paths that can potentially initialize devtools easier
to predict.

MozReview-Commit-ID: AHokH12ygKI

--HG--
extra : rebase_source : 9166f477e2d38351e836aa14c53a420bd9cbddf7
2017-09-29 15:28:19 +02:00
Luca Greco
0b5ad6f6a3 Bug 1403349 - Add a new webNavigation test for window.open called with a named window target. r=aswan
MozReview-Commit-ID: Aj8uMtcGwJx

--HG--
extra : rebase_source : 9e20e35adf0c0198e41c14f5d5a89a4ceb6e7a08
2017-09-28 22:04:14 +02:00
Luca Greco
68f1169aaf Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L

--HG--
extra : rebase_source : 20e5c27ba18f7f05f9076db19091f1c1153a6c39
2017-09-27 19:07:41 +02:00
Luca Greco
82830bb0ac Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan
This changes fixes the regression introduced by Bug 1355120 and adds a new
test case which contains a browserAction popup which open and immediately
close a new window and ensure that the received onCreatedNavigationTarget
is the expected one.

MozReview-Commit-ID: JIcVCpBTpxj

--HG--
extra : rebase_source : 0966eba7c752068522400b032a8018b96e9dcda9
2017-09-27 14:24:54 +02:00
Marco Bonardo
65ca393243 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0

--HG--
extra : rebase_source : 7f93059ce057a8bf98996e31932a47523c555fd1
2017-10-10 01:18:23 +02:00
Sebastian Hengst
d4cf5c3f6e Backed out changeset 1ac7fce0b369 (bug 1406860) for failing xpcshell tests, e.g. toolkit/components/places/tests/unit/test_000_frecency.js. r=backout
--HG--
extra : amend_source : d56cb30d1aa7bb64597e273eef64e9d35056914e
2017-10-11 18:25:57 +02:00
Marco Bonardo
ac4197582b Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0

--HG--
extra : rebase_source : f919a0f84ff46fcfa56ddbfb2ba8b060b34cb12a
2017-10-10 01:18:23 +02:00
Bob Silverberg
09dfaf4900 Bug 1402921 - Enhance browser_ext_tabs_readerMode to verify that correct isInReaderMode is reported for onUpdated, r=Gijs,mixedpuppy
All of the information needed for an extension to watch for tabs moving in and out
of reader mode is already available in the onUpdated event. This adds some asserts
to the existing test to check that this information is accurate.

MozReview-Commit-ID: 7OkR933MUPl

--HG--
extra : rebase_source : cf7a6bae5b7a4b6678b7fb1cb19027fa0ab97d71
2017-09-28 07:37:35 -04:00
Julian Descottes
ea13b52036 Bug 1407326 - remove references to invertIconForLightTheme in extensions codebase;r=rpl
MozReview-Commit-ID: B2eTpm6qbOh

--HG--
extra : rebase_source : 4435d53e0f96a2beea27d5e727642479fba7d1f2
2017-10-10 19:49:04 +02:00
Sebastian Hengst
1a4a26905f merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Kevin Jones
e25ef66af6 Bug 1406912 - Fix _serializeRangeData does not handle ranges found in same node properly. r=mixedpuppy
--HG--
extra : amend_source : 10c38fa5cf069e7d7bf7d23c7f992149462bd297
2017-10-09 12:42:00 -04:00
Sebastian Hengst
c2d6023454 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Ian Moody
53b9116eab Bug 1404568 - Improve webext browser_action icon fallbacks. r=mixedpuppy
Currently if there is no default icon at the specified size, the default icon
falls back to the light text icon at that size. This is wrong in two ways:
First, the default theme uses dark text, so it should fallback to the dark icon
Secondly, authors expect the unsized default_icon to be used if specified

This patch fixes both of these issues, so that the default icon first falls back
to the unsized default_icon, and then only if that is not specified falls back
to the dark icon

MozReview-Commit-ID: C3RRTKhYq6r

--HG--
extra : rebase_source : dc10f5c65c763412edbe467bb75aeb4fbcd32ffc
2017-10-08 13:23:33 +01:00
Joel Maher
400ab2eb53 Bug 1350189 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create.js for frequency failures. r=me, a=test-only 2017-10-09 11:10:33 -04:00
Dan Banner
14ad0fcb62 Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS

--HG--
extra : rebase_source : 4a14e3309b7d554d9a1aa0d26f464e26bec3291e
2017-09-18 19:07:17 +01:00
Tomislav Jovanovic
4328bf904a Bug 1398514 - Use slower documents for executeScript_runAt test r=kmag
MozReview-Commit-ID: 56FMa4sjO3Z

--HG--
rename : browser/components/extensions/test/browser/file_iframe_document.sjs => browser/components/extensions/test/browser/file_slowed_document.sjs
rename : mobile/android/components/extensions/test/mochitest/file_iframe_document.sjs => mobile/android/components/extensions/test/mochitest/file_slowed_document.sjs
extra : rebase_source : 638741cd4031e875d8d818b24adfd475ebb58a97
2017-10-05 19:22:00 +02:00
Wouter Verhelst
4c3b4661b5 Bug 1405709 - Add missing await to browser.pkcs11 test suite r=zombie
MozReview-Commit-ID: GjQu8QzwHkZ

--HG--
extra : rebase_source : 0703f4e703b81f3fb1591d94e231e3d56854909d
2017-10-04 17:39:36 +02:00
Mark Striemer
ff49d47ca1 Bug 1395074 - Clear browserAction tab data on navigation r=mixedpuppy
MozReview-Commit-ID: 4hugj2q84Rd

--HG--
extra : rebase_source : 519303dcd0261acf5945160bc749f03878c00f07
2017-09-26 16:06:06 -05:00
Wouter Verhelst
81a56d6525 Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv

--HG--
extra : rebase_source : 196ff66a8987be1b21463b725a2e207396e5eb0a
2017-08-22 17:59:38 +02:00
Wes Kocher
32225d9fd6 Backed out changeset 82920c8bb33a (bug 1357391) for xpcshell failures in test_ext_pkcs11_management.js a=backout
MozReview-Commit-ID: JUyVhAEDNs0
2017-09-29 11:22:49 -07:00
Wouter Verhelst
39f5c2a463 Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type. Update the
code for the Native Messaging API to ignore any manifests for the
"pkcs11" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv

--HG--
extra : rebase_source : 00cc9c6d8433460c93f9c579f1696e4e17d6d3a0
2017-08-22 17:59:38 +02:00
Kris Maglione
c10f9821fe Bug 1402503: Follow-up: Make sure we get a new content process for process hang tests. r=bustage
MozReview-Commit-ID: 1CLUQbahE2W
2017-09-27 20:44:30 -07:00
Kris Maglione
fb9f7d6fe8 Bug 1402503: Part 2 - Add test for extension slow script dialog. r=mixedpuppy
MozReview-Commit-ID: BknBhAttKHS

--HG--
extra : rebase_source : c428dcfd2472fe020514a07395f11768d51c7ab5
extra : histedit_source : 44b7dff6bb414ac705736496cf481ab8734dcd3b
2017-09-25 11:49:39 -07:00
Kris Maglione
a32ad146bd Bug 1402944: Part 8 - Avoid X-ray overhead when cloning event handler responses. r=mixedpuppy
MozReview-Commit-ID: 4CHP80WymuA

--HG--
extra : rebase_source : 612b9d38cc0c6c5146b1863f22a40789c7471808
2017-09-23 13:30:52 -07:00
Thomas Wisniewski
9c0a07404c Bug 1388428 - Extend browsingData to restrict removing localStorage to a given list of hostnames; r=asuth,bsilverberg
MozReview-Commit-ID: ELgjLHsVLkv

--HG--
extra : rebase_source : 8df793d8484762670e42fff4c3708df2b3ea1ebe
2017-09-25 16:47:38 -04:00
Dale Harvey
5c22c4c93e Bug 1399642 - Use photon search icon in awesomebar. r=dao
MozReview-Commit-ID: Dzf8DqrGRam

--HG--
rename : browser/themes/shared/icons/find.svg => browser/themes/shared/icons/search-glass.svg
extra : rebase_source : 488ba12e63e58d6b04b7cb41b3c9b5aee332def5
2017-09-26 11:13:56 +01:00
Mark Striemer
a84f31e137 Bug 1314674 - Maintain badge style in new windows and customize r=mixedpuppy
MozReview-Commit-ID: 8f99d6Uqtx1

--HG--
extra : rebase_source : 66da5414a5baf68f276915258947c5886e030f7d
2017-09-20 17:27:48 -05:00
Sebastian Hengst
7e36032551 merge mozilla-central to autoland. r=merge a=merge
--HG--
rename : testing/marionette/wait.js => testing/marionette/sync.js
2017-10-09 23:56:28 +02:00
Luca Greco
105baab825 Bug 1385548 - Part 2: Add new test for tab modals created from a WebExtensions options_ui page. r=kmag
MozReview-Commit-ID: BUExkEQLkuR

--HG--
extra : rebase_source : b39b402bcd2b42d608660f83e6ac672606e281cf
2017-09-19 18:30:22 +02:00
Bob Silverberg
8f848ff9df Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : f9cbed6dff56781ecd86281cb46f23f0ec8aecf6
2017-09-08 17:00:27 -04:00
Sebastian Hengst
8abbab2bc7 Backed out changeset 4e174306e0b0 (bug 1381992) for e.g. failing chrome's mobile/android/components/extensions/test/mochitest/test_ext_activeTab_permission.html on Android. r=backout 2017-09-25 18:28:58 +02:00
Bob Silverberg
659e58f274 Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : 579fccb76358dc0d333409ed81669cf45576e67f
2017-09-08 17:00:27 -04:00
Phil Ringnalda
9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher
640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Sebastian Hengst
117f151830 Backed out changeset 7e8e47c972f4 (bug 1397975) for eslint failure at browser/components/extensions/ext-chrome-settings-overrides.js:124: windowTracker is not defined. r=backout 2017-09-21 22:56:07 +02:00
Mike de Boer
f7dd6d2d6d Bug 1401383 - remove anchor state after transition even if the transition is canceled, and always set main view as current, r=Gijs
We weren't removing the 'open' attribute from the anchor if the transition didn't complete.
This patch fixes this by moving the addition of 'open' into _transitionViews, and its removal into
_cleanupTransitionPhase.

MozReview-Commit-ID: TS0CcwsHVN

--HG--
extra : rebase_source : 1bdace324f22ee95002024fe68b572a16dd25aac
2017-09-21 22:18:07 +02:00
Michael Kaply
20d1c205fc Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK

--HG--
extra : rebase_source : 93ab53e43be09b0b24bb7c7fcd73c0010fc912a2
2017-09-07 19:38:55 -05:00
Michael Kaply
9b7d4d878e Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK

--HG--
extra : rebase_source : 674a8e9e4e3e0769a58ed919f268678cb5af48c7
2017-09-07 19:38:55 -05:00
Bob Silverberg
597114a565 Bug 1375546 - Fix sessions.getRecentlyClosed to consider the current tab history index, r=mikedeboer,mixedpuppy
If the back button is used to navigate a tab backwards in its history, and then the tab is closed,
the current implementation of sessions.getRecentlyClosed does not take this into account and
just uses the last item in the tab history for the values returned for the tab. This patch fixes
this by using the values for the current position of the tab in its history.

MozReview-Commit-ID: LcgtA5FqVWi

--HG--
extra : rebase_source : 3b8cd840fd30305471feec643f77d57378bd40d7
2017-09-19 16:05:33 -04:00
Andrea Marchesini
1477716537 Bug 1333050 - Test for BrowsingData.removeIndexedDB, r=kmag 2017-09-21 21:41:52 +02:00
Andrea Marchesini
680323e92f Bug 1333050 - Introduce BrowsingData.removeIndexedDB, r=kmag, r=janv 2017-09-21 21:41:36 +02:00
Sebastian Hengst
48545a66e9 Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE 2017-09-19 16:35:31 +02:00
Nan Jiang
dcc9a5e00a Bug 1352459 - Collect rich icons in ContentLinkHandler. r=mak,Mardak
MozReview-Commit-ID: GrjpuyvY7nm

--HG--
extra : rebase_source : a1800ae9f1626aeeea311ea85c81e50b5dd2094c
2017-09-12 09:47:51 -04:00
Luca Greco
7c23181cbd Bug 1383310 - Extensions Devtools panels should not receive messages or ports from content scripts. r=zombie
MozReview-Commit-ID: B5Hq11Tb3Y0

--HG--
extra : rebase_source : 6f0458a10717dfd4264e56ac66422882ddaaee7f
2017-09-14 16:43:45 +02:00
Dan Banner
d9bd75f0cc Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS

--HG--
extra : rebase_source : 0428c961831f079a63f345c8d6684b869fbcdecd
2017-09-18 19:07:17 +01:00
Joel Maher
8277a708a2 Bug 1398514 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_runAt.js on windows for frequent failures. r=me, a=test-only 2017-09-18 12:00:26 -04:00
Ryan VanderMeulen
17c17bd036 Merge m-c to inbound. a=merge 2017-09-15 14:20:59 -04:00
Luca Greco
19b7ef8391 Bug 1398729 - Support devtools.panels.elements sidebar.setExpression API method. r=aswan
MozReview-Commit-ID: 2tRLF59o8Bg

--HG--
extra : rebase_source : c0371df9af68cf3332194ed6849525b0620cd8d0
2017-09-09 16:39:17 +02:00
Nicolas Chevobbe
cd3fe07201 Bug 1399460 - Fix browser_ext_devtools_inspectedWindow_eval_bindings.js failure. r=rpl
The bug was failing because we were calling the server but the connection was already closed.
In order to prevent such things, we check the number of nodes of the tree, and if it has only
one, then we wait on a mutation that will ensure that server calls are done.

MozReview-Commit-ID: 7kHAkYs2I4K

--HG--
extra : rebase_source : 0204960d4ea3cca8bd9614908a730a0d4d6b4e69
2017-09-14 17:59:33 +02:00
Liang-Heng Chen
bb17178a61 Bug 1399409 - Ignore about:blank in awaitBrowserLoaded. r=kmag
MozReview-Commit-ID: 8WoN86Zd6PS
2017-09-13 23:46:00 -04:00
Bob Silverberg
7ab3a9f057 Bug 1366290 - Fix the ordering of tabs.onActivated and tabs.onRemoved, r=kmag
Currently tabs.onActivated (for the tab that becomes active after a tab is removed) fires before
tabs.onRemoved (for the tab that was removed). This is neither the order in which Chrome fires
these events, nor is it the order in which the internal TabSelect and TabClose happen in Firefox.
This bug fixes this so tabs.onActivated fires *after* tabs.onRemoved.

Note that this does introduce an issue in in-process mode, where window.close() will not
trigger a tabs.onRemoved event for the window, but Kris says "Meh" about that.

MozReview-Commit-ID: CrFR3jqL2u5

--HG--
extra : rebase_source : 5cc3d2a138bf812d13779e8ca1188b89ddbcdcc1
2017-05-31 12:01:58 -04:00
Mark Striemer
afefcefd15 Bug 1372996 - Clear the URL bar when on ext newtab r=mixedpuppy
MozReview-Commit-ID: 2NNOK2kRPgl

--HG--
extra : rebase_source : ce37a70b67296d8d5ae86dfa46ce769c4479405e
2017-09-01 09:39:24 -05:00
Luca Greco
d5377bce31 Bug 1374590 - Add a new test case for toolbox dock mode switch with a devtools panel addon. r=aswan
MozReview-Commit-ID: 9Rf0OEdKYQl

--HG--
extra : rebase_source : e7a8113e22140caf14b93a2958a6b25e6c6ce6d8
2017-09-11 19:02:12 +02:00
Sebastian Hengst
45bab258b7 merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst
1fbe7771e8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
Sebastian Hengst
a3ed708553 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 11:44:38 +02:00
Christoph Kerschbaumer
e328a6db15 Bug 1397652 - Update tests within browser/ to comply with new toplevel data: URI navigation policy. r=gijs 2017-09-13 06:56:42 +02:00
Luca Greco
86c4053dd2 Bug 1398727 - Fix missing tab title on devtools.panels.elements.createSidebarPane tabs. r=gl
MozReview-Commit-ID: G5F9uEC6izs

--HG--
extra : rebase_source : 1e34ddf1d2ee4fe5db7886d824c4279ffcbc7674
2017-09-09 18:23:52 +02:00
Mike de Boer
aa0c3dc278 Bug 1374749 - Animate the panelviews differently to make it look as if the view to show is pushing the previous view out of the panel. r=jaws
MozReview-Commit-ID: Dy6UppV3xDH

--HG--
extra : rebase_source : 1c970efaa0b7162450d79f37633afacaadc8d19e
2017-09-12 21:33:25 +02:00
Wes Kocher
7c80405558 Backed out changeset 5ed9b657a1ce (bug 1352459) for xperf failures a=backout CLOSED TREE
MozReview-Commit-ID: 9XmmBsTf39a
2017-09-12 18:06:16 -07:00
Luca Greco
d83e387d9b Bug 1397196 - Fix pageAction icon loading when an extension has a cached browserAction theme-based icon. r=mixedpuppy
MozReview-Commit-ID: Lmi5pLerzul

--HG--
extra : rebase_source : 9c3eb11e65b03c43bb8f30f5f19a904770f82356
2017-09-06 12:40:45 +02:00
Sebastian Hengst
be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Kris Maglione
b055a02b6f Bug 1399216: Move HiddenFrame.jsm to testing-common. r=Mossop,glandium
MozReview-Commit-ID: GTBRCYEoYq2

--HG--
extra : rebase_source : 927843056383ab238a4f3b6d8e3f6eefce5400b1
2017-09-12 11:56:57 -07:00
Sebastian Hengst
3c3aa7ed62 Backed out changeset 39a94e16a369 (bug 1034036)
MozReview-Commit-ID: IcSi7Zbp96e
2017-09-09 12:58:33 +02:00
Bob Silverberg
bad1c19a1b Bug 1397383 - Add loadReplace option to tabs.update, r=mixedpuppy
This adds a loadReplace option into the updateOptions object for tabs.update()
which, when set to true, will cause the loading of the new URL to replace the
current URL in the tab's history.

MozReview-Commit-ID: KZTuEl7cgb0

--HG--
extra : rebase_source : 24f006fe197f56b3102cb00e226d53036b9ba93b
2017-09-08 08:31:39 -04:00
Tomislav Jovanovic
3dce599c63 Bug 1394348 - Fix document_idle run_at timing r=kmag
MozReview-Commit-ID: FBPlw6CiUE2

--HG--
extra : rebase_source : b72037e7ce600eafb15de639ec7e98e8abb580b3
2017-09-08 00:36:50 +02:00
Beekill95
72ce1c7a57 Bug 1034036 - Part 3: Tests that use set state should wait until window is restored to continue. r=mikedeboer
MozReview-Commit-ID: 5SZ9ePGMKF1

--HG--
extra : rebase_source : 0078e02a310374b5f54b68e17c824367547b0cc5
2017-08-15 14:45:08 +07:00
Nan Jiang
f94db93911 Bug 1352459 - Collect rich icons in ContentLinkHandler. r=mak,Mardak
MozReview-Commit-ID: GrjpuyvY7nm

--HG--
extra : rebase_source : a1800ae9f1626aeeea311ea85c81e50b5dd2094c
2017-09-12 09:47:51 -04:00