Commit graph

1238 commits

Author SHA1 Message Date
Michael Kaply
cd47b3077c Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Ciure Andrei
442f7cad49 Backed out 1 changesets (bug 1352598) for frequent bc failures browser_ext_search.js CLOSED TREE
Backed out changeset 879fbe1b07f4 (bug 1352598)
2018-07-02 22:12:57 +03:00
Michael Kaply
49742b1fa3 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Andreea Pavel
1bf7ac45bb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-30 13:10:01 +03:00
Kris Maglione
fcedebb912 Bug 1471102: Move more code out of ExtensionUtils.jsm. r=aswan
MozReview-Commit-ID: Fqlv5BRuuW8

--HG--
extra : rebase_source : 348f037abd9cecfa080183bc365e5f005eac1bd6
extra : amend_source : 05dbfd12f553fc3f2a93374402e34d271e26d767
2018-06-25 19:30:21 -07:00
Adam Plaice
79a4e43a84 Bug 1364784 - Allow more modifier combinations for webextensions commands key; r=mixedpuppy,mstriemer
This allows keyboard shortcuts containing both "Ctrl" and "Alt" in the
manifest of webextensions (in the "commands" -> "suggested_key" key),
rather than just one of these modifiers. The equivalent combinations
on MacOS (any two of "Command", "Alt" and "MacCtrl") are also allowed.

Non-sensical combinations (such as "Ctrl+Command" or "Ctrl+Ctrl") are
forbidden.

MozReview-Commit-ID: 59tC2efLm5q

--HG--
extra : rebase_source : 5a9375116aab6b3c4abe96c4850e4ff857d93532
extra : intermediate-source : 507b35de0e93baccb54f83e8bce6cedfe9754dd9
extra : source : 115c5332fadc1d52940f8356f6273f0e9680657f
2018-06-02 00:56:44 +02:00
Oriol Brufau
050e9292da Bug 1465170 - Implement support for the 'highlighted' API for multiselect tabs with tabs.query r=jaws,mixedpuppy
MozReview-Commit-ID: 6eFnxrXJXXB

--HG--
extra : rebase_source : f0afa7ab08d32d7751c5bcbf1ed9fc65a1fba16b
2018-06-03 02:53:59 +02:00
Oriol Brufau
e3e3ce5238 Bug 1464862 - Expose multiselected status to "tabs.Tab.highlighted", and allow to change it via "browser.tabs.highlight()" r=mixedpuppy
MozReview-Commit-ID: H2SiqM5ksCH

--HG--
extra : rebase_source : a8951d803c2c72fb0c6e39f4600b6aabcae69c41
2018-06-23 21:46:58 +02:00
Shane Caraveo
0df4ab0a93 Bug 1422588 fix discard if tab sessionstate is not ready, r=Gijs,mikedeboer
If discard is used immediately after creating a tab, restoring the tab
resulted in an unusable tab.  This was due to the sessionstate not being
ready.  This adds enough sessionstate to restore when this occurs.

MozReview-Commit-ID: 6PIc71BS8VU

--HG--
extra : rebase_source : 1bb9627eee561e9bf924e9eb2a34a5071cae3742
2018-06-19 10:47:25 -04:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Gabriel Luong
e18a43e435 Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Shane Caraveo
6bfb283891 Bug 1404724 - remove browser_style warning, fix default values, r=aswan
MozReview-Commit-ID: Akdhrm4leIQ

--HG--
extra : rebase_source : a59bdae5c2ea9d725062b2bf53ba659360966377
2018-05-29 16:55:43 -04:00
Boris Zbarsky
15b087c696 Bug 1465875 part 4. Eliminate random mentions of nsIDOMNSEditableElement. r=qdot 2018-06-01 22:35:23 -04:00
Oriol Brufau
62a134a580 Bug 1463751 - Tab-specific data not updated when tab is moved to another window and old window closes r=mixedpuppy
MozReview-Commit-ID: IUC8OwV6YHY

--HG--
extra : rebase_source : 1f2822572fe847a34edbcec6aa19b5988dcc8fbc
2018-05-26 21:57:58 +02:00
Cosmin Sabou
5a74471337 Merge inbound to mozilla-central. a=merge 2018-05-27 15:58:59 +03:00
Luca Greco
bbb0a980e1 Bug 1458918 - Prevent windows.getLastFocused from leaking tab being adopted by a new window. r=dao,mixedpuppy
MozReview-Commit-ID: 6Nj7J7aI06B

--HG--
extra : rebase_source : 93625678c7799886277566abe79efd1d558e529e
2018-05-03 16:24:02 +02:00
Mark Banner
b321b832fd Bug 824502 - Fix unit tests for the folder=<id> to parent=<guid> transition. r=mak
MozReview-Commit-ID: FCaiJrSAMAV

--HG--
extra : rebase_source : 1edf169c3a24b1c0b8c1be2e8eb0f06e8605df80
2018-05-01 08:14:53 +01:00
Kris Maglione
6ac523347a Bug 1461145: Support async startup/shutdown bootstrap methods. r=aswan
MozReview-Commit-ID: L0G4DA0KJ87

--HG--
extra : rebase_source : b774d70d11c47d138535685104c5d5bc197f7866
2018-05-12 18:51:32 -07:00
Kris Maglione
1e03e83e35 Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
MozReview-Commit-ID: Gj2iCsBIdnq

--HG--
extra : rebase_source : 7766537d472ae8d6a25c4c824a50c0bb6bc49865
2018-05-12 16:49:35 -07:00
Jonathan Kingston
daad797972 Bug 1452666 - Simplify SessionHistory serialization code and test expanded principals are serialized and can restore tabs. r=bz,mikedeboer
MozReview-Commit-ID: EV39wz2TFlj

--HG--
extra : rebase_source : 736cc42fe3325f46856aba9bf894b1bad2a16368
2018-05-19 14:42:52 +01:00
Michael Kaply
828ab007c4 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 7613b25201b248310f74862585fc507042445804
2018-05-18 10:30:04 -05:00
Oriol Brufau
ae9392e1f0 Bug 1451176 - Preserve tab-specific data when tab is moved to another window r=mixedpuppy
MozReview-Commit-ID: 80h4U7G3gmb

--HG--
extra : rebase_source : d8939d51f967a7c3a98977d3376d2727abd22a79
2018-04-04 16:04:11 +02:00
Oriol Brufau
0d16cdb78d Bug 1457474 - Add 'Manage Extension' in browserAction context menu r=Gijs,mixedpuppy
MozReview-Commit-ID: 3iA7fCeXLVs

--HG--
extra : rebase_source : 0d53cc24e7d6ca733aeca939dbcbd731874acda0
2018-05-14 22:23:21 +02:00
Oriol Brufau
b3b41d6f92 Bug 1419893 - Add windowId parameter in browserAction methods r=mixedpuppy
MozReview-Commit-ID: FFb4I1wmTH

--HG--
extra : rebase_source : 759d4a11fbd57b3335f7e0da746c79ef906a36e4
2018-04-06 23:18:44 +02:00
Rob Wu
e13e8a8950 Bug 1461115 - Emit menus.onShown even if there is no tab r=mixedpuppy
MozReview-Commit-ID: 6Bc7HHvaCRW

--HG--
extra : rebase_source : 5863e52e9b2e7d42c31e57f044d4889f70c6ca5b
2018-05-18 13:55:09 +02:00
Andreea Pavel
5fe937094b Backed out changeset 42abedd98732 (bug 1460910) for failing browser chrome at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sidebarAction.js on a CLOSED TREE 2018-05-18 22:59:25 +03:00
Michael Kaply
b181d9aaf9 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 9460ba4ce1661c2edc026f271dee317488115a8e
2018-05-18 10:30:04 -05:00
Michael Kaply
ded5417e96 Bug 1461805 - Don't show doorhanger for distribution add-ons. r=aswan,mstriemer
MozReview-Commit-ID: GjtVOWO8UFg

--HG--
extra : rebase_source : 66941e9620fcac340033e43fe9ed938bed94782c
2018-05-15 15:26:39 -05:00
Mark Banner
55d1e986ea Bug 1461997 - Enable ESLint rule mozilla/require-expected-throws-or-rejects for browser/components. r=Gijs
MozReview-Commit-ID: JXqwIyF6v6k

--HG--
extra : rebase_source : 2220610f8facc9096c4427ff543f5fc31e6ce7b0
2018-05-16 20:23:06 +01:00
Gabriel Luong
9935783cf2 Bug 1433718 - Enable 3 pane inspector in nightly and make unit tests pass. r=pbro 2018-05-04 09:38:47 -04:00
Markus Stange
54cc41b7dc Bug 1461056 - Remove browser_ext_geckoProfiler_symbolicate test. r=dthayer
The thing that it's testing is being removed.
I couldn't think of something that I could replace the test with. Maybe once we have
bug 1457481 we can check in an actual ELF binary and check that we're dumping its
symbol table correctly.

MozReview-Commit-ID: 9AXUwqPrivl

--HG--
extra : rebase_source : 70f7bd07804552c59a0d1ab0a1b6b344f9e6d308
2018-05-14 23:41:43 -04:00
Marco Bonardo
1c9f0c12b7 Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. r=standard8
MozReview-Commit-ID: KJW9YNwoSZb

--HG--
extra : rebase_source : c379c145386478eb0cadfefe20c881f8652e6c2d
2018-05-08 10:26:36 +02:00
Jared Wein
1ee5bff85e Bug 1459066 - Overflow menu WebExtension subview header should use the default browser styling instead of the extension's styling. r=mixedpuppy
MozReview-Commit-ID: EtQ6VS5OH0e

--HG--
extra : rebase_source : 8e557423fa443d40e8db69dc46bad2709a11b38e
2018-05-07 13:06:46 -04:00
Mark Striemer
4f2d99cc85 Bug 1455040 - Enable tab hiding API by default r=mixedpuppy
MozReview-Commit-ID: HtzpV7bySeY

--HG--
extra : rebase_source : e72a09827a7bf065d5b380e67d34613e3b93dfa7
2018-05-07 12:27:41 -05:00
Marco Bonardo
c77ad1727f Bug 1354531 - Remove PlacesUtils.asyncHistory to make History internals access less convenient. r=standard8
MozReview-Commit-ID: K9oQTJbVAZF

--HG--
extra : rebase_source : 1f9c19911602a2620dace4d85c8174347c8eeb42
2018-05-03 15:08:06 +02:00
Mark Striemer
fdfd71bdc7 Bug 1438363 - Show a doorhanger when an extension first hides a tab r=aswan,dao
MozReview-Commit-ID: DQCr3SSaZTV

--HG--
extra : rebase_source : c72f53e9b03fa6c876051ee6c66675ed0b684054
2018-04-24 09:07:32 -05:00
Oriol Brufau
0836d04660 Bug 1457673 - Support WINDOW_ID_CURRENT in browser.windows.remove r=mixedpuppy
MozReview-Commit-ID: LkjDD2U9knB

--HG--
extra : rebase_source : 027b33ef40a057fbb9db2c5f7ecb64883d6d090d
2018-05-01 03:25:41 +02:00
Michael Ratcliffe
d01c919943 Bug 1456923 - can't switch to dev-tools add-on that is loaded temporarily r=pbro
MozReview-Commit-ID: EOw2S34zqPa

--HG--
extra : rebase_source : 36b99bb0f70b64b31d9b1c552c5b680a7972abcd
2018-04-30 15:57:39 +01:00
Rob Wu
d9d4c8d852 Bug 1399348 - Explicitly wait and check for error in test browser_ext_tabs_executeScript_bad r=rpl
I think that the intermittent error in the bug may be caused by
a pending executeScript call that is somehow handled around the
shutdown of the extension.

To verify this hypothesis, the test now explicitly waits for the
result of the first executeScript call before executing the last
script that is responsible for test completion.

The test should explicitly be checking for the error anyway.

And clean up comments and add reference to bug 1435100 in an
existing comment.

MozReview-Commit-ID: 6gV30Z6zQc4

--HG--
extra : rebase_source : d2d2f20336390ef61fefe247b3d1ae8668da7067
2018-04-23 15:28:41 +02:00
Rob Wu
6d7e401a87 Bug 1392067 - Disconnect open extension ports when the message manager goes away
- Previously, if a port is disconnected by the other end, then memory
  would be leaked to `ProxyMessenger.ports` in ExtensionParent.jsm.
  To fix this, the port descriptor is now saved separately, keyed by
  port ID instead of message manager.

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

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

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

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

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

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

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Brindusan Cristian
59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Stefan Hindli
ec586598c3 Bug 1381305 - disable browser_ext_user_events.js for frequent failures on Linux. r=jmaher 2018-04-24 02:01:00 +03:00
Oriol Brufau
2b62ae8f00 Bug 1390464 - Add windowId parameter in sidebarAction methods r=mixedpuppy
MozReview-Commit-ID: eSJnVzpNvO

--HG--
extra : rebase_source : 5837207b8375649c5ebc24e27a6dcc6894d6d40b
2018-01-28 20:46:24 +01:00
Cosmin Sabou
e9186f7449 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : testing/mozharness/mozharness/mozilla/testing/verify_tools.py => testing/mozharness/mozharness/mozilla/testing/per_test_base.py
2018-04-20 01:38:32 +03:00
Kris Maglione
219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Mike de Boer
6ee4299e04 Bug 1034036 - Part 6: Tests that use ss.setBrowserState() or ss.setWindowState() should wait until the window is restored to continue. r=dao
MozReview-Commit-ID: 5d1E5TjKnIR

--HG--
extra : rebase_source : be521af44edeae3f218602b4e279cfeb17ae866f
2018-04-11 12:06:12 +02:00
Coroiu Cristina
374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Kris Maglione
d30911943f Bug 1452299: Make browser_ext_settings_overrides_search a less-dodgy xpcshell test. r=mkaply
MozReview-Commit-ID: CffGpvV9vck

--HG--
rename : browser/components/extensions/test/browser/browser_ext_settings_overrides_search.js => browser/components/extensions/test/xpcshell/test_ext_settings_overrides_search.js
extra : rebase_source : 2fce968f46582ccb40145a5c0d6e9f58f34ada41
extra : amend_source : b04c2fc5d9259d7f750e2042ce1bc8ee15c65221
2018-04-06 17:34:23 -07:00
Rob Wu
5278b1d9a7 Bug 1453163 - Ensure that the ?discoTest tab is closed r=aswan
Apparently BrowserTestUtils.removeTab(gBrowser.selectedTab) does not
close the ?discoTest tab, which causes the test to fail eventually.
See comment 6 of bug 1453163 for more details.

MozReview-Commit-ID: 3UgEaVW083i

--HG--
extra : rebase_source : b1d901a611c27a269fa8129f172cfdafb7f6d81c
2018-04-13 19:57:27 +02:00
Brian Grinstead
ce96ab99e6 Bug 1454012 - Part 2 - Remove NEW_CONSOLE_OUTPUT_ENABLED since it's now always true;r=nchevobbe
MozReview-Commit-ID: 2PaXZqDGMOi

--HG--
extra : rebase_source : 8748489ae96822b7c9b014a1f47daea5ca25a406
2018-04-16 10:38:11 -07:00
Jan Odvarko
73dbb70046 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: JjJowr1grNP

--HG--
extra : rebase_source : 5c52a02cb6cc1acf9a43944998733bd4a3527ad2
2018-04-17 14:40:44 +02:00
Jan Odvarko
d0bf801d95 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: BbZJQiipg3K

--HG--
extra : rebase_source : d5ac5c6edd0aa8d247a0bc5b114a4e0466217114
2018-04-17 14:38:25 +02:00
Narcis Beleuzu
2e31fed279 Backed out 3 changesets (bug 1436665) for talos damp failures on toolbox/panels-in-background.js. CLOSED TREE
Backed out changeset 2120b4c84746 (bug 1436665)
Backed out changeset b3702a775b16 (bug 1436665)
Backed out changeset 3ddbbd0330a1 (bug 1436665)
2018-04-17 15:09:29 +03:00
Jan Odvarko
23d6c207ac Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: LDS6zxz7Ivi

--HG--
extra : rebase_source : 63b154ca2292d834ea3ddef5837bfedd7115e12b
2018-04-17 13:14:44 +02:00
Jan Odvarko
15c71ac569 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: 2iwybUcHOri

--HG--
extra : rebase_source : 3cfd435f140141c5bb7ab9b56ab8c69913fed714
2018-04-17 13:14:31 +02:00
Luca Greco
f082532365 Bug 1368332 - Request a longer test timeout for the browser_ext_devtools_panel test file. r=aswan
This patch requests a bit longer test timeout for browser_ext_devtools_panel.js, similarly
to other tests that open/close the devtools toolbox multiple times, because it often
timeouts on linux32 debug builds after we added a couple more "toolbox open/close" cycles
to test Bug 1394750 changes (and also made the devtools theme API tests more readable
by splitting it from the test case that verifies the rest of the devtools panel API).

MozReview-Commit-ID: 3JRWobPRwr5

--HG--
extra : rebase_source : 352fd4870048afa789d10afd2dd05bad9daa87ef
2018-04-16 13:26:58 +02:00
Cosmin Sabou
c1f14b1d28 Backed out 3 changesets (bug 1436665) for talos damp failures on netmonitor/simple.js. CLOSED TREE
Backed out changeset 09030f59fbea (bug 1436665)
Backed out changeset 513c72b05382 (bug 1436665)
Backed out changeset 4b8fe40857db (bug 1436665)
2018-04-17 13:05:42 +03:00
Jan Odvarko
e91ba73045 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: KAwcvb18JO1

--HG--
extra : rebase_source : 5d449e9fb4f5236a034b7bda112cf179c06ea9ee
2018-04-13 15:56:07 +02:00
Jan Odvarko
eb13ce7ceb Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: K5xd0UmyKb

--HG--
extra : rebase_source : 12fc4bb979684dd6bbc266c1483a735b04733e32
2018-04-13 15:51:03 +02:00
Mark Striemer
847b01e89d Bug 1397809 - Part 2: Add a doorhanger when an extension changes the homepage r=aswan,Gijs
MozReview-Commit-ID: CwZ3E32xROS

--HG--
extra : rebase_source : 304392af1ae5ff0bc5677ad25e90bbd1f9f0ecac
2018-01-11 18:59:32 -06:00
Mark Striemer
ddc263525f Bug 1397809 - Part 1: Convert New Tab doorhanger to a generic class r=aswan,Gijs
MozReview-Commit-ID: 40RwrXjtsJJ

--HG--
extra : rebase_source : f688846407d32d3ec68ef96ea7432da9ed08a145
2017-12-19 13:56:04 -06:00
Luca Greco
27c184bde9 Bug 1443221 - Do not send a webNavigation API event for a browser which is adopting an existent tab in a new window. r=mixedpuppy
MozReview-Commit-ID: GG9cSB5hdhA

--HG--
extra : rebase_source : 136066594c825526786b4be40f7701ed25b01035
2018-04-09 15:39:49 +02:00
Rob Wu
4a63a4cd88 Bug 1453260 - run test script in specific page only r=aswan
Use a more specific entry point for the test than
"http://mochitest.test:8888" to make sure that the test is only started
once, when the test opens a tab with the entry point.

MozReview-Commit-ID: 7iAFREDuACu

--HG--
extra : rebase_source : 6ab46b1114dc824f29d0bf21ffa784cd14651447
2018-04-11 14:25:03 +02:00
Ciure Andrei
3f4a118829 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-11 12:00:35 +03:00
Kris Maglione
55a33ff000 Bug 1382953: Follow-up: Temporarily disable browser_ext_user_events on debug for being too flaky. r=bustage DONTBUILD CLOSED TREE
MozReview-Commit-ID: 7abPg7fYnuP

--HG--
extra : rebase_source : aa7cc0fa074a2da7f665c94805e5b0828d42edc3
extra : amend_source : 7c74efdcecffe34d6397c7f9c68812301ea79296
2018-04-10 22:52:14 -07:00
Kris Maglione
b5c2235a0f Bug 1382953: Fix permission prompts in about:addons options browsers. r=aswan
MozReview-Commit-ID: At5F5cqGSWu

--HG--
extra : rebase_source : 2bce19447ae0bd4b6cd8f51b16f1e7fabe59d6c8
extra : amend_source : 911e5b1f2d7ee501d08918c6191a79217f0d0b6f
2018-04-07 20:38:21 -07:00
Yura Zenevich
442d872d5b Bug 1428427 - add 'Inspect Accessibility Properties' context menu item when right clicking on content element. r=jdescottes, mixedpuppy
MozReview-Commit-ID: 4aav1f6eslQ
2018-04-10 10:52:58 -04:00
arthur.iakab
8fe9a4d75a Merge mozilla-central to autoland 2018-04-11 01:12:49 +03:00
Rob Wu
9a634fe0d1 Bug 1448674 - avoid closing extension ports while detaching tabs r=aswan
Extension ports are automatically closed when the message manager of
the source is destroyed. When a tab is detached from a window, its
frameloader is moved to the new window and the original message
manager is destroyed.

Bug 1445537 started listening for SwapDocShells events, but that only
works for the first swap (e.g. detaching a tab once). To avoid early
disconnection of the port, we should continue to subscribe to
SwapDocShells events.

MozReview-Commit-ID: G2ZYAhNyHIL

--HG--
extra : rebase_source : 9f888482e63d2768adf3dbd1c484a483dc307b2b
2018-04-06 13:34:30 +01:00
Tooru Fujisawa
bc1ed58f7a Bug 1448531 - Part 2: Make BrowserTestUtils.waitForNewWindow receive parameters object. r=enndeakin 2018-04-10 12:18:35 +09:00
Jared Wein
4181599591 Bug 1449933 - Webextension popups that don't define a background-color can be hard to read. r=mixedpuppy
MozReview-Commit-ID: CVXySkhYaem

--HG--
extra : rebase_source : b744e0fc1a23997d6d92af4b12e9a6d3b00fecbf
2018-03-30 15:29:31 -07:00
Kris Maglione
27b1c032a5 Bug 1451748: Always remove unloaded views from views list. r=mixedpuppy
Contexts for active extension views are kept in a Set on the owning extension.
That list is meant to be kept current, with views added and removed as they're
created and unloaded. A refactoring at some point in the past, though, changed
that so that we only cleaned up parent views at extension shutdown, not at
view shutdown.

MozReview-Commit-ID: FW8KHPOD9qc

--HG--
extra : rebase_source : fab255ba2fb5ee55be41c252c89930d38f6edbe8
extra : amend_source : 54863d79a1d571a7354aa15f74e2fc4448297777
2018-04-05 19:42:20 -07:00
Kris Maglione
c15bbfb699 Bug 1451058: Follow-up: Fix some errors that show up during tests. r=me
MozReview-Commit-ID: K410z6VdHov

--HG--
extra : rebase_source : d768c2637f1fec2465f9e03b5e2b3e1ad25dadc5
2018-04-06 16:34:15 -07:00
arthur.iakab
a63676a8df Merge mozilla-central to autoland 2018-04-06 01:14:00 +03:00
Marco Castelluccio
dbeabc37e3 Bug 1423667 - Reenable some tests that were disabled because of a Clang update. r=jmaher
--HG--
extra : rebase_source : 1ace11df58e858905e9d53c32d9cf8e1f75046d4
2018-04-05 09:20:47 +01:00
Noemi Erli
ff466e94c1 Merge inbound to mozilla-central. a=merge 2018-04-05 13:02:11 +03:00
Narcis Beleuzu
58b4822076 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-05 01:09:42 +03:00
Tomislav Jovanovic
df9934361f Bug 1422605 - Fix permissions.request() from menus.onClicked listeners r=aswan
MozReview-Commit-ID: A035FUb1fq5

--HG--
extra : rebase_source : 6ba3efd32763496b164c56c329b27e07db90797e
2018-03-31 16:04:17 +02:00
Kris Maglione
202290f6bb Bug 1451215: Run codespell on code. r=aswan
MozReview-Commit-ID: HIilZTKcQUY

--HG--
extra : rebase_source : 48ba4b4ac06f6d146ce81050da6c60b6f7c3fbfc
extra : amend_source : cba3e4c100a57889851eaaffff3696d1285655ea
2018-04-03 22:22:07 -07:00
Mark Striemer
b1780b744c Bug 1408061 - Show hidden tabs in all tabs menu r=dao
MozReview-Commit-ID: FpbeT1FwEWe

--HG--
extra : rebase_source : 91d99cb327707fd51f8ec1b4819c8cac87a98b16
2018-04-03 13:58:48 -05:00
Luca Greco
189998be76 Bug 1394750 - Allow the webextension devtools_page to be disabled separately from the entire extension. r=aswan,jdescottes
MozReview-Commit-ID: 6rnBYXlJPTz

--HG--
extra : rebase_source : 3ea48ddb34ce659969ac707854e492ca94ba8f7a
2018-01-15 20:56:17 +01:00
Pierre de La Morinerie
0b019c532e Bug 1394750 - Fix typo in WebExtensions devtools panel visibility test. r=rpl
MozReview-Commit-ID: 3cDmVJ0h9Ba

--HG--
extra : rebase_source : e12c223f532e5f5672f103dd20e8c19339f139a6
2018-03-08 17:01:01 +05:30
Manish Kumar
ca80552b9f Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao
--HG--
extra : rebase_source : 4d1ee61af6b01c58c07aa8e09d125959b62dcc75
2018-04-01 16:05:34 +02:00
Andreea Pavel
afdd07f3e2 Backed out changeset f80a1b8f781b (bug 1446719) for failing browser chrome at browser/components/sessionstore/test/browser_350525.js on a CLOSED TREE 2018-04-01 16:16:09 +03:00
Manish Kumar
6887194f83 Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao 2018-04-01 11:15:54 +02:00
Oriol Brufau
ee03bec4b8 Bug 1445316 - Optimize tabs.query with 'active', 'currentWindow', 'highlighted', 'index', 'lastFocusedWindow' or 'windowId' r=mixedpuppy,rpl
MozReview-Commit-ID: L5i129iC44W

--HG--
extra : rebase_source : 3e3a6c4afdf76b81029ab20c95983dbd4a3a31cd
2018-03-13 20:52:58 +01:00
Shane Caraveo
6785fbc950 Bug 1446913 - test TabOpen/TabMove event sequence during content click, r=kmag 2018-03-26 12:11:10 -05:00
Kris Maglione
f488f995cb Bug 1372406: Follow-up: Disable test_ext_all_apis for being flaky. r=bustage DONTBUILD
MozReview-Commit-ID: 9nydwEeysJK

--HG--
extra : rebase_source : 19204c77d734b207fbd7934c277c3cd1d5d0c9ee
2018-03-28 12:03:03 -07:00
Margareta Eliza Balazs
adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
Joel Maher
a8cc6240ee Bug 1405453 - Enable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js for osx/windows. r=Oriol 2018-03-27 11:35:51 -04:00
Shane Caraveo
f9d8308f05 Bug 1447796 - fix closing page action panels using commands, r=rpl
If commands are used with the page action panel, they will toggle open or
closed.  We need to keep a handle on our custom panel so we can close it.

MozReview-Commit-ID: JfxwlyK8g8g

--HG--
extra : rebase_source : 25b4fbe794040d6769fa498cee5fcad154e002f9
2018-03-27 10:33:31 -05:00
Tomislav Jovanovic
1a42995f4d Bug 1398272 - Prevent onUpdated from breaking tab IDs for adopted tabs r=kmag
MozReview-Commit-ID: 2tJ7noQFlXI

--HG--
extra : rebase_source : ef0f7bb196fc43fc3c1a5053cadff1603e7d5d20
2018-03-25 22:13:20 +02:00
Jan Odvarko
d09f31367c Bug 1448288 - Make devtools.network.getHAR API compatible with Chrome; r=rpl
MozReview-Commit-ID: 7woAf8iVC3B

--HG--
extra : rebase_source : 11ad0b8b67c4ce0aef1ee7e5ee4e356e66ea7134
2018-03-23 14:38:32 +01:00
Oriol Brufau
def82c307c Bug 1448120 - Allow 0 as minimum or maximum integer in webextension schema r=mixedpuppy
MozReview-Commit-ID: 2gd8e4SdaQ2

--HG--
extra : rebase_source : a2654a154c36a680fe675611929e419e58edd9a7
2018-03-22 21:03:03 +01:00
Shane Caraveo
a4a1869a2b Bug 1447723 - fix triggering pageAction when using pattern matching, r=rpl
MozReview-Commit-ID: 8B8QR2ltYmr

--HG--
extra : rebase_source : 52f5dcf93931ff882896183e915f4002f617a220
2018-03-21 16:38:27 -05:00
Peter Van der Beken
f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Kris Maglione
03bc5c3910 Bug 1446868: Follow-up: Fix xpcshell tests in unexpected directory. r=bustage DONTBUILD
MozReview-Commit-ID: LKC8eySoCua

--HG--
extra : amend_source : d7d959362a915cb12d9280ef1ffad887a120e6f3
2018-03-20 21:39:49 -07:00
Kris Maglione
bc5ab61b19 Bug 1447517: Stop running Windows WebExtensions tests in non-OOP mode. r=mixedpuppy DONTBUILD
Now that WebExtensions run OOP in Windows by default, and we have no intention
of going back, there's no need to run an extra set of in-process tests for
them.

MozReview-Commit-ID: t8ryuuNFHe

--HG--
extra : amend_source : 90e006ca618206a943991b14cb11779baa7b8934
2018-03-20 17:32:47 -07:00
Kris Maglione
c423cc8c0a Bug 1446250: Part 2 - Optimize/reduce calls into the Photon PageAction API. r=mixedpuppy
Calling into the Photon PageAction API to update a property is orders of
magnitude more expensive than the simple DOM-based updates we used previously.
To make matters worse, a lot of our caching was removed during the migration,
and the Photon API introduces a lot of duplicated work when selecting icons.

This patch caches the last known state for each property to avoid calling into
the Photon APIs to update each property more than necessary, and removes the
extraneous preferred icon size calculations that the Photon code already
duplicates.

MozReview-Commit-ID: LjPPxolmcd6

--HG--
extra : rebase_source : 70bce5b1460c93cc738999b1e167eb17a39259b1
2018-03-15 20:20:33 -07:00
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