Skip to content
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

NotImplementedException inside CSSRuleList.item() #2232

Closed
DartBot opened this issue Mar 20, 2012 · 2 comments
Closed

NotImplementedException inside CSSRuleList.item() #2232

DartBot opened this issue Mar 20, 2012 · 2 comments

Comments

@DartBot
Copy link

DartBot commented Mar 20, 2012

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Unzip the attached zip
  2. Download go_appengine_sdk_linux_386-go1beta4.zip from http://code.google.com/p/appengine-go/downloads/list
  3. unzip go_appengine_sdk_linux_386-go1beta4.zip and add the unzipped directory (google_appengine) to PATH
  4. execute "dev_appserver.py dartium-server" and start a local server
  5. Access http://localhost:8080/ in Dartium

What is the expected output? What do you see instead?
I expected to see some sort of printed text inside the developer console, but instead got the following NotImplementedException.

Exception: NotImplementedException
Stack Trace: 0. Function: 'CSSRuleListImplementation._item@1c3f8015' url: '/mnt/data/b/build/slave/dartium-lucid64-inc/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/CSSRuleListImplementation.dart' line:20 col:1
 1. Function: 'CSSRuleListImplementation.item' url: '/mnt/data/b/build/slave/dartium-lucid64-inc/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/CSSRuleListImplementation.dart' line:15 col:17
 2. Function: '[email protected]' url: 'dart:html' line:1785 col:27
 3. Function: '::main' url: 'http://localhost:8080/' line:11 col:47

In Dartium, enter chrome://version and paste the results here.
Chromium 19.0.1072.0 (Developer Build 127158)
OS Linux
WebKit 536.3 (Source/WebCore/Configurations@285)
JavaScript V8 3.9.19
DartVM r5681
Flash 11.1 r102
ユーザー エージェント Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1072.0 (Dart) Safari/536.3
コマンドライン ./chrome --flag-switches-begin --flag-switches-end
実行可​​能なパス /home/masato/ダウンロード/dartium-lucid64-inc-5681.5681/chrome
プロフィール パス /home/masato/.config/chromium/Default

Put OS and machine details here.
(If you're using Linux or Mac OS, you can get this from uname -a.)
$ uname -a
Linux masato-xubuntu 3.0.0-16-generic-pae #­29-Ubuntu SMP Tue Feb 14 13:56:31 UTC 2012 i686 i686 i386 GNU/Linux

Please provide any additional information below.
You'll get the following NullPointerException if you try to open index.html locally in Dartium.

Exception: NullPointerException
Stack Trace: 0. Function: 'Object.noSuchMethod' url: 'bootstrap' line:677 col:3
 1. Function: '::main' url: 'file:///home/masato/desk/programs/google-app-engine/dartium-server/index.html' line:9 col:58

The reason is because CSSStyleSheet.cssRules becomes null if you read html from the file system.
This seems to be a different bug in chrome itself.

Regression: cssRules null when stylesheets loaded from local disk
http://code.google.com/p/chromium/issues/detail?id=49001


Attachment:
ErrorSample.zip (14.43 KB)

@DartBot
Copy link
Author

DartBot commented Mar 20, 2012

This comment was originally written by [email protected]


Set owner to [email protected].
Added Accepted label.

@DartBot
Copy link
Author

DartBot commented Mar 26, 2012

This comment was originally written by [email protected]


Should be fixed now


Added Fixed label.

copybara-service bot pushed a commit that referenced this issue Sep 19, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (https://github.com/dart-lang/ecosystem/compare/babf5d1..ed39318):
  ed39318  2023-09-14  Devon Carew  validate a prerelease setup-dart version (#169)
  b3dc96f  2023-09-14  Devon Carew  fix an issue rendering multi-line changelogs (#171)

http (https://github.com/dart-lang/http/compare/e19094a..decefa6):
  decefa6  2023-09-15  Brian Quinlan  Remove invalid status line tests and replace them with valid status line tests (#1018)

native (https://github.com/dart-lang/native/compare/4f4d7c3..a5d8809):
  a5d8809  2023-09-18  Daco Harkes  [native_toolchain_c] Bump version (#140)

tools (https://github.com/dart-lang/tools/compare/1512f3d..63d8267):
  63d8267  2023-09-18  Elias Yishak  Restrict surveys for certain tools (#161)
  5a1fc54  2023-09-14  Devon Carew  validate a pre-release setup-dart action (#160)

webdev (https://github.com/dart-lang/webdev/compare/501ccc2..d7e0d1f):
  d7e0d1ff  2023-09-15  Devon Carew  test the latest setup-dart action (#2233)
  4e231bc3  2023-09-14  Elliott Brooks  Fix copying over `client.dart.js` to `client.js` when build DWDS  (#2232)

Change-Id: Iac8741aed14591402b1c8a3cd33dc00e4648ac0c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326720
Commit-Queue: Devon Carew <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant