Commit Graph

1135 Commits

Author SHA1 Message Date
Andreea Pavel
fe013701c6 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-30 13:10:01 +03:00
Kris Maglione
bb663b9c15 Bug 1471102: Move more code out of ExtensionUtils.jsm. r=aswan
MozReview-Commit-ID: Fqlv5BRuuW8
2018-06-25 19:30:21 -07:00
Adam Plaice
8302e669de 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
2018-06-02 00:56:44 +02:00
Oriol Brufau
498a7b8c8c Bug 1465170 - Implement support for the 'highlighted' API for multiselect tabs with tabs.query r=jaws,mixedpuppy
MozReview-Commit-ID: 6eFnxrXJXXB
2018-06-03 02:53:59 +02:00
Oriol Brufau
50907cadd4 Bug 1464862 - Expose multiselected status to "tabs.Tab.highlighted", and allow to change it via "browser.tabs.highlight()" r=mixedpuppy
MozReview-Commit-ID: H2SiqM5ksCH
2018-06-23 21:46:58 +02:00
Shane Caraveo
eea40688af 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
2018-06-19 10:47:25 -04:00
Joel Maher
d0823df1ef 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
eefb8f3a4a Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Shane Caraveo
7c4e7aca47 Bug 1404724 - remove browser_style warning, fix default values, r=aswan
MozReview-Commit-ID: Akdhrm4leIQ
2018-05-29 16:55:43 -04:00
Boris Zbarsky
da7e34a17c Bug 1465875 part 4. Eliminate random mentions of nsIDOMNSEditableElement. r=qdot 2018-06-01 22:35:23 -04:00
Oriol Brufau
9c2d2d8543 Bug 1463751 - Tab-specific data not updated when tab is moved to another window and old window closes r=mixedpuppy
MozReview-Commit-ID: IUC8OwV6YHY
2018-05-26 21:57:58 +02:00
Cosmin Sabou
1c94af50bf Merge inbound to mozilla-central. a=merge 2018-05-27 15:58:59 +03:00
Luca Greco
9ed230e011 Bug 1458918 - Prevent windows.getLastFocused from leaking tab being adopted by a new window. r=dao,mixedpuppy
MozReview-Commit-ID: 6Nj7J7aI06B
2018-05-03 16:24:02 +02:00
Mark Banner
d9f890e77d Bug 824502 - Fix unit tests for the folder=<id> to parent=<guid> transition. r=mak
MozReview-Commit-ID: FCaiJrSAMAV
2018-05-01 08:14:53 +01:00
Kris Maglione
e2dad07746 Bug 1461145: Support async startup/shutdown bootstrap methods. r=aswan
MozReview-Commit-ID: L0G4DA0KJ87
2018-05-12 18:51:32 -07:00
Kris Maglione
c6695e70cf Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
MozReview-Commit-ID: Gj2iCsBIdnq
2018-05-12 16:49:35 -07:00
Jonathan Kingston
3bbca32c9e Bug 1452666 - Simplify SessionHistory serialization code and test expanded principals are serialized and can restore tabs. r=bz,mikedeboer
MozReview-Commit-ID: EV39wz2TFlj
2018-05-19 14:42:52 +01:00
Michael Kaply
78791834e8 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr
2018-05-18 10:30:04 -05:00
Oriol Brufau
7282a2a9b7 Bug 1451176 - Preserve tab-specific data when tab is moved to another window r=mixedpuppy
MozReview-Commit-ID: 80h4U7G3gmb
2018-04-04 16:04:11 +02:00
Oriol Brufau
a6446f33a9 Bug 1457474 - Add 'Manage Extension' in browserAction context menu r=Gijs,mixedpuppy
MozReview-Commit-ID: 3iA7fCeXLVs
2018-05-14 22:23:21 +02:00
Oriol Brufau
23a600b8f4 Bug 1419893 - Add windowId parameter in browserAction methods r=mixedpuppy
MozReview-Commit-ID: FFb4I1wmTH
2018-04-06 23:18:44 +02:00
Rob Wu
8af3a68015 Bug 1461115 - Emit menus.onShown even if there is no tab r=mixedpuppy
MozReview-Commit-ID: 6Bc7HHvaCRW
2018-05-18 13:55:09 +02:00
Andreea Pavel
b449d7ce91 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
4f627c3c26 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr
2018-05-18 10:30:04 -05:00
Michael Kaply
edbe31c3ec Bug 1461805 - Don't show doorhanger for distribution add-ons. r=aswan,mstriemer
MozReview-Commit-ID: GjtVOWO8UFg
2018-05-15 15:26:39 -05:00
Mark Banner
a6205d63b1 Bug 1461997 - Enable ESLint rule mozilla/require-expected-throws-or-rejects for browser/components. r=Gijs
MozReview-Commit-ID: JXqwIyF6v6k
2018-05-16 20:23:06 +01:00
Gabriel Luong
f206a1bb57 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
8ad5132afe 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
2018-05-14 23:41:43 -04:00
Marco Bonardo
3c03d8e82f Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. r=standard8
MozReview-Commit-ID: KJW9YNwoSZb
2018-05-08 10:26:36 +02:00
Jared Wein
db7b884c93 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
2018-05-07 13:06:46 -04:00
Mark Striemer
2bf1582449 Bug 1455040 - Enable tab hiding API by default r=mixedpuppy
MozReview-Commit-ID: HtzpV7bySeY
2018-05-07 12:27:41 -05:00
Marco Bonardo
1f42ed0f31 Bug 1354531 - Remove PlacesUtils.asyncHistory to make History internals access less convenient. r=standard8
MozReview-Commit-ID: K9oQTJbVAZF
2018-05-03 15:08:06 +02:00
Mark Striemer
0789fc45b3 Bug 1438363 - Show a doorhanger when an extension first hides a tab r=aswan,dao
MozReview-Commit-ID: DQCr3SSaZTV
2018-04-24 09:07:32 -05:00
Oriol Brufau
7a86e036f2 Bug 1457673 - Support WINDOW_ID_CURRENT in browser.windows.remove r=mixedpuppy
MozReview-Commit-ID: LkjDD2U9knB
2018-05-01 03:25:41 +02:00
Michael Ratcliffe
9e44b893f6 Bug 1456923 - can't switch to dev-tools add-on that is loaded temporarily r=pbro
MozReview-Commit-ID: EOw2S34zqPa
2018-04-30 15:57:39 +01:00
Rob Wu
a6a15124ab 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
2018-04-23 15:28:41 +02:00
Rob Wu
77a949f94f Bug 1392067 - Disconnect open extension ports when the message manager goes away
- Previously, if a port is disconnected by the other end, then memory
  would be leaked to `ProxyMessenger.ports` in ExtensionParent.jsm.
  To fix this, the port descriptor is now saved separately, keyed by
  port ID instead of message manager.

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

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

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

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

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

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

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Brindusan Cristian
d891135dee Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Stefan Hindli
9e4c3200db 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
83995b1abf Bug 1390464 - Add windowId parameter in sidebarAction methods r=mixedpuppy
MozReview-Commit-ID: eSJnVzpNvO
2018-01-28 20:46:24 +01:00
Cosmin Sabou
3defe315fd Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 01:38:32 +03:00
Kris Maglione
59b2dd801c 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
2018-04-18 11:43:45 -07:00
Mike de Boer
84755893e0 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
2018-04-11 12:06:12 +02:00
Coroiu Cristina
3ca1ef71f0 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Kris Maglione
4ea193556c Bug 1452299: Make browser_ext_settings_overrides_search a less-dodgy xpcshell test. r=mkaply
MozReview-Commit-ID: CffGpvV9vck
2018-04-06 17:34:23 -07:00
Rob Wu
0d3a080b8a 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
2018-04-13 19:57:27 +02:00
Brian Grinstead
d229e08fa3 Bug 1454012 - Part 2 - Remove NEW_CONSOLE_OUTPUT_ENABLED since it's now always true;r=nchevobbe
MozReview-Commit-ID: 2PaXZqDGMOi
2018-04-16 10:38:11 -07:00
Jan Odvarko
09a00eb5a0 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: JjJowr1grNP
2018-04-17 14:40:44 +02:00
Jan Odvarko
27240cd3d4 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: BbZJQiipg3K
2018-04-17 14:38:25 +02:00