-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ERROR: method 'Target.enable' is not supported Firefox custom build. #1307
Comments
@aslushnikov I have mistakenly edited and closed this issue. I do not know how to recover it but it is in the historical record as edited. Could you take a look at it please? It is important to me and I am unable to find a solution and I am stuck to perform a work demo. |
@lupinhex I think I mostly restored your issue.
Let me try to compile FF the way you do and see what fails the build. |
Thank you! |
Type TypeError that happens while loading document is reported in the message manager but does not have the error event. Saw this while reproducing microsoft#1307
@lupinhex
# Combined .mozconfig file for ASan on Linux+Mac
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-asan
# Enable ASan specific code and build workarounds
ac_add_options --enable-address-sanitizer
# Add ASan to our compiler flags
export CFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC"
export CXXFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC"
# Additionally, we need the ASan flag during linking. Normally, our C/CXXFLAGS would
# be used during linking as well but there is at least one place in our build where
# our CFLAGS are not added during linking.
# Note: The use of this flag causes Clang to automatically link the ASan runtime :)
export LDFLAGS="-fsanitize=address"
# These three are required by ASan
ac_add_options --disable-jemalloc
ac_add_options --disable-crashreporter
ac_add_options --disable-elf-hack
# Keep symbols to symbolize ASan traces later
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols
ac_add_options --disable-install-strip
# Settings for an opt build (preferred)
# The -gline-tables-only ensures that all the necessary debug information for ASan
# is present, but the rest is stripped so the resulting binaries are smaller.
ac_add_options --enable-optimize="-O2 -gline-tables-only"
ac_add_options --disable-debug
# Settings for a debug+opt build
#ac_add_options --enable-optimize
#ac_add_options --enable-debug
# ASan specific options on Linux
ac_add_options --enable-valgrind
// NOTICE: requiring playwright from source
const playwright = require('.');
(async () => {
for (const browserType of ['firefox',]) {
const browser = await playwright[browserType].launch({
// NOTICE: using executablePath to run local build
executablePath: "/home/aslushnikov/prog/playwright/browser_patches/firefox/checkout/obj-x86_64-pc-linux-gnu/dist/bin/firefox",
headless: false,
dumpio: true,
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('http://whatsmyuseragent.org/');
await page.screenshot({ path: `example-${browserType}.png` });
await browser.close();
}
})(); Running this script worked fine for me. I didn't even do anything with crash reporter in preferences. I'm on Ubuntu 18.04. Can you try running this? |
It has been building for 40 minutes, so I have not replied before. I close it and open it if it doesn't work when it's done. Thank you! |
Context:
Playwright Version: latest
Operating System: Linux
Extra: Custom Firefox linux build (works by hand)
Code Snippet
Describe the bug
My problem arises when using a custom Mozilla build but following playwright scripts and mozilla documentation.
Address Sanitizer. File mozconfig by default is
Build process as described Contributing Browser Patches
Commented new build config to disable crash reporter ../local-firefox/linux-1029/firefox/playwright.cfg if not firefox shows a dialog at start "contact administrator.." (it is disabled in mozconfig "ac_add_options --disable-crashreporter" anyway)
Error if not commented in 'dumpio':
This part t's not important, same line with default playwright firefox build and works fine with script attached
[2020-03-10T12:16:53Z ERROR audio_thread_priority::rt_linux] setrlimit64: 1 it's not important, same line with default playwright firefox build and works fine with script attached)
Any help to locate and fix this issue? I use Firefox with Address Sanitizer to commit fixes and ensure no memory corruptions are introduced.
The text was updated successfully, but these errors were encountered: