Commit Graph

1180 Commits

Author SHA1 Message Date
Masatoshi Kimura
0a8368dc11 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
2017-10-07 06:04:56 +09:00
Andrea Marchesini
2cb6bf409a Bug 1404105 - Sanitize.js must check if QuotaManager returns an error before continuing with cleaning data, r=janv 2017-10-16 11:50:01 +02:00
Sebastian Hengst
ded2f7a0dd Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Phil Ringnalda
06da5b50cf 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
Nicholas Nethercote
084985fd45 Bug 1406296 (part 3) - Remove the profiler's "gpu" feature. r=mstange,jrmuizel.
This allows a bunch of additional stuff to be removed: ContextStateTracker,
ContextStateTrackerOGL, and GPUMarkerPayload.
2017-10-06 17:35:44 +11:00
Nicholas Nethercote
920671fff1 Bug 1406296 (part 2) - Remove the profiler's "layersdump" feature. r=mstange.
Because it just doesn't control any behaviour within the profiler, and it just
duplicates gfxPrefs::LayersDumpTexture().

With this gone, PROFILER_FEATURE_ACTIVE can also be removed.
2017-10-06 17:34:22 +11:00
Nicholas Nethercote
9a7b0ad887 Bug 1406296 (part 1) - Remove the profiler's "displaylistdump" feature. r=mstange.
It's not useful.
2017-10-06 17:33:30 +11:00
Julian Descottes
778d48e93c 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
2017-09-29 15:28:19 +02:00
Luca Greco
3619de328f Bug 1403349 - Add a new webNavigation test for window.open called with a named window target. r=aswan
MozReview-Commit-ID: Aj8uMtcGwJx
2017-09-28 22:04:14 +02:00
Luca Greco
05dc67781f 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
2017-09-27 19:07:41 +02:00
Luca Greco
6eff7b96a9 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
2017-09-27 14:24:54 +02:00
Marco Bonardo
b19c6a5663 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Sebastian Hengst
6273f32bbf Backed out changeset 1ac7fce0b369 (bug 1406860) for failing xpcshell tests, e.g. toolkit/components/places/tests/unit/test_000_frecency.js. r=backout 2017-10-11 18:25:57 +02:00
Marco Bonardo
9aedc5efc3 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Bob Silverberg
0967cceb88 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
2017-09-28 07:37:35 -04:00
Julian Descottes
c9f46b9568 Bug 1407326 - remove references to invertIconForLightTheme in extensions codebase;r=rpl
MozReview-Commit-ID: B2eTpm6qbOh
2017-10-10 19:49:04 +02:00
Mike de Boer
54d03a3835 Bug 1403466 - Don't set a max-height on panelviews used by WebExtensions, because it causes browser contents to be cut-off. r=Gijs
Setting a max-height caused the '_handleDOMChange' method in ext-browser-content.js
to consistently lie about the scrollHeight, since it was never allowed to grow
beyond the maxHeight - even when the document needs to be larger to fit its contents.
We don't need this aggressiveness in Photon panels anyway, so that makes it
doubly safe to remove this code.

MozReview-Commit-ID: HJVMXXHS4By
2017-10-10 12:44:04 +02:00
Sebastian Hengst
7efb357302 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Kevin Jones
2d1031a927 Bug 1406912 - Fix _serializeRangeData does not handle ranges found in same node properly. r=mixedpuppy 2017-10-09 12:42:00 -04:00
Sebastian Hengst
e0cc99523e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Ian Moody
be771eda15 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
2017-10-08 13:23:33 +01:00
Joel Maher
3a710d7aa1 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
306e0c888e Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Tomislav Jovanovic
1d4af355d2 Bug 1398514 - Use slower documents for executeScript_runAt test r=kmag
MozReview-Commit-ID: 56FMa4sjO3Z
2017-10-05 19:22:00 +02:00
Wouter Verhelst
fb215cb709 Bug 1405709 - Add missing await to browser.pkcs11 test suite r=zombie
MozReview-Commit-ID: GjQu8QzwHkZ
2017-10-04 17:39:36 +02:00
Mark Striemer
4c033eb077 Bug 1395074 - Clear browserAction tab data on navigation r=mixedpuppy
MozReview-Commit-ID: 4hugj2q84Rd
2017-09-26 16:06:06 -05:00
Wouter Verhelst
4663f4df9b 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
2017-08-22 17:59:38 +02:00
Wes Kocher
c4e92cfbc2 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
f8f3aa51f5 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
2017-08-22 17:59:38 +02:00
Mike de Boer
3f2ca69f96 Bug 1401991 - Ensure that we don't hide panelviews that are already reparented to another multi-view and ensure to hide other panels consistently. r=Gijs
* Harden the new `hideAllViewsExcept()` to not do erroneous things if called when
   the binding is already gone.
 * Generalize things into `hideAllViewsExcept(thisOne)`:
    - Clear `_viewShowing` in there and do the descriptionHeightWorkaround thing
      in there too,
    - For Photon panels, do all the 'current' attribute setting in there. To show
      a panel during transition, I introduced the 'in-transition' attribute.
 * I had to make sure not to over-eagerly dispatch 'ViewShowing' events, because
   that confuses some,
 * Move the temporary panel handling, which contains an ephemeral panelmultiview
   instance, internally. This cleans up the hacky, duplicate PanelUI.js code nicely.
 * Keep a local copy of `_transitionDetails` to ensure it's still there after transition,
 * Harden `_cleanupTransitionPhase()` to only clear the phase that belongs to a
   specific transition, _if_ that's passed in as an argument. This resolves any
   potential raciness that might occur when `showSubView()` is called again mid-transition.
 * Skip the UITour element visibility check when it's inside a panelview, because
   too many things need to happen and that check is too simple to be useful in
   that case.

MozReview-Commit-ID: 5HpJKs1Ny5j
2017-09-29 13:51:51 +02:00
Kris Maglione
a53de73c40 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
b148bb5e9a Bug 1402503: Part 2 - Add test for extension slow script dialog. r=mixedpuppy
MozReview-Commit-ID: BknBhAttKHS
2017-09-25 11:49:39 -07:00
Kris Maglione
5a9116a4e2 Bug 1402944: Part 8 - Avoid X-ray overhead when cloning event handler responses. r=mixedpuppy
MozReview-Commit-ID: 4CHP80WymuA
2017-09-23 13:30:52 -07:00
Kris Maglione
c186675da3 Bug 1402944: Part 6 - Optimize getBrowserInfo some more. r=mixedpuppy
MozReview-Commit-ID: 8kdeVqKb889
2017-09-23 00:50:46 -07:00
Thomas Wisniewski
df36f3c816 Bug 1388428 - Extend browsingData to restrict removing localStorage to a given list of hostnames; r=asuth,bsilverberg
MozReview-Commit-ID: ELgjLHsVLkv
2017-09-25 16:47:38 -04:00
Dale Harvey
d4946bdda2 Bug 1399642 - Use photon search icon in awesomebar. r=dao
MozReview-Commit-ID: Dzf8DqrGRam
2017-09-26 11:13:56 +01:00
Mark Striemer
67d2df8a0c Bug 1314674 - Maintain badge style in new windows and customize r=mixedpuppy
MozReview-Commit-ID: 8f99d6Uqtx1
2017-09-20 17:27:48 -05:00
Sebastian Hengst
94c774dbd6 merge mozilla-central to autoland. r=merge a=merge 2017-10-09 23:56:28 +02:00
Luca Greco
6caa5da704 Bug 1385548 - Part 2: Add new test for tab modals created from a WebExtensions options_ui page. r=kmag
MozReview-Commit-ID: BUExkEQLkuR
2017-09-19 18:30:22 +02:00
Bob Silverberg
4ac6021faa 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
2017-09-08 17:00:27 -04:00
Sebastian Hengst
f54d49906c 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
adb943d5da 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
2017-09-08 17:00:27 -04:00
Andrea Marchesini
930ae961f4 Bug 1402270 - Sanitizer and BrowsingData should delete QuotaManager storages using the origin directly and not the origin as pattern, r=janv 2017-09-22 11:52:48 +02:00
Phil Ringnalda
62f4ec4130 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher
f05fbb8ef7 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Sebastian Hengst
2086ee8ef6 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
021d3d1107 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
2017-09-21 22:18:07 +02:00
Michael Kaply
2be5d65247 Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK
2017-09-07 19:38:55 -05:00
Michael Kaply
b915722337 Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK
2017-09-07 19:38:55 -05:00
Bob Silverberg
d30597e970 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
2017-09-19 16:05:33 -04:00