Граф коммитов

748072 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell ddd075dff2 Bug 1663757 - Part 1: Include BrowsingContext info in WebProgressData, r=mattwoodrow
This change allows associating individual web progress events with which frame
they originate from, rather than only recording the `isToplevel` information as
we were before, which is necessary in order to use the OnLocationChange events
from content to track the current URI on CanonicalBrowsingContext.

Due to events in ContentChild being filtered through nsBrowserStatusFilter, some
of the callbacks will never be passed nsIRequest or nsIWebProgress pointers, and
this patch also simplifies them by removing information which is not necessary
from the IPC message.

Finally, this patch adds a number of checks to the relevant Recv callbacks in
the parent process which help ensure that it does not accept web progress events
from a content process which is no longer hosting the target BrowsingContext.
This may allow for us to stop manually suspending web progress events on process
switches, as these checks will handle this automatically based on the existing
BrowsingContext and WindowContext objects.

Differential Revision: https://phabricator.services.mozilla.com/D105556
2021-03-09 15:29:40 +00:00
Nika Layzell 3ff4296a89 Bug 1209947 - Part 2: Fire location change events for all subframe navigations, r=smaug,Gijs
The check in this function was added in bug 82236 to avoid an issue in the
mozilla suite where the UI would update to a subframe's URI. This came up
previously in bug 1206879 when we observed we weren't sending OnLocationChange
events when we were expecting, which was causing issues for pushState location
changes. A workaround was added in that bug to avoid the issue for the specific
case of pushState.

This patch removes the redundant check, and reverts the workaround added in that
bug. Unfortunately, we aren't able to fully remove nsISHEntry::GetIsSubframe, as
it is now used by Browser{Parent,Child}::CanCancelContentJS.

Differential Revision: https://phabricator.services.mozilla.com/D105555
2021-03-09 15:29:39 +00:00
Nika Layzell aa17bf647b Bug 1209947 - Part 1: Skip more of XULBrowserWindow.onLocationChange for subframes, r=Gijs
With the changes in this patch stack, it will become more common for frontend
code to receive onLocationChange notifications for subframes, as we will now
correctly report events for oop subframes, and will also deliver notifications
for the first document loaded in subframes in order to update the current remote
URI on CanonicalBrowsingContext.

This change makes more of the callbacks fired by onLocationChange be guarded by
the isTopLevel check, including setting the "URL" crash annotation and updating
the macOS touchbar, which should hopefully both fix existing latent bugs, and
ensure that these issues don't occur with the more frequent onLocationChange
callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D105554
2021-03-09 15:29:39 +00:00
Henrik Skupin 306b013345 Bug 1695243 - [remote] Remove 3rd argument when importing "addDebuggerToGlobal". r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D107649
2021-03-09 15:15:40 +00:00
Joel Maher 6bc1ed63b7 Bug 1697048 - run awsy in py3. r=ahal
run awsy in py3

Differential Revision: https://phabricator.services.mozilla.com/D107551
2021-03-09 15:13:46 +00:00
prathikshaprasadsuman a0e4f2ba3c Bug 1692329 - Remove (No login suggestions) context menu item and hide the use saved login item where there are no matching saved logins. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106961
2021-03-09 14:56:59 +00:00
Andrew Halberstadt 6ba4d3209d Bug 1689061 - [ci] Enable fission test-verify tasks on autoland, r=jmaher
This patch will enable the following tasks on autoland:
> test-linux1804-64-qr/debug-test-verify-fis-e10s-1
> test-linux1804-64-qr/debug-test-verify-fis-e10s-2
> test-linux1804-64-qr/debug-test-verify-fis-e10s-3
> test-linux1804-64-qr/opt-test-verify-fis-e10s-1
> test-linux1804-64-qr/opt-test-verify-fis-e10s-2
> test-linux1804-64-qr/opt-test-verify-fis-e10s-3
> test-macosx1014-64-qr/debug-test-verify-fis-e10s-1
> test-macosx1014-64-qr/debug-test-verify-fis-e10s-2
> test-macosx1014-64-qr/debug-test-verify-fis-e10s-3
> test-macosx1014-64-qr/opt-test-verify-fis-e10s-1
> test-macosx1014-64-qr/opt-test-verify-fis-e10s-2
> test-macosx1014-64-qr/opt-test-verify-fis-e10s-3
> test-windows10-64-qr/debug-test-verify-fis-e10s-1
> test-windows10-64-qr/debug-test-verify-fis-e10s-2
> test-windows10-64-qr/debug-test-verify-fis-e10s-3
> test-windows10-64-qr/opt-test-verify-fis-e10s-1
> test-windows10-64-qr/opt-test-verify-fis-e10s-2
> test-windows10-64-qr/opt-test-verify-fis-e10s-3

