Commit Graph

1514 Commits

Author SHA1 Message Date
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
Narcis Beleuzu
5aae1271ef 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
2e904d8219 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: LDS6zxz7Ivi
2018-04-17 13:14:44 +02:00
Jan Odvarko
7c40353dad Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: 2iwybUcHOri
2018-04-17 13:14:31 +02:00
Luca Greco
084ac0b9c6 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
2018-04-16 13:26:58 +02:00
Cosmin Sabou
0c76926324 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
700b7a718f Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: KAwcvb18JO1
2018-04-13 15:56:07 +02:00
Jan Odvarko
fee14176d0 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: K5xd0UmyKb
2018-04-13 15:51:03 +02:00
Mark Striemer
8b1d36978f Bug 1397809 - Part 2: Add a doorhanger when an extension changes the homepage r=aswan,Gijs
MozReview-Commit-ID: CwZ3E32xROS
2018-01-11 18:59:32 -06:00
Mark Striemer
fe7abfc02e Bug 1397809 - Part 1: Convert New Tab doorhanger to a generic class r=aswan,Gijs
MozReview-Commit-ID: 40RwrXjtsJJ
2017-12-19 13:56:04 -06:00
Luca Greco
faf28b9ea2 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
2018-04-09 15:39:49 +02:00
Rob Wu
1ba787cf36 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
2018-04-11 14:25:03 +02:00
Ciure Andrei
40a9e70f9f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-11 12:00:35 +03:00
Kris Maglione
17d461e128 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
2018-04-10 22:52:14 -07:00
Kris Maglione
d73519000f Bug 1382953: Fix permission prompts in about:addons options browsers. r=aswan
MozReview-Commit-ID: At5F5cqGSWu
2018-04-07 20:38:21 -07:00
Yura Zenevich
609137e0f4 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
5ec5e8443f Merge mozilla-central to autoland 2018-04-11 01:12:49 +03:00
Rob Wu
f08c712969 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
2018-04-06 13:34:30 +01:00
Tooru Fujisawa
6876df089a Bug 1448531 - Part 2: Make BrowserTestUtils.waitForNewWindow receive parameters object. r=enndeakin 2018-04-10 12:18:35 +09:00
Jared Wein
28c794cd9e Bug 1449933 - Webextension popups that don't define a background-color can be hard to read. r=mixedpuppy
MozReview-Commit-ID: CVXySkhYaem
2018-03-30 15:29:31 -07:00
Kris Maglione
a505a99767 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
2018-04-05 19:42:20 -07:00
Kris Maglione
e9dca3c017 Bug 1451058: Follow-up: Fix some errors that show up during tests. r=me
MozReview-Commit-ID: K410z6VdHov
2018-04-06 16:34:15 -07:00