Commit Graph

703721 Commits

Author SHA1 Message Date
Johann Hofmann
105e5e23f6 Bug 1627220 - Skip expired permissions in getAllWithTypePrefix and getAllForPrincipal. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D72454
2020-04-27 11:40:53 +00:00
Tooru Fujisawa
68c7f2f41e Bug 1628784 - Pass TOPSRCDIR environment variable to jsapi-tests, in order to read test files. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D71255
2020-04-27 11:37:13 +00:00
Nicolas Chevobbe
df9fffea5c Bug 1622141 - Fix intermittent on browser_jsterm_autocomplete_return_key.js. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D72597
2020-04-27 10:35:10 +00:00
Jean-Yves Avenard
f9e2f2e9a6 Bug 1630320 - in browser_autocomplete_footer.js wait for the tab to load before attempting to retrieve its content. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D72507
2020-04-26 10:35:57 +00:00
Florens Verschelde
0b497b71de Bug 1627663 - Add separate devtools-tabbar-button style for toolbox buttons; r=Honza
This patch trades a bit of CSS code duplication for the sake of making styles more independent and less prone to break.
- Remove usage of `devtools-button` in the toolbox's toolbar.
- Create a ad-hoc `devtools-tabbar-button` style specifically for the toolbox icon buttons.

Differential Revision: https://phabricator.services.mozilla.com/D72488
2020-04-27 10:39:19 +00:00
pbz
a0a5236904 Bug 1629808 - Updated ConfirmAuth dialogs to be tab modal and re-enabled them. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D72005
2020-04-24 13:14:11 +00:00
Simon Giesecke
850cbc20a8 Bug 1631391 - Simplify implementation of ReplaceElementAt. r=xpcom-reviewers,nika
Depends on D71721

Differential Revision: https://phabricator.services.mozilla.com/D71723
2020-04-27 10:08:46 +00:00
Jean-Yves Avenard
07d72f57f6 Bug 1630192 - Wait for the page to load before attempting to retrieve element. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D72506
2020-04-26 10:42:24 +00:00
Jean-Yves Avenard
55ff537cae Bug 1633329 - Add revision to .git-blame-ignore-revs. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D72592
2020-04-27 08:44:47 +00:00
Simon Giesecke
6ed8a22f98 Bug 1632779 - Make toolkit/components/telemetry/tests/gtest build outside unified build environment. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D72311
2020-04-24 19:31:42 +00:00
Gijs Kruitbosch
e583ec83e1 Bug 1631229 - make popup hiding exiting fullscreen work correctly for tooltips, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D72461
2020-04-27 09:30:40 +00:00
Glenn Watson
43db714391 Bug 1632705 - Part 3 - Add API for rounded rect clips. r=Bert
This adds the last remaining explicit API for defining clips of
a specific type, and ports wrench and examples to use them.

Differential Revision: https://phabricator.services.mozilla.com/D72284
2020-04-26 23:30:48 +00:00
Glenn Watson
b954ae4e56 Bug 1632705 - Part 2 - Add display item for rectangle clips. r=nical
This allows defining rectangle clips directly, rather than via
the generic clip region methods.

This patch doesn't make use of it in Gecko yet, but it will do
once we add the remaining rounded rect API.

Differential Revision: https://phabricator.services.mozilla.com/D72268
2020-04-27 09:08:04 +00:00
Tom Tung
718c6d81f9 Bug 1633326 - Add an additional warning message that shows the file path when it fails to create a file; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72591
2020-04-27 08:38:55 +00:00
Christian Holler
870ae59237 Bug 1632830 - Properly shutdown ScopedXPCOM instance with libFuzzer. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D72386
2020-04-27 01:35:01 +00:00
Marco Bonardo
aa83e350d0 Bug 1623888. r=Gijs,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D71549
2020-04-24 15:39:36 +00:00
Makoto Kato
5eef0ef386 Bug 1612278 - Part 2. Re-enable TextInputDelegateTest#inputConnection. r=geckoview-reviewers,agi
Turn on some tests for InputConnection's behaviors. `inputConnection_setSelection` and `inputConnection_bug1133802` are still disabled due to Gecko issue and no good events.

Although I repeat 30 times to run this after this, no error now.

Differential Revision: https://phabricator.services.mozilla.com/D71151
2020-04-27 07:42:33 +00:00
Makoto Kato
33984be87d Bug 1612278 - Part 1. Add utility functions in TextInputDelegateTest. r=geckoview-reviewers,agi
I would like to add some common functions to wait various events.

Differential Revision: https://phabricator.services.mozilla.com/D71150
2020-04-27 07:42:26 +00:00
Peter Van der Beken
9a935f4bd4 Bug 1632802 - Remove nsAgg.h. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D72359
2020-04-27 07:56:04 +00:00
Mihai Alexandru Michis
9c27747cc3 Backed out 3 changesets (No Bug) for causing failures in mozscreenshots/devtools/browser_devtools.js
CLOSED TREE

Backed out changeset d39e17d5c942
Backed out changeset 1321943b2d79
Backed out changeset 21a5012182d6
2020-04-27 10:41:20 +03:00
Peter Van der Beken
84814fdc97 Bug 1632759 - Remove unnecessary kungFuDeathGrip. r=erahm
The problem in https://bugzilla.mozilla.org/show_bug.cgi?id=325392 was
misdiagnosed and then a generic fix in
https://bugzilla.mozilla.org/show_bug.cgi?id=485834 (the kungFuDeathGrip
in nsObserverService::RemoveObserver) was based on the wrong diagnosis.
The root problem in bug 325392 was not that we were calling
nsObserverService::RemoveObserver from the destructor, and then
reentering the destructor. The refcounting code stabilizes the refcount
to 1 before calling the destructor to avoid reentering a destructor. The
real problem was that we were deleting an XPCOM object manually after
creation but without ever holding a strong reference to it, and so not
going through the refcount stabilization (and then the destructor can
reenter of course).

The generic fix in bug 485834 was based on the spotfix in bug 325392,
that was then backed out when the proper fix for that bug landed. I
don't think we should keep this kungfuDeathGrip, I ran into it because
it causes issues with refcount logging (refcount logging always had an
issue with refcounting from a destructor).

Differential Revision: https://phabricator.services.mozilla.com/D72300
2020-04-27 07:31:06 +00:00
Dan Glastonbury
f2d5afd779 Bug 1623565 - P4: Make browser.cache.check_doc_frequency a StaticPref. r=nika
Due to the refactored code,
browser/base/content/test/performance/browser_preferences_usage.js started
reporting more accesses to browser.cache.check_doc_frequency preference.

Differential Revision: https://phabricator.services.mozilla.com/D68319
2020-04-27 05:38:22 +00:00
Dan Glastonbury
6ffa81c157 Bug 1623565 - P3: Remove mLoadFlags from DocumentChannelCreationArgs. r=mattwoodrow,jya
Differential Revision: https://phabricator.services.mozilla.com/D67799
2020-04-27 05:38:15 +00:00
Dan Glastonbury
0d4af00c6b Bug 1623565 - P2: Refactor document channel load flags computation. r=nika,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D67797
2020-04-27 05:38:07 +00:00
Dan Glastonbury
a48830f2b3 Bug 1623565 - P1: Move defaultLoadFlags to BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67796
2020-04-27 05:37:59 +00:00
Andreas Farre
6adf2b375d Bug 1576188 - Handle save-as for cross process iframes. r=peterv
Depends on D70388

Differential Revision: https://phabricator.services.mozilla.com/D70389
2020-04-27 05:41:40 +00:00
Andreas Farre
a5c1034d17 Bug 1576188 - Test that save-as works for cross process frames. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D70388
2020-04-27 05:41:27 +00:00
Lina Cambridge
1aa777d5e1 Bug 1626506 - Add a binding for the new extension storage Rust component. r=markh
The `webext_storage_bridge` crate introduced in this commit bridges the
`mozIExtensionStorageArea` XPCOM interface to the `webext_storage` Rust
component from Application Services.

This commit factors out the following parts from bug 1623245, so that
we can land them piecemeal:

* The `mozIExtensionStorageArea` interfaces, which implement all the
  methods needed to support the `storage.sync` API.
* A Rust implementation of the above, in `StorageSyncArea`.
* A `StorageTask` type, for dispatching storage operations to a
  background task queue.
* A `LazyStore`, which wraps the Rust component's `Store` and lazily
  initializes it on the background queue the first time it's used.
* A `StorageSyncService`, which is our singleton. It holds on to a
  configured `StorageSyncArea`, and hands out references to it via
  `getInterface`. Eventually, we'll extend this to support syncing,
  too.

Differential Revision: https://phabricator.services.mozilla.com/D71897
2020-04-27 05:40:54 +00:00
Lina Cambridge
e6e665546f Bug 1626506 - Vendor the webext_storage component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 05:40:52 +00:00
Mihai Alexandru Michis
807ec47bae Backed out 2 changesets (bug 1626506) for causing bustages.
CLOSED TREE

Backed out changeset f3deedfe235d (bug 1626506)
Backed out changeset 00b40d247500 (bug 1626506)
2020-04-27 08:11:19 +03:00
sotaro
d117745eaf Bug 1633303 - Add glDebugCallback support to non shared gl context with WebRender r=gw
Bug 1632096 added the capability to shared gl context with WebRender. This bug extends the support to non shared gl context.

Differential Revision: https://phabricator.services.mozilla.com/D72579
2020-04-27 02:51:48 +00:00
Matt Woodrow
20f213591b Bug 1624318 - Serialize replacement config input stream as a blob. r=baku,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D71872
2020-04-27 04:49:00 +00:00
Matthew Noorenberghe
753c84b4a5 No bug - Increase default mozscreenshots timeout to 700ms. a=test-only
See if this helps with some of the graphical glitches.

Depends on D72581

Differential Revision: https://phabricator.services.mozilla.com/D72582
2020-04-27 03:21:36 +00:00
Matthew Noorenberghe
6e2a06b395 No bug - Disable DevTools.{sideToolbox,undockedToolbox} screenshot configurations for frequent failures. a=test-only
Examples:
* df251f2e03/windows10-64/devtools_2_sideToolbox.png
* df251f2e03/windows10-64/devtools_3_undockedToolbox.png

Depends on D72580

Differential Revision: https://phabricator.services.mozilla.com/D72581
2020-04-27 03:21:29 +00:00
Matthew Noorenberghe
bca6b2a1f2 No bug - ControlCenter screenshots don't need to show the back button (which causes intermittent failures). a=test-only
Differential Revision: https://phabricator.services.mozilla.com/D72580
2020-04-27 03:21:03 +00:00
Lina Cambridge
e1b6df9fd4 Bug 1626506 - Add a binding for the new extension storage Rust component. r=markh
The `webext_storage_bridge` crate introduced in this commit bridges the
`mozIExtensionStorageArea` XPCOM interface to the `webext_storage` Rust
component from Application Services.

This commit factors out the following parts from bug 1623245, so that
we can land them piecemeal:

* The `mozIExtensionStorageArea` interfaces, which implement all the
  methods needed to support the `storage.sync` API.
* A Rust implementation of the above, in `StorageSyncArea`.
* A `StorageTask` type, for dispatching storage operations to a
  background task queue.
* A `LazyStore`, which wraps the Rust component's `Store` and lazily
  initializes it on the background queue the first time it's used.
* A `StorageSyncService`, which is our singleton. It holds on to a
  configured `StorageSyncArea`, and hands out references to it via
  `getInterface`. Eventually, we'll extend this to support syncing,
  too.

Differential Revision: https://phabricator.services.mozilla.com/D71897
2020-04-27 03:23:46 +00:00
Lina Cambridge
a42e765155 Bug 1626506 - Vendor the webext_storage component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 02:59:45 +00:00
Makoto Kato
f4194acef4 Bug 1612251 - Use Executors.newSingleThreadScheduledExecutor to support <10ms sampling. r=julienw
Actually, we use `Thread.sleep` to get next sampling duration. But as long as
old comment, this sampling min duration is 10ms. But when I test
`Executors.newSingleThreadScheduledExecutor` on old device (10 year's old
Galaxy Nexus) instead of Thread.sleep, it can use 2ms sampling duration.

So we should use ScheduledExecutorService instead.

Differential Revision: https://phabricator.services.mozilla.com/D70401
2020-04-27 02:16:54 +00:00
Botond Ballo
ffdcf19a50 Bug 1633014 - Fix non-unified build errors in editor/. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D72470
2020-04-27 03:36:57 +00:00
Masayuki Nakano
0440ea1f97 Bug 1632724 - part 5: Remove out params of EditorBase::CreateTransactionForDelete*() r=m_kato
The out params mean the last collapsed selection range's result (although,
the meaning is odd and offset and length are not overwritten when there is
another collapsed range and it causes `DeleteNodeTransaction`).  Additionally,
when and only when `DeleteNodeTransaction` and `DeleteTextTransaction` are
added to the `EditAggregationTransaction` created by
`CreateTransactionForSelection()`.  Therefore, same result can be looked for
from its only caller, `DeleteSelectionWithTransaction()`.