Differential Revision: https://phabricator.services.mozilla.com/D107537
2021-03-09 14:47:39 +00:00
Mitchell Hentges 492df70186 Bug 1683797: Remove obsolete "build_targets" option from CI r=sheehan,releng-reviewers,jmaher
Rusttests were the only remaining usage.

Differential Revision: https://phabricator.services.mozilla.com/D106295
2021-03-09 14:45:26 +00:00
Mitchell Hentges d925c83f15 Bug 1683797: Don't use "build targets" to build rusttests r=sheehan,firefox-build-system-reviewers,glandium
When "build targets" are used, the sccache server isn't
being used/integrated properly with make.
By moving rusttests to a separate build "application",
`client.mk` is invoked normally, and sccache is happy.

* Move rusttests to a new build "application".
* Move and denormalize rusttests mozconfigs. The new rusttests
  mozconfigs should expand to be mostly identical to their old
  versions, except with `MOZ_AUTOMATION_*=0` and
  `--enable-application=tools/rusttests`.
  They will differ a bit from their old variants because some
  of them originally didn't source from their
  respective `$app_mozconfigs/common`.
* Modify `baseconfig.mk` to change tiers if running rusttests.
* Adjust CI config to use new "rusttests" build application.

Differential Revision: https://phabricator.services.mozilla.com/D106294
2021-03-09 14:45:25 +00:00
Mitchell Hentges 5c911478fd Bug 1683797: Removes redundant path parsing r=sheehan,firefox-build-system-reviewers,glandium
We already know the project name, we should unbundle it
from the project path.

This change is possible due to the work in 1664083,
and puts us back to the state before 1255185.

Differential Revision: https://phabricator.services.mozilla.com/D106293
2021-03-09 14:45:25 +00:00
Mitchell Hentges 3ff2d684e9 Bug 1683797: Removes unnecessary lines from client.mk r=sheehan,firefox-build-system-reviewers,glandium
CWD and BUILDSTATUS are never used.

Differential Revision: https://phabricator.services.mozilla.com/D102661
2021-03-09 14:45:24 +00:00
Francesco Lodolo (:flod) b9681ed33e Bug 1694509 - Use brand-short-name in troubleshoot/refresh dialog title, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D107647
2021-03-09 14:44:24 +00:00
Csoregi Natalia 85a6e8eb1b Backed out changeset 5c5cb052e61b (bug 1695320) for failures on browser_cleanFlow.js. CLOSED TREE 2021-03-09 17:12:09 +02:00
Ben Hearsum fad8aa564c Bug 587344: run startup tests on signed Firefox builds. r=taskgraph-reviewers,aki
Depends on D107544

Differential Revision: https://phabricator.services.mozilla.com/D107545
2021-03-09 14:36:19 +00:00
Ben Hearsum fb6e6ad7be Bug 587344: Add support for task and artifact references in run-task jobs on generic-worker. r=taskgraph-reviewers,aki
As far as I can tell, this was simply never implemented because it hasn't been needed until now.

Depends on D107543

Differential Revision: https://phabricator.services.mozilla.com/D107544
2021-03-09 14:36:18 +00:00
Ben Hearsum 8fd47fb88e Bug 587344: Mozharness script for running something and testing whether or not it stays alive for a given period of time. r=releng-reviewers,aki
It supports installing Mozilla applications with mozinstall, and simply running the thing it was instructed to download.

Differential Revision: https://phabricator.services.mozilla.com/D107543
2021-03-09 14:36:18 +00:00
Henrik Skupin 0c092d95db Bug 1686741 - [marionette] Add support for the new tab modal dialog. r=marionette-reviewers,mtigley,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D104814
2021-03-09 14:34:10 +00:00
Henrik Skupin f4bef4c9e5 Bug 1686741 - [marionette] Use dialogObserver when awaiting dialog to be closed. r=marionette-reviewers,jdescottes
Using the "waitForEvent" promise will cause an extra
"DOMModalDialogClosed" event to be logged, which is
confusing.

Differential Revision: https://phabricator.services.mozilla.com/D105316
2021-03-09 14:34:10 +00:00
Henrik Skupin 6e3b3a1710 Bug 1686741 - [marionette] "WebDriver:SwitchToWindow" needs to search for currently open user prompts. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D107460
2021-03-09 14:34:09 +00:00
Jan de Mooij 0ddf1b7480 Bug 1696861 part 6 - Rename Delegate flag to IsUsedAsPrototype. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D107421
2021-03-09 14:28:24 +00:00
Jan de Mooij b5e10bfb9d Bug 1696861 part 5 - Remove UncacheableProtoOnChain. r=tcampbell
This was used to ensure no cross-compartment objects were embedded by
ShapeGuardProtoChain (used for the property-not-found case) but that's no longer
an issue because ShapeGuardProtoChain only does shape guards now.

Note: for the property-found case, the cross-compartment issue still applies but
that's handled by SlotReadType::CrossCompartment.

Differential Revision: https://phabricator.services.mozilla.com/D107420
2021-03-09 14:28:24 +00:00
Jan de Mooij 8aafc73201 Bug 1696861 part 4 - Simplify some code in GeneratePrototypeGuards. r=tcampbell
We already peeled off the receiver for non-delegates (= most objects) but we can
do this for delegates too.

Depends on D107418

Differential Revision: https://phabricator.services.mozilla.com/D107419
2021-03-09 14:28:23 +00:00
Jan de Mooij 31e7d2a0d5 Bug 1696861 part 3 - Stop eagerly marking prototypes as delegate. r=tcampbell
Eagerly marking prototypes as delegate resulted in a lot of unnecessary shadowing
checks and reshaping when initializing the properties of those objects. This is
a regression from bug 724768.

It's more efficient, simpler, and consistent with JS-defined objects to mark
objects as delegate when they become the prototype of another object.

This removes the check for delegates in EmptyShape::ensureInitialCustomShape. That
should be fine because the only object it applies to is String.prototype and it
doesn't affect correctness. (RegExp and Error prototypes are plain objects since
bug 1213341 and bug 1192038 so don't show up there anyway.)

Depends on D107417

Differential Revision: https://phabricator.services.mozilla.com/D107418
2021-03-09 14:28:23 +00:00
Jan de Mooij 67c550e55b Bug 1696861 part 2 - Stop marking CCW's dynamic prototype as delegate. r=tcampbell
This goes back to bug 787856 but dynamic prototypes don't need to be marked as
delegate, because shape teleporting and JITs don't optimize those prototype chains.

Other proxy handlers such as ScriptedProxyHandler, ForwardingProxyHandler, Xrays
don't do this so this is also more consistent.

Depends on D107416

Differential Revision: https://phabricator.services.mozilla.com/D107417
2021-03-09 14:28:23 +00:00
Jan de Mooij 9bb055742b Bug 1696861 part 1 - Stop marking the global object as delegate. r=tcampbell
This goes back to when shape teleporting was used for environment chains too.
See also bug 1608034 where we made this change for (other) environment objects.

The global has a lot of properties and this avoids doing unnecessary work to
invalidate teleporting.

Add Object.prototype to the test-JSObject GDB test so that we still have a test for
the delegate flag.

