Commit Graph

1514 Commits

Author SHA1 Message Date
Shane Caraveo
b76aa2da09 Bug 1378647 - support creating lazy tabs from extensions, r=JanH,mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P
2018-07-30 12:15:32 -03:00
Rob Wu
e3f270b64b Bug 1457115 - Simplify *_ext_tabs_executeScript_bad.* r=rpl
MozReview-Commit-ID: 6FpmCLmePVP
2018-05-24 19:16:49 +02:00
Kris Maglione
2d9ba3f7de Bug 1357487: Enable OOP extensions by default on all platforms. r=aswan
MozReview-Commit-ID: L2Pm1frQbmo
2018-07-25 10:29:20 -07:00
Oriol Brufau
9c26397c74 Bug 1474110 - Choose browserAction text color among white and black, maximizing contrast r=mixedpuppy
MozReview-Commit-ID: CykmiUc0BsO
2018-07-08 02:15:27 +02:00
Tim Nguyen
d6673ff4df Bug 1441708 - Fix theme_icons in different configurations. r=jaws
MozReview-Commit-ID: LWn4LUK5zI
2018-07-19 19:37:58 +01:00
Rob Wu
60af3dab65 Bug 1373234 - Small cleanup in browser_ext_contextMenus*.js tests r=mixedpuppy
Use sendMessage/awaitMessage instead of notifyPass/awaitFinish in tests
where this is not the last completion callback.

Remove an unneeded browser.contextMenus.onClicked.addListener call.

MozReview-Commit-ID: Akpla9tiAlD
2018-07-25 18:06:03 +02:00
Rob Wu
1d6641645e Bug 1373234 - Avoid races in tests involving menu creation r=mixedpuppy
browser.menus.create and browser.contextMenus.create are asynchronous
APIs. For compatibility reasons, they cannot return a promise (since
they already return an integer).

This modifies all tests that use either of these APIs, to ensure that
the test waits for the callback of the last menus/contextMenus.create
call before continuing with the test.

In some cases in browser_ext_menus.js I did not add any callbacks,
because there were other asynchronous API calls (browser.tabs API)
that already guaranteed that the test made a round-trip to the parent
process before continuing.

This fixes:
- Bug 1462862 (browser_ext_contextMenus_icons.js)
- Bug 1403429 (browser_ext_contextMenus_onclick.js)
- Bug 1321182 (browser_ext_contextMenus.js)
- Bug 1373234 (browser_ext_menus.js)

MozReview-Commit-ID: IZFUyIw8Tbl
2018-07-25 13:34:27 +02:00
Rob Wu
3aaa36a5d2 Bug 1366702 - Invoke menus.create callback if error occurs + tests r=mixedpuppy
MozReview-Commit-ID: 6TuxyXVtWrI
2018-07-20 19:59:55 +02:00
Boris Zbarsky
e98236cf07 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead
3097f96e03 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t
2018-07-24 08:12:50 -07:00
Tim Nguyen
3c2bff1b97 Bug 1477775 - Remove extensions.webextensions.themes.enabled preference. r=jaws
MozReview-Commit-ID: 2dnFhMGRLbG
2018-07-23 19:20:30 +01:00
Rob Wu
f194d898fa Bug 1321182 - Register click handler before starting click test in browser_ext_contextMenus.js r=mixedpuppy
MozReview-Commit-ID: FkOjNm7Tgd5
2018-07-20 17:43:42 +02:00
Margareta Eliza Balazs
c73f8e6664 Backed out changeset 6cc8354ce3c5 (bug 1378647) for causing failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_basic.html on a CLOSED TREE 2018-07-19 15:17:42 +03:00
Shane Caraveo
21fd0506ce Bug 1378647 - support creating lazy tabs from extensions, r=mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P
2018-07-18 16:17:30 -03:00
Oriol Brufau
4b3c1bd63a Bug 1475714 - Remove webextension code for legacy 18x18 icons r=mixedpuppy
MozReview-Commit-ID: CNU1c7IA3Hn
2018-07-15 18:00:26 +02:00
Brian Birtles
e98c6ab7f9 Bug 1471814 - Add a preference for Web Animations timelines; r=bz,hiro
We don't intend to ship this in the near future until the integration with
AnimationWorklet is clear (although we might ship a read-only version).

That said, we use this feature extensively internally (e.g. in DevTools etc.) so
we enable this feature for system callers.

MozReview-Commit-ID: AhB7ZmU1Xzw
2018-07-14 09:23:03 +09:00
Michael Kaply
720eed67ca Bug 1475347 - Cleanup search API - use camelCase and promise. r=aswan
MozReview-Commit-ID: 2HJYk8irppL
2018-07-12 15:55:25 -05:00
Ian Moody
d1d42970ff Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl
2018-07-10 17:38:35 +01:00
Gurzau Raul
36a9e5f749 Backed out changeset d93abdc258e1 (bug 1474379) for failing at test/browser_toolbox_telemetry_enter.js on a CLOSED TREE 2018-07-13 18:43:14 +03:00
Ian Moody
189237fdf9 Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl
2018-07-10 17:38:35 +01:00
Shane Caraveo
d88ad6db12 Bug 1461695 change tabs.onUpdated filter name to isArticle, r=aswan
MozReview-Commit-ID: Ha0nJPMTYkJ
2018-06-19 10:38:26 -04:00
Michael Kaply
1ee815c57d Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G
2018-06-18 10:39:12 -05:00
Axel Hecht
28138483f9 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP
2018-05-28 12:38:01 +02:00
Oriol Brufau
18bcbbf61f Bug 1424620 - Add setBadgeTextColor and getBadgeTextColor methods to browserAction r=mixedpuppy
MozReview-Commit-ID: ALYerCv3YJ7
2018-07-05 19:37:08 +02:00
Peter Simonyi
f6b1902574 Bug 1473720: Fix firing menus.onShown for bookmark items r=mixedpuppy
MozReview-Commit-ID: BzZ61Zfh7Oq
2018-07-05 16:43:15 -04:00
Brindusan Cristian
2407466dcc Backed out changeset f5bfc9971285 (bug 1352598) for browser chrome failures on browser_ext_search.js. CLOSED TREE 2018-07-03 23:02:59 +03:00
Michael Kaply
7ed80bbba7 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G
2018-06-18 10:39:12 -05:00
Ciure Andrei
bb1ed2485d 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
0455861545 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G
2018-06-18 10:39:12 -05:00
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