Note that this makes the method slower if there are too many selection ranges,
but such case must be rare because:

1. We can assume that users rarely use multiple selection ranges for removing
multiple ranges of content except table.
2. Multiple selection is supported only by Gecko.  Therefore, web apps must
not use multiple selection for this purpose.

So, it must be okay to use this slower approach for making the methods simpler.
If it'd become damage to some benchmarks, let's create faster access to get
transaction type.

Depends on D72293

Differential Revision: https://phabricator.services.mozilla.com/D72294
2020-04-27 01:36:02 +00:00
Masayuki Nakano
f3a31a9bda Bug 1632724 - part 4: Rename HTMLEditor::DeleteSelectionWithTransaction() r=m_kato
`HTMLEditor::DeleteSelectionWithTransaction()` calls `EditorBase`'s overridden
method and handles `nsIEditor::eStrip` case.  Therefore, we can rename it with
stop calling the `EditorBase::DeleteSelectionWithTransaction()`, and make it
called by `EditorBase::DeleteSelectionWithTransaction()` only when it's
necessary.

Additionally, we can make all internal method callers of editor classes always
set `nsIEditor::eNoStrip` if the instance is `TextEditor`.  This must make
the code easier to understand.

Depends on D72292

Differential Revision: https://phabricator.services.mozilla.com/D72293
2020-04-27 00:36:10 +00:00
Masayuki Nakano
378eb2888e Bug 1632724 - part 3: Make helper methods of EditorBase::DeleteSelectionWithTransaction() take new enum class instead of nsIEditor::EDirection r=m_kato
The parameter is used only by `EditorBase::CreateTxnForDeleteRange()` to
extend collapsed range, but it accepts only `nsIEditor::eNext` and
`nsIEditor::ePrevious`.  Therefore, using `nsIEditor::EDirection` does not
make sense.  Instead, they should use new `enum class`,
`HowToHandleCollapsedRange`.

Depends on D72291

Differential Revision: https://phabricator.services.mozilla.com/D72292
2020-04-26 15:58:35 +00:00
Masayuki Nakano
b67f6a5763 Bug 1632724 - part 2: Move DeleteSelectionWithTransaction() from TextEditor to EditorBase since it's used by HTMLEditor too r=m_kato
Depends on D72290

Differential Revision: https://phabricator.services.mozilla.com/D72291
2020-04-24 15:22:42 +00:00
Masayuki Nakano
6cbea10c99 Bug 1632724 - part 1: Move common methods for handling delete selection to EditorBase r=m_kato
`DeleteSelection*()` are members of `TextEditor`, but they are also used by
`HTMLEditor`.  Therefore, they and pref cache members for them should be
in `EditorBase` too.

Depends on D71911

Differential Revision: https://phabricator.services.mozilla.com/D72290
2020-04-24 14:55:09 +00:00
Logan Smyth
158bac3df3 Bug 1607639 - Part 5: Resolve sourcemaps relative to their execution environment. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72116
2020-04-27 02:17:15 +00:00
Logan Smyth
bfe7013db8 Bug 1607639 - Part 4: Convert introductionUrl into sourceMapBaseURL to match actual usage. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72115
2020-04-27 02:17:02 +00:00
Logan Smyth
6af9e5261a Bug 1607639 - Part 3: Remove unnecessary falsy checks for _source in source actor. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72107
2020-04-27 02:16:00 +00:00
Logan Smyth
1c5e2e3489 Bug 1607639 - Part 2: Remove the unused 'introductionUrl' value from Source objects. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72106
2020-04-27 02:15:47 +00:00
Logan Smyth
63446c94da Bug 1607639 - Part 1: Remove the unused 'introductionType' value from Source objects. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72105
2020-04-27 02:15:23 +00:00
Logan Smyth
fa172288ef Bug 1470768 - Allow sourceURL to apply generally across all types of scripts. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72104
2020-04-27 02:13:54 +00:00