Differential Revision: https://phabricator.services.mozilla.com/D107416
2021-03-09 14:28:22 +00:00
Dan Minor de8b57ab75 Bug 1694507 - Update messaging in "restart with add-ons disabled" / "safe mode" dialog r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D107524
2021-03-09 14:16:42 +00:00
Kagami Sascha Rosylight 7a84361402 Bug 1696123 - Always copy the checkedness of input elements r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D107130
2021-03-09 14:12:34 +00:00
Andrei Oprea 3559288617 Bug 1695320 - Update copy on DoH PopupNotification r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107606
2021-03-09 13:57:30 +00:00
Marco Bonardo 2b99ea2e97 Bug 1696752 - Allow to Add Web Engines from the urlbar contextual menu. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107370
2021-03-09 13:44:03 +00:00
Olli Pettay b90bd58381 Bug 1696266, test reloading a page which might otherwise enter bfcache, r=peterv
Depends on D107300

Differential Revision: https://phabricator.services.mozilla.com/D107536
2021-03-09 13:42:43 +00:00
Olli Pettay a46567f045 Bug 1696266, limit the load types which may cause the page to enter bfcache, r=peterv
The change to dom/base/nsFrameLoaderOwner.cpp is to log about the issues but still ensure we don't crash.

I'd prefer to not put error loads to bfcache.

Differential Revision: https://phabricator.services.mozilla.com/D107300
2021-03-09 13:42:43 +00:00
Henri Sivonen 9ff110ad01 Bug 1695537 - Make the template contents owner XML when not in HTML. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D107216
2021-03-09 13:34:51 +00:00
Dan Minor 1d86fd7081 Bug 1693128 - Update clear startup cache confirmation prompt content/text; r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107529
2021-03-09 13:31:18 +00:00
Henrik Skupin 5bcd2dee6b Bug 1696878 - [marionette] Call to "waitForWindow()` has to wait until window is ready. r=marionette-reviewers,jgraham
This method is asynchronous but misses the "await" statement.
As such it can cause race conditions in the "WebDriver:NewSession"
command.

Differential Revision: https://phabricator.services.mozilla.com/D107430
2021-03-09 13:04:30 +00:00
Henrik Skupin 645675cdd8 Bug 1696768 - [marionette] Remove unused "marionette.contentListener" preference. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D107429
2021-03-09 13:04:30 +00:00
Henrik Skupin 39a6342149 Bug 1696768 - [marionette] Don't enable "marionette.debugging.clicktostart" by default when --jsdebugger is used. r=marionette-reviewers,webdriver-reviewers,jdescottes,jgraham
Always getting a user prompt shown when debugging code in Marionette
is disturbing. Given that we usually use the "debugger;" statement
anyway, this prompt will not be useful by default.

But we should keep it to actually allow users of Marionette and
geckodriver to run a debug session without having to modify the
code first.

Differential Revision: https://phabricator.services.mozilla.com/D107428
2021-03-09 13:04:29 +00:00
Dale Harvey 8d3a00eaf8 Bug 1697003 - Update strings for Firefox Suggest experiment r=adw
Differential Revision: https://phabricator.services.mozilla.com/D107525
2021-03-09 12:59:03 +00:00
Olli Pettay 93c81f5154 Bug 1696527 - Remove unused 'JankLevel' code from nsRefreshDriver, r=bas
Differential Revision: https://phabricator.services.mozilla.com/D107283
2021-03-09 12:37:25 +00:00
Alexandre Poirot c43fe05565 Bug 1696471 - [devtools] Notify about content process target destruction via watcher's target-destroyed-form. r=nchevobbe,jdescottes
We are currently receiving tabDetached for content process targets
when we destroy them via:
  Services.ppmm.broadcastAsyncMessage("debug:destroy-process-script")
done from process-helper and we stop watching for process targets.
Tests now depends on this behavior.

So I'm trying to replicate this behavior in order to later get rid of tabDetached
in favor of target-destroyed-form.

Differential Revision: https://phabricator.services.mozilla.com/D107248
2021-03-09 12:30:53 +00:00
Alexandre Poirot f532cf4964 Bug 1696471 - [devtools] Properly close transports for content process targets. r=nchevobbe,jdescottes
There was a typo in `item.watcher != watcher`...

Differential Revision: https://phabricator.services.mozilla.com/D107247
2021-03-09 12:30:53 +00:00
Alexandre Poirot 76b6abc368 Bug 1696471 - [devtools] Notify about top level target destruction via watcher's target-destroyed-form. r=nchevobbe,jdescottes
This is a workaround, until the top level target uses the JSWindowActor codepath.
This will help get rid of tabDetached in favor of target-destroyed-form.

Differential Revision: https://phabricator.services.mozilla.com/D107246
2021-03-09 12:30:52 +00:00
Alexandre Poirot 195337eea7 Bug 1697109 - [devtools] Always destroy worker and webextension descriptors when descriptor-destroyed is sent. r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107466
2021-03-09 12:30:52 +00:00
Masayuki Nakano 568e0d1fe9 Bug 1690358 - part 2: Make `testConfirmPasswordFieldFilledWithGeneratedPassword` flush before and after running a test r=dimi
The `beforeFn` and `afterFn` may cause some pending reflow.  Then, synthesizing
arrow keys or mouse button events causes flushing the layout.  At this time,
autocomplete popup may be closed with different reason and that may cause
unexpected login database.

Depends on D107172

Differential Revision: https://phabricator.services.mozilla.com/D107173
2021-03-09 12:26:09 +00:00
Masayuki Nakano 6aaf414572 Bug 1690358 - part 1: Make `getPopupState` in satchel's `parent_utils.js` wait to reply stabler state of the popup r=dimi
`MozAutocompleteRichlistboxPopup` sets its `mPopupOpen` to `false` when it
receives `popuphiding` instead of `popuphidden`.
https://searchfox.org/mozilla-central/rev/63fcc3f1a2cc73488d8986f4cf91fce2cd4b7564/toolkit/content/widgets/autocomplete-popup.js#575,582

Therefore, `getPopupState` in satchel's `parent_utils.js` may run before
`popuphidden`, and remote content may synthesize another event before
`popuphidden`.  This may cause intermittent failure of any tests which
use `satchel_common.js`.

This patch makes `getPopupState` send the reply message after the popup
state stable.

Differential Revision: https://phabricator.services.mozilla.com/D107172
2021-03-09 12:26:08 +00:00
Will Kahn-Greene d9050a2e5d Bug 1691528 - remove email field from main process crash reporter. r=gsvelto
We're no longer collecting Email data for crash reports so this removes the
Email field and related bits from the main process crash reporters for Linux,
Mac, and Windows.

For Mac, I didn't remove the email-related fields, but instead hid them. In
order to remove them, I need to use an old xcode ibuilder to edit the .nib
files and we don't have that. Bug #1696164 covers updating the crash reporter
interface files on mac.

Differential Revision: https://phabricator.services.mozilla.com/D107251
2021-03-09 12:21:25 +00:00
Emilio Cobos Álvarez 2fedbee02a Bug 1697128 - Use accent color on mac for the tab line. r=dao
We use it for the awesomebar outline so I think it makes sense, it certainly
feels off to have a blue tab line but an accent-colored outline.

Differential Revision: https://phabricator.services.mozilla.com/D107626
2021-03-09 12:10:35 +00:00
Csoregi Natalia fa029583ab Backed out changeset 0a8323260fa7 (bug 1696752) for build bustages on page_action_menu_add_search_engine_2.xml CLOSED TREE 2021-03-09 14:13:06 +02:00
Simon Giesecke 5a848bb452 Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with UniquePtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105965
2021-03-09 11:39:36 +00:00
Simon Giesecke ca86d54b8c Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with nsCOMPtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105964
2021-03-09 11:39:36 +00:00
Simon Giesecke bc9766c354 Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with RefPtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105963
2021-03-09 11:39:36 +00:00